Home
last modified time | relevance | path

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

1234

/linux/drivers/staging/rts5208/
A Drtsx_scsi.c498 buf = vmalloc(scsi_bufflen(srb)); in inquiry()
512 if (scsi_bufflen(srb) < 56) in inquiry()
518 if (scsi_bufflen(srb) < 36) in inquiry()
627 buf = vmalloc(scsi_bufflen(srb)); in request_sense()
632 memcpy(buf, tmp, scsi_bufflen(srb)); in request_sense()
1759 if (scsi_bufflen(srb) < 1) { in rw_mem_cmd_buf()
2980 if ((scsi_bufflen(srb) == 0x41C) && in mg_report_key()
2995 if ((scsi_bufflen(srb) == 0x24) && in mg_report_key()
3083 if ((scsi_bufflen(srb) == 0x0C) && in mg_send_key()
3098 if ((scsi_bufflen(srb) == 0x0C) && in mg_send_key()
[all …]
A 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()
A 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/drivers/scsi/arm/
A 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()
A Dacornscsi.c1688 residual = scsi_bufflen(host->SCpnt) - host->scsi.SCp.scsi_xferred; in acornscsi_starttransfer()
2162 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2173 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2183 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
2211 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - in acornscsi_sbicintr()
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()
/linux/drivers/usb/storage/
A 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()
A 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()
A 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()
A Dtransport.c471 scsi_sg_count(srb), scsi_bufflen(srb), in usb_stor_bulk_srb()
474 scsi_set_resid(srb, scsi_bufflen(srb) - partial); in usb_stor_bulk_srb()
892 scsi_bufflen(srb) - scsi_get_resid(srb) < srb->underflow) in usb_stor_invoke_transport()
959 unsigned int transfer_length = scsi_bufflen(srb); in usb_stor_CB_transport()
1119 unsigned int transfer_length = scsi_bufflen(srb); in usb_stor_Bulk_transport()
/linux/drivers/scsi/
A 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()
299 scsi_set_resid(cmd, scsi_bufflen(cmd) - len); in ps3rom_interrupt()
A Dfdomain.c220 offset = scsi_bufflen(cmd) - scsi_get_resid(cmd); in fdomain_read_data()
242 offset = scsi_bufflen(cmd) - scsi_get_resid(cmd); in fdomain_write_data()
243 if (len + offset > scsi_bufflen(cmd)) { in fdomain_write_data()
244 len = scsi_bufflen(cmd) - offset; in fdomain_write_data()
409 scsi_set_resid(cmd, scsi_bufflen(cmd)); in fdomain_queue()
A Dsr.c333 int this_count = scsi_bufflen(SCpnt); in sr_done()
454 if (size != scsi_bufflen(SCpnt)) { in sr_init_command()
457 size, scsi_bufflen(SCpnt)); in sr_init_command()
458 if (scsi_bufflen(SCpnt) > size) in sr_init_command()
467 (scsi_bufflen(SCpnt) % s_size)) { in sr_init_command()
472 this_count = (scsi_bufflen(SCpnt) >> 9) / (s_size >> 9); in sr_init_command()
A Dvmw_pvscsi.c352 unsigned bufflen = scsi_bufflen(cmd); in pvscsi_map_buffers()
421 bufflen = scsi_bufflen(cmd); in pvscsi_unmap_buffers()
593 if (e->dataLen && (e->dataLen < scsi_bufflen(cmd))) in pvscsi_complete_request()
594 scsi_set_resid(cmd, scsi_bufflen(cmd) - e->dataLen); in pvscsi_complete_request()
601 scsi_set_resid(cmd, scsi_bufflen(cmd) - e->dataLen); in pvscsi_complete_request()
A Dmac53c94.c81 scsi_sg_count(cmd), scsi_bufflen(cmd), scsi_sglist(cmd)); in mac53c94_queue_lck()
266 && (scsi_sg_count(cmd) > 0 || scsi_bufflen(cmd))) { in mac53c94_interrupt()
/linux/drivers/scsi/qla4xxx/
A 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()
A 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/drivers/s390/scsi/
A Dzfcp_fc.h242 datalen = scsi_bufflen(scsi); in zfcp_fc_scsi_to_fcp()
304 if (scsi_bufflen(scsi) - resid < scsi->underflow && in zfcp_fc_eval_fcp_rsp()
/linux/drivers/scsi/csiostor/
A 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()
608 xfer_len = scsi_bufflen(scmnd); in csio_setup_ddp()
1506 bytes_left = scsi_bufflen(scmnd); in csio_scsi_copy_to_sgl()
1632 scsi_bufflen(cmnd), scsi_get_resid(cmnd)); in csio_scsi_err_handler()
1641 cmnd->cmnd[0], scsi_bufflen(cmnd), in csio_scsi_err_handler()
1846 ln->stats.n_output_bytes += scsi_bufflen(cmnd); in csio_queuecommand()
[all …]
/linux/drivers/scsi/aacraid/
A Daachba.c2995 if (alloc_len < scsi_bufflen(scsicmd)) in aac_scsi_cmd()
3816 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sg()
3818 byte_count = scsi_bufflen(scsicmd); in aac_build_sg()
3860 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sg64()
3862 byte_count = scsi_bufflen(scsicmd); in aac_build_sg64()
3908 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sgraw()
3910 byte_count = scsi_bufflen(scsicmd); in aac_build_sgraw()
3961 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sgraw2()
3963 byte_count = scsi_bufflen(scsicmd); in aac_build_sgraw2()
4080 - scsi_bufflen(scsicmd); in aac_build_sghba()
[all …]
/linux/drivers/scsi/qla2xxx/
A 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()
617 qpair->counters.output_bytes += scsi_bufflen(cmd); in qla24xx_build_scsi_type_6_iocbs()
621 qpair->counters.input_bytes += scsi_bufflen(cmd); in qla24xx_build_scsi_type_6_iocbs()
727 qpair->counters.output_bytes += scsi_bufflen(cmd); in qla24xx_build_scsi_iocbs()
731 qpair->counters.input_bytes += scsi_bufflen(cmd); in qla24xx_build_scsi_iocbs()
857 sgx.tot_bytes = scsi_bufflen(cmd); in qla24xx_walk_and_build_sglist_no_difb()
1364 data_bytes = scsi_bufflen(cmd); in qla24xx_build_scsi_crc_2_iocbs()
1759 sgx.tot_bytes = scsi_bufflen(cmd); in qla24xx_dif_start_scsi()
2137 sgx.tot_bytes = scsi_bufflen(cmd); in qla2xxx_dif_start_scsi_mq()
[all …]
A Dqla_mr.c2354 ((unsigned)(scsi_bufflen(cp) - resid) < in qlafx00_status_entry()
2359 resid, scsi_bufflen(cp)); in qlafx00_status_entry()
2398 resid, scsi_bufflen(cp)); in qlafx00_status_entry()
2406 ((unsigned)(scsi_bufflen(cp) - resid) < in qlafx00_status_entry()
2412 resid, scsi_bufflen(cp), cp->underflow); in qlafx00_status_entry()
2428 scsi_bufflen(cp)); in qlafx00_status_entry()
2508 lscsi_status, cp->cmnd, scsi_bufflen(cp), in qlafx00_status_entry()
2990 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qlafx00_build_scsi_iocbs()
2998 vha->qla_stats.output_bytes += scsi_bufflen(cmd); in qlafx00_build_scsi_iocbs()
3001 vha->qla_stats.input_bytes += scsi_bufflen(cmd); in qlafx00_build_scsi_iocbs()
[all …]
/linux/drivers/scsi/pcmcia/
A 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()
551 (u8)SCpnt->device->lun, scsi_bufflen(SCpnt))); in SYM53C500_queue_lck()
/linux/drivers/scsi/qedi/
A Dqedi_fw.c646 scsi_bufflen(sc_cmd)); in qedi_scsi_completion()
647 hdr->residual_count = cpu_to_be32(scsi_bufflen(sc_cmd)); in qedi_scsi_completion()
1862 if (byte_count != scsi_bufflen(sc)) in qedi_map_scsi_sg()
1865 scsi_bufflen(sc)); in qedi_map_scsi_sg()
1870 WARN_ON(byte_count != scsi_bufflen(sc)); in qedi_map_scsi_sg()
1936 io_log->bufflen = scsi_bufflen(sc_cmd); in qedi_trace_io()
2057 tx_sgl_task_params.total_buffer_size = scsi_bufflen(sc); in qedi_iscsi_send_ioreq()
2067 rx_sgl_task_params.total_buffer_size = scsi_bufflen(sc); in qedi_iscsi_send_ioreq()
2090 task_params.tx_io_size = scsi_bufflen(sc); in qedi_iscsi_send_ioreq()
2092 task_params.rx_io_size = scsi_bufflen(sc); in qedi_iscsi_send_ioreq()
[all …]
/linux/drivers/message/fusion/
A 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/drivers/scsi/qedf/
A Dqedf_io.c520 if (byte_count != scsi_bufflen(sc)) in qedf_map_sg()
523 scsi_bufflen(sc), io_req->xid); in qedf_map_sg()
643 scsi_bufflen(io_req->sc_cmd); in qedf_init_task()
821 io_log->bufflen = scsi_bufflen(sc_cmd); in qedf_trace_io()
859 io_req->data_xfer_len = scsi_bufflen(sc_cmd); in qedf_post_io_req()
1219 scsi_set_resid(sc_cmd, scsi_bufflen(sc_cmd)); in qedf_scsi_completion()
1406 scsi_set_resid(sc_cmd, scsi_bufflen(sc_cmd)); in qedf_scsi_done()

Completed in 92 milliseconds

1234