Home
last modified time | relevance | path

Searched refs:new_sg (Results 1 – 7 of 7) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/
H A Di915_scatterlist.c12 struct scatterlist *sg, *new_sg; in i915_sg_trim() local
21 new_sg = new_st.sgl; in i915_sg_trim()
23 sg_set_page(new_sg, sg_page(sg), sg->length, 0); in i915_sg_trim()
24 sg_dma_address(new_sg) = sg_dma_address(sg); in i915_sg_trim()
25 sg_dma_len(new_sg) = sg_dma_len(sg); in i915_sg_trim()
27 new_sg = sg_next(new_sg); in i915_sg_trim()
29 GEM_BUG_ON(new_sg); /* Should walk exactly nents and hit the end */ in i915_sg_trim()
/OK3568_Linux_fs/kernel/drivers/crypto/
H A Domap-crypto.c18 struct scatterlist *new_sg, u16 flags) in omap_crypto_copy_sg_lists() argument
24 new_sg = kmalloc_array(n, sizeof(*sg), GFP_KERNEL); in omap_crypto_copy_sg_lists()
25 if (!new_sg) in omap_crypto_copy_sg_lists()
28 sg_init_table(new_sg, n); in omap_crypto_copy_sg_lists()
31 tmp = new_sg; in omap_crypto_copy_sg_lists()
50 *sg = new_sg; in omap_crypto_copy_sg_lists()
56 struct scatterlist *new_sg, u16 flags) in omap_crypto_copy_sgs() argument
79 sg_init_table(new_sg, 1); in omap_crypto_copy_sgs()
81 sg_set_buf(new_sg, buf, new_len); in omap_crypto_copy_sgs()
83 *sg = new_sg; in omap_crypto_copy_sgs()
[all …]
H A Domap-crypto.h28 struct scatterlist *new_sg, u16 flags,
/OK3568_Linux_fs/kernel/drivers/staging/android/ion/
H A Dion_dma_buf.c20 struct scatterlist *sg, *new_sg; in dup_sg_table() local
32 new_sg = new_table->sgl; in dup_sg_table()
34 memcpy(new_sg, sg, sizeof(*sg)); in dup_sg_table()
35 new_sg->dma_address = 0; in dup_sg_table()
36 new_sg = sg_next(new_sg); in dup_sg_table()
/OK3568_Linux_fs/kernel/lib/
H A Dscatterlist.c373 struct scatterlist *new_sg, *next_sg; in get_next_sg() local
384 new_sg = sg_kmalloc(alloc_size, gfp_mask); in get_next_sg()
385 if (!new_sg) in get_next_sg()
387 sg_init_table(new_sg, alloc_size); in get_next_sg()
389 __sg_chain(next_sg, new_sg); in get_next_sg()
392 table->sgl = new_sg; in get_next_sg()
396 return new_sg; in get_next_sg()
/OK3568_Linux_fs/kernel/drivers/dma-buf/heaps/
H A Dsystem_heap.c71 struct scatterlist *sg, *new_sg; in dup_sg_table() local
83 new_sg = new_table->sgl; in dup_sg_table()
85 sg_set_page(new_sg, sg_page(sg), sg->length, sg->offset); in dup_sg_table()
86 new_sg = sg_next(new_sg); in dup_sg_table()
H A Drk_system_heap.c81 struct scatterlist *sg, *new_sg; in dup_sg_table() local
93 new_sg = new_table->sgl; in dup_sg_table()
95 sg_set_page(new_sg, sg_page(sg), sg->length, sg->offset); in dup_sg_table()
96 new_sg = sg_next(new_sg); in dup_sg_table()