Home
last modified time | relevance | path

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

12

/drivers/usb/storage/
Dsddr09.c403 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 …]
Dshuttle_usbat.c269 int use_sg) in usbat_bulk_read() argument
275 return usb_stor_bulk_transfer_sg(us, us->recv_bulk_pipe, buf, len, use_sg, NULL); in usbat_bulk_read()
284 int use_sg) in usbat_bulk_write() argument
290 return usb_stor_bulk_transfer_sg(us, us->send_bulk_pipe, buf, len, use_sg, NULL); in usbat_bulk_write()
453 int use_sg) in usbat_read_block() argument
474 result = usbat_bulk_read(us, buf, len, use_sg); in usbat_read_block()
487 int use_sg) in usbat_write_block() argument
509 result = usbat_bulk_write(us, buf, len, use_sg); in usbat_write_block()
531 int use_sg, in usbat_hp8200e_rw_block_test() argument
609 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()
/drivers/staging/rts5139/
Drts51x_transport.h52 void *buf, unsigned int len, int use_sg,
56 unsigned int len, int use_sg,
Dsd_cprm.h40 unsigned int buf_len, int use_sg);
44 void *data_buf, unsigned int buf_len, int use_sg);
Drts51x_transport.c552 void *buf, unsigned int len, int use_sg, in rts51x_transfer_data() argument
560 if (use_sg) { in rts51x_transfer_data()
564 use_sg, len, act_len, timeout); in rts51x_transfer_data()
576 unsigned int len, int use_sg, in rts51x_transfer_data_partial() argument
584 if (use_sg) { in rts51x_transfer_data_partial()
Dsd_cprm.c343 void *data_buf, unsigned int buf_len, int use_sg) in ext_rts51x_sd_execute_read_data() argument
425 if (use_sg) in ext_rts51x_sd_execute_read_data()
467 data_buf, buf_len, use_sg, NULL, in ext_rts51x_sd_execute_read_data()
548 void *data_buf, unsigned int buf_len, int use_sg) in ext_rts51x_sd_execute_write_data() argument
613 if (use_sg) in ext_rts51x_sd_execute_write_data()
706 data_buf, buf_len, use_sg, NULL, in ext_rts51x_sd_execute_write_data()
Dms.h257 u16 sec_cnt, u8 cfg, int mode_2k, int use_sg, void *buf,
/drivers/target/tcm_fc/
Dtfc_io.c77 int use_sg; in ft_queue_data_in() local
103 use_sg = !(remaining % 4); in ft_queue_data_in()
128 fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len); in ft_queue_data_in()
144 if (use_sg) { in ft_queue_data_in()
/drivers/scsi/
D3w-sas.c309 int use_sg; in twl_map_scsi_sg_data() local
312 use_sg = scsi_dma_map(cmd); in twl_map_scsi_sg_data()
313 if (!use_sg) in twl_map_scsi_sg_data()
315 else if (use_sg < 0) { in twl_map_scsi_sg_data()
321 cmd->SCp.have_data_in = use_sg; in twl_map_scsi_sg_data()
323 return use_sg; in twl_map_scsi_sg_data()
327 …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
385 for (i = 0; i < use_sg; i++) { in twl_scsiop_execute_scsi()
389 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in twl_scsiop_execute_scsi()
D3w-xxxx.c1288 int use_sg; in tw_map_scsi_sg_data() local
1292 use_sg = scsi_dma_map(cmd); in tw_map_scsi_sg_data()
1293 if (use_sg < 0) { in tw_map_scsi_sg_data()
1299 cmd->SCp.have_data_in = use_sg; in tw_map_scsi_sg_data()
1301 return use_sg; in tw_map_scsi_sg_data()
1727 int i, use_sg; in tw_scsiop_read_write() local
1782 use_sg = tw_map_scsi_sg_data(tw_dev->tw_pci_dev, tw_dev->srb[request_id]); in tw_scsiop_read_write()
1783 if (!use_sg) in tw_scsiop_read_write()
1786 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…
1420 int use_sg; in twa_map_scsi_sg_data() local
1423 use_sg = scsi_dma_map(cmd); in twa_map_scsi_sg_data()
1424 if (!use_sg) in twa_map_scsi_sg_data()
1426 else if (use_sg < 0) { in twa_map_scsi_sg_data()
1432 cmd->SCp.have_data_in = use_sg; in twa_map_scsi_sg_data()
1434 return use_sg; in twa_map_scsi_sg_data()
1820 …execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_sg, TW_SG_Entry *sgli… in DEF_SCSI_QCMD()
1895 for (i = 0; i < use_sg; i++) { in DEF_SCSI_QCMD()
1903 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in DEF_SCSI_QCMD()
Dst.h53 unsigned short use_sg; /* zero or max number of s/g segments for this adapter */ member
Dhpsa.c2096 int use_sg, i, sg_index, chained; in hpsa_scatter_gather() local
2101 use_sg = scsi_dma_map(cmd); in hpsa_scatter_gather()
2102 if (use_sg < 0) in hpsa_scatter_gather()
2103 return use_sg; in hpsa_scatter_gather()
2105 if (!use_sg) in hpsa_scatter_gather()
2111 scsi_for_each_sg(cmd, sg, use_sg, i) { in hpsa_scatter_gather()
2113 use_sg > h->max_cmd_sg_entries) { in hpsa_scatter_gather()
2127 if (use_sg + chained > h->maxSG) in hpsa_scatter_gather()
2128 h->maxSG = use_sg + chained; in hpsa_scatter_gather()
2132 cp->Header.SGTotal = (u16) (use_sg + 1); in hpsa_scatter_gather()
[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.c355 int use_sg, int timeout, int retries) in osst_execute() argument
373 if (use_sg) { in osst_execute()
377 pages = kzalloc(use_sg * sizeof(struct page *), GFP_KERNEL); in osst_execute()
381 for_each_sg(sgl, sg, use_sg, i) in osst_execute()
428 unsigned short use_sg; in osst_do_scsi() local
469 use_sg = (bytes > STp->buffer->sg[0].length) ? STp->buffer->use_sg : 0; in osst_do_scsi()
470 if (use_sg) { in osst_do_scsi()
472 if (STp->buffer->sg_segs < use_sg) in osst_do_scsi()
473 use_sg = STp->buffer->sg_segs; in osst_do_scsi()
483 use_sg, timeout, retries)) in osst_do_scsi()
[all …]
Dosst.h526 unsigned short use_sg; /* zero or number of s/g segments for this adapter */ member
/drivers/usb/musb/
Dmusb_host.h77 bool use_sg; /* to track urb using sglist */ member
Dmusb_host.c1465 qh->use_sg = true; in musb_host_tx()
1467 if (qh->use_sg) { in musb_host_tx()
1486 if (qh->use_sg) { in musb_host_tx()
1488 qh->use_sg = false; in musb_host_tx()
1879 qh->use_sg = true; in musb_host_rx()
1884 if (qh->use_sg) { in musb_host_rx()
1914 if (qh->use_sg) in musb_host_rx()
1915 qh->use_sg = false; in musb_host_rx()
/drivers/staging/keucr/
Dtransport.h42 void *buf, unsigned int length, int use_sg, int *residual);
Dinit.c158 int ENE_SendScsiCmd(struct us_data *us, BYTE fDir, void *buf, int use_sg) in ENE_SendScsiCmd() argument
186 if (use_sg) in ENE_SendScsiCmd()
Dtransport.c268 void *buf, unsigned int length_left, int use_sg, int *residual) in usb_stor_bulk_transfer_sg() argument
275 if (use_sg) { in usb_stor_bulk_transfer_sg()
278 (struct scatterlist *) buf, use_sg, in usb_stor_bulk_transfer_sg()
/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()
/drivers/usb/core/
Dmessage.c361 int use_sg; in usb_sg_init() local
374 use_sg = true; in usb_sg_init()
377 use_sg = false; in usb_sg_init()
409 if (use_sg) { in usb_sg_init()

12