Home
last modified time | relevance | path

Searched refs:pkt_resid (Results 1 – 25 of 37) sorted by relevance

12

/titanic_41/usr/src/uts/common/io/
H A Demul64_bsd.c307 pkt->pkt_resid = sp->cmd_count - 6; in bsd_scsi_inq_page0()
356 pkt->pkt_resid = sp->cmd_count - 22; in bsd_scsi_inq_page83()
417 pkt->pkt_resid = sp->cmd_count - sizeof (inq); in bsd_scsi_inquiry()
440 pkt->pkt_resid = bsd_readblks(sp->cmd_emul64, in bsd_scsi_io()
452 pkt->pkt_resid = bsd_writeblks(sp->cmd_emul64, in bsd_scsi_io()
464 pkt->pkt_resid = bsd_readblks(sp->cmd_emul64, in bsd_scsi_io()
476 pkt->pkt_resid = bsd_writeblks(sp->cmd_emul64, in bsd_scsi_io()
490 pkt->pkt_resid = bsd_readblks(sp->cmd_emul64, in bsd_scsi_io()
504 pkt->pkt_resid = bsd_writeblks(sp->cmd_emul64, in bsd_scsi_io()
519 if (pkt->pkt_resid != 0) in bsd_scsi_io()
[all …]
H A Demul64.c846 pkt->pkt_resid = 0; in emul64_scsi_init_pkt()
866 pkt->pkt_resid = 0; in emul64_scsi_init_pkt()
/titanic_41/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_scsa.c255 pktp->pkt_resid = bp->b_bcount - gcmdp->cmd_totxfer; in ghd_tran_init_pkt_attr()
257 pktp->pkt_resid = 0; in ghd_tran_init_pkt_attr()
/titanic_41/usr/src/uts/sun/sys/dada/
H A Ddada_pkt.h67 ssize_t pkt_resid; /* bytes not transfered */ member
/titanic_41/usr/src/uts/common/io/scsi/impl/
H A Dscsi_resource.c333 in_pktp->pkt_resid = 0; in scsi_init_cache_pkt()
466 in_pktp->pkt_resid = bp->b_bcount - in scsi_init_cache_pkt()
469 ASSERT((in_pktp->pkt_resid % pktw->pcw_granular) == in scsi_init_cache_pkt()
473 in_pktp->pkt_resid = 0; in scsi_init_cache_pkt()
/titanic_41/usr/src/uts/common/io/scsi/conf/
H A Dscsi_confsubr.c1320 ((SUN_INQSIZE - inq_pkt->pkt_resid) < SUN_MIN_INQLEN)) { in scsi_hba_probe_pi()
1323 ASSERT(inq_pkt->pkt_resid >= 0); in scsi_hba_probe_pi()
1325 (caddr_t)sd->sd_inq, (SUN_INQSIZE - inq_pkt->pkt_resid)); in scsi_hba_probe_pi()
2201 ASSERT(inq_pkt->pkt_resid >= 0); in send_scsi_INQUIRY()
2202 ASSERT(inq_pkt->pkt_resid <= buflen); in send_scsi_INQUIRY()
2205 bufaddr, buflen - inq_pkt->pkt_resid); in send_scsi_INQUIRY()
2207 *lenp = (buflen - inq_pkt->pkt_resid); in send_scsi_INQUIRY()
/titanic_41/usr/src/uts/common/sys/scsi/
H A Dscsi_pkt.h58 ssize_t pkt_resid; /* data bytes not transferred */ member
/titanic_41/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_io.c377 pkt->pkt_resid = 0; in iscsi_cmd_rsp_chk()
388 pkt->pkt_resid = ntohl(issrhp->residual_count); in iscsi_cmd_rsp_chk()
396 pkt->pkt_resid = in iscsi_cmd_rsp_chk()
408 issrhp->flags, pkt->pkt_resid); in iscsi_cmd_rsp_chk()
428 pkt->pkt_resid = in iscsi_cmd_rsp_chk()
431 pkt->pkt_resid = 0; in iscsi_cmd_rsp_chk()
480 pkt->pkt_resid = 0; in iscsi_cmd_rsp_cmd_status()
590 pkt->pkt_resid = 0; in iscsi_cmd_rsp_cmd_status()
749 pkt->pkt_resid = icmdp->cmd_un.scsi.bp->b_bcount; in iscsi_rx_process_cmd_rsp()
751 pkt->pkt_resid = 0; in iscsi_rx_process_cmd_rsp()
[all …]
/titanic_41/usr/src/uts/intel/io/dktp/controller/ata/
H A Datapi.c781 new_spktp->pkt_resid = resid - tmp; in atapi_tran_init_pkt()
785 new_spktp->pkt_resid = 0; in atapi_tran_init_pkt()
1046 spktp->pkt_resid = ata_pktp->ap_resid; in atapi_complete()
/titanic_41/usr/src/uts/sun/io/dada/conf/
H A Ddcd_confsubr.c218 ident_pkt->pkt_resid > 0) { in dcd_hba_probe()
/titanic_41/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_transport.c275 scsi_pktp->pkt_resid = 0; in cpqary3_init_pkt()
463 scsi_pktp->pkt_resid = in cpqary3_dma_alloc()
560 scsi_pktp->pkt_resid = bp->b_bcount - cpqary3_pktp->cmd_dmacount; in cpqary3_dma_move()
/titanic_41/usr/src/uts/common/io/usb/scsa2usb/
H A Dusb_ms_bulkonly.c742 pkt->pkt_resid = cmd->cmd_total_xfercount; in scsa2usb_handle_csw_result()
747 msg, pkt->pkt_resid); in scsa2usb_handle_csw_result()
H A Dscsa2usb.c2958 pkt->pkt_resid = 0; in scsa2usb_prepare_pkt()
3201 cmd->cmd_pkt->pkt_resid = bufsize - count; in scsa2usb_check_bulkonly_blacklist_attrs()
3220 cmd->cmd_pkt->pkt_resid = cmd->cmd_bp-> in scsa2usb_check_bulkonly_blacklist_attrs()
3246 cmd->cmd_pkt->pkt_resid = cmd->cmd_bp-> in scsa2usb_check_bulkonly_blacklist_attrs()
3442 cmd->cmd_pkt->pkt_resid = cmd->cmd_bp->b_bcount; in scsa2usb_handle_scsi_cmd_sub_class()
3570 cmd->cmd_pkt->pkt_resid = cmd->cmd_bp->b_bcount; in scsa2usb_check_ufi_blacklist_attrs()
3612 cmd->cmd_pkt->pkt_resid = in scsa2usb_check_ufi_blacklist_attrs()
5197 pkt->pkt_resid = cmd->cmd_total_xfercount; in scsa2usb_handle_data_done()
5297 pkt->pkt_state, pkt->pkt_statistics, pkt->pkt_resid); in scsa2usb_pkt_completion()
/titanic_41/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_scsa.c2085 pkt->pkt_resid = 0; in pmcs_SAS_done()
2207 pkt->pkt_state, pkt->pkt_resid, pkt->pkt_scbp[0]); in pmcs_SAS_done()
2705 pkt->pkt_resid = 0; in pmcs_SATA_done()
2711 pkt->pkt_state, pkt->pkt_resid, pkt->pkt_scbp[0]); in pmcs_SATA_done()
2985 pkt->pkt_resid = resid; in pmcs_ioerror()
2986 if (pkt->pkt_dma_len < pkt->pkt_resid) { in pmcs_ioerror()
3148 pkt->pkt_resid = cdbamt; in pmcs_set_resid()
3149 if (amt > pkt->pkt_resid) { in pmcs_set_resid()
3150 amt = pkt->pkt_resid; in pmcs_set_resid()
H A Dpmcs_sata.c39 CMD2PKT(sp)->pkt_resid -= amt; in SATAcopy()
503 pkt->pkt_state, pkt->pkt_resid, status); in pmcs_sata_special_work()
/titanic_41/usr/src/uts/common/io/scsi/adapters/smrt/
H A Dsmrt_hba.c435 pkt->pkt_resid = bp->b_bcount - sz; in smrt_fake_report_lun()
592 pkt->pkt_resid = 0; in smrt_tran_start()
999 pkt->pkt_resid = ei->ResidualCnt; in smrt_hba_complete()
/titanic_41/usr/src/uts/common/io/scsi/targets/
H A Dsgen.c1597 "state=0x%x", pkt->pkt_reason, pkt->pkt_resid, pkt->pkt_state); in sgen_callback()
1822 amt = MAX_SENSE_LENGTH - rqpkt->pkt_resid; in sgen_handle_sense()
1915 if (pkt->pkt_resid) { in sgen_check_error()
1916 bp->b_resid += pkt->pkt_resid; in sgen_check_error()
H A Dses.c1184 !pkt->pkt_resid) { in ses_callback()
1246 if ((bp->b_bcount - pkt->pkt_resid) > 0) { in ses_callback()
1353 bp->b_resid = pkt->pkt_resid; in ses_callback()
H A Dst.c1668 ASSERT(un->un_rqs->pkt_resid == 0); in st_doattach()
8671 ASSERT(pkt->pkt_resid == 0); in st_make_cmd()
8962 ASSERT(pkt->pkt_resid == 0); in st_make_cmd()
9068 ASSERT(pkt->pkt_resid == 0); in st_make_uscsi_cmd()
10531 amt = (int)MAX_SENSE_LENGTH - rqpkt->pkt_resid; in st_handle_sense()
10544 arqstat.sts_rqpkt_resid = rqpkt->pkt_resid; in st_handle_sense()
10706 resid = pkt->pkt_resid; in st_decode_sense()
10718 pkt->pkt_resid); in st_decode_sense()
10722 if (resid && (pkt->pkt_resid == 0)) { in st_decode_sense()
10723 pkt->pkt_resid = resid; in st_decode_sense()
[all …]
/titanic_41/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci.c1468 tpkt->pkt_resid = pkt->pkt_resid; in vhci_scsi_start()
2009 pkt->pkt_resid)); in vhci_scsi_init_pkt()
2053 vpkt->vpkt_tgt_pkt->pkt_resid = in vhci_scsi_init_pkt()
2054 vpkt->vpkt_hba_pkt->pkt_resid; in vhci_scsi_init_pkt()
3184 tpkt->pkt_resid = pkt->pkt_resid; in vhci_intr()
8040 vpkt->vpkt_hba_pkt->pkt_resid = pkt->pkt_resid; in vhci_update_pHCI_pkt()
8224 pkt->pkt_resid = 0; in vhci_create_retry_pkt()
8266 tpkt->pkt_resid = hba_pkt->pkt_resid; in vhci_sync_retry_pkt()
8403 pkt->pkt_resid == 0) { in vhci_uscsi_iodone()
8411 pkt->pkt_reason, pkt->pkt_resid, in vhci_uscsi_iodone()
[all …]
/titanic_41/usr/src/uts/sun/io/dada/targets/
H A Ddad.c2140 bp->b_resid = BP_PKT(bp)->pkt_resid; in dcdstart()
2141 BP_PKT(bp)->pkt_resid = 0; in dcdstart()
2145 bp->b_resid, BP_PKT(bp)->pkt_resid); in dcdstart()
2353 pkt->pkt_resid = resid; in make_dcd_cmd()
2450 if (pkt->pkt_resid && (com == ATA_READ || com == ATA_WRITE)) { in dcdintr()
2478 bp->b_resid += pkt->pkt_resid; in dcdintr()
3015 if (pkt->pkt_resid == 0) { in dcddump()
4537 (pkt->pkt_resid != 0)) { in dcd_send_lb_rw_cmd()
4540 SCBP_C(pkt), pkt->pkt_state, pkt->pkt_resid); in dcd_send_lb_rw_cmd()
/titanic_41/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dhba.c1309 pkt->pkt_resid = 0; in scsa1394_scsi_init_pkt()
1359 pkt->pkt_resid = bp->b_bcount - cmd->sc_win_len; in scsa1394_scsi_init_pkt()
2298 pkt->pkt_resid -= sizeof (struct scsi_inquiry); in scsa1394_cmd_fake_inquiry()
2414 pkt->pkt_resid = 0; in scsa1394_cmd_setup_next_xfer()
2425 pkt->pkt_resid = cmd->sc_resid_blks * cmd->sc_blk_size; in scsa1394_cmd_setup_next_xfer()
/titanic_41/usr/src/uts/intel/io/amr/
H A Damr.c1872 pkt->pkt_resid = 0; in amr_tran_init_pkt()
1927 pkt->pkt_resid = bp->b_bcount - ac->data_transfered; in amr_tran_init_pkt()
1931 (uint32_t)pkt->pkt_resid, (uint32_t)bp->b_bcount, in amr_tran_init_pkt()
1934 ASSERT(pkt->pkt_resid >= 0); in amr_tran_init_pkt()
/titanic_41/usr/src/uts/common/io/aac/
H A Daac.c1800 acp->pkt->pkt_resid = 0; in aac_soft_callback()
1838 acp->pkt->pkt_resid = 0; in aac_ld_complete()
1911 pkt->pkt_resid = acp->bcount - \ in aac_pd_complete()
1913 ASSERT(pkt->pkt_resid >= 0); in aac_pd_complete()
1919 data_xfer_length, pkt->pkt_resid); in aac_pd_complete()
1927 pkt->pkt_resid); in aac_pd_complete()
1935 pkt->pkt_resid); in aac_pd_complete()
1949 data_xfer_length, pkt->pkt_resid); in aac_pd_complete()
1959 pkt->pkt_resid); in aac_pd_complete()
1967 pkt->pkt_resid); in aac_pd_complete()
[all …]
/titanic_41/usr/src/uts/common/sys/scsi/targets/
H A Dsddef.h1278 ((bp)->b_resid += (pktp)->pkt_resid + (SD_GET_XBUF(bp)->xb_dma_resid))
1281 ((bp)->b_resid += (pktp)->pkt_resid)

12