/drivers/mmc/card/ |
H A D | queue.c | 116 static struct scatterlist *mmc_alloc_sg(int sg_len, int *err) argument 120 sg = kmalloc(sizeof(struct scatterlist)*sg_len, GFP_KERNEL); 125 sg_init_table(sg, sg_len); 385 unsigned int sg_len; local 395 sg_len = blk_rq_map_sg(mq->queue, mqrq->req, mqrq->bounce_sg); 397 mqrq->bounce_sg_len = sg_len; 400 for_each_sg(mqrq->bounce_sg, sg, sg_len, i)
|
/drivers/ata/ |
H A D | acard-ahci.c | 243 u32 sg_len = sg_dma_len(sg); local 252 acard_sg[si].size = cpu_to_le32(sg_len);
|
H A D | sata_sil.c | 322 u32 sg_len = sg_dma_len(sg); local 325 prd->flags_len = cpu_to_le32(sg_len); 326 VPRINTK("PRD[%u] = (0x%X, 0x%X)\n", si, addr, sg_len);
|
H A D | libahci.c | 1446 u32 sg_len = sg_dma_len(sg); local 1450 ahci_sg[si].flags_size = cpu_to_le32(sg_len - 1);
|
H A D | libata-sff.c | 2651 u32 sg_len, len; local 2658 sg_len = sg_dma_len(sg); 2660 while (sg_len) { 2662 len = sg_len; 2663 if ((offset + sg_len) > 0x10000) 2671 sg_len -= len; 2702 u32 sg_len, len, blen; local 2709 sg_len = sg_dma_len(sg); 2711 while (sg_len) { 2713 len = sg_len; [all...] |
/drivers/gpu/drm/i915/ |
H A D | i915_gem_gtt.c | 173 unsigned sg_len, 190 while (i < sg_len) { 203 if (i == sg_len) 171 i915_ppgtt_insert_sg_entries(struct i915_hw_ppgtt *ppgtt, struct scatterlist *sg_list, unsigned sg_len, unsigned first_entry, uint32_t pte_flags) argument
|
/drivers/staging/media/solo6x10/ |
H A D | p2m.c | 159 u32 sg_len = sg_dma_len(sg); local 162 if (sg_off >= sg_len) { 163 sg_off -= sg_len; 167 sg_len -= sg_off; 168 len = min(sg_len, size);
|
/drivers/dma/ |
H A D | ste_dma40_ll.c | 258 int sg_len, 276 for_each_sg(sg, current_sg, sg_len, i) { 283 if (i == sg_len - 1) 410 int sg_len, 425 for_each_sg(sg, current_sg, sg_len, i) { 257 d40_phy_sg_to_lli(struct scatterlist *sg, int sg_len, dma_addr_t target, struct d40_phy_lli *lli_sg, dma_addr_t lli_phys, u32 reg_cfg, struct stedma40_half_channel_info *info, struct stedma40_half_channel_info *otherinfo, unsigned long flags) argument 409 d40_log_sg_to_lli(struct scatterlist *sg, int sg_len, dma_addr_t dev_addr, struct d40_log_lli *lli_sg, u32 lcsp13, u32 data_width1, u32 data_width2) argument
|
H A D | timb_dma.c | 544 struct scatterlist *sgl, unsigned int sg_len, 555 if (!sgl || !sg_len) { 575 for_each_sg(sgl, sg, sg_len, i) { 583 i == (sg_len - 1)); 543 td_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, enum dma_transfer_direction direction, unsigned long flags, void *context) argument
|
H A D | at_hdmac.c | 637 * @sg_len: number of entries in @scatterlist 644 unsigned int sg_len, enum dma_transfer_direction direction, 662 sg_len, local 666 if (unlikely(!atslave || !sg_len)) { 683 for_each_sg(sgl, sg, sg_len, i) { 718 for_each_sg(sgl, sg, sg_len, i) { 643 atc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, enum dma_transfer_direction direction, unsigned long flags, void *context) argument
|
H A D | dw_dmac.c | 706 unsigned int sg_len, enum dma_transfer_direction direction, 724 if (unlikely(!dws || !sg_len)) 741 for_each_sg(sgl, sg, sg_len, i) { 808 for_each_sg(sgl, sg, sg_len, i) { 705 dwc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, enum dma_transfer_direction direction, unsigned long flags, void *context) argument
|
H A D | fsldma.c | 759 * @sg_len: number of entries in @scatterlist 769 struct dma_chan *dchan, struct scatterlist *sgl, unsigned int sg_len, 768 fsl_dma_prep_slave_sg( struct dma_chan *dchan, struct scatterlist *sgl, unsigned int sg_len, enum dma_transfer_direction direction, unsigned long flags, void *context) argument
|
H A D | intel_mid_dma.c | 714 * @sg_len: length of sg txn 723 unsigned int sg_len, enum dma_transfer_direction direction, 734 if (!sg_len) { 746 if (sg_len == 1) { 760 sg_len, direction, flags); 774 desc->lli_length = sg_len; 779 (sizeof(struct intel_mid_dma_lli)*sg_len), 793 midc_lli_fill_sg(midc, desc, sgl, sg_len, flags); 721 intel_mid_dma_prep_slave_sg( struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, enum dma_transfer_direction direction, unsigned long flags, void *context) argument
|
H A D | mxs-dma.c | 360 unsigned int sg_len, enum dma_transfer_direction direction, 375 if (sg_len + (append ? idx : 0) > NUM_CCW) { 378 sg_len, NUM_CCW); 404 for (j = 0; j < sg_len;) 414 ccw->bits |= BF_CCW(sg_len, PIO_NUM); 417 for_each_sg(sgl, sg, sg_len, i) { 438 if (i + 1 == sg_len) { 358 mxs_dma_prep_slave_sg( struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, enum dma_transfer_direction direction, unsigned long flags, void *context) argument
|
H A D | shdma.c | 570 struct scatterlist *sgl, unsigned int sg_len, dma_addr_t *addr, 580 if (!sg_len) 583 for_each_sg(sgl, sg, sg_len, i) 601 for_each_sg(sgl, sg, sg_len, i) { 671 struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, 686 if (!param || !sg_len) { 688 __func__, param, sg_len, param ? param->slave_id : -1); 698 return sh_dmae_prep_sg(sh_chan, sgl, sg_len, &slave_addr, 569 sh_dmae_prep_sg(struct sh_dmae_chan *sh_chan, struct scatterlist *sgl, unsigned int sg_len, dma_addr_t *addr, enum dma_transfer_direction direction, unsigned long flags) argument 670 sh_dmae_prep_slave_sg( struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, enum dma_transfer_direction direction, unsigned long flags, void *context) argument
|
H A D | txx9dmac.c | 835 unsigned int sg_len, enum dma_transfer_direction direction, 853 if (unlikely(!sg_len)) 858 for_each_sg(sgl, sg, sg_len, i) { 834 txx9dmac_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, enum dma_transfer_direction direction, unsigned long flags, void *context) argument
|
/drivers/mmc/host/ |
H A D | tmio_mmc.h | 61 unsigned int sg_len; member in struct:tmio_mmc_host
|
H A D | au1xmmc.c | 349 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, host->dma.dir); 392 int sg_len, max, count; local 407 sg_len = data->sg[host->pio.index].length - host->pio.offset; 410 max = (sg_len > host->pio.len) ? host->pio.len : sg_len; 429 if (count == sg_len) { 447 int max, count, sg_len = 0; local 464 sg_len = sg_dma_len(&data->sg[host->pio.index]) - host->pio.offset; 467 if (sg_len < max) 468 max = sg_len; 650 int sg_len = sg->length; local [all...] |
H A D | dw_mmc.c | 315 data->sg_len, 354 unsigned int sg_len) 359 for (i = 0; i < sg_len; i++, desc++) { 385 static void dw_mci_idmac_start_dma(struct dw_mci *host, unsigned int sg_len) argument 389 dw_mci_translate_sglist(host, host->data, sg_len); 446 unsigned int i, sg_len; local 462 for_each_sg(data->sg, sg, data->sg_len, i) { 467 sg_len = dma_map_sg(&host->dev, 469 data->sg_len, 471 if (sg_len 353 dw_mci_translate_sglist(struct dw_mci *host, struct mmc_data *data, unsigned int sg_len) argument 519 int sg_len; local [all...] |
H A D | tifm_sd.c | 106 int sg_len; member in struct:tifm_sd 175 if (host->sg_pos == host->sg_len) 182 if (host->sg_pos == host->sg_len) { 238 if (host->sg_pos == host->sg_len) 271 if (host->sg_pos == host->sg_len) 279 if (host->sg_pos == host->sg_len) 287 if (host->sg_pos == host->sg_len) 666 host->sg_len = r_data->sg_len; 680 host->sg_len [all...] |
/drivers/crypto/amcc/ |
H A D | crypto4xx_core.c | 547 u32 sg_len; local 556 sg_len = sg->length; 577 sg_len -= len; 578 if (sg_len) { 581 &sg_len, &this_sd, &offset, &nbytes))
|
/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_io.c | 17 static int bnx2fc_split_bd(struct bnx2fc_cmd *io_req, u64 addr, int sg_len, 1581 static int bnx2fc_split_bd(struct bnx2fc_cmd *io_req, u64 addr, int sg_len, argument 1588 while (sg_len) { 1589 if (sg_len >= BNX2FC_BD_SPLIT_SZ) 1592 frag_size = sg_len; 1600 sg_len -= frag_size; 1617 unsigned int sg_len; local 1624 sg_len = sg_dma_len(sg); 1626 if (sg_len > BNX2FC_MAX_BD_LEN) { 1627 sg_frags = bnx2fc_split_bd(io_req, addr, sg_len, [all...] |
/drivers/scsi/bnx2i/ |
H A D | bnx2i_iscsi.c | 149 int sg_len; local 158 sg_len = sg_dma_len(sg); 162 bd[bd_count].buffer_length = sg_len; 167 byte_count += sg_len;
|
/drivers/scsi/ |
H A D | gdth_ioctl.h | 38 u32 sg_len; /* length */ member in struct:__anon4337 44 u32 sg_len; /* length */ member in struct:__anon4338
|
/drivers/scsi/qla2xxx/ |
H A D | qla_iocb.c | 902 uint32_t cumulative_partial, sg_len; local 912 sg_len = sg_dma_len(sg); 916 if ((cumulative_partial + (sg_len - sgx->bytes_consumed)) >= blk_sz) { 922 sgx->dma_len = sg_len - sgx->bytes_consumed; 929 if (sg_len == sgx->bytes_consumed) {
|