/linux/tools/testing/radix-tree/ |
H 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() 229 BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != i); in idr_align_test() [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_lease.c | 240 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 D | drm_auth.c | 100 ret = idr_alloc(&file_priv->master->magic_map, file_priv, in drm_getmagic()
|
/linux/Documentation/translations/zh_CN/core-api/ |
H A D | idr.rst | 39 您可以调用idr_alloc()来分配一个未使用的ID。通过调用idr_find()查询与该ID相关的指针,
|
/linux/drivers/dca/ |
H A D | dca-sysfs.c | 45 ret = idr_alloc(&dca_idr, dca, 0, 0, GFP_NOWAIT); in dca_sysfs_add_provider()
|
/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_events.c | 110 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 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);
|
H A D | codetag.c | 193 err = idr_alloc(&cttype->mod_idr, cmod, 0, 0, GFP_KERNEL); in codetag_module_init()
|
/linux/drivers/gpu/drm/vgem/ |
H A D | vgem_fence.c | 172 ret = idr_alloc(&vfile->fence_idr, fence, 1, 0, GFP_KERNEL); in vgem_fence_attach_ioctl()
|
/linux/drivers/reset/ |
H A D | reset-ti-sci.c | 201 return idr_alloc(&data->idr, control, 0, 0, GFP_KERNEL); in ti_sci_reset_of_xlate()
|
/linux/drivers/tee/ |
H A D | tee_shm.c | 138 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 D | idr.h | 114 int idr_alloc(struct idr *, void *ptr, int start, int end, gfp_t);
|
/linux/drivers/misc/ocxl/ |
H A D | afu_irq.c | 121 irq->id = idr_alloc(&ctx->irq_idr, irq, 0, MAX_IRQ_PER_CONTEXT, in ocxl_afu_irq_alloc()
|
H A D | context.c | 19 pasid = idr_alloc(&afu->contexts_idr, ctx, afu->pasid_base, in ocxl_context_alloc()
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | tx.c | 149 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 D | rpmsg_tty.c | 142 ret = idr_alloc(&tty_idr, cport, 0, MAX_TTY_RPMSG, GFP_KERNEL); in rpmsg_tty_alloc_cport()
|
/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_perfmon.c | 187 ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN, in vc4_perfmon_create_ioctl()
|
/linux/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); in amdgpu_bo_list_ioctl()
|
/linux/Documentation/core-api/ |
H A D | idr.rst | 30 You can call idr_alloc() to allocate an unused ID. Look up
|
/linux/drivers/accel/habanalabs/common/ |
H A D | memory_mgr.c | 160 rc = idr_alloc(&mmg->handles, buf, 1, 0, GFP_ATOMIC); in hl_mmap_mem_buf_alloc()
|
/linux/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); in alloc_drm_dp_aux_dev()
|
/linux/drivers/misc/cxl/ |
H A D | context.c | 94 i = idr_alloc(&ctx->afu->contexts_idr, ctx, 0, in cxl_context_init()
|
H A D | main.c | 202 i = idr_alloc(&cxl_adapter_idr, adapter, 0, 0, GFP_NOWAIT); in cxl_alloc_adapter_nr()
|
/linux/drivers/gpu/drm/v3d/ |
H A D | v3d_perfmon.c | 366 ret = idr_alloc(&v3d_priv->perfmon.idr, perfmon, V3D_PERFMONID_MIN, in v3d_perfmon_create_ioctl()
|
/linux/drivers/tee/optee/ |
H A D | supp.c | 175 *id = idr_alloc(&supp->idr, req, 1, 0, GFP_KERNEL); in supp_pop_entry()
|