Home
last modified time | relevance | path

Searched refs:idr_alloc (Results 1 – 25 of 148) sorted by relevance

123456

/linux/tools/testing/radix-tree/
A Didr-test.c64 idr_alloc(&idr, (void *)-1, 10, 11, GFP_KERNEL); in idr_replace_test()
83 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test()
88 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test()
94 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == i); in idr_null_test()
102 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 5); in idr_null_test()
114 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test()
123 assert(idr_alloc(&idr, NULL, 1, 0, GFP_KERNEL) == i); in idr_null_test()
139 assert(idr_alloc(&idr, item, i, i + 1, GFP_NOWAIT) == i); in idr_nowait_test()
159 assert(idr_alloc(&idr, item, indices[i], indices[i+1], in idr_get_next_test()
263 BUG_ON(idr_alloc(idr, NULL, 0, 0, GFP_KERNEL) != 0); in idr_align_test()
[all …]
/linux/drivers/gpu/drm/
A Ddrm_lease.c240 id = idr_alloc(&(drm_lease_owner(lessor)->lessee_idr), lessee, 1, 0, GFP_KERNEL); in drm_lease_create()
431 ret = idr_alloc(leases, &drm_lease_idr_object , object_id, object_id + 1, GFP_KERNEL); in fill_object_idr()
440 …ret = idr_alloc(leases, &drm_lease_idr_object, crtc->primary->base.id, crtc->primary->base.id + 1,… in fill_object_idr()
447 …ret = idr_alloc(leases, &drm_lease_idr_object, crtc->cursor->base.id, crtc->cursor->base.id + 1, G… in fill_object_idr()
A Ddrm_dp_aux_dev.c86 index = idr_alloc(&aux_idr, aux_dev, 0, DRM_AUX_MINORS, GFP_KERNEL); in alloc_drm_dp_aux_dev()
/linux/drivers/dca/
A Ddca-sysfs.c43 ret = idr_alloc(&dca_idr, dca, 0, 0, GFP_NOWAIT); in dca_sysfs_add_provider()
/linux/drivers/firmware/arm_scmi/
A Ddriver.c1072 ret = idr_alloc(&info->protocols, pi, proto->id, proto->id + 1, in scmi_alloc_init_protocol_instance()
1489 goto idr_alloc; in scmi_chan_setup()
1502 idr_alloc: in scmi_chan_setup()
1503 ret = idr_alloc(idr, cinfo, prot_id, prot_id + 1, GFP_KERNEL); in scmi_chan_setup()
1697 ret = idr_alloc(&scmi_requested_devices, (void *)phead, in scmi_protocol_device_request()
1890 ret = idr_alloc(&info->active_protocols, child, in scmi_probe()
A Dbus.c239 ret = idr_alloc(&scmi_protocols, (void *)proto, in scmi_protocol_register()
/linux/security/apparmor/
A Dsecid.c131 ret = idr_alloc(&aa_secids, label, AA_FIRST_SECID, 0, GFP_ATOMIC); in aa_alloc_secid()
/linux/drivers/tee/
A Dtee_shm.c109 shm->id = idr_alloc(&teedev->idr, shm, 1, 0, GFP_KERNEL); in tee_shm_alloc()
226 shm->id = idr_alloc(&teedev->idr, shm, 1, 0, GFP_KERNEL); in tee_shm_register()
/linux/lib/
A Didr.c79 int idr_alloc(struct idr *idr, void *ptr, int start, int end, gfp_t gfp) in idr_alloc() function
93 EXPORT_SYMBOL_GPL(idr_alloc);
/linux/sound/soc/qcom/qdsp6/
A Dtopology.c47 ret = idr_alloc(&apm->graph_info_idr, info, graph_id, graph_id + 1, GFP_KERNEL); in audioreach_tplg_alloc_graph_info()
97 ret = idr_alloc(&apm->sub_graphs_idr, sg, sub_graph_id, sub_graph_id + 1, GFP_KERNEL); in audioreach_tplg_alloc_sub_graph()
139 ret = idr_alloc(&apm->containers_idr, cont, container_id, container_id + 1, GFP_KERNEL); in audioreach_tplg_alloc_container()
184 ret = idr_alloc(&apm->modules_idr, mod, module_id, module_id + 1, GFP_KERNEL); in audioreach_tplg_alloc_module()
/linux/drivers/misc/habanalabs/common/
A Dhabanalabs_drv.c367 main_id = idr_alloc(&hl_devs_idr, hdev, 0, HL_MAX_MINORS, in create_hdev()
371 ctrl_id = idr_alloc(&hl_devs_idr, hdev, main_id + 1, in create_hdev()
/linux/drivers/reset/
A Dreset-ti-sci.c209 return idr_alloc(&data->idr, control, 0, 0, GFP_KERNEL); in ti_sci_reset_of_xlate()
/linux/drivers/gpu/drm/vgem/
A Dvgem_fence.c171 ret = idr_alloc(&vfile->fence_idr, fence, 1, 0, GFP_KERNEL); in vgem_fence_attach_ioctl()
/linux/include/linux/
A Didr.h114 int idr_alloc(struct idr *, void *ptr, int start, int end, gfp_t);
/linux/drivers/misc/ocxl/
A Dafu_irq.c120 irq->id = idr_alloc(&ctx->irq_idr, irq, 0, MAX_IRQ_PER_CONTEXT, in ocxl_afu_irq_alloc()
A Dcontext.c19 pasid = idr_alloc(&afu->contexts_idr, ctx, afu->pasid_base, in ocxl_context_alloc()
/linux/drivers/gpu/drm/vc4/
A Dvc4_perfmon.c139 ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN, in vc4_perfmon_create_ioctl()
/linux/drivers/gpu/drm/via/
A Dvia_mm.c155 retval = idr_alloc(&dev_priv->object_idr, item, 1, 0, GFP_KERNEL); in via_mem_alloc()
/linux/drivers/tty/
A Drpmsg_tty.c127 ret = idr_alloc(&tty_idr, cport, 0, MAX_TTY_RPMSG, GFP_KERNEL); in rpmsg_tty_alloc_cport()
/linux/drivers/gpu/drm/v3d/
A Dv3d_perfmon.c151 ret = idr_alloc(&v3d_priv->perfmon.idr, perfmon, V3D_PERFMONID_MIN, in v3d_perfmon_create_ioctl()
/linux/drivers/power/supply/
A Dbq27xxx_battery_i2c.c149 num = idr_alloc(&battery_id, client, 0, 0, GFP_KERNEL); in bq27xxx_battery_i2c_probe()
/linux/Documentation/core-api/
A Didr.rst27 You can call idr_alloc() to allocate an unused ID. Look up
/linux/drivers/misc/cxl/
A Dcontext.c94 i = idr_alloc(&ctx->afu->contexts_idr, ctx, 0, in cxl_context_init()
A Dmain.c201 i = idr_alloc(&cxl_adapter_idr, adapter, 0, 0, GFP_NOWAIT); in cxl_alloc_adapter_nr()
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_bo_list.c288 r = idr_alloc(&fpriv->bo_list_handles, list, 1, 0, GFP_KERNEL); in amdgpu_bo_list_ioctl()

Completed in 34 milliseconds

123456