Home
last modified time | relevance | path

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

12

/illumos-gate/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 …]
/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_scsa.c253 pktp->pkt_resid = bp->b_bcount - gcmdp->cmd_totxfer; in ghd_tran_init_pkt_attr()
255 pktp->pkt_resid = 0; in ghd_tran_init_pkt_attr()
/illumos-gate/usr/src/uts/common/io/scsi/impl/
H A Dscsi_resource.c334 in_pktp->pkt_resid = 0; in scsi_init_cache_pkt()
467 in_pktp->pkt_resid = bp->b_bcount - in scsi_init_cache_pkt()
470 ASSERT((in_pktp->pkt_resid % pktw->pcw_granular) == in scsi_init_cache_pkt()
474 in_pktp->pkt_resid = 0; in scsi_init_cache_pkt()
/illumos-gate/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()
/illumos-gate/usr/src/uts/sun/sys/dada/
H A Ddada_pkt.h67 ssize_t pkt_resid; /* bytes not transfered */ member
/illumos-gate/usr/src/uts/common/sys/scsi/
H A Dscsi_pkt.h58 ssize_t pkt_resid; /* data bytes not transferred */ member
/illumos-gate/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 …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pvscsi/
H A Dpvscsi.c383 pkt->pkt_resid = 0; in pvscsi_map_buffers()
404 pkt->pkt_resid = rdesc->dataLen; in pvscsi_map_buffers()
419 pkt->pkt_resid -= cmd->transferred; in pvscsi_comp_cmd()
459 pkt->pkt_resid -= cmd->transferred; in pvscsi_set_status()
481 pkt->pkt_resid -= cmd->transferred; in pvscsi_set_status()
488 pkt->pkt_resid -= cmd->transferred; in pvscsi_set_status()
500 pkt->pkt_resid -= cmd->transferred; in pvscsi_set_status()
514 pkt->pkt_resid -= cmd->transferred; in pvscsi_set_status()
/illumos-gate/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()
/illumos-gate/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()
561 scsi_pktp->pkt_resid = bp->b_bcount - cpqary3_pktp->cmd_dmacount; in cpqary3_dma_move()
/illumos-gate/usr/src/uts/sun/io/dada/conf/
H A Ddcd_confsubr.c218 ident_pkt->pkt_resid > 0) { in dcd_hba_probe()
/illumos-gate/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.c2961 pkt->pkt_resid = 0; in scsa2usb_prepare_pkt()
3195 cmd->cmd_pkt->pkt_resid = bufsize - count; in scsa2usb_check_bulkonly_quirks()
3214 cmd->cmd_pkt->pkt_resid = cmd->cmd_bp-> in scsa2usb_check_bulkonly_quirks()
3240 cmd->cmd_pkt->pkt_resid = cmd->cmd_bp-> in scsa2usb_check_bulkonly_quirks()
3438 cmd->cmd_pkt->pkt_resid = cmd->cmd_bp->b_bcount; in scsa2usb_handle_scsi_cmd_sub_class()
3560 cmd->cmd_pkt->pkt_resid = cmd->cmd_bp->b_bcount; in scsa2usb_check_ufi_quirks()
3602 cmd->cmd_pkt->pkt_resid = in scsa2usb_check_ufi_quirks()
5257 pkt->pkt_resid = cmd->cmd_total_xfercount; in scsa2usb_handle_data_done()
5357 pkt->pkt_state, pkt->pkt_statistics, pkt->pkt_resid); in scsa2usb_pkt_completion()
/illumos-gate/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()
504 pkt->pkt_state, pkt->pkt_resid, status); in pmcs_sata_special_work()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/smartpqi/
H A Dsmartpqi_hw.c672 if (pkt->pkt_resid == cmd->pc_dma_count) { in aio_io_complete()
686 pkt->pkt_resid = 0; in aio_io_complete()
694 if (pkt->pkt_resid != cmd->pc_dma_count) { in aio_io_complete()
H A Dsmartpqi_intr.c331 pkt->pkt_resid -= ei->data_out_transferred; in process_raid_io_error()
/illumos-gate/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.c1150 !pkt->pkt_resid) { in ses_callback()
1212 if ((bp->b_bcount - pkt->pkt_resid) > 0) { in ses_callback()
1322 bp->b_resid = pkt->pkt_resid; in ses_callback()
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci.c1471 tpkt->pkt_resid = pkt->pkt_resid; in vhci_scsi_start()
2012 pkt->pkt_resid)); in vhci_scsi_init_pkt()
2056 vpkt->vpkt_tgt_pkt->pkt_resid = in vhci_scsi_init_pkt()
2057 vpkt->vpkt_hba_pkt->pkt_resid; in vhci_scsi_init_pkt()
3187 tpkt->pkt_resid = pkt->pkt_resid; in vhci_intr()
8047 vpkt->vpkt_hba_pkt->pkt_resid = pkt->pkt_resid; in vhci_update_pHCI_pkt()
8231 pkt->pkt_resid = 0; in vhci_create_retry_pkt()
8273 tpkt->pkt_resid = hba_pkt->pkt_resid; in vhci_sync_retry_pkt()
8409 pkt->pkt_resid == 0) { in vhci_uscsi_iodone()
8417 pkt->pkt_reason, pkt->pkt_resid, in vhci_uscsi_iodone()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dhba.c1308 pkt->pkt_resid = 0; in scsa1394_scsi_init_pkt()
1358 pkt->pkt_resid = bp->b_bcount - cmd->sc_win_len; in scsa1394_scsi_init_pkt()
2297 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()
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/io/aac/
H A Daac.c1802 acp->pkt->pkt_resid = 0; in aac_soft_callback()
1840 acp->pkt->pkt_resid = 0; in aac_ld_complete()
1913 pkt->pkt_resid = acp->bcount - \ in aac_pd_complete()
1915 ASSERT(pkt->pkt_resid >= 0); in aac_pd_complete()
1921 data_xfer_length, pkt->pkt_resid); in aac_pd_complete()
1929 pkt->pkt_resid); in aac_pd_complete()
1937 pkt->pkt_resid); in aac_pd_complete()
1951 data_xfer_length, pkt->pkt_resid); in aac_pd_complete()
1961 pkt->pkt_resid); in aac_pd_complete()
1969 pkt->pkt_resid); in aac_pd_complete()
[all …]

12