/drivers/usb/storage/ |
D | sddr09.c | 403 int use_sg) { in sddr09_readX() argument 430 buf, bulklen, use_sg, NULL); in sddr09_readX() 451 int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) { in sddr09_read20() argument 456 buf, use_sg); in sddr09_read20() 474 int count, int controlshift, unsigned char *buf, int use_sg) { in sddr09_read21() argument 478 buf, use_sg); in sddr09_read21() 492 int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) { in sddr09_read22() argument 497 buf, use_sg); in sddr09_read22() 516 int count, int controlshift, unsigned char *buf, int use_sg) { 520 buf, use_sg); [all …]
|
D | shuttle_usbat.c | 273 int use_sg) in usbat_bulk_read() argument 279 return usb_stor_bulk_transfer_sg(us, us->recv_bulk_pipe, buf, len, use_sg, NULL); in usbat_bulk_read() 288 int use_sg) in usbat_bulk_write() argument 294 return usb_stor_bulk_transfer_sg(us, us->send_bulk_pipe, buf, len, use_sg, NULL); in usbat_bulk_write() 458 int use_sg) in usbat_read_block() argument 479 result = usbat_bulk_read(us, buf, len, use_sg); in usbat_read_block() 492 int use_sg) in usbat_write_block() argument 514 result = usbat_bulk_write(us, buf, len, use_sg); in usbat_write_block() 536 int use_sg, in usbat_hp8200e_rw_block_test() argument 614 pipe, buf, len, use_sg, NULL); in usbat_hp8200e_rw_block_test() [all …]
|
D | transport.h | 99 void *buf, unsigned int length, int use_sg, int *residual);
|
D | transport.c | 500 void *buf, unsigned int length_left, int use_sg, int *residual) in usb_stor_bulk_transfer_sg() argument 506 if (use_sg) { in usb_stor_bulk_transfer_sg() 509 (struct scatterlist *) buf, use_sg, in usb_stor_bulk_transfer_sg()
|
D | ene_ub6250.c | 507 static int ene_send_scsi_cmd(struct us_data *us, u8 fDir, void *buf, int use_sg) in ene_send_scsi_cmd() argument 535 if (use_sg) { in ene_send_scsi_cmd()
|
/drivers/staging/rts5208/ |
D | rtsx_transport.h | 58 int use_sg, enum dma_data_direction dma_dir, int timeout); 62 int use_sg, unsigned int *index, unsigned int *offset,
|
D | rtsx_transport.c | 726 void *buf, size_t len, int use_sg, in rtsx_transfer_data_partial() argument 736 if (use_sg) { in rtsx_transfer_data_partial() 739 err = rtsx_transfer_sglist_adma_partial(chip, card, sg, use_sg, in rtsx_transfer_data_partial() 758 int use_sg, enum dma_data_direction dma_dir, int timeout) in rtsx_transfer_data() argument 762 dev_dbg(rtsx_dev(chip), "use_sg = %d\n", use_sg); in rtsx_transfer_data() 768 if (use_sg) { in rtsx_transfer_data() 771 use_sg, dma_dir, timeout); in rtsx_transfer_data()
|
D | ms.c | 113 int use_sg, void *buf, int buf_len) in ms_transfer_data() argument 160 use_sg, dir, chip->mspro_timeout); in ms_transfer_data()
|
/drivers/target/tcm_fc/ |
D | tfc_io.c | 71 int use_sg; in ft_queue_data_in() local 101 use_sg = !(remaining % 4); in ft_queue_data_in() 126 fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len); in ft_queue_data_in() 142 if (use_sg) { in ft_queue_data_in()
|
/drivers/usb/musb/ |
D | musb_host.h | 67 bool use_sg; /* to track urb using sglist */ member
|
D | musb_host.c | 1496 qh->use_sg = true; in musb_host_tx() 1498 if (qh->use_sg) { in musb_host_tx() 1517 if (qh->use_sg) { in musb_host_tx() 1519 qh->use_sg = false; in musb_host_tx() 2006 qh->use_sg = true; in musb_host_rx() 2011 if (qh->use_sg) { in musb_host_rx() 2041 if (qh->use_sg) in musb_host_rx() 2042 qh->use_sg = false; in musb_host_rx()
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_glue.c | 261 int use_sg; in sym_scatter() local 265 use_sg = scsi_dma_map(cmd); in sym_scatter() 266 if (use_sg > 0) { in sym_scatter() 271 if (use_sg > SYM_CONF_MAX_SG) { in sym_scatter() 276 data = &cp->phys.data[SYM_CONF_MAX_SG - use_sg]; in sym_scatter() 278 scsi_for_each_sg(cmd, sg, use_sg, segment) { in sym_scatter()
|
/drivers/scsi/ |
D | st.h | 53 unsigned short use_sg; /* zero or max number of s/g segments for this adapter */ member
|
D | hpsa.c | 4491 int use_sg, i, sg_limit, chained, last_sg; in hpsa_scatter_gather() local 4496 use_sg = scsi_dma_map(cmd); in hpsa_scatter_gather() 4497 if (use_sg < 0) in hpsa_scatter_gather() 4498 return use_sg; in hpsa_scatter_gather() 4500 if (!use_sg) in hpsa_scatter_gather() 4511 chained = use_sg > h->max_cmd_sg_entries; in hpsa_scatter_gather() 4512 sg_limit = chained ? h->max_cmd_sg_entries - 1 : use_sg; in hpsa_scatter_gather() 4527 sg_limit = use_sg - sg_limit; in hpsa_scatter_gather() 4537 if (use_sg + chained > h->maxSG) in hpsa_scatter_gather() 4538 h->maxSG = use_sg + chained; in hpsa_scatter_gather() [all …]
|
D | advansys.c | 7518 int use_sg; in asc_build_req() local 7563 use_sg = scsi_dma_map(scp); in asc_build_req() 7564 if (use_sg < 0) { in asc_build_req() 7567 } else if (use_sg > 0) { in asc_build_req() 7572 if (use_sg > scp->device->host->sg_tablesize) { in asc_build_req() 7574 "sg_tablesize %d\n", use_sg, in asc_build_req() 7582 use_sg * sizeof(struct asc_sg_list), GFP_ATOMIC); in asc_build_req() 7594 asc_sg_head->entry_cnt = asc_scsi_q->q1.sg_queue_cnt = use_sg; in asc_build_req() 7601 scsi_for_each_sg(scp, slp, use_sg, sgcnt) { in asc_build_req() 7633 ADV_SCSI_REQ_Q *scsiqp, struct scsi_cmnd *scp, int use_sg) in adv_get_sglist() argument [all …]
|
D | ncr53c8xx.c | 540 int use_sg; in __map_scsi_sg_data() local 542 use_sg = scsi_dma_map(cmd); in __map_scsi_sg_data() 543 if (!use_sg) in __map_scsi_sg_data() 547 cmd->__data_mapping = use_sg; in __map_scsi_sg_data() 549 return use_sg; in __map_scsi_sg_data() 7650 int use_sg = scsi_sg_count(cmd); in ncr_scatter() local 7654 use_sg = map_scsi_sg_data(np, cmd); in ncr_scatter() 7655 if (use_sg > 0) { in ncr_scatter() 7659 if (use_sg > MAX_SCATTER) { in ncr_scatter() 7664 data = &cp->phys.data[MAX_SCATTER - use_sg]; in ncr_scatter() [all …]
|
D | osst.c | 357 int use_sg, int timeout, int retries) in osst_execute() argument 375 if (use_sg) { in osst_execute() 379 pages = kzalloc(use_sg * sizeof(struct page *), GFP_KERNEL); in osst_execute() 383 for_each_sg(sgl, sg, use_sg, i) in osst_execute() 430 unsigned short use_sg; in osst_do_scsi() local 471 use_sg = (bytes > STp->buffer->sg[0].length) ? STp->buffer->use_sg : 0; in osst_do_scsi() 472 if (use_sg) { in osst_do_scsi() 474 if (STp->buffer->sg_segs < use_sg) in osst_do_scsi() 475 use_sg = STp->buffer->sg_segs; in osst_do_scsi() 485 use_sg, timeout, retries)) in osst_do_scsi() [all …]
|
D | osst.h | 526 unsigned short use_sg; /* zero or number of s/g segments for this adapter */ member
|
D | 3w-xxxx.c | 1692 int i, use_sg; in tw_scsiop_read_write() local 1747 use_sg = scsi_dma_map(srb); in tw_scsiop_read_write() 1748 if (use_sg <= 0) in tw_scsiop_read_write() 1751 scsi_for_each_sg(tw_dev->srb[request_id], sg, use_sg, i) { in tw_scsiop_read_write()
|
D | 3w-9xxx.c | 149 …execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_sg, TW_SG_Entry *sgli… 1801 …execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_sg, TW_SG_Entry *sgli… in DEF_SCSI_QCMD() 1875 for (i = 0; i < use_sg; i++) { in DEF_SCSI_QCMD() 1883 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in DEF_SCSI_QCMD()
|
D | 3w-sas.c | 294 …execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_sg, TW_SG_Entry_ISO *… in twl_scsiop_execute_scsi() argument 352 for (i = 0; i < use_sg; i++) { in twl_scsiop_execute_scsi() 356 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in twl_scsiop_execute_scsi()
|
D | st.c | 1556 i = sgl_map_user_pages(STbp, STbp->use_sg, (unsigned long)buf, in setup_buffering() 3886 tb->use_sg = max_sg; in new_tape_buffer() 3915 max_segs = STbuffer->use_sg; in enlarge_buffer()
|
/drivers/usb/core/ |
D | message.c | 371 int use_sg; in usb_sg_init() local 384 use_sg = true; in usb_sg_init() 387 use_sg = false; in usb_sg_init() 419 if (use_sg) { in usb_sg_init()
|
/drivers/scsi/arcmsr/ |
D | arcmsr_hba.c | 2315 unsigned short use_sg; in arcmsr_iop_message_xfer() local 2325 use_sg = scsi_sg_count(cmd); in arcmsr_iop_message_xfer() 2328 if (use_sg > 1) { in arcmsr_iop_message_xfer() 2558 if (use_sg) { in arcmsr_iop_message_xfer()
|