Home
last modified time | relevance | path

Searched refs:user_addr (Results 1 – 25 of 27) sorted by relevance

12

/linux/drivers/misc/lkdtm/
A Dusercopy.c51 unsigned long user_addr; in do_usercopy_stack() local
69 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_stack()
72 if (user_addr >= TASK_SIZE) { in do_usercopy_stack()
115 vm_munmap(user_addr, PAGE_SIZE); in do_usercopy_stack()
124 unsigned long user_addr; in do_usercopy_heap_size() local
140 if (user_addr >= TASK_SIZE) { in do_usercopy_heap_size()
180 vm_munmap(user_addr, PAGE_SIZE); in do_usercopy_heap_size()
194 unsigned char __user *user_addr; in do_usercopy_heap_whitelist() local
301 unsigned long user_addr; in lkdtm_USERCOPY_KERNEL() local
306 if (user_addr >= TASK_SIZE) { in lkdtm_USERCOPY_KERNEL()
[all …]
A Dperms.c159 unsigned long user_addr; in lkdtm_EXEC_USERSPACE() local
161 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in lkdtm_EXEC_USERSPACE()
164 if (user_addr >= TASK_SIZE) { in lkdtm_EXEC_USERSPACE()
168 execute_user_location((void *)user_addr); in lkdtm_EXEC_USERSPACE()
169 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_EXEC_USERSPACE()
179 unsigned long user_addr, tmp = 0; in lkdtm_ACCESS_USERSPACE() local
182 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in lkdtm_ACCESS_USERSPACE()
185 if (user_addr >= TASK_SIZE) { in lkdtm_ACCESS_USERSPACE()
192 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_ACCESS_USERSPACE()
196 ptr = (unsigned long *)user_addr; in lkdtm_ACCESS_USERSPACE()
[all …]
/linux/drivers/fpga/
A Ddfl-afu-dma-region.c51 pinned = pin_user_pages_fast(region->user_addr, npages, FOLL_WRITE, in afu_dma_pin_pages()
302 u64 user_addr, u64 length, u64 *iova) in afu_dma_map_region() argument
311 if (!PAGE_ALIGNED(user_addr) || !PAGE_ALIGNED(length) || !length) in afu_dma_map_region()
315 if (user_addr + length < user_addr) in afu_dma_map_region()
322 region->user_addr = user_addr; in afu_dma_map_region()
A Ddfl-afu.h54 u64 user_addr; member
99 u64 user_addr, u64 length, u64 *iova);
A Ddfl-afu-main.c723 ret = afu_dma_map_region(pdata, map.user_addr, map.length, &map.iova); in afu_ioctl_dma_map()
733 (unsigned long long)map.user_addr, in afu_ioctl_dma_map()
/linux/lib/
A Dtest_user_copy.c186 unsigned long user_addr; in test_user_copy_init() local
198 user_addr = vm_mmap(NULL, 0, PAGE_SIZE * 2, in test_user_copy_init()
201 if (user_addr >= (unsigned long)(TASK_SIZE)) { in test_user_copy_init()
207 usermem = (char __user *)user_addr; in test_user_copy_init()
208 bad_usermem = (char *)user_addr; in test_user_copy_init()
310 vm_munmap(user_addr, PAGE_SIZE * 2); in test_user_copy_init()
/linux/arch/ia64/include/asm/
A Dcacheflush.h25 #define flush_icache_user_page(vma, page, user_addr, len) \ argument
27 unsigned long _addr = (unsigned long) page_address(page) + ((user_addr) & ~PAGE_MASK); \
/linux/drivers/misc/genwqe/
A Dcard_utils.c292 void __user *user_addr, size_t user_size, int write) in genwqe_alloc_sync_sgl() argument
297 sgl->fpage_offs = offset_in_page((unsigned long)user_addr); in genwqe_alloc_sync_sgl()
303 __func__, user_addr, user_size, sgl->nr_pages, in genwqe_alloc_sync_sgl()
306 sgl->user_addr = user_addr; in genwqe_alloc_sync_sgl()
334 user_addr, sgl->fpage_size)) { in genwqe_alloc_sync_sgl()
346 if (copy_from_user(sgl->lpage, user_addr + user_size - in genwqe_alloc_sync_sgl()
482 res = copy_to_user(sgl->user_addr, in genwqe_free_sync_sgl()
499 res = copy_to_user(sgl->user_addr + offset, sgl->lpage, in genwqe_free_sync_sgl()
A Dcard_base.h351 void __user *user_addr; /* user-space base-address */ member
369 void __user *user_addr, size_t user_size, int write);
/linux/arch/arm/include/asm/
A Dcacheflush.h235 vivt_flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn) in vivt_flush_cache_page() argument
240 unsigned long addr = user_addr & PAGE_MASK; in vivt_flush_cache_page()
255 extern void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn…
/linux/arch/arm/mm/
A Dflush.c98 void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn) in flush_cache_page() argument
101 vivt_flush_cache_page(vma, user_addr, pfn); in flush_cache_page()
106 flush_pfn_alias(pfn, user_addr); in flush_cache_page()
/linux/net/netrom/
A Daf_netrom.c404 memset(&nr_sk(sk)->user_addr, 0, AX25_ADDR_LEN); in nr_listen()
599 nr->user_addr = addr->fsa_digipeater[0]; in nr_bind()
606 nr->user_addr = user->call; in nr_bind()
614 nr->user_addr = *source; in nr_bind()
680 nr->user_addr = user->call; in nr_connect()
688 nr->user_addr = *source; in nr_connect()
846 sax->fsa_ax25.sax25_call = nr->user_addr; in nr_getname()
979 nr_make->user_addr = *user; in nr_rx_frame()
1294 seq_printf(seq, "%-9s ", ax2asc(buf, &nr->user_addr)); in nr_info_show()
A Dnr_subr.c163 memcpy(dptr, &nr->user_addr, AX25_ADDR_LEN); in nr_write_internal()
/linux/arch/um/drivers/
A Dvhost_user.h98 u64 user_addr; member
A Dvirtio_uml.c593 region_out->user_addr = addr; in vhost_user_init_mem_region()
/linux/arch/arc/include/asm/
A Dcacheflush.h66 unsigned long user_addr, unsigned long page);
/linux/drivers/infiniband/hw/hns/
A Dhns_roce_mr.c692 struct ib_udata *udata, unsigned long user_addr) in mtr_alloc_bufs() argument
701 mtr->umem = ib_umem_get(ibdev, user_addr, total_size, in mtr_alloc_bufs()
982 unsigned long user_addr) in hns_roce_mtr_create() argument
991 udata ? user_addr & ~PAGE_MASK : 0); in hns_roce_mtr_create()
1013 ret = mtr_alloc_bufs(hr_dev, mtr, buf_attr, udata, user_addr); in hns_roce_mtr_create()
A Dhns_roce_device.h1165 unsigned long user_addr);
/linux/include/uapi/linux/
A Dfpga-dfl.h130 __u64 user_addr; /* Process virtual address */ member
A Dkvm.h1402 __u64 user_addr; member
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_amdkfd_gpuvm.c826 static int init_user_pages(struct kgd_mem *mem, uint64_t user_addr) in init_user_pages() argument
835 ret = amdgpu_ttm_tt_set_userptr(&bo->tbo, user_addr, 0); in init_user_pages()
841 ret = amdgpu_mn_register(bo, user_addr); in init_user_pages()
1397 uint64_t user_addr = 0; in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() local
1421 user_addr = untagged_addr(*offset); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1485 if (user_addr) in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1492 add_kgd_mem_to_kfd_bo_list(*mem, avm->process_info, user_addr); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1494 if (user_addr) { in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1495 ret = init_user_pages(*mem, user_addr); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
/linux/include/net/
A Dnetrom.h68 ax25_address user_addr, source_addr, dest_addr; member
/linux/net/rds/
A Drdma.c154 static int rds_pin_pages(unsigned long user_addr, unsigned int nr_pages, in rds_pin_pages() argument
163 ret = pin_user_pages_fast(user_addr, nr_pages, gup_flags, pages); in rds_pin_pages()
/linux/fs/fuse/
A Dfile.c1379 unsigned long user_addr = fuse_get_user_addr(ii); in fuse_get_user_pages() local
1383 ap->args.in_args[1].value = (void *) user_addr; in fuse_get_user_pages()
1385 ap->args.out_args[0].value = (void *) user_addr; in fuse_get_user_pages()
/linux/tools/include/uapi/linux/
A Dkvm.h1402 __u64 user_addr; member

Completed in 80 milliseconds

12