/linux/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_userptr.c | 114 if (!--obj->userptr.page_ref) { in i915_gem_object_userptr_drop_ref() 115 pvec = obj->userptr.pvec; in i915_gem_object_userptr_drop_ref() 116 obj->userptr.pvec = NULL; in i915_gem_object_userptr_drop_ref() 141 if (!obj->userptr.page_ref) { in i915_gem_userptr_get_pages() 146 obj->userptr.page_ref++; in i915_gem_userptr_get_pages() 147 pvec = obj->userptr.pvec; in i915_gem_userptr_get_pages() 277 if (notifier_seq == obj->userptr.notifier_seq && obj->userptr.pvec) { in i915_gem_object_userptr_submit_init() 312 obj->userptr.notifier_seq)) { in i915_gem_object_userptr_submit_init() 317 if (!obj->userptr.page_ref++) { in i915_gem_object_userptr_submit_init() 318 obj->userptr.pvec = pvec; in i915_gem_object_userptr_submit_init() [all …]
|
/linux/drivers/misc/habanalabs/common/ |
A D | memory.c | 186 userptr = kzalloc(sizeof(*userptr), GFP_KERNEL); in dma_map_host_va() 187 if (!userptr) { in dma_map_host_va() 216 kfree(userptr); in dma_map_host_va() 235 kfree(userptr); in dma_unmap_host_va() 857 for_each_sg(userptr->sgt->sgl, sg, userptr->sgt->nents, i) { in init_phys_pg_pack_from_userptr() 886 for_each_sg(userptr->sgt->sgl, sg, userptr->sgt->nents, i) { in init_phys_pg_pack_from_userptr() 2184 userptr->pages = kvmalloc_array(npages, sizeof(*userptr->pages), in get_user_memory() 2258 userptr->sgt = kzalloc(sizeof(*userptr->sgt), GFP_KERNEL); in hl_pin_host_memory() 2273 userptr); in hl_pin_host_memory() 2333 kfree(userptr); in hl_userptr_delete_list() [all …]
|
A D | debugfs.c | 201 struct hl_userptr *userptr; in userptr_show() local 216 userptr->pid, userptr->addr, userptr->size, in userptr_show() 217 dma_dir[userptr->dir]); in userptr_show() 236 struct hl_userptr *userptr; in vm_show() local 262 userptr = hnode->ptr; in vm_show() 328 struct hl_userptr *userptr; in userptr_lookup_show() local 338 dev_entry->userptr_lookup < userptr->addr + userptr->size) { in userptr_lookup_show() 340 for_each_sg(userptr->sgt->sgl, sg, userptr->sgt->nents, in userptr_lookup_show() 345 sg_end = userptr->addr + in userptr_lookup_show() 361 userptr->addr, userptr->size); in userptr_lookup_show() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
A D | radeon_ttm.c | 331 uint64_t userptr; member 355 unsigned long end = gtt->userptr + (u64)ttm->num_pages * PAGE_SIZE; in radeon_ttm_tt_pin_userptr() 357 vma = find_vma(gtt->usermm, gtt->userptr); in radeon_ttm_tt_pin_userptr() 364 uint64_t userptr = gtt->userptr + pinned * PAGE_SIZE; in radeon_ttm_tt_pin_userptr() local 367 r = get_user_pages(userptr, num_pages, write ? FOLL_WRITE : 0, in radeon_ttm_tt_pin_userptr() 448 if (gtt->userptr) { in radeon_ttm_backend_bind() 476 if (gtt->userptr) in radeon_ttm_backend_unbind() 550 if (gtt && gtt->userptr) { in radeon_ttm_tt_populate() 576 if (gtt && gtt->userptr) { in radeon_ttm_tt_unpopulate() 597 gtt->userptr = addr; in radeon_ttm_tt_set_userptr() [all …]
|
A D | Kconfig | 3 bool "Always enable userptr support" 8 selected to enabled full userptr support.
|
/linux/drivers/media/v4l2-core/ |
A D | v4l2-compat-ioctl32.c | 277 compat_long_t userptr; member 305 compat_long_t userptr; member 329 compat_long_t userptr; member 355 m.userptr = (unsigned long)compat_ptr(plane32.m.userptr); in get_v4l2_plane32() 392 plane32.m.userptr = (uintptr_t)(p64->m.userptr); in put_v4l2_plane32() 436 vb->m.userptr = (unsigned long)compat_ptr(vb32.m.userptr); in get_v4l2_buffer32() 480 vb->m.userptr = (unsigned long)compat_ptr(vb32.m.userptr); in get_v4l2_buffer32_time32() 523 vb32.m.userptr = (uintptr_t)(vb->m.userptr); in put_v4l2_buffer32() 567 vb32.m.userptr = (uintptr_t)(vb->m.userptr); in put_v4l2_buffer32_time32()
|
/linux/drivers/gpu/drm/etnaviv/ |
A D | etnaviv_gem.c | 663 struct etnaviv_gem_userptr *userptr = &etnaviv_obj->userptr; in etnaviv_gem_userptr_get_pages() local 668 if (userptr->mm != current->mm) in etnaviv_gem_userptr_get_pages() 677 uint64_t ptr = userptr->ptr + pinned * PAGE_SIZE; in etnaviv_gem_userptr_get_pages() 739 etnaviv_obj->userptr.ptr = ptr; in etnaviv_gem_new_userptr() 740 etnaviv_obj->userptr.mm = current->mm; in etnaviv_gem_new_userptr() 741 etnaviv_obj->userptr.ro = !(flags & ETNA_USERPTR_WRITE); in etnaviv_gem_new_userptr()
|
A D | etnaviv_gem.h | 55 struct etnaviv_gem_userptr userptr; member
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_ttm.c | 644 uint64_t userptr; member 721 if (!gtt || !gtt->userptr) in amdgpu_ttm_tt_get_user_pages_done() 725 gtt->userptr, ttm->num_pages); in amdgpu_ttm_tt_get_user_pages_done() 897 if (gtt->userptr) { in amdgpu_ttm_backend_bind() 1046 if (gtt->userptr) { in amdgpu_ttm_backend_unbind() 1132 if (gtt->userptr) { in amdgpu_ttm_tt_populate() 1167 if (gtt->userptr) { in amdgpu_ttm_tt_unpopulate() 1211 gtt->userptr = addr; in amdgpu_ttm_tt_set_userptr() 1256 if (gtt->userptr > end || gtt->userptr + size <= start) in amdgpu_ttm_tt_affect_userptr() 1259 if (userptr) in amdgpu_ttm_tt_affect_userptr() [all …]
|
A D | Kconfig | 28 bool "Always enable userptr write support" 35 isn't already selected to enabled full userptr support.
|
/linux/drivers/gpu/drm/exynos/ |
A D | exynos_drm_g2d.c | 207 unsigned long userptr; member 415 unsigned long userptr, in g2d_userptr_get_dma_addr() argument 434 if (g2d_userptr->userptr == userptr) { in g2d_userptr_get_dma_addr() 468 start = userptr & PAGE_MASK; in g2d_userptr_get_dma_addr() 469 offset = userptr & ~PAGE_MASK; in g2d_userptr_get_dma_addr() 470 end = PAGE_ALIGN(userptr + size); in g2d_userptr_get_dma_addr() 517 g2d_userptr->userptr = userptr; in g2d_userptr_get_dma_addr() 747 g2d_userptr.userptr, in g2d_map_cmdlist_gem()
|
/linux/drivers/staging/media/atomisp/pci/hmm/ |
A D | hmm_bo.c | 881 const void __user *userptr, bool cached) in alloc_user_pages() argument 901 vma = find_vma(current->mm, (unsigned long)userptr); in alloc_user_pages() 916 userptr = untagged_addr(userptr); in alloc_user_pages() 921 page_nr = pin_user_pages((unsigned long)userptr, bo->pgnr, in alloc_user_pages() 928 page_nr = get_user_pages_fast((unsigned long)userptr, in alloc_user_pages() 982 const void __user *userptr, bool cached) in hmm_bo_alloc_pages() argument 999 ret = alloc_user_pages(bo, userptr, cached); in hmm_bo_alloc_pages()
|
A D | hmm.c | 225 int from_highmem, const void __user *userptr, in hmm_alloc() argument 253 ret = hmm_bo_alloc_pages(bo, type, from_highmem, userptr, cached); in hmm_alloc() 273 __func__, bo->start, bytes, type, from_highmem, userptr, cached); in hmm_alloc()
|
/linux/drivers/media/common/videobuf2/ |
A D | videobuf2-v4l2.c | 210 planes[plane].m.userptr = in vb2_fill_vb2_v4l2_buffer() 211 b->m.planes[plane].m.userptr; in vb2_fill_vb2_v4l2_buffer() 284 planes[0].m.userptr = b->m.userptr; in vb2_fill_vb2_v4l2_buffer() 528 pdst->m.userptr = psrc->m.userptr; in __fill_v4l2_buffer() 544 b->m.userptr = vb->planes[0].m.userptr; in __fill_v4l2_buffer()
|
/linux/drivers/gpu/drm/msm/ |
A D | msm_gem_submit.c | 101 void __user *userptr = in submit_lookup_objects() local 109 if (copy_from_user(&submit_bo, userptr, sizeof(submit_bo))) { in submit_lookup_objects() 170 void __user *userptr = in submit_lookup_cmds() local 173 ret = copy_from_user(&submit_cmd, userptr, sizeof(submit_cmd)); in submit_lookup_cmds() 203 userptr = u64_to_user_ptr(submit_cmd.relocs); in submit_lookup_cmds() 213 ret = copy_from_user(submit->cmd[i].relocs, userptr, sz); in submit_lookup_cmds()
|
/linux/drivers/staging/media/atomisp/include/hmm/ |
A D | hmm.h | 42 int from_highmem, const void __user *userptr,
|
/linux/include/linux/ |
A D | splice.h | 37 void __user *userptr; /* memory to write to */ member
|
/linux/Documentation/userspace-api/media/v4l/ |
A D | vidioc-prepare-buf.rst | 55 bounds, or no buffers have been allocated yet, or the ``userptr`` or
|
A D | vidioc-qbuf.rst | 71 ``memory`` field to ``V4L2_MEMORY_USERPTR``, the ``m.userptr`` field to 73 multi-planar API is used, ``m.userptr`` and ``length`` members of the 164 bounds, or no buffers have been allocated yet, or the ``userptr`` or
|
/linux/drivers/misc/habanalabs/goya/ |
A D | goya.c | 3298 struct hl_userptr *userptr; in goya_pin_memory_before_cs() local 3305 userptr = kzalloc(sizeof(*userptr), GFP_KERNEL); in goya_pin_memory_before_cs() 3306 if (!userptr) in goya_pin_memory_before_cs() 3310 userptr); in goya_pin_memory_before_cs() 3317 userptr->sgt->nents, dir); in goya_pin_memory_before_cs() 3323 userptr->dma_mapped = true; in goya_pin_memory_before_cs() 3324 userptr->dir = dir; in goya_pin_memory_before_cs() 3333 list_del(&userptr->job_node); in goya_pin_memory_before_cs() 3336 kfree(userptr); in goya_pin_memory_before_cs() 3719 struct hl_userptr *userptr; in goya_patch_dma_packet() local [all …]
|
/linux/net/ipv4/netfilter/ |
A D | arp_tables.c | 672 void __user *userptr) in copy_entries_to_user() argument 693 if (copy_to_user(userptr + off, e, sizeof(*e))) { in copy_entries_to_user() 697 if (copy_to_user(userptr + off in copy_entries_to_user() 706 if (xt_target_to_user(t, userptr + off + e->target_offset)) { in copy_entries_to_user() 1333 void __user *userptr) in compat_copy_entries_to_user() argument 1347 pos = userptr; in compat_copy_entries_to_user()
|
A D | ip_tables.c | 814 void __user *userptr) in copy_entries_to_user() argument 837 if (copy_to_user(userptr + off, e, sizeof(*e))) { in copy_entries_to_user() 841 if (copy_to_user(userptr + off in copy_entries_to_user() 854 if (xt_match_to_user(m, userptr + off + i)) { in copy_entries_to_user() 861 if (xt_target_to_user(t, userptr + off + e->target_offset)) { in copy_entries_to_user() 1546 void __user *userptr) in compat_copy_entries_to_user() argument 1560 pos = userptr; in compat_copy_entries_to_user()
|
/linux/net/ipv6/netfilter/ |
A D | ip6_tables.c | 830 void __user *userptr) in copy_entries_to_user() argument 853 if (copy_to_user(userptr + off, e, sizeof(*e))) { in copy_entries_to_user() 857 if (copy_to_user(userptr + off in copy_entries_to_user() 870 if (xt_match_to_user(m, userptr + off + i)) { in copy_entries_to_user() 877 if (xt_target_to_user(t, userptr + off + e->target_offset)) { in copy_entries_to_user() 1555 void __user *userptr) in compat_copy_entries_to_user() argument 1569 pos = userptr; in compat_copy_entries_to_user()
|
/linux/drivers/cdrom/ |
A D | cdrom.c | 3302 void __user *userptr = (void __user *)arg; in mmc_ioctl() local 3312 return mmc_ioctl_cdrom_read_data(cdi, userptr, &cgc, cmd); in mmc_ioctl() 3314 return mmc_ioctl_cdrom_read_audio(cdi, userptr); in mmc_ioctl() 3316 return mmc_ioctl_cdrom_subchannel(cdi, userptr); in mmc_ioctl() 3318 return mmc_ioctl_cdrom_play_msf(cdi, userptr, &cgc); in mmc_ioctl() 3320 return mmc_ioctl_cdrom_play_blk(cdi, userptr, &cgc); in mmc_ioctl() 3323 return mmc_ioctl_cdrom_volume(cdi, userptr, &cgc, cmd); in mmc_ioctl() 3331 return mmc_ioctl_dvd_read_struct(cdi, userptr, &cgc); in mmc_ioctl() 3333 return mmc_ioctl_dvd_auth(cdi, userptr); in mmc_ioctl() 3335 return mmc_ioctl_cdrom_next_writable(cdi, userptr); in mmc_ioctl() [all …]
|
/linux/drivers/gpu/drm/i915/ |
A D | Kconfig | 91 bool "Always enable userptr support" 97 selected to enabled full userptr support.
|