/linux-master/tools/testing/radix-tree/ |
H A D | idr-test.c | 64 idr_alloc(&idr, (void *)-1, 10, 11, GFP_KERNEL); 83 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); 88 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); 94 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == i); 102 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 5); 114 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); 123 assert(idr_alloc(&idr, NULL, 1, 0, GFP_KERNEL) == i); 139 assert(idr_alloc(&idr, item, i, i + 1, GFP_NOWAIT) == i); 159 assert(idr_alloc(&idr, item, indices[i], indices[i+1], 229 BUG_ON(idr_alloc(id [all...] |
/linux-master/drivers/dca/ |
H A D | dca-sysfs.c | 43 ret = idr_alloc(&dca_idr, dca, 0, 0, GFP_NOWAIT);
|
/linux-master/drivers/reset/ |
H A D | reset-ti-sci.c | 201 return idr_alloc(&data->idr, control, 0, 0, GFP_KERNEL);
|
/linux-master/drivers/gpu/drm/vgem/ |
H A D | vgem_fence.c | 172 ret = idr_alloc(&vfile->fence_idr, fence, 1, 0, GFP_KERNEL);
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_lease.c | 240 id = idr_alloc(&(drm_lease_owner(lessor)->lessee_idr), lessee, 1, 0, GFP_KERNEL); 434 ret = idr_alloc(leases, &drm_lease_idr_object , object_id, object_id + 1, GFP_KERNEL); 443 ret = idr_alloc(leases, &drm_lease_idr_object, crtc->primary->base.id, crtc->primary->base.id + 1, GFP_KERNEL); 450 ret = idr_alloc(leases, &drm_lease_idr_object, crtc->cursor->base.id, crtc->cursor->base.id + 1, GFP_KERNEL);
|
/linux-master/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_events.c | 109 id = idr_alloc(&p->event_idr, ev, *restore_id, *restore_id + 1, 118 id = idr_alloc(&p->event_idr, ev, 0, p->signal_mapped_size / 8, 222 id = idr_alloc(&p->event_idr, ev, *restore_id, *restore_id + 1, 227 * warning. idr_alloc treats a negative value as "maximum 230 id = idr_alloc(&p->event_idr, ev, KFD_FIRST_NONSIGNAL_EVENT_ID, 252 id = idr_alloc(&p->event_idr, NULL, 0, 1, GFP_KERNEL);
|
/linux-master/lib/ |
H A D | idr.c | 19 * Note that @max is inclusive whereas the @end parameter to idr_alloc() 60 * idr_alloc() - Allocate an ID. 79 int idr_alloc(struct idr *idr, void *ptr, int start, int end, gfp_t gfp) function 93 EXPORT_SYMBOL_GPL(idr_alloc); variable 190 * idr_for_each() can be called concurrently with idr_alloc() and 284 * idr_alloc() and idr_remove() (as long as the ID being removed is not
|
/linux-master/drivers/tee/ |
H A D | tee_shm.c | 137 id = idr_alloc(&teedev->idr, NULL, 1, 0, GFP_KERNEL); 316 id = idr_alloc(&teedev->idr, NULL, 1, 0, GFP_KERNEL);
|
/linux-master/drivers/gpu/drm/vc4/ |
H A D | vc4_perfmon.c | 182 ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN,
|
/linux-master/drivers/gpu/drm/v3d/ |
H A D | v3d_perfmon.c | 155 ret = idr_alloc(&v3d_priv->perfmon.idr, perfmon, V3D_PERFMONID_MIN,
|
/linux-master/drivers/accel/habanalabs/common/ |
H A D | memory_mgr.c | 160 rc = idr_alloc(&mmg->handles, buf, 1, 0, GFP_ATOMIC);
|
H A D | context.c | 165 rc = idr_alloc(&ctx_mgr->handles, ctx, 1, 0, GFP_KERNEL);
|
/linux-master/drivers/tty/ |
H A D | rpmsg_tty.c | 142 ret = idr_alloc(&tty_idr, cport, 0, MAX_TTY_RPMSG, GFP_KERNEL);
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_bo_list.c | 249 r = idr_alloc(&fpriv->bo_list_handles, list, 1, 0, GFP_KERNEL);
|
/linux-master/include/linux/ |
H A D | idr.h | 114 int idr_alloc(struct idr *, void *ptr, int start, int end, gfp_t);
|
/linux-master/drivers/misc/ocxl/ |
H A D | afu_irq.c | 121 irq->id = idr_alloc(&ctx->irq_idr, irq, 0, MAX_IRQ_PER_CONTEXT,
|
H A D | context.c | 19 pasid = idr_alloc(&afu->contexts_idr, ctx, afu->pasid_base,
|
/linux-master/drivers/accel/ |
H A D | drm_accel.c | 126 * Return: A new id on success or error code in case idr_alloc failed 134 r = idr_alloc(&accel_minors_idr, NULL, 0, ACCEL_MAX_MINORS, GFP_NOWAIT);
|
/linux-master/drivers/tee/optee/ |
H A D | supp.c | 175 *id = idr_alloc(&supp->idr, req, 1, 0, GFP_KERNEL);
|
/linux-master/drivers/misc/cxl/ |
H A D | main.c | 202 i = idr_alloc(&cxl_adapter_idr, adapter, 0, 0, GFP_NOWAIT);
|
H A D | context.c | 94 i = idr_alloc(&ctx->afu->contexts_idr, ctx, 0,
|
/linux-master/drivers/gpu/drm/display/ |
H A D | drm_dp_aux_dev.c | 86 index = idr_alloc(&aux_idr, aux_dev, 0, DRM_AUX_MINORS, GFP_KERNEL);
|
/linux-master/drivers/power/supply/ |
H A D | ds2782_battery.c | 391 ret = idr_alloc(&battery_id, client, 0, 0, GFP_KERNEL);
|
/linux-master/drivers/gpu/drm/i915/selftests/ |
H A D | i915_perf.c | 35 oa_config->id = idr_alloc(&perf->metrics_idr, oa_config, 2, 0, GFP_KERNEL);
|
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_pgt.c | 33 index = idr_alloc(&mlxsw_sp->pgt->pgt_idr, NULL, 0,
|