/Linux-v6.6/drivers/crypto/ |
D | omap-crypto.c | 41 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 flush_dcache_page(sg_page(dst)); in omap_crypto_copy_data()
|
/Linux-v6.6/net/rds/ |
D | message.c | 156 __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() 400 put_page(sg_page(&rm->data.op_sg[i])); in rds_message_zcopy_from_user() 437 if (!sg_page(sg)) { in rds_message_copy_from_user() 450 nbytes = copy_page_from_iter(sg_page(sg), sg->offset + sg_off, in rds_message_copy_from_user() 487 ret = copy_page_to_iter(sg_page(sg), sg->offset + vec_off, in rds_message_inc_copy_to_user()
|
D | page.c | 104 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()
|
D | tcp_send.c | 120 bvec_set_page(&bvec, sg_page(&rm->data.op_sg[sg]), in rds_tcp_xmit() 126 rdsdebug("tcp sendpage %p:%u:%u ret %d\n", (void *)sg_page(&rm->data.op_sg[sg]), in rds_tcp_xmit()
|
/Linux-v6.6/samples/kfifo/ |
D | dma-example.c | 77 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()
|
/Linux-v6.6/drivers/target/tcm_fc/ |
D | tfc_io.c | 84 page = sg_page(sg); in ft_queue_data_in() 102 page = sg_page(sg); in ft_queue_data_in() 279 page = sg_page(sg); in ft_recv_write_data() 287 page = sg_page(sg); in ft_recv_write_data()
|
/Linux-v6.6/include/crypto/ |
D | scatterwalk.h | 51 return sg_page(walk->sg) + (walk->offset >> PAGE_SHIFT); in scatterwalk_page() 78 page = sg_page(walk->sg) + ((walk->offset - 1) >> PAGE_SHIFT); in scatterwalk_pagedone()
|
/Linux-v6.6/tools/virtio/linux/ |
D | scatterlist.h | 67 static inline struct page *sg_page(struct scatterlist *sg) in sg_page() function 158 return page_to_phys(sg_page(sg)) + sg->offset; in sg_phys()
|
/Linux-v6.6/drivers/target/ |
D | target_core_sbc.c | 409 unsigned char *addr = kmap_atomic(sg_page(sg)); in compare_and_write_do_cmp() 1173 paddr = kmap_atomic(sg_page(psg)) + psg->offset; in sbc_dif_generate() 1174 daddr = kmap_atomic(sg_page(dsg)) + dsg->offset; in sbc_dif_generate() 1189 daddr = kmap_atomic(sg_page(dsg)) + dsg->offset; in sbc_dif_generate() 1202 daddr = kmap_atomic(sg_page(dsg)) + dsg->offset; in sbc_dif_generate() 1287 paddr = kmap_atomic(sg_page(psg)) + psg->offset; in sbc_dif_copy_prot() 1291 addr = kmap_atomic(sg_page(sg)) + sg->offset + offset; in sbc_dif_copy_prot() 1330 paddr = kmap_atomic(sg_page(psg)) + psg->offset; in sbc_dif_verify() 1331 daddr = kmap_atomic(sg_page(dsg)) + dsg->offset; in sbc_dif_verify() 1347 daddr = kmap_atomic(sg_page(dsg)) + dsg->offset; in sbc_dif_verify() [all …]
|
/Linux-v6.6/drivers/gpu/drm/i915/gem/ |
D | i915_gem_phys.c | 104 void *vaddr = sg_page(pages->sgl); in i915_gem_object_put_pages_phys() 147 void *vaddr = sg_page(obj->mm.pages->sgl) + args->offset; in i915_gem_object_pwrite_phys() 178 void *vaddr = sg_page(obj->mm.pages->sgl) + args->offset; in i915_gem_object_pread_phys()
|
D | i915_gem_internal.c | 25 if (sg_page(sg)) in internal_free_pages() 26 __free_pages(sg_page(sg), get_order(sg->length)); in internal_free_pages()
|
D | i915_gem_pages.c | 301 if (n_pages == 1 && !PageHighMem(sg_page(obj->mm.pages->sgl))) in i915_gem_object_map_page() 302 return page_address(sg_page(obj->mm.pages->sgl)); in i915_gem_object_map_page() 640 return nth_page(sg_page(sg), offset); in __i915_gem_object_get_page()
|
/Linux-v6.6/include/linux/ |
D | scatterlist.h | 168 static inline struct page *sg_page(struct scatterlist *sg) in sg_page() function 389 return page_to_phys(sg_page(sg)) + sg->offset; in sg_phys() 404 return page_address(sg_page(sg)) + sg->offset; in sg_virt() 582 return nth_page(sg_page(piter->sg), piter->sg_pgoffset); in sg_page_iter_page()
|
D | devcoredump.h | 32 page = sg_page(iter); in _devcd_free_sgtable()
|
/Linux-v6.6/drivers/crypto/qce/ |
D | dma.c | 57 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()
|
/Linux-v6.6/crypto/ |
D | af_alg.c | 550 unpin_user_page(sg_page(&sgl->sgt.sgl[i])); in af_alg_free_sg() 717 struct page *page = sg_page(sg + i); in af_alg_pull_tsgl() 790 if (!sg_page(sg)) in af_alg_free_areq_sgls() 792 put_page(sg_page(sg)); in af_alg_free_areq_sgls() 1005 err = memcpy_from_msg(page_address(sg_page(sg)) + in af_alg_sendmsg() 1055 get_page(sg_page(&sg[sgl->cur])); in af_alg_sendmsg() 1077 page_address(sg_page(sg + i)), in af_alg_sendmsg() 1080 __free_page(sg_page(sg + i)); in af_alg_sendmsg()
|
D | scatterwalk.c | 88 sg_set_page(dst, sg_page(src), src->length - len, src->offset + len); in scatterwalk_ffwd()
|
/Linux-v6.6/drivers/dma-buf/heaps/ |
D | system_heap.c | 75 sg_set_page(new_sg, sg_page(sg), sg->length, sg->offset); in dup_sg_table() 293 struct page *page = sg_page(sg); in system_heap_dma_buf_release() 407 struct page *p = sg_page(sg); in system_heap_allocate()
|
/Linux-v6.6/drivers/infiniband/hw/mthca/ |
D | mthca_memfree.c | 73 __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() 495 unpin_user_page(sg_page(&db_tab->page[i].mem)); in mthca_map_user_db() 562 unpin_user_page(sg_page(&db_tab->page[i].mem)); in mthca_cleanup_user_db_tab()
|
/Linux-v6.6/drivers/gpu/drm/armada/ |
D | armada_gem.c | 443 if (sg_page(sg)) in armada_gem_prime_map_dma_buf() 444 put_page(sg_page(sg)); in armada_gem_prime_map_dma_buf() 466 put_page(sg_page(sg)); in armada_gem_prime_unmap_dma_buf()
|
/Linux-v6.6/drivers/gpu/drm/i915/selftests/ |
D | scatterlist.c | 52 struct page *page = sg_page(sg); in expect_pfn_sg() 256 GEM_BUG_ON(page_to_pfn(sg_page(sg)) != pfn); in alloc_table()
|
/Linux-v6.6/drivers/crypto/ccp/ |
D | ccp-crypto-main.c | 305 if (!sg_page(sg)) in ccp_crypto_sg_table_add() 311 sg_set_page(sg, sg_page(sg_add), sg_add->length, in ccp_crypto_sg_table_add()
|
/Linux-v6.6/net/sunrpc/auth_gss/ |
D | gss_krb5_crypto.c | 402 in_page = sg_page(sg); in encryptor() 406 sg_set_page(&desc->outfrags[desc->fragno], sg_page(sg), sg->length, in encryptor() 432 sg_set_page(&desc->outfrags[0], sg_page(sg), fraglen, in encryptor() 494 sg_set_page(&desc->frags[desc->fragno], sg_page(sg), sg->length, in decryptor() 517 sg_set_page(&desc->frags[0], sg_page(sg), fraglen, in decryptor()
|
/Linux-v6.6/drivers/scsi/ |
D | libiscsi_tcp.c | 131 if (!recv && sendpage_ok(sg_page(sg))) in iscsi_tcp_segment_map() 136 segment->sg_mapped = kmap_atomic(sg_page(sg)); in iscsi_tcp_segment_map() 140 segment->sg_mapped = kmap(sg_page(sg)); in iscsi_tcp_segment_map() 152 kunmap(sg_page(segment->sg)); in iscsi_tcp_segment_unmap() 209 sg_set_page(&sg, sg_page(segment->sg), copied, in iscsi_tcp_segment_done()
|
/Linux-v6.6/kernel/dma/ |
D | debug.c | 1310 check_for_stack(dev, sg_page(s), s->offset); in debug_dma_map_sg() 1311 if (!PageHighMem(sg_page(s))) in debug_dma_map_sg() 1322 entry->pfn = page_to_pfn(sg_page(s)); in debug_dma_map_sg() 1369 .pfn = page_to_pfn(sg_page(s)), in debug_dma_unmap_sg() 1542 .pfn = page_to_pfn(sg_page(s)), in debug_dma_sync_sg_for_cpu() 1574 .pfn = page_to_pfn(sg_page(s)), in debug_dma_sync_sg_for_device()
|