/drivers/target/tcm_fc/ |
H A D | tfc_io.c | 78 int use_sg; local 102 use_sg = !(remaining % 4); 120 fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len); 136 if (use_sg) {
|
/drivers/staging/keucr/ |
H A D | init.c | 159 int ENE_SendScsiCmd(struct us_data *us, BYTE fDir, void *buf, int use_sg) argument 187 if (use_sg)
|
H A D | transport.c | 268 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 D | sd_cprm.c | 376 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 D | rts51x_chip.c | 1156 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 D | rts51x_transport.c | 811 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 D | ms.c | 119 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 D | rtsx_transport.c | 39 * (Note: for scatter-gather transfers (srb->use_sg > 0), srb->request_buffer 719 void *buf, size_t len, int use_sg, unsigned int *index, 729 if (use_sg) { 731 (struct scatterlist *)buf, use_sg, 750 int use_sg, enum dma_data_direction dma_dir, int timeout) 754 RTSX_DEBUGP("use_sg = %d\n", use_sg); 760 if (use_sg) { 763 use_sg, dma_dir, timeout); 718 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 749 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 D | ms.c | 106 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 D | transport.c | 490 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 D | sddr09.c | 405 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 D | shuttle_usbat.c | 269 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 D | ene_ub6250.c | 485 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 D | 3w-xxxx.c | 83 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 D | st.h | 53 unsigned short use_sg; /* zero or max number of s/g segments for this adapter */ member in struct:st_buffer
|
H A D | 3w-9xxx.c | 64 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 D | 3w-sas.c | 309 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 D | u14-34f.c | 571 unsigned char use_sg; /* (if sg is set) 8 bytes per list */ member in struct:mscp 1141 cpp->use_sg = scsi_sg_count(SCpnt); 1144 cpp->use_sg * sizeof(struct sg_list),
|
H A D | osst.c | 357 int use_sg, int timeout, int retries) 375 if (use_sg) { 379 pages = kzalloc(use_sg * sizeof(struct page *), GFP_KERNEL); 383 for_each_sg(sgl, sg, use_sg, i) 430 unsigned short use_sg; 471 use_sg = (bytes > STp->buffer->sg[0].length) ? STp->buffer->use_sg : 0; 472 if (use_sg) { 474 if (STp->buffer->sg_segs < use_sg) 475 use_sg 354 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 429 unsigned short use_sg; local [all...] |
H A D | hpsa.c | 2011 int use_sg, i, sg_index, chained; local 2016 use_sg = scsi_dma_map(cmd); 2017 if (use_sg < 0) 2018 return use_sg; 2020 if (!use_sg) 2026 scsi_for_each_sg(cmd, sg, use_sg, i) { 2028 use_sg > h->max_cmd_sg_entries) { 2042 if (use_sg + chained > h->maxSG) 2043 h->maxSG = use_sg + chained; 2047 cp->Header.SGTotal = (u16) (use_sg [all...] |
H A D | osst.h | 526 unsigned short use_sg; /* zero or number of s/g segments for this adapter */ member in struct:osst_buffer
|
H A D | aic7xxx_old.c | 10122 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 D | ncr53c8xx.c | 541 int use_sg; local 543 use_sg = scsi_dma_map(cmd); 544 if (!use_sg) 548 cmd->__data_mapping = use_sg; 550 return use_sg; 7651 int use_sg = scsi_sg_count(cmd); local 7655 use_sg = map_scsi_sg_data(np, cmd); 7656 if (use_sg > 0) { 7660 if (use_sg > MAX_SCATTER) { 7665 data = &cp->phys.data[MAX_SCATTER - use_sg]; [all...] |
/drivers/usb/core/ |
H A D | message.c | 363 int use_sg; local 376 use_sg = true; 379 use_sg = false; 411 if (use_sg) {
|
/drivers/scsi/sym53c8xx_2/ |
H A D | sym_glue.c | 261 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) {
|