Searched defs:use_sg (Results 1 - 25 of 26) sorted by relevance

12

/drivers/target/tcm_fc/
H A Dtfc_io.c78 int use_sg; local
104 use_sg = !(remaining % 4);
122 fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len);
138 if (use_sg) {
/drivers/staging/keucr/
H A Dinit.c159 int ENE_SendScsiCmd(struct us_data *us, BYTE fDir, void *buf, int use_sg) argument
187 if (use_sg)
H A Dtransport.c268 void *buf, unsigned int length_left, int use_sg, int *residual)
275 if (use_sg) {
278 (struct scatterlist *) buf, use_sg,
267 usb_stor_bulk_transfer_sg(struct us_data *us, unsigned int pipe, void *buf, unsigned int length_left, int use_sg, int *residual) argument
/drivers/staging/rts5139/
H A Dsd_cprm.c376 void *data_buf, unsigned int buf_len, int use_sg)
472 if (use_sg)
514 data_buf, buf_len, use_sg, NULL,
595 void *data_buf, unsigned int buf_len, int use_sg)
689 if (use_sg)
786 data_buf, buf_len, use_sg, NULL,
373 ext_sd_execute_read_data(struct rts51x_chip *chip, unsigned int lun, u8 cmd_idx, u8 cmd12, u8 standby, u8 acmd, u8 rsp_code, u32 arg, u32 data_len, void *data_buf, unsigned int buf_len, int use_sg) argument
592 ext_sd_execute_write_data(struct rts51x_chip *chip, unsigned int lun, u8 cmd_idx, u8 cmd12, u8 standby, u8 acmd, u8 rsp_code, u32 arg, u32 data_len, void *data_buf, unsigned int buf_len, int use_sg) argument
H A Drts51x_chip.c1156 void *buf, unsigned int len, int use_sg,
1162 rts51x_transfer_data(chip, pipe, buf, len, use_sg, act_len,
1155 rts51x_transfer_data_rcc(struct rts51x_chip *chip, unsigned int pipe, void *buf, unsigned int len, int use_sg, unsigned int *act_len, int timeout, u8 stage_flag) argument
H A Drts51x_transport.c811 void *buf, unsigned int len, int use_sg,
819 if (use_sg) {
823 use_sg, len, act_len, timeout);
835 unsigned int len, int use_sg,
843 if (use_sg) {
866 use_sg, len, act_len, timeout);
810 rts51x_transfer_data(struct rts51x_chip *chip, unsigned int pipe, void *buf, unsigned int len, int use_sg, unsigned int *act_len, int timeout) argument
833 rts51x_transfer_data_partial(struct rts51x_chip *chip, unsigned int pipe, void *buf, void **ptr, unsigned int *offset, unsigned int len, int use_sg, unsigned int *act_len, int timeout) argument
H A Dms.c119 u16 sec_cnt, u8 cfg, int mode_2k, int use_sg, void *buf,
175 rts51x_transfer_data_rcc(chip, pipe, buf, buf_len, use_sg, NULL,
118 ms_transfer_data(struct rts51x_chip *chip, u8 trans_mode, u8 tpc, u16 sec_cnt, u8 cfg, int mode_2k, int use_sg, void *buf, int buf_len) argument
/drivers/staging/rts_pstor/
H A Drtsx_transport.c39 * (Note: for scatter-gather transfers (srb->use_sg > 0), srb->request_buffer
720 void *buf, size_t len, int use_sg, unsigned int *index,
730 if (use_sg) {
732 (struct scatterlist *)buf, use_sg,
751 int use_sg, enum dma_data_direction dma_dir, int timeout)
755 RTSX_DEBUGP("use_sg = %d\n", use_sg);
761 if (use_sg) {
764 use_sg, dma_dir, timeout);
719 rtsx_transfer_data_partial(struct rtsx_chip *chip, u8 card, void *buf, size_t len, int use_sg, unsigned int *index, unsigned int *offset, enum dma_data_direction dma_dir, int timeout) argument
750 rtsx_transfer_data(struct rtsx_chip *chip, u8 card, void *buf, size_t len, int use_sg, enum dma_data_direction dma_dir, int timeout) argument
H A Dms.c106 u8 cfg, int mode_2k, int use_sg, void *buf, int buf_len)
151 use_sg, dir, chip->mspro_timeout);
105 ms_transfer_data(struct rtsx_chip *chip, u8 trans_mode, u8 tpc, u16 sec_cnt, u8 cfg, int mode_2k, int use_sg, void *buf, int buf_len) argument
/drivers/usb/storage/
H A Dtransport.c490 void *buf, unsigned int length_left, int use_sg, int *residual)
496 if (use_sg) {
499 (struct scatterlist *) buf, use_sg,
489 usb_stor_bulk_transfer_sg(struct us_data* us, unsigned int pipe, void *buf, unsigned int length_left, int use_sg, int *residual) argument
H A Dsddr09.c405 int use_sg) {
432 buf, bulklen, use_sg, NULL);
453 int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) {
458 buf, use_sg);
476 int count, int controlshift, unsigned char *buf, int use_sg) {
480 buf, use_sg);
494 int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) {
500 buf, use_sg);
519 int count, int controlshift, unsigned char *buf, int use_sg) {
523 buf, use_sg);
403 sddr09_readX(struct us_data *us, int x, unsigned long fromaddress, int nr_of_pages, int bulklen, unsigned char *buf, int use_sg) argument
452 sddr09_read20(struct us_data *us, unsigned long fromaddress, int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) argument
475 sddr09_read21(struct us_data *us, unsigned long fromaddress, int count, int controlshift, unsigned char *buf, int use_sg) argument
493 sddr09_read22(struct us_data *us, unsigned long fromaddress, int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) argument
586 sddr09_writeX(struct us_data *us, unsigned long Waddress, unsigned long Eaddress, int nr_of_pages, int bulklen, unsigned char *buf, int use_sg) argument
630 sddr09_write_inplace(struct us_data *us, unsigned long address, int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) argument
1061 sddr09_read_control(struct us_data *us, unsigned long address, unsigned int blocks, unsigned char *content, int use_sg) argument
[all...]
H A Dshuttle_usbat.c269 int use_sg)
275 return usb_stor_bulk_transfer_sg(us, us->recv_bulk_pipe, buf, len, use_sg, NULL);
284 int use_sg)
290 return usb_stor_bulk_transfer_sg(us, us->send_bulk_pipe, buf, len, use_sg, NULL);
453 int use_sg)
474 result = usbat_bulk_read(us, buf, len, use_sg);
487 int use_sg)
509 result = usbat_bulk_write(us, buf, len, use_sg);
531 int use_sg,
609 pipe, buf, len, use_sg, NUL
266 usbat_bulk_read(struct us_data *us, void* buf, unsigned int len, int use_sg) argument
281 usbat_bulk_write(struct us_data *us, void* buf, unsigned int len, int use_sg) argument
450 usbat_read_block(struct us_data *us, void* buf, unsigned short len, int use_sg) argument
482 usbat_write_block(struct us_data *us, unsigned char access, void* buf, unsigned short len, int minutes, int use_sg) argument
519 usbat_hp8200e_rw_block_test(struct us_data *us, unsigned char access, unsigned char *registers, unsigned char *data_out, unsigned short num_registers, unsigned char data_reg, unsigned char status_reg, unsigned char timeout, unsigned char qualifier, int direction, void *buf, unsigned short len, int use_sg, int minutes) argument
742 usbat_read_blocks(struct us_data *us, void* buffer, int len, int use_sg) argument
784 usbat_write_blocks(struct us_data *us, void* buffer, int len, int use_sg) argument
[all...]
H A Dene_ub6250.c485 static int ene_send_scsi_cmd(struct us_data *us, u8 fDir, void *buf, int use_sg) argument
513 if (use_sg) {
/drivers/scsi/
H A D3w-xxxx.c83 Fix use_sg = 1 calculation bug.
1288 int use_sg; local
1292 use_sg = scsi_dma_map(cmd);
1293 if (use_sg < 0) {
1299 cmd->SCp.have_data_in = use_sg;
1301 return use_sg;
1727 int i, use_sg; local
1782 use_sg = tw_map_scsi_sg_data(tw_dev->tw_pci_dev, tw_dev->srb[request_id]);
1783 if (!use_sg)
1786 scsi_for_each_sg(tw_dev->srb[request_id], sg, use_sg,
[all...]
H A Dst.h53 unsigned short use_sg; /* zero or max number of s/g segments for this adapter */ member in struct:st_buffer
H A D3w-9xxx.c64 2.26.02.003 - Correctly handle single sgl's with use_sg=1.
66 2.26.02.005 - Fix use_sg == 0 mapping on systems with 4GB or higher.
149 static int twa_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_sg, TW_SG_Entry *sglistarg);
1420 int use_sg; local
1423 use_sg = scsi_dma_map(cmd);
1424 if (!use_sg)
1426 else if (use_sg < 0) {
1432 cmd->SCp.have_data_in = use_sg;
1434 return use_sg;
1820 static int twa_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_sg, TW_SG_Entr argument
[all...]
H A D3w-sas.c309 int use_sg; local
312 use_sg = scsi_dma_map(cmd);
313 if (!use_sg)
315 else if (use_sg < 0) {
321 cmd->SCp.have_data_in = use_sg;
323 return use_sg;
327 static int twl_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_sg, TW_SG_Entry_ISO *sglistarg) argument
385 for (i = 0; i < use_sg; i++) {
389 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg));
H A Du14-34f.c570 unsigned char use_sg; /* (if sg is set) 8 bytes per list */ member in struct:mscp
1140 cpp->use_sg = scsi_sg_count(SCpnt);
1143 cpp->use_sg * sizeof(struct sg_list),
H A Dosst.c356 int use_sg, int timeout, int retries)
374 if (use_sg) {
378 pages = kzalloc(use_sg * sizeof(struct page *), GFP_KERNEL);
382 for_each_sg(sgl, sg, use_sg, i)
429 unsigned short use_sg;
470 use_sg = (bytes > STp->buffer->sg[0].length) ? STp->buffer->use_sg : 0;
471 if (use_sg) {
473 if (STp->buffer->sg_segs < use_sg)
474 use_sg
353 osst_execute(struct osst_request *SRpnt, const unsigned char *cmd, int cmd_len, int data_direction, void *buffer, unsigned bufflen, int use_sg, int timeout, int retries) argument
428 unsigned short use_sg; local
[all...]
H A Dhpsa.c1993 int use_sg, i, sg_index, chained; local
1998 use_sg = scsi_dma_map(cmd);
1999 if (use_sg < 0)
2000 return use_sg;
2002 if (!use_sg)
2008 scsi_for_each_sg(cmd, sg, use_sg, i) {
2010 use_sg > h->max_cmd_sg_entries) {
2024 if (use_sg + chained > h->maxSG)
2025 h->maxSG = use_sg + chained;
2029 cp->Header.SGTotal = (u16) (use_sg
[all...]
H A Dosst.h526 unsigned short use_sg; /* zero or number of s/g segments for this adapter */ member in struct:osst_buffer
H A Daic7xxx_old.c10122 int use_sg; local
10171 * changes depending on whether or not use_sg is zero; a
10172 * non-zero use_sg indicates the number of elements in the
10184 use_sg = scsi_dma_map(cmd);
10185 BUG_ON(use_sg < 0);
10187 if (use_sg) {
10208 scsi_for_each_sg(cmd, sg, use_sg, i) {
H A Dncr53c8xx.c540 int use_sg; local
542 use_sg = scsi_dma_map(cmd);
543 if (!use_sg)
547 cmd->__data_mapping = use_sg;
549 return use_sg;
7650 int use_sg = scsi_sg_count(cmd); local
7654 use_sg = map_scsi_sg_data(np, cmd);
7655 if (use_sg > 0) {
7659 if (use_sg > MAX_SCATTER) {
7664 data = &cp->phys.data[MAX_SCATTER - use_sg];
[all...]
/drivers/usb/core/
H A Dmessage.c363 int use_sg; local
376 use_sg = true;
379 use_sg = false;
411 if (use_sg) {
/drivers/scsi/sym53c8xx_2/
H A Dsym_glue.c261 int use_sg; local
265 use_sg = scsi_dma_map(cmd);
266 if (use_sg > 0) {
271 if (use_sg > SYM_CONF_MAX_SG) {
276 data = &cp->phys.data[SYM_CONF_MAX_SG - use_sg];
278 scsi_for_each_sg(cmd, sg, use_sg, segment) {

Completed in 394 milliseconds

12