/kernel/linux/linux-5.10/drivers/gpu/drm/selftests/ |
H A D | test-drm_framebuffer.c | 30 .handles = { 1, 0, 0 }, .pitches = { 4 * 600, 0, 0 }, 35 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 40 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH + 1, 0, 0 }, 45 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH - 1, 0, 0 }, 50 .handles = { 1, 0, 0 }, .pitches = { 4 * (MAX_WIDTH + 1), 0, 0 }, 55 .handles = { 0, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 60 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 65 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 70 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 75 .handles [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/tests/ |
H A D | drm_framebuffer_test.c | 31 .handles = { 1, 0, 0 }, .pitches = { 4 * 600, 0, 0 }, 36 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 41 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH + 1, 0, 0 }, 46 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH - 1, 0, 0 }, 51 .handles = { 1, 0, 0 }, .pitches = { 4 * (MAX_WIDTH + 1), 0, 0 }, 56 .handles = { 0, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 61 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 66 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 71 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 76 .handles [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/rmgr/src/ |
H A D | rmgr_vbuf.c | 25 * @brief VBUF resource handles 38 NULL, /* handles */ 49 NULL, /* handles */ 60 NULL, /* handles */ 152 /* allocate memory for storing the handles */ in ia_css_rmgr_init_vbuf() 156 pool->handles = kvmalloc(bytes_needed, GFP_KERNEL); in ia_css_rmgr_init_vbuf() 157 if (pool->handles) in ia_css_rmgr_init_vbuf() 158 memset(pool->handles, 0, bytes_needed); in ia_css_rmgr_init_vbuf() 164 pool->handles = NULL; in ia_css_rmgr_init_vbuf() 184 if (pool->handles) { in ia_css_rmgr_uninit_vbuf() [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/rmgr/src/ |
H A D | rmgr_vbuf.c | 25 * @brief VBUF resource handles 139 /* allocate memory for storing the handles */ in ia_css_rmgr_init_vbuf() 143 pool->handles = kvmalloc(bytes_needed, GFP_KERNEL); in ia_css_rmgr_init_vbuf() 144 if (pool->handles) in ia_css_rmgr_init_vbuf() 145 memset(pool->handles, 0, bytes_needed); in ia_css_rmgr_init_vbuf() 151 pool->handles = NULL; in ia_css_rmgr_init_vbuf() 170 if (pool->handles) { in ia_css_rmgr_uninit_vbuf() 173 if (pool->handles[i]) { in ia_css_rmgr_uninit_vbuf() 176 pool->handles[i]->vptr, in ia_css_rmgr_uninit_vbuf() 177 pool->handles[ in ia_css_rmgr_uninit_vbuf() [all...] |
/kernel/linux/linux-6.6/drivers/accel/habanalabs/common/ |
H A D | memory_mgr.c | 25 buf = idr_find(&mmg->handles, lower_32_bits(handle >> PAGE_SHIFT)); in hl_mmap_mem_buf_get() 67 idr_remove(&buf->mmg->handles, lower_32_bits(buf->handle >> PAGE_SHIFT)); in hl_mmap_mem_buf_release() 86 idr_remove(&buf->mmg->handles, lower_32_bits(buf->handle >> PAGE_SHIFT)); in hl_mmap_mem_buf_remove_idr_locked() 118 buf = idr_find(&mmg->handles, lower_32_bits(handle >> PAGE_SHIFT)); in hl_mmap_mem_buf_put_handle() 160 rc = idr_alloc(&mmg->handles, buf, 1, 0, GFP_ATOMIC); in hl_mmap_mem_buf_alloc() 185 idr_remove(&mmg->handles, lower_32_bits(buf->handle >> PAGE_SHIFT)); in hl_mmap_mem_buf_alloc() 318 idr_init(&mmg->handles); 335 idp = &mmg->handles; 355 if (!idr_is_empty(&mmg->handles)) 358 idr_destroy(&mmg->handles); [all...] |
H A D | context.c | 21 idr_remove(&mgr->handles, handle->id); in encaps_handle_do_release() 57 idr_init(&mgr->handles); in hl_encaps_sig_mgr_init() 66 idp = &mgr->handles; in hl_encaps_sig_mgr_fini() 73 "device released while some encaps signals handles are still allocated\n"); in hl_encaps_sig_mgr_fini() 78 idr_destroy(&mgr->handles); in hl_encaps_sig_mgr_fini() 164 rc = idr_alloc(&ctx_mgr->handles, ctx, 1, 0, GFP_KERNEL); in hl_ctx_create() 191 idr_remove(&ctx_mgr->handles, ctx->handle); in hl_ctx_create() 420 idr_init(&ctx_mgr->handles); in hl_ctx_mgr_init() 438 idp = &ctx_mgr->handles; in hl_ctx_mgr_fini() 443 idr_destroy(&ctx_mgr->handles); in hl_ctx_mgr_fini() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/lima/ |
H A D | lima_ctx.c | 26 err = xa_alloc(&mgr->handles, id, ctx, xa_limit_32b, GFP_KERNEL); in lima_ctx_create() 58 ctx = xa_erase(&mgr->handles, id); in lima_ctx_free() 72 ctx = xa_load(&mgr->handles, id); in lima_ctx_get() 87 xa_init_flags(&mgr->handles, XA_FLAGS_ALLOC); in lima_ctx_mgr_init() 95 xa_for_each(&mgr->handles, id, ctx) { in lima_ctx_mgr_fini() 99 xa_destroy(&mgr->handles); in lima_ctx_mgr_fini()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/lima/ |
H A D | lima_ctx.c | 26 err = xa_alloc(&mgr->handles, id, ctx, xa_limit_32b, GFP_KERNEL); in lima_ctx_create() 58 ctx = xa_erase(&mgr->handles, id); in lima_ctx_free() 72 ctx = xa_load(&mgr->handles, id); in lima_ctx_get() 87 xa_init_flags(&mgr->handles, XA_FLAGS_ALLOC); in lima_ctx_mgr_init() 95 xa_for_each(&mgr->handles, id, ctx) { in lima_ctx_mgr_fini() 99 xa_destroy(&mgr->handles); in lima_ctx_mgr_fini()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/armada/ |
H A D | armada_fb.c | 102 (mode->handles[0] != mode->handles[1] || in armada_fb_create() 103 mode->handles[0] != mode->handles[2])) { in armada_fb_create() 108 obj = armada_gem_object_lookup(dfile, mode->handles[0]); in armada_fb_create()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/armada/ |
H A D | armada_fb.c | 101 (mode->handles[0] != mode->handles[1] || in armada_fb_create() 102 mode->handles[0] != mode->handles[2])) { in armada_fb_create() 107 obj = armada_gem_object_lookup(dfile, mode->handles[0]); in armada_fb_create()
|
/kernel/linux/linux-5.10/drivers/xen/xenbus/ |
H A D | xenbus_client.c | 68 grant_handle_t handles[XENBUS_MAX_RING_GRANTS]; member 503 grant_handle_t *handles, in __xenbus_map_ring() 516 handles[i] = INVALID_GRANT_HANDLE; in __xenbus_map_ring() 528 handles[i] = info->map[i].handle; in __xenbus_map_ring() 535 if (handles[i] != INVALID_GRANT_HANDLE) { in __xenbus_map_ring() 538 GNTMAP_host_map, handles[i]); in __xenbus_map_ring() 560 * @handles: grant handle array 561 * @nr_handles: number of handles in the array 568 static int xenbus_unmap_ring(struct xenbus_device *dev, grant_handle_t *handles, in xenbus_unmap_ring() argument 580 GNTMAP_host_map, handles[ in xenbus_unmap_ring() 500 __xenbus_map_ring(struct xenbus_device *dev, grant_ref_t *gnt_refs, unsigned int nr_grefs, grant_handle_t *handles, struct map_ring_valloc *info, unsigned int flags, bool *leaked) __xenbus_map_ring() argument [all...] |
/kernel/linux/linux-6.6/drivers/xen/xenbus/ |
H A D | xenbus_client.c | 68 grant_handle_t handles[XENBUS_MAX_RING_GRANTS]; member 548 grant_handle_t *handles, in __xenbus_map_ring() 561 handles[i] = INVALID_GRANT_HANDLE; in __xenbus_map_ring() 573 handles[i] = info->map[i].handle; in __xenbus_map_ring() 580 if (handles[i] != INVALID_GRANT_HANDLE) { in __xenbus_map_ring() 583 GNTMAP_host_map, handles[i]); in __xenbus_map_ring() 604 * @handles: grant handle array 605 * @nr_handles: number of handles in the array 612 static int xenbus_unmap_ring(struct xenbus_device *dev, grant_handle_t *handles, in xenbus_unmap_ring() argument 624 GNTMAP_host_map, handles[ in xenbus_unmap_ring() 545 __xenbus_map_ring(struct xenbus_device *dev, grant_ref_t *gnt_refs, unsigned int nr_grefs, grant_handle_t *handles, struct map_ring_valloc *info, unsigned int flags, bool *leaked) __xenbus_map_ring() argument [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | uverbs_std_types_device.c | 73 u32 *handles; in gather_objects_handle() local 78 handles = uverbs_zalloc(attrs, out_len); in gather_objects_handle() 79 if (IS_ERR(handles)) in gather_objects_handle() 80 return handles; in gather_objects_handle() 92 handles[count] = obj_id; in gather_objects_handle() 98 return handles; in gather_objects_handle() 108 u32 *handles; in UVERBS_METHOD_INFO_HANDLES() local 123 handles = gather_objects_handle(attrs->ufile, uapi_object, attrs, in UVERBS_METHOD_INFO_HANDLES() 125 if (IS_ERR(handles)) in UVERBS_METHOD_INFO_HANDLES() 126 return PTR_ERR(handles); in UVERBS_METHOD_INFO_HANDLES() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | uverbs_std_types_device.c | 73 u32 *handles; in gather_objects_handle() local 78 handles = uverbs_zalloc(attrs, out_len); in gather_objects_handle() 79 if (IS_ERR(handles)) in gather_objects_handle() 80 return handles; in gather_objects_handle() 92 handles[count] = obj_id; in gather_objects_handle() 98 return handles; in gather_objects_handle() 108 u32 *handles; in UVERBS_METHOD_INFO_HANDLES() local 123 handles = gather_objects_handle(attrs->ufile, uapi_object, attrs, in UVERBS_METHOD_INFO_HANDLES() 125 if (IS_ERR(handles)) in UVERBS_METHOD_INFO_HANDLES() 126 return PTR_ERR(handles); in UVERBS_METHOD_INFO_HANDLES() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_framebuffer.c | 52 * (or a list of memory handles for multi-planar formats) through the 55 * free to use their own backing storage object handles, e.g. vmwgfx directly 56 * exposes special TTM handles to userspace and so expects TTM handles in the 57 * create ioctl and not GEM handles. 137 r.handles[0] = or->handle; in drm_mode_addfb() 212 if (!r->handles[i]) { in framebuffer_check() 270 if (r->handles[i]) { in framebuffer_check() 600 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl() 601 r->handles[ in drm_mode_getfb2_ioctl() [all...] |
H A D | drm_syncobj.c | 110 * &DRM_IOCTL_SYNCOBJ_WAIT takes an array of syncobj handles and does a 130 * handles as well as an array of u64 points and does a host-side wait on all 150 * All exported file descriptors and any syncobj handles created as a 1157 uint32_t i, *handles; in drm_syncobj_array_find() local 1161 handles = kmalloc_array(count_handles, sizeof(*handles), GFP_KERNEL); in drm_syncobj_array_find() 1162 if (handles == NULL) in drm_syncobj_array_find() 1165 if (copy_from_user(handles, user_handles, in drm_syncobj_array_find() 1178 syncobjs[i] = drm_syncobj_find(file_private, handles[i]); in drm_syncobj_array_find() 1185 kfree(handles); in drm_syncobj_array_find() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_framebuffer.c | 52 * (or a list of memory handles for multi-planar formats) through the 55 * free to use their own backing storage object handles, e.g. vmwgfx directly 56 * exposes special TTM handles to userspace and so expects TTM handles in the 57 * create ioctl and not GEM handles. 137 r.handles[0] = or->handle; in drm_mode_addfb() 209 if (!r->handles[i]) { in framebuffer_check() 267 if (r->handles[i]) { in framebuffer_check() 600 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl() 601 r->handles[ in drm_mode_getfb2_ioctl() [all...] |
H A D | drm_syncobj.c | 110 * &DRM_IOCTL_SYNCOBJ_WAIT takes an array of syncobj handles and does a 130 * handles as well as an array of u64 points and does a host-side wait on all 154 * All exported file descriptors and any syncobj handles created as a 1245 uint32_t i, *handles; in drm_syncobj_array_find() local 1249 handles = kmalloc_array(count_handles, sizeof(*handles), GFP_KERNEL); in drm_syncobj_array_find() 1250 if (handles == NULL) in drm_syncobj_array_find() 1253 if (copy_from_user(handles, user_handles, in drm_syncobj_array_find() 1266 syncobjs[i] = drm_syncobj_find(file_private, handles[i]); in drm_syncobj_array_find() 1273 kfree(handles); in drm_syncobj_array_find() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | radeon_uvd.c | 162 * Limit the number of UVD handles depending on in radeon_uvd_init() 220 atomic_set(&rdev->uvd.handles[i], 0); in radeon_uvd_init() 257 uint32_t handle = atomic_read(&rdev->uvd.handles[i]); in radeon_uvd_suspend() 274 atomic_set(&rdev->uvd.handles[i], 0); in radeon_uvd_suspend() 332 uint32_t handle = atomic_read(&rdev->uvd.handles[i]); in radeon_uvd_free_handles() 349 atomic_set(&rdev->uvd.handles[i], 0); in radeon_uvd_free_handles() 517 if (atomic_read(&p->rdev->uvd.handles[i]) == handle) { in radeon_uvd_cs_msg() 522 if (!atomic_cmpxchg(&p->rdev->uvd.handles[i], 0, handle)) { in radeon_uvd_cs_msg() 529 DRM_ERROR("No more free UVD handles!\n"); in radeon_uvd_cs_msg() 543 if (atomic_read(&p->rdev->uvd.handles[ in radeon_uvd_cs_msg() [all...] |
H A D | radeon_vce.c | 166 atomic_set(&rdev->vce.handles[i], 0); in radeon_vce_init() 204 if (atomic_read(&rdev->vce.handles[i])) in radeon_vce_suspend() 308 * radeon_vce_free_handles - free still open VCE handles 313 * Close all VCE handles still open by this file pointer 319 uint32_t handle = atomic_read(&rdev->vce.handles[i]); in radeon_vce_free_handles() 331 atomic_set(&rdev->vce.handles[i], 0); in radeon_vce_free_handles() 527 if (atomic_read(&p->rdev->vce.handles[i]) == handle) { in radeon_vce_validate_handle() 538 if (!atomic_cmpxchg(&p->rdev->vce.handles[i], 0, handle)) { in radeon_vce_validate_handle() 546 DRM_ERROR("No more free VCE handles!\n"); in radeon_vce_validate_handle() 679 atomic_cmpxchg(&p->rdev->vce.handles[ in radeon_vce_cs_parse() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_uvd.c | 164 * Limit the number of UVD handles depending on in radeon_uvd_init() 222 atomic_set(&rdev->uvd.handles[i], 0); in radeon_uvd_init() 259 uint32_t handle = atomic_read(&rdev->uvd.handles[i]); in radeon_uvd_suspend() 276 atomic_set(&rdev->uvd.handles[i], 0); in radeon_uvd_suspend() 334 uint32_t handle = atomic_read(&rdev->uvd.handles[i]); in radeon_uvd_free_handles() 351 atomic_set(&rdev->uvd.handles[i], 0); in radeon_uvd_free_handles() 509 if (atomic_read(&p->rdev->uvd.handles[i]) == handle) { in radeon_uvd_cs_msg() 514 if (!atomic_cmpxchg(&p->rdev->uvd.handles[i], 0, handle)) { in radeon_uvd_cs_msg() 521 DRM_ERROR("No more free UVD handles!\n"); in radeon_uvd_cs_msg() 535 if (atomic_read(&p->rdev->uvd.handles[ in radeon_uvd_cs_msg() [all...] |
H A D | radeon_vce.c | 166 atomic_set(&rdev->vce.handles[i], 0); in radeon_vce_init() 204 if (atomic_read(&rdev->vce.handles[i])) in radeon_vce_suspend() 308 * radeon_vce_free_handles - free still open VCE handles 313 * Close all VCE handles still open by this file pointer 319 uint32_t handle = atomic_read(&rdev->vce.handles[i]); in radeon_vce_free_handles() 331 atomic_set(&rdev->vce.handles[i], 0); in radeon_vce_free_handles() 527 if (atomic_read(&p->rdev->vce.handles[i]) == handle) { in radeon_vce_validate_handle() 538 if (!atomic_cmpxchg(&p->rdev->vce.handles[i], 0, handle)) { in radeon_vce_validate_handle() 546 DRM_ERROR("No more free VCE handles!\n"); in radeon_vce_validate_handle() 679 atomic_cmpxchg(&p->rdev->vce.handles[ in radeon_vce_cs_parse() [all...] |
/kernel/linux/linux-5.10/drivers/platform/x86/ |
H A D | sony-laptop.c | 814 static struct sony_nc_handles *handles; variable 822 for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { in sony_nc_handles_show() 824 handles->cap[i]); in sony_nc_handles_show() 835 handles = kzalloc(sizeof(*handles), GFP_KERNEL); in sony_nc_handles_setup() 836 if (!handles) in sony_nc_handles_setup() 839 for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { in sony_nc_handles_setup() 846 handles->cap[i] = result; in sony_nc_handles_setup() 851 sysfs_attr_init(&handles->devattr.attr); in sony_nc_handles_setup() 852 handles in sony_nc_handles_setup() [all...] |
/kernel/linux/linux-6.6/drivers/platform/x86/ |
H A D | sony-laptop.c | 814 static struct sony_nc_handles *handles; variable 822 for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { in sony_nc_handles_show() 823 len += sysfs_emit_at(buffer, len, "0x%.4x ", handles->cap[i]); in sony_nc_handles_show() 834 handles = kzalloc(sizeof(*handles), GFP_KERNEL); in sony_nc_handles_setup() 835 if (!handles) in sony_nc_handles_setup() 838 for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { in sony_nc_handles_setup() 845 handles->cap[i] = result; in sony_nc_handles_setup() 850 sysfs_attr_init(&handles->devattr.attr); in sony_nc_handles_setup() 851 handles in sony_nc_handles_setup() [all...] |
/kernel/linux/linux-5.10/arch/c6x/kernel/ |
H A D | vectors.S | 8 ; This section handles all the interrupt vector routines. 10 ; branches to the label _c_int00 which handles initialization for the C code.
|