Home
last modified time | relevance | path

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

123456

/linux/tools/testing/radix-tree/
H 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()
229 BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != i); in idr_align_test()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_lease.c240 id = idr_alloc(&(drm_lease_owner(lessor)->lessee_idr), lessee, 1, 0, GFP_KERNEL); in drm_lease_create()
434 ret = idr_alloc(leases, &drm_lease_idr_object , object_id, object_id + 1, GFP_KERNEL); in fill_object_idr()
443 …ret = idr_alloc(leases, &drm_lease_idr_object, crtc->primary->base.id, crtc->primary->base.id + 1,… in fill_object_idr()
450 …ret = idr_alloc(leases, &drm_lease_idr_object, crtc->cursor->base.id, crtc->cursor->base.id + 1, G… in fill_object_idr()
H A Ddrm_auth.c100 ret = idr_alloc(&file_priv->master->magic_map, file_priv, in drm_getmagic()
/linux/Documentation/translations/zh_CN/core-api/
H A Didr.rst39 您可以调用idr_alloc()来分配一个未使用的ID。通过调用idr_find()查询与该ID相关的指针,
/linux/drivers/dca/
H A Ddca-sysfs.c45 ret = idr_alloc(&dca_idr, dca, 0, 0, GFP_NOWAIT); in dca_sysfs_add_provider()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_events.c110 id = idr_alloc(&p->event_idr, ev, *restore_id, *restore_id + 1, in allocate_event_notification_slot()
119 id = idr_alloc(&p->event_idr, ev, 0, p->signal_mapped_size / 8, in allocate_event_notification_slot()
223 id = idr_alloc(&p->event_idr, ev, *restore_id, *restore_id + 1, in create_other_event()
231 id = idr_alloc(&p->event_idr, ev, KFD_FIRST_NONSIGNAL_EVENT_ID, in create_other_event()
253 id = idr_alloc(&p->event_idr, NULL, 0, 1, GFP_KERNEL); in kfd_event_init_process()
/linux/lib/
H 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);
H A Dcodetag.c193 err = idr_alloc(&cttype->mod_idr, cmod, 0, 0, GFP_KERNEL); in codetag_module_init()
/linux/drivers/gpu/drm/vgem/
H A Dvgem_fence.c172 ret = idr_alloc(&vfile->fence_idr, fence, 1, 0, GFP_KERNEL); in vgem_fence_attach_ioctl()
/linux/drivers/reset/
H A Dreset-ti-sci.c201 return idr_alloc(&data->idr, control, 0, 0, GFP_KERNEL); in ti_sci_reset_of_xlate()
/linux/drivers/tee/
H A Dtee_shm.c138 id = idr_alloc(&teedev->idr, NULL, 1, 0, GFP_KERNEL); in tee_shm_alloc_user_buf()
381 id = idr_alloc(&teedev->idr, NULL, 1, 0, GFP_KERNEL); in tee_shm_register_user_buf()
/linux/include/linux/
H A Didr.h114 int idr_alloc(struct idr *, void *ptr, int start, int end, gfp_t);
/linux/drivers/misc/ocxl/
H A Dafu_irq.c121 irq->id = idr_alloc(&ctx->irq_idr, irq, 0, MAX_IRQ_PER_CONTEXT, in ocxl_afu_irq_alloc()
H A Dcontext.c19 pasid = idr_alloc(&afu->contexts_idr, ctx, afu->pasid_base, in ocxl_context_alloc()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dtx.c149 pid = idr_alloc(&wcid->pktid, skb, MT_PACKET_ID_FIRST, in mt76_tx_status_skb_add()
844 token = idr_alloc(&dev->token, *ptxwi, 0, dev->token_size, GFP_ATOMIC); in mt76_token_consume()
869 token = idr_alloc(&dev->rx_token, t, 0, dev->rx_token_size, in mt76_rx_token_consume()
/linux/drivers/tty/
H A Drpmsg_tty.c142 ret = idr_alloc(&tty_idr, cport, 0, MAX_TTY_RPMSG, GFP_KERNEL); in rpmsg_tty_alloc_cport()
/linux/drivers/gpu/drm/vc4/
H A Dvc4_perfmon.c187 ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN, in vc4_perfmon_create_ioctl()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_bo_list.c249 r = idr_alloc(&fpriv->bo_list_handles, list, 1, 0, GFP_KERNEL); in amdgpu_bo_list_ioctl()
/linux/Documentation/core-api/
H A Didr.rst30 You can call idr_alloc() to allocate an unused ID. Look up
/linux/drivers/accel/habanalabs/common/
H A Dmemory_mgr.c160 rc = idr_alloc(&mmg->handles, buf, 1, 0, GFP_ATOMIC); in hl_mmap_mem_buf_alloc()
/linux/drivers/gpu/drm/display/
H 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/misc/cxl/
H A Dcontext.c94 i = idr_alloc(&ctx->afu->contexts_idr, ctx, 0, in cxl_context_init()
H A Dmain.c202 i = idr_alloc(&cxl_adapter_idr, adapter, 0, 0, GFP_NOWAIT); in cxl_alloc_adapter_nr()
/linux/drivers/gpu/drm/v3d/
H A Dv3d_perfmon.c366 ret = idr_alloc(&v3d_priv->perfmon.idr, perfmon, V3D_PERFMONID_MIN, in v3d_perfmon_create_ioctl()
/linux/drivers/tee/optee/
H A Dsupp.c175 *id = idr_alloc(&supp->idr, req, 1, 0, GFP_KERNEL); in supp_pop_entry()

123456