Home
last modified time | relevance | path

Searched refs:use_sg (Results 1 – 30 of 30) sorted by relevance

/linux-4.4.14/drivers/usb/storage/
Dsddr09.c402 int use_sg) { in sddr09_readX() argument
429 buf, bulklen, use_sg, NULL); in sddr09_readX()
450 int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) { in sddr09_read20() argument
455 buf, use_sg); in sddr09_read20()
473 int count, int controlshift, unsigned char *buf, int use_sg) { in sddr09_read21() argument
477 buf, use_sg); in sddr09_read21()
491 int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) { in sddr09_read22() argument
496 buf, use_sg); in sddr09_read22()
515 int count, int controlshift, unsigned char *buf, int use_sg) {
519 buf, use_sg);
[all …]
Dshuttle_usbat.c272 int use_sg) in usbat_bulk_read() argument
278 return usb_stor_bulk_transfer_sg(us, us->recv_bulk_pipe, buf, len, use_sg, NULL); in usbat_bulk_read()
287 int use_sg) in usbat_bulk_write() argument
293 return usb_stor_bulk_transfer_sg(us, us->send_bulk_pipe, buf, len, use_sg, NULL); in usbat_bulk_write()
456 int use_sg) in usbat_read_block() argument
477 result = usbat_bulk_read(us, buf, len, use_sg); in usbat_read_block()
490 int use_sg) in usbat_write_block() argument
512 result = usbat_bulk_write(us, buf, len, use_sg); in usbat_write_block()
534 int use_sg, in usbat_hp8200e_rw_block_test() argument
612 pipe, buf, len, use_sg, NULL); in usbat_hp8200e_rw_block_test()
[all …]
Dtransport.h98 void *buf, unsigned int length, int use_sg, int *residual);
Dtransport.c488 void *buf, unsigned int length_left, int use_sg, int *residual) in usb_stor_bulk_transfer_sg() argument
494 if (use_sg) { in usb_stor_bulk_transfer_sg()
497 (struct scatterlist *) buf, use_sg, in usb_stor_bulk_transfer_sg()
Dene_ub6250.c500 static int ene_send_scsi_cmd(struct us_data *us, u8 fDir, void *buf, int use_sg) in ene_send_scsi_cmd() argument
528 if (use_sg) { in ene_send_scsi_cmd()
/linux-4.4.14/drivers/staging/rts5208/
Drtsx_transport.h59 int use_sg, enum dma_data_direction dma_dir, int timeout);
63 int use_sg, unsigned int *index, unsigned int *offset,
Drtsx_transport.c718 void *buf, size_t len, int use_sg, unsigned int *index, in rtsx_transfer_data_partial() argument
728 if (use_sg) in rtsx_transfer_data_partial()
730 (struct scatterlist *)buf, use_sg, in rtsx_transfer_data_partial()
747 int use_sg, enum dma_data_direction dma_dir, int timeout) in rtsx_transfer_data() argument
751 dev_dbg(rtsx_dev(chip), "use_sg = %d\n", use_sg); in rtsx_transfer_data()
757 if (use_sg) { in rtsx_transfer_data()
760 use_sg, dma_dir, timeout); in rtsx_transfer_data()
Dms.c113 int use_sg, void *buf, int buf_len) in ms_transfer_data() argument
160 use_sg, dir, chip->mspro_timeout); in ms_transfer_data()
/linux-4.4.14/drivers/target/tcm_fc/
Dtfc_io.c71 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()
/linux-4.4.14/drivers/usb/musb/
Dmusb_host.h67 bool use_sg; /* to track urb using sglist */ member
Dmusb_host.c1515 qh->use_sg = true; in musb_host_tx()
1517 if (qh->use_sg) { in musb_host_tx()
1536 if (qh->use_sg) { in musb_host_tx()
1538 qh->use_sg = false; in musb_host_tx()
2026 qh->use_sg = true; in musb_host_rx()
2031 if (qh->use_sg) { in musb_host_rx()
2061 if (qh->use_sg) in musb_host_rx()
2062 qh->use_sg = false; in musb_host_rx()
/linux-4.4.14/drivers/scsi/
Dst.h53 unsigned short use_sg; /* zero or max number of s/g segments for this adapter */ member
Dhpsa.c4183 int use_sg, i, sg_limit, chained, last_sg; in hpsa_scatter_gather() local
4188 use_sg = scsi_dma_map(cmd); in hpsa_scatter_gather()
4189 if (use_sg < 0) in hpsa_scatter_gather()
4190 return use_sg; in hpsa_scatter_gather()
4192 if (!use_sg) in hpsa_scatter_gather()
4203 chained = use_sg > h->max_cmd_sg_entries; in hpsa_scatter_gather()
4204 sg_limit = chained ? h->max_cmd_sg_entries - 1 : use_sg; in hpsa_scatter_gather()
4219 sg_limit = use_sg - sg_limit; in hpsa_scatter_gather()
4229 if (use_sg + chained > h->maxSG) in hpsa_scatter_gather()
4230 h->maxSG = use_sg + chained; in hpsa_scatter_gather()
[all …]
Dosst.h526 unsigned short use_sg; /* zero or number of s/g segments for this adapter */ member
Dadvansys.c7519 int use_sg; in asc_build_req() local
7564 use_sg = scsi_dma_map(scp); in asc_build_req()
7565 if (use_sg < 0) { in asc_build_req()
7568 } else if (use_sg > 0) { in asc_build_req()
7573 if (use_sg > scp->device->host->sg_tablesize) { in asc_build_req()
7575 "sg_tablesize %d\n", use_sg, in asc_build_req()
7583 use_sg * sizeof(struct asc_sg_list), GFP_ATOMIC); in asc_build_req()
7595 asc_sg_head->entry_cnt = asc_scsi_q->q1.sg_queue_cnt = use_sg; in asc_build_req()
7602 scsi_for_each_sg(scp, slp, use_sg, sgcnt) { in asc_build_req()
7634 ADV_SCSI_REQ_Q *scsiqp, struct scsi_cmnd *scp, int use_sg) in adv_get_sglist() argument
[all …]
Dncr53c8xx.c540 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 …]
Dosst.c357 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 …]
D3w-xxxx.c1689 int i, use_sg; in tw_scsiop_read_write() local
1744 use_sg = scsi_dma_map(srb); in tw_scsiop_read_write()
1745 if (use_sg <= 0) in tw_scsiop_read_write()
1748 scsi_for_each_sg(tw_dev->srb[request_id], sg, use_sg, i) { in tw_scsiop_read_write()
D3w-9xxx.c149 …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()
D3w-sas.c294 …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()
Du14-34f.c570 unsigned char use_sg; /* (if sg is set) 8 bytes per list */ member
1140 cpp->use_sg = scsi_sg_count(SCpnt); in map_dma()
1143 cpp->use_sg * sizeof(struct sg_list), in map_dma()
Dst.c1556 i = sgl_map_user_pages(STbp, STbp->use_sg, (unsigned long)buf, in setup_buffering()
3783 tb->use_sg = max_sg; in new_tape_buffer()
3812 max_segs = STbuffer->use_sg; in enlarge_buffer()
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
Dsym_glue.c261 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()
/linux-4.4.14/drivers/usb/core/
Dmessage.c365 int use_sg; in usb_sg_init() local
378 use_sg = true; in usb_sg_init()
381 use_sg = false; in usb_sg_init()
413 if (use_sg) { in usb_sg_init()
/linux-4.4.14/include/linux/mfd/
Drtsx_usb.h95 void *buf, unsigned int len, int use_sg,
/linux-4.4.14/drivers/scsi/arcmsr/
Darcmsr_hba.c2224 unsigned short use_sg; in arcmsr_iop_message_xfer() local
2234 use_sg = scsi_sg_count(cmd); in arcmsr_iop_message_xfer()
2237 if (use_sg > 1) { in arcmsr_iop_message_xfer()
2459 if (use_sg) { in arcmsr_iop_message_xfer()
/linux-4.4.14/Documentation/scsi/
Dscsi_mid_low_api.txt1265 use_sg - ==0 -> no scatter gather list, hence transfer data
1268 request_buffer with use_sg elements
1270 depending on the setting of use_sg. Scatter gather
DChangeLog.megaraid72 > use_sg is 4
DChangeLog.1992-1997698 * scsi.c (scsi_done): Restore cmd_len, use_sg here.
1800 * scsi.c: Minor changes here and there with datatypes. Save use_sg
DChangeLog.sym53c8xx405 happen, we just discard the data if use_sg is not zero.