Home
last modified time | relevance | path

Searched refs:scsi_sg_count (Results 1 – 25 of 76) sorted by relevance

1234

/linux-2.6.39/drivers/scsi/
Dscsi_lib_dma.c25 if (scsi_sg_count(cmd)) { in scsi_dma_map()
28 nseg = dma_map_sg(dev, scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_dma_map()
43 if (scsi_sg_count(cmd)) { in scsi_dma_unmap()
46 dma_unmap_sg(dev, scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_dma_unmap()
Dlibsrp.c201 md->len, scsi_sg_count(sc)); in srp_direct_data()
203 nsg = dma_map_sg(iue->target->dev, sg, scsi_sg_count(sc), in srp_direct_data()
206 printk("fail to map %p %d\n", iue, scsi_sg_count(sc)); in srp_direct_data()
274 nsg = dma_map_sg(iue->target->dev, sg, scsi_sg_count(sc), in srp_indirect_data()
277 eprintk("fail to map %p %d\n", iue, scsi_sg_count(sc)); in srp_indirect_data()
Deata.c1629 if (!scsi_sg_count(SCpnt)) { in map_dma()
1634 count = pci_map_sg(ha->pdev, scsi_sglist(SCpnt), scsi_sg_count(SCpnt), in map_dma()
1645 scsi_sg_count(SCpnt) * in map_dma()
1648 cpp->data_len = H2DEV((scsi_sg_count(SCpnt) * sizeof(struct sg_list))); in map_dma()
1665 if (scsi_sg_count(SCpnt)) in unmap_dma()
1666 pci_unmap_sg(ha->pdev, scsi_sglist(SCpnt), scsi_sg_count(SCpnt), in unmap_dma()
1692 if (scsi_sg_count(SCpnt)) in sync_dma()
1694 scsi_sg_count(SCpnt), pci_dir); in sync_dma()
Dfdomain.c1432 scsi_sg_count(SCpnt), in fdomain_16x0_queue_lck()
1443 if (scsi_sg_count(current_SC)) { in fdomain_16x0_queue_lck()
1447 current_SC->SCp.buffers_residual = scsi_sg_count(current_SC) - 1; in fdomain_16x0_queue_lck()
1499 scsi_sg_count(SCpnt), in DEF_SCSI_QCMD()
Dfd_mcs.c1085 scsi_sg_count(SCpnt), scsi_bufflen(SCpnt)); in fd_mcs_queue_lck()
1099 current_SC->SCp.buffers_residual = scsi_sg_count(current_SC) - 1; in fd_mcs_queue_lck()
1158 scsi_sg_count(SCpnt), scsi_bufflen(SCpnt)); in DEF_SCSI_QCMD()
Dmac53c94.c81 scsi_sg_count(cmd), scsi_bufflen(cmd), scsi_sglist(cmd)); in mac53c94_queue_lck()
267 && (scsi_sg_count(cmd) > 0 || scsi_bufflen(cmd))) { in mac53c94_interrupt()
D3w-9xxx.c1349 if ((scsi_sg_count(cmd) <= 1) && (full_command_packet->command.newcommand.status == 0)) { in twa_interrupt()
1865 if (scsi_sg_count(srb)) { in DEF_SCSI_QCMD()
1866 if ((scsi_sg_count(srb) == 1) && in DEF_SCSI_QCMD()
1889 …gl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->srb[re… in DEF_SCSI_QCMD()
1919 tw_dev->sgl_entries = scsi_sg_count(tw_dev->srb[request_id]); in DEF_SCSI_QCMD()
1943 if (scsi_sg_count(cmd) == 1) { in twa_scsiop_execute_scsi_complete()
Dsym53c416.c422 sg, scsi_sg_count(current_command), i) { in sym53c416_intr_handle()
445 sg, scsi_sg_count(current_command), i) { in sym53c416_intr_handle()
DNCR53c406a.c879 scsi_for_each_sg(current_SC, sg, scsi_sg_count(current_SC), i) { in NCR53c406a_intr()
900 scsi_for_each_sg(current_SC, sg, scsi_sg_count(current_SC), i) { in NCR53c406a_intr()
Ddc395x.c1011 cmd->bufflen, scsi_sglist(cmd), scsi_sg_count(cmd), in build_srb()
1023 reqlen, scsi_sglist(cmd), scsi_sg_count(cmd), in build_srb()
2149 diff && scsi_sg_count(srb->cmd)) in data_out_phase0()
2439 if (scsi_sg_count(srb->cmd)) { /* with S/G */ in data_io_transfer()
3274 if (scsi_sg_count(cmd) && dir != PCI_DMA_NONE) { in pci_unmap_srb()
3282 scsi_sg_count(cmd), scsi_bufflen(cmd)); in pci_unmap_srb()
3324 srb, scsi_sg_count(cmd), srb->sg_index, srb->sg_count, in srb_done()
3454 if (dir != PCI_DMA_NONE && scsi_sg_count(cmd)) in srb_done()
3456 scsi_sg_count(cmd), dir); in srb_done()
3470 base = scsi_kmap_atomic_sg(sg, scsi_sg_count(cmd), &offset, &len); in srb_done()
Dultrastor.c690 max = scsi_sg_count(SCpnt); in build_sg_list()
740 if (scsi_sg_count(SCpnt)) { in ultrastor_queuecommand_lck()
D3w-sas.c372 if (scsi_sg_count(srb)) { in twl_scsiop_execute_scsi()
381 …gl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->srb[re… in twl_scsiop_execute_scsi()
397 tw_dev->sgl_entries = scsi_sg_count(srb); in twl_scsiop_execute_scsi()
1262 if ((scsi_sg_count(cmd) <= 1) && (full_command_packet->command.newcommand.status == 0)) { in twl_interrupt()
/linux-2.6.39/include/scsi/
Dscsi_cmnd.h154 static inline unsigned scsi_sg_count(struct scsi_cmnd *cmd) in scsi_sg_count() function
202 return sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_sg_copy_from_buffer()
209 return sg_copy_to_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_sg_copy_to_buffer()
/linux-2.6.39/drivers/staging/hv/
Dstorvsc_drv.c359 scsi_sg_count(scmnd)); in storvsc_commmand_completion()
603 scsi_sg_count(scmnd), scsi_sglist(scmnd), in storvsc_queuecommand_lck()
680 if (scsi_sg_count(scmnd)) { in storvsc_queuecommand_lck()
682 sg_count = scsi_sg_count(scmnd); in storvsc_queuecommand_lck()
685 if (do_bounce_buffer(sgl, scsi_sg_count(scmnd)) != -1) { in storvsc_queuecommand_lck()
690 create_bounce_buffer(sgl, scsi_sg_count(scmnd), in storvsc_queuecommand_lck()
714 scsi_sg_count(scmnd)); in storvsc_queuecommand_lck()
753 scsi_sg_count(scmnd)); in storvsc_queuecommand_lck()
/linux-2.6.39/drivers/scsi/arm/
Dscsi.h90 SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1; in init_SCp()
101 unsigned i, sg_count = scsi_sg_count(SCpnt); in init_SCp()
/linux-2.6.39/include/trace/events/
Dscsi.h227 __entry->data_sglen = scsi_sg_count(cmd);
271 __entry->data_sglen = scsi_sg_count(cmd);
316 __entry->data_sglen = scsi_sg_count(cmd);
/linux-2.6.39/arch/ia64/hp/sim/
Dsimscsi.c133 scsi_for_each_sg(sc, sl, scsi_sg_count(sc), i) { in simscsi_sg_readwrite()
139 scsi_sg_count(sc) - i, sl->length); in simscsi_sg_readwrite()
/linux-2.6.39/drivers/usb/image/
Dmicrotek.c487 scsi_sg_count(context->srb) > 1 ? in mts_command_done()
502 scsi_sg_count(context->srb)); in mts_do_sg()
515 context->fragment + 1 == scsi_sg_count(context->srb) ? in mts_do_sg()
/linux-2.6.39/drivers/message/i2o/
Di2o_scsi.c666 if (scsi_sg_count(SCpnt)) { in i2o_scsi_queuecommand_lck()
668 scsi_sg_count(SCpnt), in i2o_scsi_queuecommand_lck()
/linux-2.6.39/drivers/firewire/
Dsbp2.c1310 if (scsi_sg_count(orb->cmd)) in sbp2_unmap_scatterlist()
1312 scsi_sg_count(orb->cmd), in sbp2_unmap_scatterlist()
1410 n = dma_map_sg(device->card->device, sg, scsi_sg_count(orb->cmd), in sbp2_map_scatterlist()
1459 scsi_sg_count(orb->cmd), orb->cmd->sc_data_direction); in sbp2_map_scatterlist()
1510 if (scsi_sg_count(cmd) && sbp2_map_scatterlist(orb, device, lu) < 0) in sbp2_scsi_queuecommand_lck()
/linux-2.6.39/drivers/infiniband/ulp/iser/
Diser_initiator.c289 if (scsi_sg_count(sc)) { /* using a scatter list */ in iser_send_command()
291 data_buf->size = scsi_sg_count(sc); in iser_send_command()
/linux-2.6.39/drivers/scsi/pcmcia/
Dsym53c500_cs.c430 scsi_for_each_sg(curSC, sg, scsi_sg_count(curSC), i) { in SYM53C500_intr()
449 scsi_for_each_sg(curSC, sg, scsi_sg_count(curSC), i) { in SYM53C500_intr()
/linux-2.6.39/drivers/scsi/qla2xxx/
Dqla_iocb.c368 if (scsi_sg_count(cmd)) { in qla2x00_start_scsi()
370 scsi_sg_count(cmd), cmd->sc_data_direction); in qla2x00_start_scsi()
1250 if (scsi_sg_count(cmd)) { in qla24xx_start_scsi()
1252 scsi_sg_count(cmd), cmd->sc_data_direction); in qla24xx_start_scsi()
1427 if (scsi_sg_count(cmd)) { in qla24xx_dif_start_scsi()
1429 scsi_sg_count(cmd), cmd->sc_data_direction); in qla24xx_dif_start_scsi()
/linux-2.6.39/drivers/staging/rts_pstor/
Drtsx_transport.c54 if (scsi_sg_count(srb) == 0) { in rtsx_stor_access_xfer_buf()
83 while (cnt < buflen && *index < scsi_sg_count(srb)) { in rtsx_stor_access_xfer_buf()
/linux-2.6.39/drivers/usb/storage/
Dshuttle_usbat.c1315 scsi_bufflen(srb), scsi_sg_count(srb), 1); in usbat_hp8200e_handle_read10()
1609 len, scsi_sg_count(srb), 10); in usbat_hp8200e_transport()
1676 scsi_sg_count(srb)); in usbat_hp8200e_transport()

1234