Home
last modified time | relevance | path

Searched refs:sg_size (Results 1 – 9 of 9) sorted by relevance

/linux-4.1.27/lib/
Dscatterlist.c188 unsigned int sg_size; in __sg_free_table() local
199 sg_size = alloc_size - 1; in __sg_free_table()
201 sg_size = alloc_size; in __sg_free_table()
205 table->orig_nents -= sg_size; in __sg_free_table()
266 unsigned int sg_size, alloc_size = left; in __sg_alloc_table() local
270 sg_size = alloc_size - 1; in __sg_alloc_table()
272 sg_size = alloc_size; in __sg_alloc_table()
274 left -= sg_size; in __sg_alloc_table()
296 table->nents = table->orig_nents += sg_size; in __sg_alloc_table()
311 sg_mark_end(&sg[sg_size - 1]); in __sg_alloc_table()
/linux-4.1.27/drivers/staging/i2o/
Di2o_config.c623 int sg_size; in i2o_cfg_passthru32() local
634 sg_size = sg[i].flag_count & 0xffffff; in i2o_cfg_passthru32()
637 if (i2o_dma_alloc(&c->pdev->dev, p, sg_size)) { in i2o_cfg_passthru32()
640 c->name, sg_size, i, sg_count); in i2o_cfg_passthru32()
652 addr_bus, sg_size)) { in i2o_cfg_passthru32()
678 int sg_size; in i2o_cfg_passthru32() local
709 sg_size = sg[j].flag_count & 0xffffff; in i2o_cfg_passthru32()
713 sg_list[j].virt, sg_size)) { in i2o_cfg_passthru32()
866 int sg_size; in i2o_cfg_passthru() local
876 sg_size = sg[i].flag_count & 0xffffff; in i2o_cfg_passthru()
[all …]
/linux-4.1.27/drivers/media/platform/soc_camera/
Dpxa_camera.c182 size_t sg_size; member
281 buf->dmas[i].sg_size, in free_buffer()
342 dma_free_coherent(dev, pxa_dma->sg_size, in pxa_init_dma_channel()
348 pxa_dma->sg_size = (sglen + 1) * sizeof(struct pxa_dma_desc); in pxa_init_dma_channel()
349 pxa_dma->sg_cpu = dma_alloc_coherent(dev, pxa_dma->sg_size, in pxa_init_dma_channel()
528 dma_free_coherent(dev, buf->dmas[1].sg_size, in pxa_videobuf_prepare()
531 dma_free_coherent(dev, buf->dmas[0].sg_size, in pxa_videobuf_prepare()
/linux-4.1.27/drivers/scsi/
Ddpt_i2o.c1769 int sg_size; in adpt_i2o_passthru() local
1776 sg_size = sg[i].flag_count & 0xffffff; in adpt_i2o_passthru()
1778 p = dma_alloc_coherent(&pHba->pDev->dev, sg_size, &addr, GFP_KERNEL); in adpt_i2o_passthru()
1781 pHba->name,sg_size,i,sg_count); in adpt_i2o_passthru()
1789 if (copy_from_user(p,(void __user *)(ulong)sg[i].addr_bus, sg_size)) { in adpt_i2o_passthru()
1828 int sg_size; in adpt_i2o_passthru() local
1855 sg_size = sg[j].flag_count & 0xffffff; in adpt_i2o_passthru()
1857 if (copy_to_user((void __user *)(ulong)sg[j].addr_bus,sg_list[j], sg_size)) { in adpt_i2o_passthru()
Dpmcraid.c3273 int sg_size; in pmcraid_alloc_sglist() local
3277 sg_size = buflen / (PMCRAID_MAX_IOADLS - 1); in pmcraid_alloc_sglist()
3278 order = (sg_size > 0) ? get_order(sg_size) : 0; in pmcraid_alloc_sglist()
3299 sg_size = buflen; in pmcraid_alloc_sglist()
3311 sg_size < bsize_elem ? sg_size : bsize_elem, 0); in pmcraid_alloc_sglist()
3312 sg_size -= bsize_elem; in pmcraid_alloc_sglist()
Dipr.c3739 int sg_size, order, bsize_elem, num_elem, i, j; in ipr_alloc_ucode_buffer() local
3745 sg_size = buf_len / (IPR_MAX_SGLIST - 1); in ipr_alloc_ucode_buffer()
3748 order = get_order(sg_size); in ipr_alloc_ucode_buffer()
/linux-4.1.27/fs/ecryptfs/
Dcrypto.c284 int sg_size) in virt_to_scatterlist() argument
291 sg_init_table(sg, sg_size); in virt_to_scatterlist()
293 while (size > 0 && i < sg_size) { in virt_to_scatterlist()
Decryptfs_kernel.h579 int sg_size);
/linux-4.1.27/drivers/scsi/aic7xxx/
Daic79xx_core.c9366 u_int sg_size; in ahd_loadseq() local
9426 sg_size = sizeof(struct ahd_dma_seg); in ahd_loadseq()
9428 sg_size = sizeof(struct ahd_dma64_seg); in ahd_loadseq()
9429 while (sg_prefetch_cnt < sg_size) in ahd_loadseq()
9436 if ((sg_prefetch_align % sg_size) != 0 in ahd_loadseq()
9444 sg_prefetch_cnt_limit = -(sg_prefetch_cnt - sg_size + 1); in ahd_loadseq()
9449 download_consts[SG_SIZEOF] = sg_size; in ahd_loadseq()