Home
last modified time | relevance | path

Searched refs:idr (Results 1 – 25 of 94) sorted by relevance

1234

/drivers/reset/
Dreset-ti-sci.c48 struct idr idr; member
80 control = idr_find(&data->idr, id); in ti_sci_reset_set()
161 control = idr_find(&data->idr, id); in ti_sci_reset_status()
209 return idr_alloc(&data->idr, control, 0, 0, GFP_KERNEL); in ti_sci_reset_of_xlate()
239 idr_init(&data->idr); in ti_sci_reset_probe()
252 idr_destroy(&data->idr); in ti_sci_reset_remove()
/drivers/gpu/drm/vc4/
Dvc4_perfmon.c70 perfmon = idr_find(&vc4file->perfmon.idr, id); in vc4_perfmon_find()
80 idr_init_base(&vc4file->perfmon.idr, VC4_PERFMONID_MIN); in vc4_perfmon_open_file()
95 idr_for_each(&vc4file->perfmon.idr, vc4_perfmon_idr_del, NULL); in vc4_perfmon_close_file()
96 idr_destroy(&vc4file->perfmon.idr); in vc4_perfmon_close_file()
139 ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN, in vc4_perfmon_create_ioctl()
166 perfmon = idr_remove(&vc4file->perfmon.idr, req->id); in vc4_perfmon_destroy_ioctl()
191 perfmon = idr_find(&vc4file->perfmon.idr, req->id); in vc4_perfmon_get_values_ioctl()
/drivers/gpu/drm/v3d/
Dv3d_perfmon.c88 perfmon = idr_find(&v3d_priv->perfmon.idr, id); in v3d_perfmon_find()
98 idr_init(&v3d_priv->perfmon.idr); in v3d_perfmon_open_file()
113 idr_for_each(&v3d_priv->perfmon.idr, v3d_perfmon_idr_del, NULL); in v3d_perfmon_close_file()
114 idr_destroy(&v3d_priv->perfmon.idr); in v3d_perfmon_close_file()
152 ret = idr_alloc(&v3d_priv->perfmon.idr, perfmon, V3D_PERFMONID_MIN, in v3d_perfmon_create_ioctl()
174 perfmon = idr_remove(&v3d_priv->perfmon.idr, req->id); in v3d_perfmon_destroy_ioctl()
198 perfmon = idr_find(&v3d_priv->perfmon.idr, req->id); in v3d_perfmon_get_values_ioctl()
/drivers/tee/optee/
Dsupp.c27 idr_init(&supp->idr); in optee_supp_init()
35 idr_destroy(&supp->idr); in optee_supp_uninit()
47 idr_for_each_entry(&supp->idr, req, id) { in optee_supp_release()
48 idr_remove(&supp->idr, id); in optee_supp_release()
175 *id = idr_alloc(&supp->idr, req, 1, 0, GFP_KERNEL); in supp_pop_entry()
315 req = idr_find(&supp->idr, id); in supp_pop_req()
322 idr_remove(&supp->idr, id); in supp_pop_req()
Doptee_private.h65 struct idr idr; member
/drivers/infiniband/core/
Drdma_core.c303 return xa_alloc(&uobj->ufile->idr, &uobj->id, NULL, xa_limit_32b, in idr_add_uobj()
325 uobj = xa_load(&ufile->idr, id); in lookup_get_idr_uobject()
446 xa_erase(&attrs->ufile->idr, uobj->id); in alloc_begin_idr_uobject()
528 xa_erase(&uobj->ufile->idr, uobj->id); in alloc_abort_idr_uobject()
554 xa_erase(&uobj->ufile->idr, uobj->id); in remove_handle_idr_uobject()
594 old = xa_store(&ufile->idr, uobj->id, uobj, GFP_KERNEL); in alloc_commit_idr_uobject()
608 old = xa_cmpxchg(&ufile->idr, obj_old->id, obj_old, XA_ZERO_ENTRY, in swap_idr_uobjects()
615 old = xa_cmpxchg(&ufile->idr, obj_old->id, NULL, obj_old, GFP_KERNEL); in swap_idr_uobjects()
768 xa_init_flags(&ufile->idr, XA_FLAGS_ALLOC); in setup_ufile_idr_uobject()
784 xa_for_each(&ufile->idr, id, entry) { in release_ufile_idr_uobject()
[all …]
/drivers/firmware/arm_scmi/
Ddriver.c145 struct idr tx_idr;
146 struct idr rx_idr;
147 struct idr protocols;
151 struct idr active_protocols;
1477 struct idr *idr; in scmi_chan_setup() local
1481 idr = tx ? &info->tx_idr : &info->rx_idr; in scmi_chan_setup()
1484 cinfo = idr_find(idr, prot_id); in scmi_chan_setup()
1489 cinfo = idr_find(idr, SCMI_PROTOCOL_BASE); in scmi_chan_setup()
1506 ret = idr_alloc(idr, cinfo, prot_id, prot_id + 1, GFP_KERNEL); in scmi_chan_setup()
1806 struct idr *idr = &info->tx_idr; in scmi_cleanup_txrx_channels() local
[all …]
/drivers/gpu/drm/vmwgfx/
Dttm_object.c97 struct idr idr; member
177 ret = idr_alloc(&tdev->idr, base, 1, 0, GFP_NOWAIT); in ttm_base_object_init()
193 idr_remove(&tdev->idr, base->handle); in ttm_base_object_init()
205 idr_remove(&tdev->idr, base->handle); in ttm_release_base()
290 base = idr_find(&tdev->idr, key); in ttm_base_object_lookup_for_ref()
543 idr_init_base(&tdev->idr, 1); in ttm_object_device_init()
562 WARN_ON_ONCE(!idr_is_empty(&tdev->idr)); in ttm_object_device_release()
563 idr_destroy(&tdev->idr); in ttm_object_device_release()
Dvmwgfx_resource.c102 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release_id() local
106 idr_remove(idr, res->id); in vmw_resource_release_id()
118 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release() local
161 idr_remove(idr, id); in vmw_resource_release()
186 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_alloc_id() local
193 ret = idr_alloc(idr, res, 1, 0, GFP_NOWAIT); in vmw_resource_alloc_id()
/drivers/tee/
Dtee_private.h57 struct idr idr; member
Dtee_shm.c110 shm->id = idr_alloc(&teedev->idr, shm, 1, 0, GFP_KERNEL); in tee_shm_alloc()
227 shm->id = idr_alloc(&teedev->idr, shm, 1, 0, GFP_KERNEL); in tee_shm_register()
247 idr_remove(&teedev->idr, shm->id); in tee_shm_register()
420 shm = idr_find(&teedev->idr, id); in tee_shm_get_from_id()
453 idr_remove(&teedev->idr, shm->id); in tee_shm_put()
/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dtls.h48 struct idr tx_idr;
49 struct idr rx_idr;
Dtls.c129 static int mlx5_fpga_tls_alloc_swid(struct idr *idr, spinlock_t *idr_spinlock, in mlx5_fpga_tls_alloc_swid() argument
144 ret = idr_alloc(idr, ptr, SWID_START, SWID_END, GFP_ATOMIC); in mlx5_fpga_tls_alloc_swid()
151 static void *mlx5_fpga_tls_release_swid(struct idr *idr, in mlx5_fpga_tls_release_swid() argument
158 ptr = idr_remove(idr, swid); in mlx5_fpga_tls_release_swid()
/drivers/scsi/cxlflash/
Docxl_hw.h39 struct idr idr; /* IDR to manage contexts */ member
/drivers/powercap/
Dpowercap_sys.c397 idr_destroy(&power_zone->idr); in powercap_release()
411 idr_destroy(&control_type->idr); in powercap_release()
513 power_zone->parent_idr = &control_type->idr; in powercap_register_zone()
516 power_zone->parent_idr = &parent->idr; in powercap_register_zone()
527 idr_init(&power_zone->idr); in powercap_register_zone()
633 idr_init(&control_type->idr); in powercap_register_control_type()
/drivers/misc/ocxl/
Docxl_internal.h48 struct idr contexts_idr;
81 struct idr irq_idr;
/drivers/char/ipmi/
Dkcs_bmc_aspeed.c490 { .idr = LPC_IDR1, .odr = LPC_ODR1, .str = LPC_STR1 },
491 { .idr = LPC_IDR2, .odr = LPC_ODR2, .str = LPC_STR2 },
492 { .idr = LPC_IDR3, .odr = LPC_ODR3, .str = LPC_STR3 },
493 { .idr = LPC_IDR4, .odr = LPC_ODR4, .str = LPC_STR4 },
540 ioreg.idr = be32_to_cpup(reg); in aspeed_kcs_of_v2_get_channel()
Dkcs_bmc.h24 u32 idr; member
Dkcs_bmc_npcm7xx.c194 kcs_bmc->ioreg.idr = priv->reg->dib; in npcm7xx_kcs_probe()
216 kcs_bmc->ioreg.idr, kcs_bmc->ioreg.odr, kcs_bmc->ioreg.str); in npcm7xx_kcs_probe()
/drivers/gpu/drm/
Ddrm_lease.c207 static struct drm_master *drm_lease_create(struct drm_master *lessor, struct idr *leases) in drm_lease_create()
377 struct idr *leases, in fill_object_idr()
479 struct idr leases; in drm_mode_create_lease_ioctl()
643 struct idr *object_idr; in drm_mode_get_lease_ioctl()
/drivers/hwtracing/coresight/
Dcoresight-tmc.h210 struct idr idr; member
/drivers/gpu/drm/vgem/
Dvgem_drv.h38 struct idr fence_idr;
/drivers/gpu/drm/sis/
Dsis_drv.h65 struct idr object_idr;
/drivers/net/ethernet/intel/ice/
Dice_virtchnl_fdir.h33 struct idr fdir_rule_idr;
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ctx.c596 struct idr *idp; in amdgpu_ctx_mgr_entity_flush()
622 struct idr *idp; in amdgpu_ctx_mgr_entity_fini()
650 struct idr *idp; in amdgpu_ctx_mgr_fini()
708 struct idr *idp; in amdgpu_ctx_mgr_fence_usage()

1234