/linux-2.6.39/drivers/scsi/ |
D | scsi_lib_dma.c | 25 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()
|
D | libsrp.c | 201 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()
|
D | eata.c | 1629 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()
|
D | fdomain.c | 1432 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()
|
D | fd_mcs.c | 1085 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()
|
D | mac53c94.c | 81 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()
|
D | 3w-9xxx.c | 1349 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()
|
D | sym53c416.c | 422 sg, scsi_sg_count(current_command), i) { in sym53c416_intr_handle() 445 sg, scsi_sg_count(current_command), i) { in sym53c416_intr_handle()
|
D | NCR53c406a.c | 879 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()
|
D | dc395x.c | 1011 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()
|
D | ultrastor.c | 690 max = scsi_sg_count(SCpnt); in build_sg_list() 740 if (scsi_sg_count(SCpnt)) { in ultrastor_queuecommand_lck()
|
D | 3w-sas.c | 372 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/ |
D | scsi_cmnd.h | 154 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/ |
D | storvsc_drv.c | 359 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/ |
D | scsi.h | 90 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/ |
D | scsi.h | 227 __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/ |
D | simscsi.c | 133 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/ |
D | microtek.c | 487 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/ |
D | i2o_scsi.c | 666 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/ |
D | sbp2.c | 1310 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/ |
D | iser_initiator.c | 289 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/ |
D | sym53c500_cs.c | 430 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/ |
D | qla_iocb.c | 368 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/ |
D | rtsx_transport.c | 54 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/ |
D | shuttle_usbat.c | 1315 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()
|