/linux-6.6.21/tools/testing/radix-tree/ |
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-6.6.21/drivers/gpu/drm/ |
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()
|
D | drm_context.c | 84 ret = idr_alloc(&dev->ctx_idr, NULL, DRM_RESERVED_CONTEXTS, 0, in drm_legacy_ctxbitmap_next()
|
/linux-6.6.21/Documentation/translations/zh_CN/core-api/ |
D | idr.rst | 39 您可以调用idr_alloc()来分配一个未使用的ID。通过调用idr_find()查询与该ID相关的指针,
|
/linux-6.6.21/drivers/dca/ |
D | dca-sysfs.c | 43 ret = idr_alloc(&dca_idr, dca, 0, 0, GFP_NOWAIT); in dca_sysfs_add_provider()
|
/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_events.c | 109 id = idr_alloc(&p->event_idr, ev, *restore_id, *restore_id + 1, in allocate_event_notification_slot() 118 id = idr_alloc(&p->event_idr, ev, 0, p->signal_mapped_size / 8, in allocate_event_notification_slot() 222 id = idr_alloc(&p->event_idr, ev, *restore_id, *restore_id + 1, in create_other_event() 230 id = idr_alloc(&p->event_idr, ev, KFD_FIRST_NONSIGNAL_EVENT_ID, in create_other_event() 252 id = idr_alloc(&p->event_idr, NULL, 0, 1, GFP_KERNEL); in kfd_event_init_process()
|
/linux-6.6.21/lib/ |
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-6.6.21/drivers/tee/ |
D | tee_shm.c | 148 id = idr_alloc(&teedev->idr, NULL, 1, 0, GFP_KERNEL); in tee_shm_alloc_user_buf() 317 id = idr_alloc(&teedev->idr, NULL, 1, 0, GFP_KERNEL); in tee_shm_register_user_buf()
|
/linux-6.6.21/drivers/reset/ |
D | reset-ti-sci.c | 201 return idr_alloc(&data->idr, control, 0, 0, GFP_KERNEL); in ti_sci_reset_of_xlate()
|
/linux-6.6.21/drivers/gpu/drm/vgem/ |
D | vgem_fence.c | 172 ret = idr_alloc(&vfile->fence_idr, fence, 1, 0, GFP_KERNEL); in vgem_fence_attach_ioctl()
|
/linux-6.6.21/include/linux/ |
D | idr.h | 114 int idr_alloc(struct idr *, void *ptr, int start, int end, gfp_t);
|
/linux-6.6.21/drivers/accel/habanalabs/common/ |
D | habanalabs_drv.c | 445 main_id = idr_alloc(&hl_devs_idr, hdev, 0, HL_MAX_MINORS, GFP_KERNEL); in create_hdev() 448 ctrl_id = idr_alloc(&hl_devs_idr, hdev, main_id + 1, in create_hdev()
|
D | memory_mgr.c | 160 rc = idr_alloc(&mmg->handles, buf, 1, 0, GFP_ATOMIC); in hl_mmap_mem_buf_alloc()
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/ |
D | tx.c | 149 pid = idr_alloc(&wcid->pktid, skb, MT_PACKET_ID_FIRST, in mt76_tx_status_skb_add() 758 token = idr_alloc(&dev->token, *ptxwi, 0, dev->token_size, GFP_ATOMIC); in mt76_token_consume() 783 token = idr_alloc(&dev->rx_token, t, 0, dev->rx_token_size, in mt76_rx_token_consume()
|
/linux-6.6.21/drivers/misc/ocxl/ |
D | afu_irq.c | 121 irq->id = idr_alloc(&ctx->irq_idr, irq, 0, MAX_IRQ_PER_CONTEXT, in ocxl_afu_irq_alloc()
|
/linux-6.6.21/drivers/accel/ |
D | drm_accel.c | 137 r = idr_alloc(&accel_minors_idr, NULL, 0, ACCEL_MAX_MINORS, GFP_NOWAIT); in accel_minor_alloc()
|
/linux-6.6.21/drivers/gpu/drm/v3d/ |
D | v3d_perfmon.c | 155 ret = idr_alloc(&v3d_priv->perfmon.idr, perfmon, V3D_PERFMONID_MIN, in v3d_perfmon_create_ioctl()
|
/linux-6.6.21/drivers/power/supply/ |
D | bq27xxx_battery_i2c.c | 149 num = idr_alloc(&battery_id, client, 0, 0, GFP_KERNEL); in bq27xxx_battery_i2c_probe()
|
/linux-6.6.21/drivers/tty/ |
D | rpmsg_tty.c | 142 ret = idr_alloc(&tty_idr, cport, 0, MAX_TTY_RPMSG, GFP_KERNEL); in rpmsg_tty_alloc_cport()
|
/linux-6.6.21/drivers/gpu/drm/vc4/ |
D | vc4_perfmon.c | 182 ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN, in vc4_perfmon_create_ioctl()
|
/linux-6.6.21/Documentation/core-api/ |
D | idr.rst | 30 You can call idr_alloc() to allocate an unused ID. Look up
|
/linux-6.6.21/drivers/firmware/arm_scmi/ |
D | driver.c | 227 ret = idr_alloc(&scmi_protocols, (void *)proto, in scmi_protocol_register() 1826 ret = idr_alloc(&info->protocols, pi, proto->id, proto->id + 1, in scmi_alloc_init_protocol_instance() 2315 goto idr_alloc; in scmi_chan_setup() 2357 idr_alloc: in scmi_chan_setup() 2358 ret = idr_alloc(idr, cinfo, prot_id, prot_id + 1, GFP_KERNEL); in scmi_chan_setup() 2793 ret = idr_alloc(&info->active_protocols, child, in scmi_probe()
|
/linux-6.6.21/drivers/misc/cxl/ |
D | context.c | 94 i = idr_alloc(&ctx->afu->contexts_idr, ctx, 0, in cxl_context_init()
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_bo_list.c | 260 r = idr_alloc(&fpriv->bo_list_handles, list, 1, 0, GFP_KERNEL); in amdgpu_bo_list_ioctl()
|
/linux-6.6.21/drivers/gpu/drm/display/ |
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()
|