/linux-6.12.1/drivers/gpu/drm/tests/ |
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 = { 1, 0, 0 }, .offsets = { UINT_MAX - 1, 0, 0 }, [all …]
|
/linux-6.12.1/drivers/staging/media/atomisp/pci/runtime/rmgr/src/ |
D | rmgr_vbuf.c | 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[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-6.12.1/drivers/acpi/riscv/ |
D | irq.c | 276 dep_devices.handles = kcalloc(1, sizeof(*dep_devices.handles), GFP_KERNEL); in riscv_acpi_add_prt_dep() 277 if (!dep_devices.handles) { in riscv_acpi_add_prt_dep() 282 dep_devices.handles[0] = link_handle; in riscv_acpi_add_prt_dep() 287 dep_devices.handles = kcalloc(1, sizeof(*dep_devices.handles), GFP_KERNEL); in riscv_acpi_add_prt_dep() 288 if (!dep_devices.handles) { in riscv_acpi_add_prt_dep() 293 dep_devices.handles[0] = gsi_handle; in riscv_acpi_add_prt_dep() 316 dep_devices.handles = kcalloc(1, sizeof(*dep_devices.handles), GFP_KERNEL); in riscv_acpi_add_irq_dep() 317 if (!dep_devices.handles) { in riscv_acpi_add_irq_dep() 322 dep_devices.handles[0] = gsi_handle; in riscv_acpi_add_irq_dep()
|
/linux-6.12.1/drivers/gpu/drm/lima/ |
D | lima_ctx.c | 27 err = xa_alloc(&mgr->handles, id, ctx, xa_limit_32b, GFP_KERNEL); in lima_ctx_create() 59 ctx = xa_erase(&mgr->handles, id); in lima_ctx_free() 73 ctx = xa_load(&mgr->handles, id); in lima_ctx_get() 88 xa_init_flags(&mgr->handles, XA_FLAGS_ALLOC); in lima_ctx_mgr_init() 96 xa_for_each(&mgr->handles, id, ctx) { in lima_ctx_mgr_fini() 100 xa_destroy(&mgr->handles); in lima_ctx_mgr_fini()
|
/linux-6.12.1/drivers/accel/habanalabs/common/ |
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); 365 idp = &mmg->handles; 388 if (!idr_is_empty(&mmg->handles)) 391 idr_destroy(&mmg->handles);
|
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() 78 idr_destroy(&mgr->handles); in hl_encaps_sig_mgr_fini() 165 rc = idr_alloc(&ctx_mgr->handles, ctx, 1, 0, GFP_KERNEL); in hl_ctx_create() 192 idr_remove(&ctx_mgr->handles, ctx->handle); in hl_ctx_create() 425 idr_init(&ctx_mgr->handles); in hl_ctx_mgr_init() 443 idp = &ctx_mgr->handles; in hl_ctx_mgr_fini() 448 idr_destroy(&ctx_mgr->handles); in hl_ctx_mgr_fini()
|
/linux-6.12.1/drivers/gpu/drm/armada/ |
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()
|
/linux-6.12.1/drivers/xen/xenbus/ |
D | xenbus_client.c | 68 grant_handle_t handles[XENBUS_MAX_RING_GRANTS]; member 558 grant_handle_t *handles, in __xenbus_map_ring() argument 571 handles[i] = INVALID_GRANT_HANDLE; in __xenbus_map_ring() 583 handles[i] = info->map[i].handle; in __xenbus_map_ring() 590 if (handles[i] != INVALID_GRANT_HANDLE) { in __xenbus_map_ring() 593 GNTMAP_host_map, handles[i]); in __xenbus_map_ring() 623 static int xenbus_unmap_ring(struct xenbus_device *dev, grant_handle_t *handles, in xenbus_unmap_ring() argument 635 GNTMAP_host_map, handles[i]); in xenbus_unmap_ring() 644 handles[i], unmap[i].status); in xenbus_unmap_ring() 687 err = __xenbus_map_ring(dev, gnt_ref, nr_grefs, node->handles, in xenbus_map_ring_hvm() [all …]
|
/linux-6.12.1/drivers/acpi/ |
D | utils.c | 368 list->handles = kcalloc(list->count, sizeof(*list->handles), GFP_KERNEL); in acpi_evaluate_reference() 369 if (!list->handles) in acpi_evaluate_reference() 383 list->handles[i] = element->reference.handle; in acpi_evaluate_reference() 384 acpi_handle_debug(list->handles[i], "Found in reference list\n"); in acpi_evaluate_reference() 395 kfree(list->handles); in acpi_evaluate_reference() 396 list->handles = NULL; in acpi_evaluate_reference() 420 !memcmp(list1->handles, list2->handles, in acpi_handle_list_equal() 421 list1->count * sizeof(*list1->handles)); in acpi_handle_list_equal() 437 kfree(dst->handles); in acpi_handle_list_replace() 440 dst->handles = src->handles; in acpi_handle_list_replace() [all …]
|
/linux-6.12.1/drivers/infiniband/core/ |
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_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-6.12.1/drivers/gpu/drm/ |
D | drm_framebuffer.c | 137 r.handles[0] = or->handle; in drm_mode_addfb() 191 if (!r->handles[i]) { in framebuffer_check() 249 if (r->handles[i]) { in framebuffer_check() 614 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl() 615 r->handles[i] = 0; in drm_mode_getfb2_ioctl() 646 r->handles[i] = r->handles[j]; in drm_mode_getfb2_ioctl() 651 if (r->handles[i]) in drm_mode_getfb2_ioctl() 656 &r->handles[i]); in drm_mode_getfb2_ioctl() 660 &r->handles[i]); in drm_mode_getfb2_ioctl() 670 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl() [all …]
|
D | drm_syncobj.c | 1268 uint32_t i, *handles; in drm_syncobj_array_find() local 1272 handles = kmalloc_array(count_handles, sizeof(*handles), GFP_KERNEL); in drm_syncobj_array_find() 1273 if (handles == NULL) in drm_syncobj_array_find() 1276 if (copy_from_user(handles, user_handles, in drm_syncobj_array_find() 1289 syncobjs[i] = drm_syncobj_find(file_private, handles[i]); in drm_syncobj_array_find() 1296 kfree(handles); in drm_syncobj_array_find() 1305 kfree(handles); in drm_syncobj_array_find() 1344 u64_to_user_ptr(args->handles), in drm_syncobj_wait_ioctl() 1388 u64_to_user_ptr(args->handles), in drm_syncobj_timeline_wait_ioctl() 1529 u64_to_user_ptr(args->handles), in drm_syncobj_reset_ioctl() [all …]
|
D | drm_prime.c | 126 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-6.12.1/Documentation/dev-tools/ |
D | kcov.rst | 236 ``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-6.12.1/drivers/gpu/drm/radeon/ |
D | radeon_uvd.c | 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() 333 uint32_t handle = atomic_read(&rdev->uvd.handles[i]); in radeon_uvd_free_handles() 350 atomic_set(&rdev->uvd.handles[i], 0); in radeon_uvd_free_handles() 508 if (atomic_read(&p->rdev->uvd.handles[i]) == handle) { in radeon_uvd_cs_msg() 513 if (!atomic_cmpxchg(&p->rdev->uvd.handles[i], 0, handle)) { in radeon_uvd_cs_msg() 534 if (atomic_read(&p->rdev->uvd.handles[i]) == handle) { in radeon_uvd_cs_msg() 549 atomic_cmpxchg(&p->rdev->uvd.handles[i], handle, 0); in radeon_uvd_cs_msg() 849 if (!atomic_read(&rdev->uvd.handles[i])) in radeon_uvd_count_handles()
|
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() 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-6.12.1/Documentation/admin-guide/sysctl/ |
D | fs.rst | 78 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-6.12.1/Documentation/devicetree/bindings/display/ti/ |
D | ti,omap5-dss.txt | 51 - clocks: handles to fclk and iclk 69 - clocks: handles to fclk and pll clock 92 - clocks: handles to fclk and pll clock
|
D | ti,omap4-dss.txt | 51 - clocks: handles to fclk and iclk 88 - clocks: handles to fclk and pll clock 111 - clocks: handles to fclk and pll clock
|
/linux-6.12.1/drivers/platform/x86/ |
D | sony-laptop.c | 813 static struct sony_nc_handles *handles; variable 821 for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { in sony_nc_handles_show() 822 len += sysfs_emit_at(buffer, len, "0x%.4x ", handles->cap[i]); in sony_nc_handles_show() 833 handles = kzalloc(sizeof(*handles), GFP_KERNEL); in sony_nc_handles_setup() 834 if (!handles) in sony_nc_handles_setup() 837 for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { in sony_nc_handles_setup() 844 handles->cap[i] = result; in sony_nc_handles_setup() 849 sysfs_attr_init(&handles->devattr.attr); in sony_nc_handles_setup() 850 handles->devattr.attr.name = "handles"; in sony_nc_handles_setup() 851 handles->devattr.attr.mode = S_IRUGO; in sony_nc_handles_setup() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vce.c | 191 atomic_set(&adev->vce.handles[i], 0); in amdgpu_vce_sw_init() 270 if (atomic_read(&adev->vce.handles[i])) in amdgpu_vce_suspend() 415 uint32_t handle = atomic_read(&adev->vce.handles[i]); in amdgpu_vce_free_handles() 425 atomic_set(&adev->vce.handles[i], 0); in amdgpu_vce_free_handles() 706 if (atomic_read(&p->adev->vce.handles[i]) == handle) { in amdgpu_vce_validate_handle() 717 if (!atomic_cmpxchg(&p->adev->vce.handles[i], 0, handle)) { in amdgpu_vce_validate_handle() 962 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()
|
D | amdgpu_uvd.c | 338 atomic_set(&adev->uvd.handles[i], 0); in amdgpu_uvd_sw_init() 433 if (atomic_read(&adev->uvd.handles[i])) in amdgpu_uvd_prepare_suspend() 526 uint32_t handle = atomic_read(&adev->uvd.handles[i]); in amdgpu_uvd_free_handles() 542 atomic_set(&adev->uvd.handles[i], 0); in amdgpu_uvd_free_handles() 852 if (atomic_read(&adev->uvd.handles[i]) == handle) { in amdgpu_uvd_cs_msg() 858 if (!atomic_cmpxchg(&adev->uvd.handles[i], 0, handle)) { in amdgpu_uvd_cs_msg() 876 if (atomic_read(&adev->uvd.handles[i]) == handle) { in amdgpu_uvd_cs_msg() 891 atomic_cmpxchg(&adev->uvd.handles[i], handle, 0); in amdgpu_uvd_cs_msg() 1375 if (atomic_read(&adev->uvd.handles[i])) in amdgpu_uvd_used_handles()
|
/linux-6.12.1/Documentation/core-api/ |
D | entry.rst | 93 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-6.12.1/tools/testing/selftests/tpm2/ |
D | tpm2.py | 690 handles = [] 705 handles.append(handle) 708 return handles, more_data 711 handles = [] 716 handles += next_handles 719 return handles
|
D | tpm2_tests.py | 276 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]))
|