Home
last modified time | relevance | path

Searched refs:userptr (Results 1 – 25 of 45) sorted by relevance

12

/linux/drivers/gpu/drm/i915/gem/
A Di915_gem_userptr.c114 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 Dmemory.c186 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 Ddebugfs.c201 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 Dradeon_ttm.c331 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 DKconfig3 bool "Always enable userptr support"
8 selected to enabled full userptr support.
/linux/drivers/media/v4l2-core/
A Dv4l2-compat-ioctl32.c277 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 Detnaviv_gem.c663 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 Detnaviv_gem.h55 struct etnaviv_gem_userptr userptr; member
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ttm.c644 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 DKconfig28 bool "Always enable userptr write support"
35 isn't already selected to enabled full userptr support.
/linux/drivers/gpu/drm/exynos/
A Dexynos_drm_g2d.c207 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 Dhmm_bo.c881 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 Dhmm.c225 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 Dvideobuf2-v4l2.c210 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 Dmsm_gem_submit.c101 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 Dhmm.h42 int from_highmem, const void __user *userptr,
/linux/include/linux/
A Dsplice.h37 void __user *userptr; /* memory to write to */ member
/linux/Documentation/userspace-api/media/v4l/
A Dvidioc-prepare-buf.rst55 bounds, or no buffers have been allocated yet, or the ``userptr`` or
A Dvidioc-qbuf.rst71 ``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 Dgoya.c3298 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 Darp_tables.c672 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 Dip_tables.c814 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 Dip6_tables.c830 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 Dcdrom.c3302 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 DKconfig91 bool "Always enable userptr support"
97 selected to enabled full userptr support.

Completed in 83 milliseconds

12