Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/usb/storage/
Dsddr09.c390 int use_sg) { in sddr09_readX() argument
417 buf, bulklen, use_sg, NULL); in sddr09_readX()
438 int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) { in sddr09_read20() argument
443 buf, use_sg); in sddr09_read20()
461 int count, int controlshift, unsigned char *buf, int use_sg) { in sddr09_read21() argument
465 buf, use_sg); in sddr09_read21()
479 int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) { in sddr09_read22() argument
484 buf, use_sg); in sddr09_read22()
503 int count, int controlshift, unsigned char *buf, int use_sg) {
507 buf, use_sg);
[all …]
Dshuttle_usbat.c260 int use_sg) in usbat_bulk_read() argument
266 return usb_stor_bulk_transfer_sg(us, us->recv_bulk_pipe, buf, len, use_sg, NULL); in usbat_bulk_read()
275 int use_sg) in usbat_bulk_write() argument
281 return usb_stor_bulk_transfer_sg(us, us->send_bulk_pipe, buf, len, use_sg, NULL); in usbat_bulk_write()
445 int use_sg) in usbat_read_block() argument
466 result = usbat_bulk_read(us, buf, len, use_sg); in usbat_read_block()
479 int use_sg) in usbat_write_block() argument
501 result = usbat_bulk_write(us, buf, len, use_sg); in usbat_write_block()
523 int use_sg, in usbat_hp8200e_rw_block_test() argument
601 pipe, buf, len, use_sg, NULL); in usbat_hp8200e_rw_block_test()
[all …]
Dtransport.h83 void *buf, unsigned int length, int use_sg, int *residual);
Dtransport.c484 void *buf, unsigned int length_left, int use_sg, int *residual) in usb_stor_bulk_transfer_sg() argument
490 if (use_sg) { in usb_stor_bulk_transfer_sg()
493 (struct scatterlist *) buf, use_sg, in usb_stor_bulk_transfer_sg()
/Linux-v4.19/drivers/staging/rts5208/
Drtsx_transport.h61 int use_sg, enum dma_data_direction dma_dir,
65 size_t len, int use_sg, unsigned int *index,
Drtsx_transport.c725 void *buf, size_t len, int use_sg, in rtsx_transfer_data_partial() argument
735 if (use_sg) { in rtsx_transfer_data_partial()
738 err = rtsx_transfer_sglist_adma_partial(chip, card, sg, use_sg, in rtsx_transfer_data_partial()
757 int use_sg, enum dma_data_direction dma_dir, int timeout) in rtsx_transfer_data() argument
761 dev_dbg(rtsx_dev(chip), "use_sg = %d\n", use_sg); in rtsx_transfer_data()
767 if (use_sg) { in rtsx_transfer_data()
769 use_sg, dma_dir, timeout); in rtsx_transfer_data()
/Linux-v4.19/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-v4.19/drivers/usb/musb/
Dmusb_host.h42 bool use_sg; /* to track urb using sglist */ member
Dmusb_host.c1466 qh->use_sg = true; in musb_host_tx()
1468 if (qh->use_sg) { in musb_host_tx()
1487 if (qh->use_sg) { in musb_host_tx()
1489 qh->use_sg = false; in musb_host_tx()
1971 qh->use_sg = true; in musb_host_rx()
1976 if (qh->use_sg) { in musb_host_rx()
2006 if (qh->use_sg) in musb_host_rx()
2007 qh->use_sg = false; in musb_host_rx()
/Linux-v4.19/drivers/scsi/
Dst.h54 unsigned short use_sg; /* zero or max number of s/g segments for this adapter */ member
Dhpsa.c4547 int use_sg, i, sg_limit, chained, last_sg; in hpsa_scatter_gather() local
4552 use_sg = scsi_dma_map(cmd); in hpsa_scatter_gather()
4553 if (use_sg < 0) in hpsa_scatter_gather()
4554 return use_sg; in hpsa_scatter_gather()
4556 if (!use_sg) in hpsa_scatter_gather()
4567 chained = use_sg > h->max_cmd_sg_entries; in hpsa_scatter_gather()
4568 sg_limit = chained ? h->max_cmd_sg_entries - 1 : use_sg; in hpsa_scatter_gather()
4583 sg_limit = use_sg - sg_limit; in hpsa_scatter_gather()
4593 if (use_sg + chained > h->maxSG) in hpsa_scatter_gather()
4594 h->maxSG = use_sg + chained; in hpsa_scatter_gather()
[all …]
Dosst.h527 unsigned short use_sg; /* zero or number of s/g segments for this adapter */ member
Dadvansys.c7518 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 …]
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.c360 int use_sg, int timeout, int retries) in osst_execute() argument
380 if (use_sg) { in osst_execute()
384 pages = kcalloc(use_sg, sizeof(struct page *), GFP_KERNEL); in osst_execute()
388 for_each_sg(sgl, sg, use_sg, i) in osst_execute()
433 unsigned short use_sg; in osst_do_scsi() local
474 use_sg = (bytes > STp->buffer->sg[0].length) ? STp->buffer->use_sg : 0; in osst_do_scsi()
475 if (use_sg) { in osst_do_scsi()
477 if (STp->buffer->sg_segs < use_sg) in osst_do_scsi()
478 use_sg = STp->buffer->sg_segs; in osst_do_scsi()
488 use_sg, timeout, retries)) in osst_do_scsi()
[all …]
D3w-xxxx.c1694 int i, use_sg; in tw_scsiop_read_write() local
1749 use_sg = scsi_dma_map(srb); in tw_scsiop_read_write()
1750 if (use_sg <= 0) in tw_scsiop_read_write()
1753 scsi_for_each_sg(tw_dev->srb[request_id], sg, use_sg, i) { in tw_scsiop_read_write()
D3w-9xxx.c146 …execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_sg, TW_SG_Entry *sgli…
1799 …execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_sg, TW_SG_Entry *sgli… in DEF_SCSI_QCMD()
1873 for (i = 0; i < use_sg; i++) { in DEF_SCSI_QCMD()
1881 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in DEF_SCSI_QCMD()
D3w-sas.c290 …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
348 for (i = 0; i < use_sg; i++) { in twl_scsiop_execute_scsi()
352 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in twl_scsiop_execute_scsi()
/Linux-v4.19/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-v4.19/drivers/mmc/host/
Dcavium-thunderx.c105 host->use_sg = true; in thunder_mmc_probe()
Dcavium.h70 bool use_sg; member
Dcavium.c402 if (host->use_sg && data->sg_len > 1) in finish_dma()
619 if (host->use_sg && data->sg_len > 1) in prepare_dma()
1043 if (host->use_sg) in cvm_mmc_of_slot_probe()
Dcavium-octeon.c181 host->use_sg = true; in octeon_mmc_probe()
/Linux-v4.19/drivers/usb/core/
Dmessage.c373 int use_sg; in usb_sg_init() local
386 use_sg = true; in usb_sg_init()
389 use_sg = false; in usb_sg_init()
421 if (use_sg) { in usb_sg_init()
/Linux-v4.19/include/linux/
Drtsx_usb.h95 void *buf, unsigned int len, int use_sg,

12