Home
last modified time | relevance | path

Searched refs:sg_page (Results 1 – 25 of 164) sorted by relevance

1234567

/kernel/linux/linux-5.10/drivers/crypto/
Domap-crypto.c41 sg_set_page(tmp, sg_page(*sg), len, (*sg)->offset); in omap_crypto_copy_sg_lists()
105 if (page_zonenum(sg_page(sg)) != ZONE_DMA) in omap_crypto_check_sg()
181 srcb = kmap_atomic(sg_page(src)) + srco + src->offset; in omap_crypto_copy_data()
182 dstb = kmap_atomic(sg_page(dst)) + dsto + dst->offset; in omap_crypto_copy_data()
186 if (!PageSlab(sg_page(dst))) in omap_crypto_copy_data()
187 flush_kernel_dcache_page(sg_page(dst)); in omap_crypto_copy_data()
/kernel/linux/linux-5.10/samples/kfifo/
Ddma-example.c77 i, sg_page(&sg[i]), sg[i].offset, sg[i].length); in example_init()
106 i, sg_page(&sg[i]), sg[i].offset, sg[i].length); in example_init()
/kernel/linux/linux-5.10/net/rds/
Dmessage.c156 __free_page(sg_page(&rm->data.op_sg[i])); in rds_message_purge()
158 put_page(sg_page(&rm->data.op_sg[i])); in rds_message_purge()
401 put_page(sg_page(&rm->data.op_sg[i])); in rds_message_zcopy_from_user()
440 if (!sg_page(sg)) { in rds_message_copy_from_user()
453 nbytes = copy_page_from_iter(sg_page(sg), sg->offset + sg_off, in rds_message_copy_from_user()
490 ret = copy_page_to_iter(sg_page(sg), sg->offset + vec_off, in rds_message_inc_copy_to_user()
Dpage.c104 get_page(sg_page(scat)); in rds_page_remainder_alloc()
147 ret ? NULL : sg_page(scat), ret ? 0 : scat->offset, in rds_page_remainder_alloc()
Dtcp_send.c119 sg_page(&rm->data.op_sg[sg]), in rds_tcp_xmit()
123 rdsdebug("tcp sendpage %p:%u:%u ret %d\n", (void *)sg_page(&rm->data.op_sg[sg]), in rds_tcp_xmit()
/kernel/linux/linux-5.10/include/linux/
Dscatterlist.h124 static inline struct page *sg_page(struct scatterlist *sg) in sg_page() function
243 return page_to_phys(sg_page(sg)) + sg->offset; in sg_phys()
258 return page_address(sg_page(sg)) + sg->offset; in sg_virt()
404 return nth_page(sg_page(piter->sg), piter->sg_pgoffset); in sg_page_iter_page()
Ddevcoredump.h32 page = sg_page(iter); in _devcd_free_sgtable()
/kernel/linux/linux-5.10/drivers/target/tcm_fc/
Dtfc_io.c85 page = sg_page(sg); in ft_queue_data_in()
103 page = sg_page(sg); in ft_queue_data_in()
280 page = sg_page(sg); in ft_recv_write_data()
288 page = sg_page(sg); in ft_recv_write_data()
/kernel/linux/linux-5.10/tools/virtio/linux/
Dscatterlist.h66 static inline struct page *sg_page(struct scatterlist *sg) in sg_page() function
157 return page_to_phys(sg_page(sg)) + sg->offset; in sg_phys()
/kernel/linux/linux-5.10/include/crypto/
Dscatterwalk.h56 return sg_page(walk->sg) + (walk->offset >> PAGE_SHIFT); in scatterwalk_page()
83 page = sg_page(walk->sg) + ((walk->offset - 1) >> PAGE_SHIFT); in scatterwalk_pagedone()
/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_sbc.c386 addr = kmap_atomic(sg_page(sg)); in xdreadwrite_callback()
503 addr = (unsigned char *)kmap_atomic(sg_page(sg)); in compare_and_write_callback()
1232 paddr = kmap_atomic(sg_page(psg)) + psg->offset; in sbc_dif_generate()
1233 daddr = kmap_atomic(sg_page(dsg)) + dsg->offset; in sbc_dif_generate()
1248 daddr = kmap_atomic(sg_page(dsg)) + dsg->offset; in sbc_dif_generate()
1261 daddr = kmap_atomic(sg_page(dsg)) + dsg->offset; in sbc_dif_generate()
1346 paddr = kmap_atomic(sg_page(psg)) + psg->offset; in sbc_dif_copy_prot()
1350 addr = kmap_atomic(sg_page(sg)) + sg->offset + offset; in sbc_dif_copy_prot()
1389 paddr = kmap_atomic(sg_page(psg)) + psg->offset; in sbc_dif_verify()
1390 daddr = kmap_atomic(sg_page(dsg)) + dsg->offset; in sbc_dif_verify()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_phys.c97 void *vaddr = sg_page(pages->sgl); in i915_gem_object_put_pages_phys()
141 void *vaddr = sg_page(obj->mm.pages->sgl) + args->offset; in phys_pwrite()
172 void *vaddr = sg_page(obj->mm.pages->sgl) + args->offset; in phys_pread()
Di915_gem_internal.c25 if (sg_page(sg)) in internal_free_pages()
26 __free_pages(sg_page(sg), get_order(sg->length)); in internal_free_pages()
/kernel/linux/linux-5.10/drivers/crypto/qce/
Ddma.c57 if (!sg_page(sg)) in qce_sgtable_add()
67 sg_set_page(sg, sg_page(new_sgl), new_len, new_sgl->offset); in qce_sgtable_add()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_scatterlist.c23 sg_set_page(new_sg, sg_page(sg), sg->length, 0); in i915_sg_trim()
Di915_scatterlist.h36 s.pfn = page_to_pfn(sg_page(s.sgp)); in __sgt_iter()
/kernel/linux/linux-5.10/crypto/
Daf_alg.c610 struct page *page = sg_page(sg + i); in af_alg_pull_tsgl()
683 if (!sg_page(sg)) in af_alg_free_areq_sgls()
685 put_page(sg_page(sg)); in af_alg_free_areq_sgls()
898 err = memcpy_from_msg(page_address(sg_page(sg)) + in af_alg_sendmsg()
939 if (!sg_page(sg + i)) { in af_alg_sendmsg()
944 err = memcpy_from_msg(page_address(sg_page(sg + i)), in af_alg_sendmsg()
947 __free_page(sg_page(sg + i)); in af_alg_sendmsg()
Dscatterwalk.c88 sg_set_page(dst, sg_page(src), src->length - len, src->offset + len); in scatterwalk_ffwd()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_memfree.c73 __free_pages(sg_page(&chunk->mem[i]), in mthca_free_icm_pages()
83 lowmem_page_address(sg_page(&chunk->mem[i])), in mthca_free_icm_coherent()
309 page = sg_page(&chunk->mem[i]); in mthca_table_find()
493 unpin_user_page(sg_page(&db_tab->page[i].mem)); in mthca_map_user_db()
559 unpin_user_page(sg_page(&db_tab->page[i].mem)); in mthca_cleanup_user_db_tab()
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c352 in_page = sg_page(sg); in encryptor()
356 sg_set_page(&desc->outfrags[desc->fragno], sg_page(sg), sg->length, in encryptor()
382 sg_set_page(&desc->outfrags[0], sg_page(sg), fraglen, in encryptor()
444 sg_set_page(&desc->frags[desc->fragno], sg_page(sg), sg->length, in decryptor()
467 sg_set_page(&desc->frags[0], sg_page(sg), fraglen, in decryptor()
/kernel/linux/linux-5.10/kernel/dma/
Dvirt.c45 BUG_ON(!sg_page(sg)); in dma_virt_map_sg()
/kernel/linux/linux-5.10/drivers/gpu/drm/armada/
Darmada_gem.c432 if (sg_page(sg)) in armada_gem_prime_map_dma_buf()
433 put_page(sg_page(sg)); in armada_gem_prime_map_dma_buf()
455 put_page(sg_page(sg)); in armada_gem_prime_unmap_dma_buf()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Dscatterlist.c52 struct page *page = sg_page(sg); in expect_pfn_sg()
252 GEM_BUG_ON(page_to_pfn(sg_page(sg)) != pfn); in alloc_table()
/kernel/linux/linux-5.10/drivers/staging/android/ion/
Dion_system_heap.c166 free_buffer_page(sys_heap, buffer, sg_page(sg)); in ion_system_heap_free()
333 struct page *page = sg_page(table->sgl); in ion_system_contig_heap_free()
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-crypto-main.c312 if (!sg_page(sg)) in ccp_crypto_sg_table_add()
318 sg_set_page(sg, sg_page(sg_add), sg_add->length, in ccp_crypto_sg_table_add()

1234567