| /linux-6.15/drivers/staging/media/atomisp/pci/runtime/rmgr/src/ |
| H A D | rmgr_vbuf.c | 135 if (pool->handles) in ia_css_rmgr_init_vbuf() 142 pool->handles = NULL; in ia_css_rmgr_init_vbuf() 161 if (pool->handles) { in ia_css_rmgr_uninit_vbuf() 164 if (pool->handles[i]) { in ia_css_rmgr_uninit_vbuf() 176 kvfree(pool->handles); in ia_css_rmgr_uninit_vbuf() 177 pool->handles = NULL; in ia_css_rmgr_uninit_vbuf() 196 assert(pool->handles); in rmgr_push_handle() 199 if (!pool->handles[i]) { in rmgr_push_handle() 223 assert(pool->handles); in rmgr_pop_handle() 227 if ((pool->handles[i]) && in rmgr_pop_handle() [all …]
|
| /linux-6.15/drivers/gpu/drm/tests/ |
| H A D | drm_framebuffer_test.c | 37 .handles = { 1, 0, 0 }, .pitches = { 4 * 600, 0, 0 }, 42 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 }, 139 .handles = { 1, 0, 0 }, .flags = DRM_MODE_FB_MODIFIERS, 145 .handles = { 1, 1, 0 }, .pitches = { 600, 600, 0 }, 166 .handles = { 1, 1, 0 }, .flags = DRM_MODE_FB_MODIFIERS, 173 .handles = { 1, 1, 0 }, .flags = DRM_MODE_FB_MODIFIERS, 202 .handles = { 1, 1, 1 }, .pitches = { 600, 600, 600 }, 213 .handles = { 1, 1, 1 }, .pitches = { 600, 300, 300 }, 252 .handles = { 1, 1, 1 }, 298 .handles = { 1, 0, 0 }, .pitches = { 1200, 0, 0 } [all …]
|
| /linux-6.15/drivers/acpi/riscv/ |
| H A 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.15/drivers/gpu/drm/lima/ |
| H A 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.15/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); 365 idp = &mmg->handles; 388 if (!idr_is_empty(&mmg->handles)) 391 idr_destroy(&mmg->handles);
|
| 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() 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() 424 idr_init(&ctx_mgr->handles); in hl_ctx_mgr_init() 442 idp = &ctx_mgr->handles; in hl_ctx_mgr_fini() 447 idr_destroy(&ctx_mgr->handles); in hl_ctx_mgr_fini()
|
| /linux-6.15/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()
|
| /linux-6.15/drivers/xen/xenbus/ |
| H A 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() 635 GNTMAP_host_map, handles[i]); in xenbus_unmap_ring() 644 handles[i], unmap[i].status); in xenbus_unmap_ring() 831 unmap[i].handle = node->handles[i]; in xenbus_unmap_ring_pv() 843 node->handles[i], unmap[i].status); in xenbus_unmap_ring_pv() [all …]
|
| /linux-6.15/drivers/acpi/ |
| H A 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() 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() 437 kfree(dst->handles); in acpi_handle_list_replace() 440 dst->handles = src->handles; in acpi_handle_list_replace() 442 src->handles = NULL; in acpi_handle_list_replace() 458 kfree(list->handles); in acpi_handle_list_free() [all …]
|
| /linux-6.15/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_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.15/drivers/gpu/drm/ |
| H A D | drm_framebuffer.c | 138 r.handles[0] = or->handle; in drm_mode_addfb() 192 if (!r->handles[i]) { in framebuffer_check() 250 if (r->handles[i]) { in framebuffer_check() 616 r->handles[i] = 0; in drm_mode_getfb2_ioctl() 647 r->handles[i] = r->handles[j]; in drm_mode_getfb2_ioctl() 652 if (r->handles[i]) in drm_mode_getfb2_ioctl() 657 &r->handles[i]); in drm_mode_getfb2_ioctl() 661 &r->handles[i]); in drm_mode_getfb2_ioctl() 674 if (r->handles[i]) in drm_mode_getfb2_ioctl() 681 if (r->handles[j] == r->handles[i]) in drm_mode_getfb2_ioctl() [all …]
|
| H A D | drm_syncobj.c | 1265 uint32_t i, *handles; in drm_syncobj_array_find() local 1269 handles = kmalloc_array(count_handles, sizeof(*handles), GFP_KERNEL); in drm_syncobj_array_find() 1270 if (handles == NULL) in drm_syncobj_array_find() 1293 kfree(handles); in drm_syncobj_array_find() 1302 kfree(handles); in drm_syncobj_array_find() 1341 u64_to_user_ptr(args->handles), in drm_syncobj_wait_ioctl() 1385 u64_to_user_ptr(args->handles), in drm_syncobj_timeline_wait_ioctl() 1526 u64_to_user_ptr(args->handles), in drm_syncobj_reset_ioctl() 1559 u64_to_user_ptr(args->handles), in drm_syncobj_signal_ioctl() 1597 u64_to_user_ptr(args->handles), in drm_syncobj_timeline_signal_ioctl() [all …]
|
| /linux-6.15/Documentation/dev-tools/ |
| H A 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.15/rust/pin-init/examples/ |
| H A D | static_init.rs | 90 let mut handles = vec![]; in main() localVariable 95 handles.push( in main() 117 for h in handles { in main()
|
| H A D | pthread_mutex.rs | 150 let mut handles = vec![]; in main() localVariable 155 handles.push( in main() 172 for h in handles { in main()
|
| H A D | mutex.rs | 182 let mut handles = vec![]; in main() localVariable 187 handles.push( in main() 204 for h in handles { in main()
|
| /linux-6.15/drivers/gpu/drm/radeon/ |
| H A 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()
|
| 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() 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.15/Documentation/devicetree/bindings/display/ti/ |
| H A 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
|
| H A 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.15/Documentation/devicetree/bindings/display/ |
| H A D | st,stm32mp25-lvds.yaml | 14 The STMicroelectronics STM32 LVDS Display Interface Transmitter handles the 19 - LVDS host: handles the LVDS protocol (FPD / OpenLDI) and maps its input 22 - LVDS wrapper: handles top-level settings
|
| /linux-6.15/drivers/firmware/efi/libstub/ |
| H A D | gop.c | 406 const efi_handle_t handles[]) in find_gop() argument 413 for_each_efi_handle(h, handles, num) { in find_gop() 457 efi_handle_t *handles __free(efi_pool) = NULL; in efi_setup_gop() 466 &handles); in efi_setup_gop() 470 gop = find_gop(num, handles); in efi_setup_gop()
|
| /linux-6.15/drivers/platform/x86/ |
| H A D | sony-laptop.c | 833 handles = kzalloc(sizeof(*handles), GFP_KERNEL); in sony_nc_handles_setup() 834 if (!handles) in sony_nc_handles_setup() 856 kfree(handles); in sony_nc_handles_setup() 857 handles = NULL; in sony_nc_handles_setup() 867 if (handles) { in sony_nc_handles_cleanup() 870 kfree(handles); in sony_nc_handles_cleanup() 871 handles = NULL; in sony_nc_handles_cleanup() 881 if (!handles || !handle) in sony_find_snc_handle() 1296 if (!handles) in sony_nc_function_setup() 1426 if (!handles) in sony_nc_function_cleanup() [all …]
|
| /linux-6.15/Documentation/admin-guide/sysctl/ |
| H A D | fs.rst | 83 handles that the Linux kernel will allocate. When you get lots 84 of error messages about running out of file handles, you might 87 Historically,the kernel was able to allocate file handles 89 ``file-nr`` denote the number of allocated file handles, the number 90 of allocated but unused file handles, and the maximum number of 91 file handles. Linux 2.6 and later always reports 0 as the number of free 92 file handles -- this is not an error, it just means that the 93 number of allocated file handles exactly matches the number of 94 used file handles. 107 As with file handles, the kernel allocates the inode structures [all …]
|
| /linux-6.15/Documentation/devicetree/bindings/platform/ |
| H A D | huawei,gaokun-ec.yaml | 15 while others use a system called PMIC GLink which handles battery, 17 also handles additional features, such as charging thresholds, FN
|