/drivers/misc/lkdtm/ |
D | usercopy.c | 56 unsigned long user_addr; in do_usercopy_stack() local 80 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_stack() 83 if (user_addr >= TASK_SIZE) { in do_usercopy_stack() 90 if (copy_to_user((void __user *)user_addr, good_stack, in do_usercopy_stack() 97 if (copy_to_user((void __user *)user_addr, bad_stack, in do_usercopy_stack() 111 if (copy_from_user(good_stack, (void __user *)user_addr, in do_usercopy_stack() 118 if (copy_from_user(bad_stack, (void __user *)user_addr, in do_usercopy_stack() 126 vm_munmap(user_addr, PAGE_SIZE); in do_usercopy_stack() 135 unsigned long user_addr; in do_usercopy_heap_size() local 148 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_heap_size() [all …]
|
D | perms.c | 159 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() 190 if (copy_to_user((void __user *)user_addr, &tmp, sizeof(tmp))) { in lkdtm_ACCESS_USERSPACE() 192 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_ACCESS_USERSPACE() [all …]
|
/drivers/fpga/ |
D | dfl-afu-dma-region.c | 51 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()
|
D | dfl-afu.h | 54 u64 user_addr; member 99 u64 user_addr, u64 length, u64 *iova);
|
D | dfl-afu-main.c | 710 ret = afu_dma_map_region(pdata, map.user_addr, map.length, &map.iova); in afu_ioctl_dma_map() 720 (unsigned long long)map.user_addr, in afu_ioctl_dma_map()
|
/drivers/misc/genwqe/ |
D | card_utils.c | 292 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()
|
D | card_base.h | 351 void __user *user_addr; /* user-space base-address */ member 369 void __user *user_addr, size_t user_size, int write);
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_amdkfd_gpuvm.c | 547 static int init_user_pages(struct kgd_mem *mem, uint64_t user_addr) in init_user_pages() argument 556 ret = amdgpu_ttm_tt_set_userptr(&bo->tbo, user_addr, 0); in init_user_pages() 562 ret = amdgpu_mn_register(bo, user_addr); in init_user_pages() 1145 uint64_t user_addr = 0; in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() local 1170 user_addr = untagged_addr(*offset); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1234 if (user_addr) in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1241 add_kgd_mem_to_kfd_bo_list(*mem, avm->process_info, user_addr); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1243 if (user_addr) { in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1244 ret = init_user_pages(*mem, user_addr); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_mr.c | 741 struct ib_udata *udata, unsigned long user_addr) in mtr_alloc_bufs() argument 761 mtr->umem = ib_umem_get(ibdev, user_addr, total_size, in mtr_alloc_bufs() 774 user_addr); in mtr_alloc_bufs() 1014 unsigned long user_addr) in hns_roce_mtr_create() argument 1036 udata, user_addr); in hns_roce_mtr_create()
|
D | hns_roce_device.h | 1160 unsigned long user_addr);
|