Home
last modified time | relevance | path

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

1234567891011

/linux/drivers/gpu/drm/tests/
H A Ddrm_framebuffer_test.c37 .handles = { 1, 0, 0 }, .pitches = { 4 * 600, 0, 0 },
42 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 },
47 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH + 1, 0, 0 },
52 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH - 1, 0, 0 },
57 .handles = { 1, 0, 0 }, .pitches = { 4 * (MAX_WIDTH + 1), 0, 0 },
62 .handles = { 0, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 },
67 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 },
72 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 },
77 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH, 0, 0 },
82 .handles = { 1, 0, 0 }, .offsets = { UINT_MAX - 1, 0, 0 },
[all …]
/linux/drivers/accel/habanalabs/common/
H A 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()
313 idr_init(&mmg->handles); in hl_mem_mgr_init()
360 idp = &mmg->handles; in hl_mem_mgr_fini()
383 if (!idr_is_empty(&mmg->handles)) in hl_mem_mgr_idr_destroy()
386 idr_destroy(&mmg->handles); in hl_mem_mgr_idr_destroy()
H A 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()
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()
423 idr_init(&ctx_mgr->handles); in hl_ctx_mgr_init()
441 idp = &ctx_mgr->handles; in hl_ctx_mgr_fini()
446 idr_destroy(&ctx_mgr->handles); in hl_ctx_mgr_fini()
/linux/drivers/acpi/riscv/
H A Dirq.c345 dep_devices.handles = kzalloc_objs(*dep_devices.handles, in riscv_acpi_add_prt_dep()
347 if (!dep_devices.handles) { in riscv_acpi_add_prt_dep()
352 dep_devices.handles[0] = link_handle; in riscv_acpi_add_prt_dep()
357 dep_devices.handles = kzalloc_objs(*dep_devices.handles, in riscv_acpi_add_prt_dep()
359 if (!dep_devices.handles) { in riscv_acpi_add_prt_dep()
364 dep_devices.handles[0] = gsi_handle; in riscv_acpi_add_prt_dep()
387 dep_devices.handles = kzalloc_objs(*dep_devices.handles, 1); in riscv_acpi_add_irq_dep()
388 if (!dep_devices.handles) { in riscv_acpi_add_irq_dep()
393 dep_devices.handles[0] = gsi_handle; in riscv_acpi_add_irq_dep()
/linux/drivers/gpu/drm/lima/
H A Dlima_ctx.c27 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/drivers/xen/xenbus/
H A Dxenbus_client.c68 grant_handle_t handles[XENBUS_MAX_RING_GRANTS]; member
560 grant_handle_t *handles, in __xenbus_map_ring() argument
573 handles[i] = INVALID_GRANT_HANDLE; in __xenbus_map_ring()
585 handles[i] = info->map[i].handle; in __xenbus_map_ring()
592 if (handles[i] != INVALID_GRANT_HANDLE) { in __xenbus_map_ring()
595 GNTMAP_host_map, handles[i]); in __xenbus_map_ring()
625 static int xenbus_unmap_ring(struct xenbus_device *dev, grant_handle_t *handles, in xenbus_unmap_ring() argument
637 GNTMAP_host_map, handles[i]); in xenbus_unmap_ring()
646 handles[i], unmap[i].status); in xenbus_unmap_ring()
689 err = __xenbus_map_ring(dev, gnt_ref, nr_grefs, node->handles, in xenbus_map_ring_hvm()
[all …]
/linux/drivers/acpi/
H A Dutils.c368 list->handles = kzalloc_objs(*list->handles, list->count); 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/drivers/gpu/drm/armada/
H A Darmada_fb.c104 (mode->handles[0] != mode->handles[1] || in armada_fb_create()
105 mode->handles[0] != mode->handles[2])) { in armada_fb_create()
110 obj = armada_gem_object_lookup(dfile, mode->handles[0]); in armada_fb_create()
/linux/drivers/gpu/drm/
H A Ddrm_framebuffer.c138 r.handles[0] = or->handle; in drm_mode_addfb()
182 if (!r->handles[i]) { in framebuffer_check()
240 if (r->handles[i]) { in framebuffer_check()
616 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl()
617 r->handles[i] = 0; in drm_mode_getfb2_ioctl()
648 r->handles[i] = r->handles[j]; in drm_mode_getfb2_ioctl()
653 if (r->handles[i]) in drm_mode_getfb2_ioctl()
658 &r->handles[i]); in drm_mode_getfb2_ioctl()
662 &r->handles[i]); in drm_mode_getfb2_ioctl()
672 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl()
[all …]
H A Ddrm_syncobj.c1268 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 …]
H A Ddrm_prime.c127 p = &prime_fpriv->handles.rb_node; in drm_prime_add_buf_handle()
139 rb_insert_color(&member->handle_rb, &prime_fpriv->handles); in drm_prime_add_buf_handle()
149 rb = prime_fpriv->handles.rb_node; in drm_prime_lookup_buf_by_handle()
194 rb = prime_fpriv->handles.rb_node; in drm_prime_remove_buf_handle()
200 rb_erase(&member->handle_rb, &prime_fpriv->handles); in drm_prime_remove_buf_handle()
218 prime_fpriv->handles = RB_ROOT; in drm_prime_init_file_private()
/linux/rust/pin-init/examples/
H A Dstatic_init.rs91 let mut handles = vec![]; in main() localVariable
96 handles.push( in main()
118 for h in handles { in main()
H A Dpthread_mutex.rs156 let mut handles = vec![]; in main() localVariable
161 handles.push( in main()
178 for h in handles { in main()
H A Dmutex.rs197 let mut handles = vec![]; in main() localVariable
202 handles.push( in main()
219 for h in handles { in main()
/linux/Documentation/dev-tools/
H A 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/drivers/platform/x86/
H A Dsony-laptop.c812 static struct sony_nc_handles *handles; variable
820 for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { in sony_nc_handles_show()
821 len += sysfs_emit_at(buffer, len, "0x%.4x ", handles->cap[i]); in sony_nc_handles_show()
832 handles = kzalloc_obj(*handles); in sony_nc_handles_setup()
833 if (!handles) in sony_nc_handles_setup()
836 for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { in sony_nc_handles_setup()
843 handles->cap[i] = result; in sony_nc_handles_setup()
848 sysfs_attr_init(&handles->devattr.attr); in sony_nc_handles_setup()
849 handles->devattr.attr.name = "handles"; in sony_nc_handles_setup()
850 handles->devattr.attr.mode = S_IRUGO; in sony_nc_handles_setup()
[all …]
/linux/Documentation/devicetree/bindings/display/ti/
H A 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
H A 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
H A Dti,omap3-dss.txt52 - clocks: handles to fclk and iclk
82 - clocks: handles to fclk and pll clock
/linux/drivers/firmware/efi/libstub/
H A Dgop.c425 static efi_handle_t find_handle_with_primary_gop(unsigned long num, const efi_handle_t handles[], in find_handle_with_primary_gop() argument
434 for_each_efi_handle(h, handles, num) { in find_handle_with_primary_gop()
483 efi_handle_t *handles __free(efi_pool) = NULL; in efi_setup_graphics()
491 &handles); in efi_setup_graphics()
495 handle = find_handle_with_primary_gop(num, handles, &gop); in efi_setup_graphics()
/linux/tools/testing/selftests/tpm2/
H A Dtpm2.py690 handles = []
705 handles.append(handle)
708 return handles, more_data
711 handles = []
716 handles += next_handles
719 return handles
H A 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/Documentation/scsi/
H A 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,
/linux/drivers/char/tpm/
H A Dtpm2-sessions.c317 int offset = buf->handles * 4 + TPM_HEADER_SIZE; in tpm_buf_append_auth()
584 u32 cc, handles, val; in tpm_buf_fill_hmac_session() local
615 handles = (attrs >> TPM2_CC_ATTR_CHANDLES) & GENMASK(2, 0); in tpm_buf_fill_hmac_session()
622 for (i = 0; i < handles; i++) { in tpm_buf_fill_hmac_session()
692 for (i = 0; i < handles; i++) { in tpm_buf_fill_hmac_session()
769 int parm_len, len, i, handles; in tpm_buf_check_hmac_response() local
795 handles = (attrs >> TPM2_CC_ATTR_RHANDLE) & 1; in tpm_buf_check_hmac_response()
798 offset_s = TPM_HEADER_SIZE + handles * 4; in tpm_buf_check_hmac_response()
/linux/drivers/gpu/drm/sti/
H A DNOTES12 - The cursor handles ... a cursor.
15 - DVO (Digital Video Output) handles a 24bits parallel signal

1234567891011