Searched refs:idr_alloc (Results 1 - 25 of 153) sorted by relevance

1234567

/linux-master/tools/testing/radix-tree/
H A Didr-test.c64 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 Ddca-sysfs.c43 ret = idr_alloc(&dca_idr, dca, 0, 0, GFP_NOWAIT);
/linux-master/drivers/reset/
H A Dreset-ti-sci.c201 return idr_alloc(&data->idr, control, 0, 0, GFP_KERNEL);
/linux-master/drivers/gpu/drm/vgem/
H A Dvgem_fence.c172 ret = idr_alloc(&vfile->fence_idr, fence, 1, 0, GFP_KERNEL);
/linux-master/drivers/gpu/drm/
H A Ddrm_lease.c240 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 Dkfd_events.c109 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 Didr.c19 * 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 Dtee_shm.c137 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 Dvc4_perfmon.c182 ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN,
/linux-master/drivers/gpu/drm/v3d/
H A Dv3d_perfmon.c155 ret = idr_alloc(&v3d_priv->perfmon.idr, perfmon, V3D_PERFMONID_MIN,
/linux-master/drivers/accel/habanalabs/common/
H A Dmemory_mgr.c160 rc = idr_alloc(&mmg->handles, buf, 1, 0, GFP_ATOMIC);
H A Dcontext.c165 rc = idr_alloc(&ctx_mgr->handles, ctx, 1, 0, GFP_KERNEL);
/linux-master/drivers/tty/
H A Drpmsg_tty.c142 ret = idr_alloc(&tty_idr, cport, 0, MAX_TTY_RPMSG, GFP_KERNEL);
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_bo_list.c249 r = idr_alloc(&fpriv->bo_list_handles, list, 1, 0, GFP_KERNEL);
/linux-master/include/linux/
H A Didr.h114 int idr_alloc(struct idr *, void *ptr, int start, int end, gfp_t);
/linux-master/drivers/misc/ocxl/
H A Dafu_irq.c121 irq->id = idr_alloc(&ctx->irq_idr, irq, 0, MAX_IRQ_PER_CONTEXT,
H A Dcontext.c19 pasid = idr_alloc(&afu->contexts_idr, ctx, afu->pasid_base,
/linux-master/drivers/accel/
H A Ddrm_accel.c126 * 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 Dsupp.c175 *id = idr_alloc(&supp->idr, req, 1, 0, GFP_KERNEL);
/linux-master/drivers/misc/cxl/
H A Dmain.c202 i = idr_alloc(&cxl_adapter_idr, adapter, 0, 0, GFP_NOWAIT);
H A Dcontext.c94 i = idr_alloc(&ctx->afu->contexts_idr, ctx, 0,
/linux-master/drivers/gpu/drm/display/
H A Ddrm_dp_aux_dev.c86 index = idr_alloc(&aux_idr, aux_dev, 0, DRM_AUX_MINORS, GFP_KERNEL);
/linux-master/drivers/power/supply/
H A Dds2782_battery.c391 ret = idr_alloc(&battery_id, client, 0, 0, GFP_KERNEL);
/linux-master/drivers/gpu/drm/i915/selftests/
H A Di915_perf.c35 oa_config->id = idr_alloc(&perf->metrics_idr, oa_config, 2, 0, GFP_KERNEL);
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_pgt.c33 index = idr_alloc(&mlxsw_sp->pgt->pgt_idr, NULL, 0,

Completed in 486 milliseconds

1234567