Home
last modified time | relevance | path

Searched refs:handles (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/Linux-v6.6/drivers/gpu/drm/tests/
Ddrm_framebuffer_test.c31 .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 = { 1, 0, 0 }, .offsets = { UINT_MAX - 1, 0, 0 },
[all …]
/Linux-v6.6/drivers/staging/media/atomisp/pci/runtime/rmgr/src/
Drmgr_vbuf.c143 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[i]->count); in ia_css_rmgr_uninit_vbuf()
179 hmm_free(pool->handles[i]->vptr); in ia_css_rmgr_uninit_vbuf()
181 ia_css_rmgr_refcount_release_vbuf(&pool->handles[i]); in ia_css_rmgr_uninit_vbuf()
[all …]
/Linux-v6.6/drivers/accel/habanalabs/common/
Dmemory_mgr.c25 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);
Dcontext.c21 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()
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()
/Linux-v6.6/drivers/gpu/drm/lima/
Dlima_ctx.c26 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()
/Linux-v6.6/drivers/gpu/drm/armada/
Darmada_fb.c101 (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()
/Linux-v6.6/drivers/xen/xenbus/
Dxenbus_client.c68 grant_handle_t handles[XENBUS_MAX_RING_GRANTS]; member
548 grant_handle_t *handles, in __xenbus_map_ring() argument
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()
612 static int xenbus_unmap_ring(struct xenbus_device *dev, grant_handle_t *handles, in xenbus_unmap_ring() argument
624 GNTMAP_host_map, handles[i]); in xenbus_unmap_ring()
633 handles[i], unmap[i].status); in xenbus_unmap_ring()
676 err = __xenbus_map_ring(dev, gnt_ref, nr_grefs, node->handles, in xenbus_map_ring_hvm()
[all …]
/Linux-v6.6/drivers/infiniband/core/
Duverbs_std_types_device.c73 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_HANDLER() local
123 handles = gather_objects_handle(attrs->ufile, uapi_object, attrs, in UVERBS_HANDLER()
125 if (IS_ERR(handles)) in UVERBS_HANDLER()
126 return PTR_ERR(handles); in UVERBS_HANDLER()
[all …]
/Linux-v6.6/drivers/gpu/drm/
Ddrm_framebuffer.c137 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[i] = 0; in drm_mode_getfb2_ioctl()
632 r->handles[i] = r->handles[j]; in drm_mode_getfb2_ioctl()
637 if (r->handles[i]) in drm_mode_getfb2_ioctl()
642 &r->handles[i]); in drm_mode_getfb2_ioctl()
646 &r->handles[i]); in drm_mode_getfb2_ioctl()
656 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl()
[all …]
Ddrm_syncobj.c1242 uint32_t i, *handles; in drm_syncobj_array_find() local
1246 handles = kmalloc_array(count_handles, sizeof(*handles), GFP_KERNEL); in drm_syncobj_array_find()
1247 if (handles == NULL) in drm_syncobj_array_find()
1250 if (copy_from_user(handles, user_handles, in drm_syncobj_array_find()
1263 syncobjs[i] = drm_syncobj_find(file_private, handles[i]); in drm_syncobj_array_find()
1270 kfree(handles); in drm_syncobj_array_find()
1279 kfree(handles); in drm_syncobj_array_find()
1313 u64_to_user_ptr(args->handles), in drm_syncobj_wait_ioctl()
1347 u64_to_user_ptr(args->handles), in drm_syncobj_timeline_wait_ioctl()
1463 u64_to_user_ptr(args->handles), in drm_syncobj_reset_ioctl()
[all …]
Ddrm_prime.c126 p = &prime_fpriv->handles.rb_node; in drm_prime_add_buf_handle()
138 rb_insert_color(&member->handle_rb, &prime_fpriv->handles); in drm_prime_add_buf_handle()
148 rb = prime_fpriv->handles.rb_node; in drm_prime_lookup_buf_by_handle()
195 rb = prime_fpriv->handles.rb_node; in drm_prime_remove_buf_handle()
201 rb_erase(&member->handle_rb, &prime_fpriv->handles); in drm_prime_remove_buf_handle()
221 prime_fpriv->handles = RB_ROOT; in drm_prime_init_file_private()
/Linux-v6.6/Documentation/dev-tools/
Dkcov.rst236 ``KCOV_REMOTE_ENABLE`` ioctl accept handles that identify particular coverage
254 this handle to ``KCOV_REMOTE_ENABLE`` in the ``handles`` array field of the
256 section referenced by this handle. Multiple global handles identifying
266 KCOV follows a predefined format for both global and common handles. Each
270 For global handles, the top byte of the handle denotes the id of a subsystem
276 For common handles, a reserved value ``0`` is used as a subsystem id, as such
277 handles don't belong to a particular subsystem. The lower 4 bytes of a common
283 common handles are used by multiple processes, unique instance ids must be
288 local tasks spawned by the process and the global task that handles USB bus #1:
299 __aligned_u64 handles[0];
[all …]
/Linux-v6.6/drivers/gpu/drm/radeon/
Dradeon_uvd.c222 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()
535 if (atomic_read(&p->rdev->uvd.handles[i]) == handle) { in radeon_uvd_cs_msg()
550 atomic_cmpxchg(&p->rdev->uvd.handles[i], handle, 0); in radeon_uvd_cs_msg()
850 if (!atomic_read(&rdev->uvd.handles[i])) in radeon_uvd_count_handles()
Dradeon_vce.c166 atomic_set(&rdev->vce.handles[i], 0); in radeon_vce_init()
204 if (atomic_read(&rdev->vce.handles[i])) in radeon_vce_suspend()
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()
679 atomic_cmpxchg(&p->rdev->vce.handles[i], handle, 0); in radeon_vce_cs_parse()
/Linux-v6.6/Documentation/devicetree/bindings/display/ti/
Dti,omap5-dss.txt51 - clocks: handles to fclk and iclk
69 - clocks: handles to fclk and pll clock
92 - clocks: handles to fclk and pll clock
Dti,omap4-dss.txt51 - clocks: handles to fclk and iclk
88 - clocks: handles to fclk and pll clock
111 - clocks: handles to fclk and pll clock
/Linux-v6.6/Documentation/admin-guide/sysctl/
Dfs.rst78 handles that the Linux kernel will allocate. When you get lots
79 of error messages about running out of file handles, you might
82 Historically,the kernel was able to allocate file handles
84 ``file-nr`` denote the number of allocated file handles, the number
85 of allocated but unused file handles, and the maximum number of
86 file handles. Linux 2.6 and later always reports 0 as the number of free
87 file handles -- this is not an error, it just means that the
88 number of allocated file handles exactly matches the number of
89 used file handles.
102 As with file handles, the kernel allocates the inode structures
[all …]
/Linux-v6.6/drivers/platform/x86/
Dsony-laptop.c814 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->devattr.attr.name = "handles"; in sony_nc_handles_setup()
852 handles->devattr.attr.mode = S_IRUGO; in sony_nc_handles_setup()
[all …]
/Linux-v6.6/drivers/gpu/drm/panfrost/
Dpanfrost_drv.c199 u32 *handles; in panfrost_copy_in_sync() local
208 handles = kvmalloc_array(in_fence_count, sizeof(u32), GFP_KERNEL); in panfrost_copy_in_sync()
209 if (!handles) { in panfrost_copy_in_sync()
215 if (copy_from_user(handles, in panfrost_copy_in_sync()
225 handles[i], 0); in panfrost_copy_in_sync()
231 kvfree(handles); in panfrost_copy_in_sync()
/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vce.c191 atomic_set(&adev->vce.handles[i], 0); in amdgpu_vce_sw_init()
269 if (atomic_read(&adev->vce.handles[i])) in amdgpu_vce_suspend()
414 uint32_t handle = atomic_read(&adev->vce.handles[i]); in amdgpu_vce_free_handles()
424 atomic_set(&adev->vce.handles[i], 0); in amdgpu_vce_free_handles()
705 if (atomic_read(&p->adev->vce.handles[i]) == handle) { in amdgpu_vce_validate_handle()
716 if (!atomic_cmpxchg(&p->adev->vce.handles[i], 0, handle)) { in amdgpu_vce_validate_handle()
961 atomic_set(&p->adev->vce.handles[i], 0); in amdgpu_vce_ring_parse_cs()
1053 atomic_set(&p->adev->vce.handles[i], 0); in amdgpu_vce_ring_parse_cs_vm()
Damdgpu_uvd.c338 atomic_set(&adev->uvd.handles[i], 0); in amdgpu_uvd_sw_init()
433 if (atomic_read(&adev->uvd.handles[i])) in amdgpu_uvd_suspend()
521 uint32_t handle = atomic_read(&adev->uvd.handles[i]); in amdgpu_uvd_free_handles()
537 atomic_set(&adev->uvd.handles[i], 0); in amdgpu_uvd_free_handles()
847 if (atomic_read(&adev->uvd.handles[i]) == handle) { in amdgpu_uvd_cs_msg()
853 if (!atomic_cmpxchg(&adev->uvd.handles[i], 0, handle)) { in amdgpu_uvd_cs_msg()
871 if (atomic_read(&adev->uvd.handles[i]) == handle) { in amdgpu_uvd_cs_msg()
886 atomic_cmpxchg(&adev->uvd.handles[i], handle, 0); in amdgpu_uvd_cs_msg()
1371 if (atomic_read(&adev->uvd.handles[i])) in amdgpu_uvd_used_handles()
/Linux-v6.6/Documentation/core-api/
Dentry.rst93 syscall_exit_to_user_mode() handles all work which needs to be done before
95 that it invokes exit_to_user_mode() which again handles the state
168 return true, handles NOHZ tick state and interrupt time accounting. This
172 irq_exit_rcu() handles interrupt time accounting, undoes the preemption
173 count update and eventually handles soft interrupts and NOHZ tick state.
183 before it handles soft interrupts, whose handlers must run in BH context rather
/Linux-v6.6/tools/testing/selftests/tpm2/
Dtpm2.py690 handles = []
705 handles.append(handle)
708 return handles, more_data
711 handles = []
716 handles += next_handles
719 return handles
Dtpm2_tests.py276 handles = space2.get_cap(tpm2.TPM2_CAP_HANDLES, tpm2.HR_TRANSIENT)
278 self.assertEqual(len(handles), 2)
280 log.debug("%08x" % (handles[0]))
281 log.debug("%08x" % (handles[1]))
/Linux-v6.6/Documentation/scsi/
Dufs.rst71 It handles SCSI commands supported by UFS specification.
73 It handles task management functions defined by the
76 It handles device level operations and device
103 UIC is the lowest layer of the UFS layered architecture. It handles
140 Error handling module handles Host controller fatal errors,

12345678910>>...14