Home
last modified time | relevance | path

Searched refs:scsi_bufflen (Results 1 – 25 of 95) sorted by relevance

1234

/Linux-v5.10/drivers/scsi/arm/
Dscsi.h83 if (scsi_bufflen(SCpnt)) { in init_SCp()
90 SCpnt->SCp.phase = scsi_bufflen(SCpnt); in init_SCp()
103 if (scsi_bufflen(SCpnt) != len) { in init_SCp()
109 scsi_bufflen(SCpnt), len); in init_SCp()
116 scsi_bufflen(SCpnt)); in init_SCp()
Dacornscsi.c1743 residual = scsi_bufflen(host->SCpnt) - host->scsi.SCp.scsi_xferred; in acornscsi_starttransfer()
2223 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2234 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2244 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2272 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2284 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2295 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
/Linux-v5.10/drivers/staging/rts5208/
Drtsx_scsi.c498 buf = vmalloc(scsi_bufflen(srb)); in inquiry()
512 if (scsi_bufflen(srb) < 56) in inquiry()
513 sendbytes = (unsigned char)(scsi_bufflen(srb)); in inquiry()
518 if (scsi_bufflen(srb) < 36) in inquiry()
519 sendbytes = (unsigned char)(scsi_bufflen(srb)); in inquiry()
542 rtsx_stor_set_xfer_buf(buf, scsi_bufflen(srb), srb); in inquiry()
552 scsi_set_resid(srb, scsi_bufflen(srb)); in start_stop_unit()
627 buf = vmalloc(scsi_bufflen(srb)); in request_sense()
632 memcpy(buf, tmp, scsi_bufflen(srb)); in request_sense()
634 rtsx_stor_set_xfer_buf(buf, scsi_bufflen(srb), srb); in request_sense()
[all …]
Drtsx_transport.c45 if (*offset >= scsi_bufflen(srb)) in rtsx_stor_access_xfer_buf()
47 cnt = min(buflen, scsi_bufflen(srb) - *offset); in rtsx_stor_access_xfer_buf()
127 if (buflen < scsi_bufflen(srb)) in rtsx_stor_set_xfer_buf()
128 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in rtsx_stor_set_xfer_buf()
138 if (buflen < scsi_bufflen(srb)) in rtsx_stor_get_xfer_buf()
139 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in rtsx_stor_get_xfer_buf()
Dspi.c443 min_t(int, scsi_bufflen(srb), 1), srb); in spi_get_status()
444 scsi_set_resid(srb, scsi_bufflen(srb) - 1); in spi_get_status()
545 rtsx_stor_set_xfer_buf(buf, scsi_bufflen(srb), srb); in spi_read_flash_id()
/Linux-v5.10/drivers/usb/storage/
Dprotocol.c175 buflen = min(buflen, scsi_bufflen(srb)); in usb_stor_set_xfer_buf()
178 if (buflen < scsi_bufflen(srb)) in usb_stor_set_xfer_buf()
179 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in usb_stor_set_xfer_buf()
Dfreecom.c331 usb_stor_dbg(us, "SCSI requested %d\n", scsi_bufflen(srb)); in freecom_transport()
342 length = scsi_bufflen(srb); in freecom_transport()
346 if (length > scsi_bufflen(srb)) { in freecom_transport()
347 length = scsi_bufflen(srb); in freecom_transport()
Dshuttle_usbat.c1302 if (scsi_bufflen(srb) < 0x10000) { in usbat_hp8200e_handle_read10()
1310 scsi_bufflen(srb), scsi_sg_count(srb), 1); in usbat_hp8200e_handle_read10()
1328 srb->transfersize = scsi_bufflen(srb)/len; in usbat_hp8200e_handle_read10()
1345 len = min(len, scsi_bufflen(srb)); in usbat_hp8200e_handle_read10()
1354 while (transferred != scsi_bufflen(srb)) { in usbat_hp8200e_handle_read10()
1356 if (len > scsi_bufflen(srb) - transferred) in usbat_hp8200e_handle_read10()
1357 len = scsi_bufflen(srb) - transferred; in usbat_hp8200e_handle_read10()
1561 len = scsi_bufflen(srb); in usbat_hp8200e_transport()
Dtransport.c466 scsi_sg_count(srb), scsi_bufflen(srb), in usb_stor_bulk_srb()
469 scsi_set_resid(srb, scsi_bufflen(srb) - partial); in usb_stor_bulk_srb()
880 scsi_bufflen(srb) - scsi_get_resid(srb) < srb->underflow) in usb_stor_invoke_transport()
947 unsigned int transfer_length = scsi_bufflen(srb); in usb_stor_CB_transport()
1107 unsigned int transfer_length = scsi_bufflen(srb); in usb_stor_Bulk_transport()
/Linux-v5.10/drivers/scsi/
Dps3rom.c99 atapi_cmnd.blocks = atapi_cmnd.arglen = scsi_bufflen(cmd); in ps3rom_atapi_request()
104 if (scsi_bufflen(cmd) >= CD_FRAMESIZE) in ps3rom_atapi_request()
112 if (scsi_bufflen(cmd) >= CD_FRAMESIZE) in ps3rom_atapi_request()
303 scsi_set_resid(cmd, scsi_bufflen(cmd) - len); in ps3rom_interrupt()
Dfdomain.c221 offset = scsi_bufflen(cmd) - scsi_get_resid(cmd); in fdomain_read_data()
243 offset = scsi_bufflen(cmd) - scsi_get_resid(cmd); in fdomain_write_data()
244 if (len + offset > scsi_bufflen(cmd)) { in fdomain_write_data()
245 len = scsi_bufflen(cmd) - offset; in fdomain_write_data()
407 scsi_set_resid(cmd, scsi_bufflen(cmd)); in fdomain_queue()
Dsr.c325 int this_count = scsi_bufflen(SCpnt); in sr_done()
459 if (size != scsi_bufflen(SCpnt)) { in sr_init_command()
462 size, scsi_bufflen(SCpnt)); in sr_init_command()
463 if (scsi_bufflen(SCpnt) > size) in sr_init_command()
472 (scsi_bufflen(SCpnt) % s_size)) { in sr_init_command()
477 this_count = (scsi_bufflen(SCpnt) >> 9) / (s_size >> 9); in sr_init_command()
Dmac53c94.c82 scsi_sg_count(cmd), scsi_bufflen(cmd), scsi_sglist(cmd)); in mac53c94_queue_lck()
268 && (scsi_sg_count(cmd) > 0 || scsi_bufflen(cmd))) { in mac53c94_interrupt()
/Linux-v5.10/drivers/s390/scsi/
Dzfcp_fc.h242 datalen = scsi_bufflen(scsi); in zfcp_fc_scsi_to_fcp()
305 if (scsi_bufflen(scsi) - resid < scsi->underflow && in zfcp_fc_eval_fcp_rsp()
/Linux-v5.10/drivers/scsi/qla4xxx/
Dql4_iocb.c161 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla4xxx_build_scsi_iocbs()
328 cmd_entry->ttlByteCnt = cpu_to_le32(scsi_bufflen(cmd)); in qla4xxx_send_command_to_isp()
338 if (scsi_bufflen(cmd)) { in qla4xxx_send_command_to_isp()
344 ha->bytes_xfered += scsi_bufflen(cmd); in qla4xxx_send_command_to_isp()
Dql4_isr.c166 if (!scsi_status && ((scsi_bufflen(cmd) - residual) < in qla4xxx_status_entry()
178 scsi_bufflen(cmd), residual)); in qla4xxx_status_entry()
258 if (!scsi_status && (scsi_bufflen(cmd) - residual) < in qla4xxx_status_entry()
266 scsi_bufflen(cmd), in qla4xxx_status_entry()
299 scsi_bufflen(cmd))); in qla4xxx_status_entry()
/Linux-v5.10/drivers/scsi/csiostor/
Dcsio_scsi.c176 fcp_cmnd->fc_dl = cpu_to_be32(scsi_bufflen(scmnd)); in csio_scsi_fcp_cmnd()
327 xfer_len = scsi_bufflen(scmnd); in csio_scsi_init_ultptx_dsgl()
378 wr->xfer_cnt = cpu_to_be32(scsi_bufflen(scmnd)); in csio_scsi_init_read_wr()
379 wr->ini_xfer_cnt = cpu_to_be32(scsi_bufflen(scmnd)); in csio_scsi_init_read_wr()
431 wr->xfer_cnt = cpu_to_be32(scsi_bufflen(scmnd)); in csio_scsi_init_write_wr()
432 wr->ini_xfer_cnt = cpu_to_be32(scsi_bufflen(scmnd)); in csio_scsi_init_write_wr()
608 xfer_len = scsi_bufflen(scmnd); in csio_setup_ddp()
1502 bytes_left = scsi_bufflen(scmnd); in csio_scsi_copy_to_sgl()
1615 ((scsi_bufflen(cmnd) - scsi_get_resid(cmnd)) in csio_scsi_err_handler()
1628 scsi_bufflen(cmnd), scsi_get_resid(cmnd)); in csio_scsi_err_handler()
[all …]
/Linux-v5.10/drivers/scsi/aacraid/
Daachba.c1554 hbacmd->data_length = cpu_to_le32(scsi_bufflen(cmd)); in aac_construct_hbacmd()
1575 srbcmd->count = cpu_to_le32(scsi_bufflen(cmd)); in aac_scsi_64()
1606 srbcmd->count = cpu_to_le32(scsi_bufflen(cmd)); in aac_scsi_32()
3010 if (alloc_len < scsi_bufflen(scsicmd)) in aac_scsi_cmd()
3012 scsi_bufflen(scsicmd) - alloc_len); in aac_scsi_cmd()
3421 scsi_set_resid(scsicmd, scsi_bufflen(scsicmd) in aac_srb_callback()
3854 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sg()
3856 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sg()
3858 byte_count = scsi_bufflen(scsicmd); in aac_build_sg()
3898 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sg64()
[all …]
/Linux-v5.10/drivers/scsi/qla2xxx/
Dqla_iocb.c32 vha->qla_stats.output_bytes += scsi_bufflen(cmd); in qla2x00_get_cmd_direction()
36 vha->qla_stats.input_bytes += scsi_bufflen(cmd); in qla2x00_get_cmd_direction()
206 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla2x00_build_scsi_iocbs_32()
262 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla2x00_build_scsi_iocbs_64()
410 cmd_pkt->byte_count = cpu_to_le32((uint32_t)scsi_bufflen(cmd)); in qla2x00_start_scsi()
604 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla24xx_build_scsi_type_6_iocbs()
615 qpair->counters.output_bytes += scsi_bufflen(cmd); in qla24xx_build_scsi_type_6_iocbs()
619 qpair->counters.input_bytes += scsi_bufflen(cmd); in qla24xx_build_scsi_type_6_iocbs()
715 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla24xx_build_scsi_iocbs()
725 qpair->counters.output_bytes += scsi_bufflen(cmd); in qla24xx_build_scsi_iocbs()
[all …]
Dqla_mr.c2377 ((unsigned)(scsi_bufflen(cp) - resid) < in qlafx00_status_entry()
2382 resid, scsi_bufflen(cp)); in qlafx00_status_entry()
2421 resid, scsi_bufflen(cp)); in qlafx00_status_entry()
2429 ((unsigned)(scsi_bufflen(cp) - resid) < in qlafx00_status_entry()
2435 resid, scsi_bufflen(cp), cp->underflow); in qlafx00_status_entry()
2451 scsi_bufflen(cp)); in qlafx00_status_entry()
2531 lscsi_status, cp->cmnd, scsi_bufflen(cp), in qlafx00_status_entry()
3013 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qlafx00_build_scsi_iocbs()
3021 vha->qla_stats.output_bytes += scsi_bufflen(cmd); in qlafx00_build_scsi_iocbs()
3024 vha->qla_stats.input_bytes += scsi_bufflen(cmd); in qlafx00_build_scsi_iocbs()
[all …]
/Linux-v5.10/drivers/scsi/pcmcia/
Dsym53c500_cs.c418 LOAD_DMA_COUNT(port_base, scsi_bufflen(curSC)); /* Max transfer size */ in SYM53C500_intr()
437 LOAD_DMA_COUNT(port_base, scsi_bufflen(curSC)); /* Max transfer size */ in SYM53C500_intr()
552 (u8)SCpnt->device->lun, scsi_bufflen(SCpnt))); in SYM53C500_queue_lck()
/Linux-v5.10/drivers/scsi/qedi/
Dqedi_fw.c655 scsi_bufflen(sc_cmd)); in qedi_scsi_completion()
656 hdr->residual_count = cpu_to_be32(scsi_bufflen(sc_cmd)); in qedi_scsi_completion()
1937 if (byte_count != scsi_bufflen(sc)) in qedi_map_scsi_sg()
1940 scsi_bufflen(sc)); in qedi_map_scsi_sg()
1945 WARN_ON(byte_count != scsi_bufflen(sc)); in qedi_map_scsi_sg()
2011 io_log->bufflen = scsi_bufflen(sc_cmd); in qedi_trace_io()
2132 tx_sgl_task_params.total_buffer_size = scsi_bufflen(sc); in qedi_iscsi_send_ioreq()
2142 rx_sgl_task_params.total_buffer_size = scsi_bufflen(sc); in qedi_iscsi_send_ioreq()
2165 task_params.tx_io_size = scsi_bufflen(sc); in qedi_iscsi_send_ioreq()
2167 task_params.rx_io_size = scsi_bufflen(sc); in qedi_iscsi_send_ioreq()
[all …]
/Linux-v5.10/drivers/message/fusion/
Dmptscsih.c540 "resid = %d\n", ioc->name, scsi_bufflen(sc), sc->underflow, in mptscsih_info_scsiio()
669 scsi_set_resid(sc, scsi_bufflen(sc) - xfer_cnt); in mptscsih_io_done()
804 scsi_set_resid(sc, scsi_bufflen(sc) - xfer_cnt); in mptscsih_io_done()
837 if (scsi_bufflen(sc) != in mptscsih_io_done()
845 scsi_bufflen(sc), in mptscsih_io_done()
910 0x80) && (scsi_bufflen(sc) in mptscsih_io_done()
920 scsi_bufflen(sc), in mptscsih_io_done()
925 (scsi_bufflen(sc) != in mptscsih_io_done()
936 scsi_bufflen(sc), in mptscsih_io_done()
1357 datalen = scsi_bufflen(SCpnt); in mptscsih_qcmd()
[all …]
/Linux-v5.10/include/scsi/
Dscsi_cmnd.h189 static inline unsigned scsi_bufflen(struct scsi_cmnd *cmd) in scsi_bufflen() function
/Linux-v5.10/drivers/scsi/qedf/
Dqedf_io.c525 if (byte_count != scsi_bufflen(sc)) in qedf_map_sg()
528 scsi_bufflen(sc), io_req->xid); in qedf_map_sg()
648 scsi_bufflen(io_req->sc_cmd); in qedf_init_task()
826 io_log->bufflen = scsi_bufflen(sc_cmd); in qedf_trace_io()
864 io_req->data_xfer_len = scsi_bufflen(sc_cmd); in qedf_post_io_req()
1230 scsi_set_resid(sc_cmd, scsi_bufflen(sc_cmd)); in qedf_scsi_completion()
1424 scsi_set_resid(sc_cmd, scsi_bufflen(sc_cmd)); in qedf_scsi_done()

1234