Home
last modified time | relevance | path

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

/linux-4.4.14/lib/
Dscatterlist.c216 unsigned int sg_size; in __sg_free_table() local
227 sg_size = alloc_size - 1; in __sg_free_table()
229 sg_size = alloc_size; in __sg_free_table()
233 table->orig_nents -= sg_size; in __sg_free_table()
294 unsigned int sg_size, alloc_size = left; in __sg_alloc_table() local
298 sg_size = alloc_size - 1; in __sg_alloc_table()
300 sg_size = alloc_size; in __sg_alloc_table()
302 left -= sg_size; in __sg_alloc_table()
324 table->nents = table->orig_nents += sg_size; in __sg_alloc_table()
339 sg_mark_end(&sg[sg_size - 1]); in __sg_alloc_table()
/linux-4.4.14/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.4.14/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.c3274 int sg_size; in pmcraid_alloc_sglist() local
3278 sg_size = buflen / (PMCRAID_MAX_IOADLS - 1); in pmcraid_alloc_sglist()
3279 order = (sg_size > 0) ? get_order(sg_size) : 0; in pmcraid_alloc_sglist()
3300 sg_size = buflen; in pmcraid_alloc_sglist()
3312 sg_size < bsize_elem ? sg_size : bsize_elem, 0); in pmcraid_alloc_sglist()
3313 sg_size -= bsize_elem; in pmcraid_alloc_sglist()
Dipr.c3740 int sg_size, order, bsize_elem, num_elem, i, j; in ipr_alloc_ucode_buffer() local
3746 sg_size = buf_len / (IPR_MAX_SGLIST - 1); in ipr_alloc_ucode_buffer()
3749 order = get_order(sg_size); in ipr_alloc_ucode_buffer()
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c160 int sg_size; member
825 g->sg_size = in setup_glist()
828 g->sg = kmalloc(g->sg_size + 8, GFP_KERNEL); in setup_glist()
1406 finfo->dptr, g->sg_size, in free_netsgbuf()
1454 finfo->dptr, g->sg_size, in free_netsgbuf_with_resp()
2833 memset(g->sg, 0, g->sg_size); in liquidio_xmit()
2863 g->sg, g->sg_size, in liquidio_xmit()
/linux-4.4.14/fs/ecryptfs/
Dcrypto.c283 int sg_size) in virt_to_scatterlist() argument
290 sg_init_table(sg, sg_size); in virt_to_scatterlist()
292 while (size > 0 && i < sg_size) { in virt_to_scatterlist()
Decryptfs_kernel.h578 int sg_size);
/linux-4.4.14/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()