Lines Matching defs:ntp

666 	inot_private_data_t *ntp;
673 while ((ntp = STAILQ_FIRST(&rq)) != NULL) {
677 ((at7_entry_t *)ntp->data)->at_rxid);
678 isp_handle_platform_atio7(isp, (at7_entry_t *) ntp->data);
679 isp_put_ntpd(isp, bus, ntp);
795 inot_private_data_t *ntp;
797 ntp = STAILQ_FIRST(&fc->ntfree);
798 if (ntp)
800 return (ntp);
807 inot_private_data_t *ntp;
809 for (ntp = fc->ntpool; ntp < &fc->ntpool[ATPDPSIZE]; ntp++) {
810 if (ntp->tag_id == tag_id && ntp->seq_id == seq_id)
811 return (ntp);
817 isp_put_ntpd(ispsoftc_t *isp, int chan, inot_private_data_t *ntp)
821 ntp->tag_id = ntp->seq_id = 0;
822 STAILQ_INSERT_HEAD(&fc->ntfree, ntp, next);
850 inot_private_data_t *ntp;
862 while ((ntp = STAILQ_FIRST(&tptr->restart_queue)) != NULL) {
863 isp_endcmd(isp, ntp->data, NIL_HANDLE, bus, SCSI_STATUS_BUSY, 0);
865 isp_put_ntpd(isp, bus, ntp);
1311 inot_private_data_t *ntp;
1464 ntp = isp_get_ntpd(isp, chan);
1465 if (ntp == NULL) {
1469 memcpy(ntp->data, aep, QENTRY_LEN);
1470 STAILQ_INSERT_TAIL(&tptr->restart_queue, ntp, next);
1784 inot_private_data_t *ntp = NULL;
1858 ntp = isp_get_ntpd(isp, notify->nt_channel);
1859 if (ntp == NULL) {
1863 ISP_MEMCPY(&ntp->nt, notify, sizeof (isp_notify_t));
1865 ISP_MEMCPY(&ntp->data, notify->nt_lreserved, QENTRY_LEN);
1866 ntp->nt.nt_lreserved = &ntp->data;
1868 ntp->seq_id = notify->nt_tagval;
1869 ntp->tag_id = notify->nt_tagval >> 32;
1894 inot_private_data_t *ntp, *tmp;
1897 STAILQ_FOREACH_SAFE(ntp, &tptr->restart_queue, next, tmp) {
1898 this_tag_id = ((at7_entry_t *)ntp->data)->at_rxid;
1900 STAILQ_REMOVE(&tptr->restart_queue, ntp,
1902 isp_endcmd(isp, ntp->data, NIL_HANDLE, chan,
1904 isp_put_ntpd(isp, chan, ntp);
2328 inot_private_data_t *ntp;
2350 ntp = isp_find_ntpd(isp, XS_CHANNEL(accb), accb->cin1.tag_id, accb->cin1.seq_id);
2351 if (ntp != NULL) {
2352 if (ntp->nt.nt_need_ack) {
2354 ntp->nt.nt_lreserved);
2356 isp_put_ntpd(isp, XS_CHANNEL(accb), ntp);
2496 inot_private_data_t *ntp;
2506 ntp = isp_find_ntpd(isp, XS_CHANNEL(ccb), ccb->cna2.tag_id, ccb->cna2.seq_id);
2507 if (ntp == NULL) {
2508 ISP_PATH_PRT(isp, ISP_LOGWARN, ccb->ccb_h.path, "%s: [0x%x] XPT_NOTIFY_ACKNOWLEDGE of 0x%x cannot find ntp private data\n", __func__,
2522 if (ntp->nt.nt_ncode == NT_ABORT_TASK && (rsp & 0xff) == 0 &&
2531 if (isp_handle_platform_target_notify_ack(isp, &ntp->nt, rsp)) {
2538 isp_put_ntpd(isp, XS_CHANNEL(ccb), ntp);