/linux/tools/testing/radix-tree/ |
A D | idr-test.c | 64 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 D | drm_lease.c | 240 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 D | drm_dp_aux_dev.c | 86 index = idr_alloc(&aux_idr, aux_dev, 0, DRM_AUX_MINORS, GFP_KERNEL); in alloc_drm_dp_aux_dev()
|
/linux/drivers/dca/ |
A D | dca-sysfs.c | 43 ret = idr_alloc(&dca_idr, dca, 0, 0, GFP_NOWAIT); in dca_sysfs_add_provider()
|
/linux/drivers/firmware/arm_scmi/ |
A D | driver.c | 1072 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 D | bus.c | 239 ret = idr_alloc(&scmi_protocols, (void *)proto, in scmi_protocol_register()
|
/linux/security/apparmor/ |
A D | secid.c | 131 ret = idr_alloc(&aa_secids, label, AA_FIRST_SECID, 0, GFP_ATOMIC); in aa_alloc_secid()
|
/linux/drivers/tee/ |
A D | tee_shm.c | 109 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 D | idr.c | 79 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 D | topology.c | 47 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 D | habanalabs_drv.c | 367 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 D | reset-ti-sci.c | 209 return idr_alloc(&data->idr, control, 0, 0, GFP_KERNEL); in ti_sci_reset_of_xlate()
|
/linux/drivers/gpu/drm/vgem/ |
A D | vgem_fence.c | 171 ret = idr_alloc(&vfile->fence_idr, fence, 1, 0, GFP_KERNEL); in vgem_fence_attach_ioctl()
|
/linux/include/linux/ |
A D | idr.h | 114 int idr_alloc(struct idr *, void *ptr, int start, int end, gfp_t);
|
/linux/drivers/misc/ocxl/ |
A D | afu_irq.c | 120 irq->id = idr_alloc(&ctx->irq_idr, irq, 0, MAX_IRQ_PER_CONTEXT, in ocxl_afu_irq_alloc()
|
A D | context.c | 19 pasid = idr_alloc(&afu->contexts_idr, ctx, afu->pasid_base, in ocxl_context_alloc()
|
/linux/drivers/gpu/drm/vc4/ |
A D | vc4_perfmon.c | 139 ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN, in vc4_perfmon_create_ioctl()
|
/linux/drivers/gpu/drm/via/ |
A D | via_mm.c | 155 retval = idr_alloc(&dev_priv->object_idr, item, 1, 0, GFP_KERNEL); in via_mem_alloc()
|
/linux/drivers/tty/ |
A D | rpmsg_tty.c | 127 ret = idr_alloc(&tty_idr, cport, 0, MAX_TTY_RPMSG, GFP_KERNEL); in rpmsg_tty_alloc_cport()
|
/linux/drivers/gpu/drm/v3d/ |
A D | v3d_perfmon.c | 151 ret = idr_alloc(&v3d_priv->perfmon.idr, perfmon, V3D_PERFMONID_MIN, in v3d_perfmon_create_ioctl()
|
/linux/drivers/power/supply/ |
A D | bq27xxx_battery_i2c.c | 149 num = idr_alloc(&battery_id, client, 0, 0, GFP_KERNEL); in bq27xxx_battery_i2c_probe()
|
/linux/Documentation/core-api/ |
A D | idr.rst | 27 You can call idr_alloc() to allocate an unused ID. Look up
|
/linux/drivers/misc/cxl/ |
A D | context.c | 94 i = idr_alloc(&ctx->afu->contexts_idr, ctx, 0, in cxl_context_init()
|
A D | main.c | 201 i = idr_alloc(&cxl_adapter_idr, adapter, 0, 0, GFP_NOWAIT); in cxl_alloc_adapter_nr()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_bo_list.c | 288 r = idr_alloc(&fpriv->bo_list_handles, list, 1, 0, GFP_KERNEL); in amdgpu_bo_list_ioctl()
|