/drivers/reset/ |
D | reset-ti-sci.c | 40 struct idr idr; member 72 control = idr_find(&data->idr, id); in ti_sci_reset_set() 153 control = idr_find(&data->idr, id); in ti_sci_reset_status() 201 return idr_alloc(&data->idr, control, 0, 0, GFP_KERNEL); in ti_sci_reset_of_xlate() 231 idr_init(&data->idr); in ti_sci_reset_probe() 244 idr_destroy(&data->idr); in ti_sci_reset_remove()
|
/drivers/gpu/drm/v3d/ |
D | v3d_perfmon.c | 88 perfmon = idr_find(&v3d_priv->perfmon.idr, id); in v3d_perfmon_find() 98 idr_init_base(&v3d_priv->perfmon.idr, 1); 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/gpu/drm/vc4/ |
D | vc4_perfmon.c | 97 perfmon = idr_find(&vc4file->perfmon.idr, id); in vc4_perfmon_find() 112 idr_init_base(&vc4file->perfmon.idr, VC4_PERFMONID_MIN); in vc4_perfmon_open_file() 133 idr_for_each(&vc4file->perfmon.idr, vc4_perfmon_idr_del, NULL); in vc4_perfmon_close_file() 134 idr_destroy(&vc4file->perfmon.idr); in vc4_perfmon_close_file() 182 ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN, in vc4_perfmon_create_ioctl() 212 perfmon = idr_remove(&vc4file->perfmon.idr, req->id); in vc4_perfmon_destroy_ioctl() 240 perfmon = idr_find(&vc4file->perfmon.idr, req->id); in vc4_perfmon_get_values_ioctl()
|
/drivers/tee/optee/ |
D | supp.c | 27 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()
|
D | optee_private.h | 93 struct idr idr; member
|
/drivers/gpu/drm/vmwgfx/ |
D | ttm_object.c | 100 struct idr idr; member 206 ret = idr_alloc(&tdev->idr, base, 1, 0, GFP_NOWAIT); in ttm_base_object_init() 222 idr_remove(&tdev->idr, base->handle); in ttm_base_object_init() 234 idr_remove(&tdev->idr, base->handle); in ttm_release_base() 284 base = idr_find(&tdev->idr, key); in ttm_base_object_lookup_for_ref() 444 idr_init_base(&tdev->idr, VMWGFX_NUM_MOB + 1); in ttm_object_device_init() 457 WARN_ON_ONCE(!idr_is_empty(&tdev->idr)); in ttm_object_device_release() 458 idr_destroy(&tdev->idr); in ttm_object_device_release()
|
D | vmwgfx_resource.c | 102 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/ |
D | tee_shm.c | 165 id = idr_alloc(&teedev->idr, NULL, 1, 0, GFP_KERNEL); in tee_shm_alloc_user_buf() 173 idr_remove(&teedev->idr, id); in tee_shm_alloc_user_buf() 179 ret = idr_replace(&teedev->idr, shm, id); in tee_shm_alloc_user_buf() 334 id = idr_alloc(&teedev->idr, NULL, 1, 0, GFP_KERNEL); in tee_shm_register_user_buf() 342 idr_remove(&teedev->idr, id); in tee_shm_register_user_buf() 348 ret = idr_replace(&teedev->idr, shm, id); in tee_shm_register_user_buf() 488 shm = idr_find(&teedev->idr, id); in tee_shm_get_from_id() 521 idr_remove(&teedev->idr, shm->id); in tee_shm_put()
|
D | tee_private.h | 46 struct idr idr; member
|
/drivers/infiniband/core/ |
D | rdma_core.c | 303 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/ |
D | driver.c | 158 struct idr tx_idr; 159 struct idr rx_idr; 160 struct idr protocols; 164 struct idr active_protocols; 1995 struct idr *idr; in scmi_chan_setup() local 1999 idr = tx ? &info->tx_idr : &info->rx_idr; in scmi_chan_setup() 2002 cinfo = idr_find(idr, prot_id); in scmi_chan_setup() 2007 cinfo = idr_find(idr, SCMI_PROTOCOL_BASE); in scmi_chan_setup() 2035 ret = idr_alloc(idr, cinfo, prot_id, prot_id + 1, GFP_KERNEL); in scmi_chan_setup() 2353 struct idr *idr = &info->tx_idr; in scmi_cleanup_txrx_channels() local [all …]
|
D | common.h | 232 void scmi_free_channel(struct scmi_chan_info *cinfo, struct idr *idr, int id);
|
/drivers/scsi/cxlflash/ |
D | ocxl_hw.h | 39 struct idr idr; /* IDR to manage contexts */ member
|
/drivers/powercap/ |
D | powercap_sys.c | 397 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/ |
D | ocxl_internal.h | 48 struct idr contexts_idr; 81 struct idr irq_idr;
|
/drivers/char/ipmi/ |
D | kcs_bmc_aspeed.c | 492 { .idr = LPC_IDR1, .odr = LPC_ODR1, .str = LPC_STR1 }, 493 { .idr = LPC_IDR2, .odr = LPC_ODR2, .str = LPC_STR2 }, 494 { .idr = LPC_IDR3, .odr = LPC_ODR3, .str = LPC_STR3 }, 495 { .idr = LPC_IDR4, .odr = LPC_ODR4, .str = LPC_STR4 }, 511 ioreg.idr = be32_to_cpup(reg); in aspeed_kcs_of_get_channel()
|
D | kcs_bmc.h | 24 u32 idr; member
|
D | kcs_bmc_npcm7xx.c | 194 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/amd/amdgpu/ |
D | amdgpu_mes.h | 68 struct idr pasid_idr; 69 struct idr gang_id_idr; 70 struct idr queue_id_idr;
|
/drivers/gpu/drm/ |
D | drm_lease.c | 207 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() 640 struct idr *object_idr; in drm_mode_get_lease_ioctl()
|
/drivers/hwtracing/coresight/ |
D | coresight-tmc.h | 210 struct idr idr; member
|
/drivers/gpu/drm/vgem/ |
D | vgem_drv.h | 38 struct idr fence_idr;
|
/drivers/gpu/drm/sis/ |
D | sis_drv.h | 65 struct idr object_idr;
|
/drivers/gpu/drm/tegra/ |
D | uapi.h | 19 struct idr legacy_contexts;
|
/drivers/net/ethernet/intel/ice/ |
D | ice_virtchnl_fdir.h | 34 struct idr fdir_rule_idr;
|