idr               149 arch/powerpc/kvm/mpic.c 	uint32_t idr;		/* IRQ destination register */
idr               564 arch/powerpc/kvm/mpic.c 	return opp->src[n_IRQ].idr;
idr               595 arch/powerpc/kvm/mpic.c 	src->idr = val & mask;
idr               596 arch/powerpc/kvm/mpic.c 	pr_debug("Set IDR %d to 0x%08x\n", n_IRQ, src->idr);
idr               599 arch/powerpc/kvm/mpic.c 		if (src->idr & crit_mask) {
idr               600 arch/powerpc/kvm/mpic.c 			if (src->idr & normal_mask) {
idr               612 arch/powerpc/kvm/mpic.c 				if (src->idr & (1UL << n_ci))
idr               618 arch/powerpc/kvm/mpic.c 			src->destmask = src->idr & normal_mask;
idr               621 arch/powerpc/kvm/mpic.c 		src->destmask = src->idr;
idr               632 arch/powerpc/kvm/mpic.c 		pr_debug("Set ILR %d to 0x%08x, output %d\n", n_IRQ, src->idr,
idr                64 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	u32	idr;		/* PCI + 0x00 */
idr              1080 arch/powerpc/platforms/cell/spufs/sched.c 		idr_get_cursor(&task_active_pid_ns(current)->idr) - 1);
idr               836 arch/x86/include/asm/kvm_host.h 	struct idr conn_to_evt;
idr                92 drivers/ata/sata_dwc_460ex.c 	u32 idr;		/* ID Register */
idr              1201 drivers/ata/sata_dwc_460ex.c 	u32 idr, versionr;
idr              1237 drivers/ata/sata_dwc_460ex.c 	idr = sata_dwc_readl(&hsdev->sata_dwc_regs->idr);
idr              1240 drivers/ata/sata_dwc_460ex.c 		   idr, ver[0], ver[1], ver[2]);
idr               247 drivers/atm/nicstar.c 	idr_destroy(&card->idr);
idr               640 drivers/atm/nicstar.c 	idr_init(&card->idr);
idr              1021 drivers/atm/nicstar.c 		id1 = idr_alloc(&card->idr, handle1, 0, 0, GFP_ATOMIC);
idr              1025 drivers/atm/nicstar.c 		id2 = idr_alloc(&card->idr, handle2, 0, 0, GFP_ATOMIC);
idr              1153 drivers/atm/nicstar.c 				card->rcbuf = idr_find(&card->idr,
idr              1982 drivers/atm/nicstar.c 	skb = idr_remove(&card->idr, id);
idr               717 drivers/atm/nicstar.h 	struct idr idr;
idr               180 drivers/block/drbd/drbd_int.h extern struct idr drbd_devices; /* RCU, updates: genl_lock() */
idr               661 drivers/block/drbd/drbd_int.h 	struct idr devices;		/* volume number to device mapping */
idr               696 drivers/block/drbd/drbd_int.h 	struct idr peer_devices;	/* volume number to peer device mapping */
idr               107 drivers/block/drbd/drbd_main.c struct idr drbd_devices;
idr              3431 drivers/block/drbd/drbd_nl.c 	struct idr *idr_to_search;
idr              3681 drivers/block/drbd/drbd_nl.c 	struct idr *idr_to_search;
idr                50 drivers/char/ipmi/kcs_bmc.c 	return kcs_bmc->io_inputb(kcs_bmc, kcs_bmc->ioreg.idr);
idr                64 drivers/char/ipmi/kcs_bmc.h 	u32 idr;
idr               230 drivers/char/ipmi/kcs_bmc_aspeed.c 	{ .idr = LPC_IDR1, .odr = LPC_ODR1, .str = LPC_STR1 },
idr               231 drivers/char/ipmi/kcs_bmc_aspeed.c 	{ .idr = LPC_IDR2, .odr = LPC_ODR2, .str = LPC_STR2 },
idr               232 drivers/char/ipmi/kcs_bmc_aspeed.c 	{ .idr = LPC_IDR3, .odr = LPC_ODR3, .str = LPC_STR3 },
idr               233 drivers/char/ipmi/kcs_bmc_aspeed.c 	{ .idr = LPC_IDR4, .odr = LPC_ODR4, .str = LPC_STR4 },
idr               287 drivers/char/ipmi/kcs_bmc_aspeed.c 		kcs_bmc->ioreg.idr, kcs_bmc->ioreg.odr, kcs_bmc->ioreg.str);
idr               161 drivers/char/ipmi/kcs_bmc_npcm7xx.c 	kcs_bmc->ioreg.idr = priv->reg->dib;
idr               182 drivers/char/ipmi/kcs_bmc_npcm7xx.c 		kcs_bmc->ioreg.idr, kcs_bmc->ioreg.odr, kcs_bmc->ioreg.str);
idr               378 drivers/char/tpm/tpm.h extern struct idr dev_nums_idr;
idr               107 drivers/crypto/ccree/cc_driver.c 	} idr;
idr               110 drivers/crypto/ccree/cc_driver.c 		idr.regs[i] = cc_ioread(drvdata, idr_offsets[i]);
idr               112 drivers/crypto/ccree/cc_driver.c 	return le32_to_cpu(idr.val);
idr               132 drivers/crypto/chelsio/chtls/chtls.h 	struct idr hwtid_idr;
idr               133 drivers/crypto/chelsio/chtls/chtls.h 	struct idr stid_idr;
idr               206 drivers/crypto/chelsio/chtls/chtls.h 	u32 idr;
idr                17 drivers/dca/dca-sysfs.c static struct idr dca_idr;
idr                52 drivers/firewire/core-cdev.c 	struct idr resource_idr;
idr               136 drivers/firewire/core.h extern struct idr fw_device_idr;
idr               134 drivers/firmware/arm_scmi/driver.c 	struct idr tx_idr;
idr               135 drivers/firmware/arm_scmi/driver.c 	struct idr rx_idr;
idr               731 drivers/firmware/arm_scmi/driver.c 	struct idr *idr;
idr               736 drivers/firmware/arm_scmi/driver.c 	idr = tx ? &info->tx_idr : &info->rx_idr;
idr               739 drivers/firmware/arm_scmi/driver.c 		cinfo = idr_find(idr, SCMI_PROTOCOL_BASE);
idr               783 drivers/firmware/arm_scmi/driver.c 	ret = idr_alloc(idr, cinfo, prot_id, prot_id + 1, GFP_KERNEL);
idr               904 drivers/firmware/arm_scmi/driver.c 	struct idr *idr = data;
idr               911 drivers/firmware/arm_scmi/driver.c 	idr_remove(idr, id);
idr               920 drivers/firmware/arm_scmi/driver.c 	struct idr *idr = &info->tx_idr;
idr               933 drivers/firmware/arm_scmi/driver.c 	ret = idr_for_each(idr, scmi_mbox_free_channel, idr);
idr               936 drivers/firmware/arm_scmi/driver.c 	idr = &info->rx_idr;
idr               937 drivers/firmware/arm_scmi/driver.c 	ret = idr_for_each(idr, scmi_mbox_free_channel, idr);
idr                60 drivers/fpga/dfl.c 	struct idr id;
idr               423 drivers/gpu/drm/amd/amdgpu/amdgpu.h 	struct idr		bo_list_handles;
idr               574 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	struct idr *idp;
idr               596 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	struct idr *idp;
idr               618 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	struct idr *idp;
idr                60 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h 	struct idr		ctx_handles;
idr               328 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h 	struct idr				pasid_idr;
idr               643 drivers/gpu/drm/amd/amdkfd/kfd_priv.h 	struct idr alloc_idr;
idr               707 drivers/gpu/drm/amd/amdkfd/kfd_priv.h 	struct idr event_idr;
idr                71 drivers/gpu/drm/drm_drv.c static struct idr drm_minors_idr;
idr               196 drivers/gpu/drm/drm_lease.c static struct drm_master *drm_lease_create(struct drm_master *lessor, struct idr *leases)
idr               383 drivers/gpu/drm/drm_lease.c 			   struct idr *leases,
idr               488 drivers/gpu/drm/drm_lease.c 	struct idr leases;
idr               662 drivers/gpu/drm/drm_lease.c 	struct idr *object_idr;
idr               119 drivers/gpu/drm/etnaviv/etnaviv_gpu.h 	struct idr fence_idr;
idr               227 drivers/gpu/drm/i915/gvt/gvt.h 	struct idr object_idr;
idr               310 drivers/gpu/drm/i915/gvt/gvt.h 	struct idr vgpu_idr;	/* vGPU IDR pool */
idr               195 drivers/gpu/drm/i915/i915_drv.h 	struct idr context_idr;
idr               198 drivers/gpu/drm/i915/i915_drv.h 	struct idr vm_idr;
idr              1663 drivers/gpu/drm/i915/i915_drv.h 		struct idr metrics_idr;
idr               235 drivers/gpu/drm/qxl/qxl_drv.h 	struct idr	release_idr;
idr               258 drivers/gpu/drm/qxl/qxl_drv.h 	struct idr	surf_id_idr;
idr                65 drivers/gpu/drm/sis/sis_drv.h 	struct idr object_idr;
idr                41 drivers/gpu/drm/tegra/drm.c 	struct idr contexts;
idr               608 drivers/gpu/drm/vc4/vc4_drv.h 		struct idr idr;
idr                70 drivers/gpu/drm/vc4/vc4_perfmon.c 	perfmon = idr_find(&vc4file->perfmon.idr, id);
idr                80 drivers/gpu/drm/vc4/vc4_perfmon.c 	idr_init(&vc4file->perfmon.idr);
idr                95 drivers/gpu/drm/vc4/vc4_perfmon.c 	idr_for_each(&vc4file->perfmon.idr, vc4_perfmon_idr_del, NULL);
idr                96 drivers/gpu/drm/vc4/vc4_perfmon.c 	idr_destroy(&vc4file->perfmon.idr);
idr               139 drivers/gpu/drm/vc4/vc4_perfmon.c 	ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN,
idr               166 drivers/gpu/drm/vc4/vc4_perfmon.c 	perfmon = idr_remove(&vc4file->perfmon.idr, req->id);
idr               191 drivers/gpu/drm/vc4/vc4_perfmon.c 	perfmon = idr_find(&vc4file->perfmon.idr, req->id);
idr                38 drivers/gpu/drm/vgem/vgem_drv.h 	struct idr fence_idr;
idr               106 drivers/gpu/drm/via/via_drv.h 	struct idr object_idr;
idr                97 drivers/gpu/drm/vmwgfx/ttm_object.c 	struct idr idr;
idr               177 drivers/gpu/drm/vmwgfx/ttm_object.c 	ret = idr_alloc(&tdev->idr, base, 1, 0, GFP_NOWAIT);
idr               193 drivers/gpu/drm/vmwgfx/ttm_object.c 	idr_remove(&tdev->idr, base->handle);
idr               205 drivers/gpu/drm/vmwgfx/ttm_object.c 	idr_remove(&tdev->idr, base->handle);
idr               290 drivers/gpu/drm/vmwgfx/ttm_object.c 	base = idr_find(&tdev->idr, key);
idr               543 drivers/gpu/drm/vmwgfx/ttm_object.c 	idr_init(&tdev->idr);
idr               562 drivers/gpu/drm/vmwgfx/ttm_object.c 	WARN_ON_ONCE(!idr_is_empty(&tdev->idr));
idr               563 drivers/gpu/drm/vmwgfx/ttm_object.c 	idr_destroy(&tdev->idr);
idr               504 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 	struct idr res_idr[vmw_res_max];
idr                88 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct idr *idr = &dev_priv->res_idr[res->func->res_type];
idr                92 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		idr_remove(idr, res->id);
idr               103 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct idr *idr = &dev_priv->res_idr[res->func->res_type];
idr               141 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 		idr_remove(idr, id);
idr               166 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	struct idr *idr = &dev_priv->res_idr[res->func->res_type];
idr               173 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 	ret = idr_alloc(idr, res, 1, 0, GFP_NOWAIT);
idr              1269 drivers/hwtracing/coresight/coresight-tmc-etr.c 	etr_buf = idr_find(&drvdata->idr, pid);
idr              1285 drivers/hwtracing/coresight/coresight-tmc-etr.c 	ret = idr_alloc(&drvdata->idr, etr_buf, pid, pid + 1, GFP_KERNEL);
idr              1400 drivers/hwtracing/coresight/coresight-tmc-etr.c 	buf = idr_remove(&drvdata->idr, etr_perf->pid);
idr               493 drivers/hwtracing/coresight/coresight-tmc.c 		idr_init(&drvdata->idr);
idr               206 drivers/hwtracing/coresight/coresight-tmc.h 	struct idr		idr;
idr               311 drivers/infiniband/core/rdma_core.c 	return xa_alloc(&uobj->ufile->idr, &uobj->id, NULL, xa_limit_32b,
idr               333 drivers/infiniband/core/rdma_core.c 	uobj = xa_load(&ufile->idr, id);
idr               454 drivers/infiniband/core/rdma_core.c 	xa_erase(&ufile->idr, uobj->id);
idr               515 drivers/infiniband/core/rdma_core.c 	xa_erase(&uobj->ufile->idr, uobj->id);
idr               546 drivers/infiniband/core/rdma_core.c 	xa_erase(&uobj->ufile->idr, uobj->id);
idr               586 drivers/infiniband/core/rdma_core.c 	old = xa_store(&ufile->idr, uobj->id, uobj, GFP_KERNEL);
idr               721 drivers/infiniband/core/rdma_core.c 	xa_init_flags(&ufile->idr, XA_FLAGS_ALLOC);
idr               737 drivers/infiniband/core/rdma_core.c 	xa_for_each(&ufile->idr, id, entry) {
idr               742 drivers/infiniband/core/rdma_core.c 	xa_destroy(&ufile->idr);
idr               165 drivers/infiniband/core/uverbs.h 	struct xarray		idr;
idr               752 drivers/media/platform/qcom/venus/hfi_cmds.c 		struct hfi_idr_period *in = pdata, *idr = prop_data;
idr               754 drivers/media/platform/qcom/venus/hfi_cmds.c 		idr->idr_period = in->idr_period;
idr               755 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*idr);
idr               490 drivers/misc/cxl/cxl.h 	struct idr contexts_idr;
idr               185 drivers/misc/fastrpc.c 	struct idr ctx_idr;
idr               376 drivers/misc/habanalabs/command_buffer.c 	struct idr *idp;
idr               228 drivers/misc/habanalabs/context.c 	struct idr *idp;
idr               248 drivers/misc/habanalabs/habanalabs.h 	struct idr		cb_handles; /* protected by cb_lock */
idr               674 drivers/misc/habanalabs/habanalabs.h 	struct idr		ctx_handles;
idr               880 drivers/misc/habanalabs/habanalabs.h 	struct idr		phys_pg_pack_handles;
idr               200 drivers/misc/mic/scif/scif_main.h extern struct idr scif_ports;
idr                15 drivers/misc/mic/scif/scif_ports.c struct idr scif_ports;
idr                19 drivers/misc/ocxl/file.c static struct idr minors_idr;
idr                48 drivers/misc/ocxl/ocxl_internal.h 	struct idr contexts_idr;
idr                81 drivers/misc/ocxl/ocxl_internal.h 	struct idr irq_idr;
idr               279 drivers/net/dsa/mv88e6xxx/chip.h 	struct idr policies;
idr               389 drivers/net/ethernet/freescale/enetc/enetc.c 			enetc_wr_reg(tx_ring->idr, BIT(tx_ring->index) |
idr               651 drivers/net/ethernet/freescale/enetc/enetc.c 		enetc_wr_reg(rx_ring->idr, BIT(rx_ring->index));
idr              1134 drivers/net/ethernet/freescale/enetc/enetc.c 	tx_ring->idr = hw->reg + ENETC_SITXIDR;
idr              1167 drivers/net/ethernet/freescale/enetc/enetc.c 	rx_ring->idr = hw->reg + ENETC_SIRXIDR;
idr                70 drivers/net/ethernet/freescale/enetc/enetc.h 	void __iomem *idr; /* Interrupt Detect Register pointer */
idr               129 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c static int mlx5_fpga_tls_alloc_swid(struct idr *idr, spinlock_t *idr_spinlock,
idr               144 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c 	ret = idr_alloc(idr, ptr, SWID_START, SWID_END, GFP_ATOMIC);
idr               151 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c static void *mlx5_fpga_tls_release_swid(struct idr *idr,
idr               158 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c 	ptr = idr_remove(idr, swid);
idr                48 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.h 	struct idr tx_idr;
idr                49 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.h 	struct idr rx_idr;
idr               128 drivers/net/ethernet/netronome/nfp/flower/main.h 	struct idr port_ids;
idr               209 drivers/net/ppp/ppp_generic.c 	struct idr units_idr;
idr               286 drivers/net/ppp/ppp_generic.c static int unit_get(struct idr *p, void *ptr);
idr               287 drivers/net/ppp/ppp_generic.c static int unit_set(struct idr *p, void *ptr, int n);
idr               288 drivers/net/ppp/ppp_generic.c static void unit_put(struct idr *p, int n);
idr               289 drivers/net/ppp/ppp_generic.c static void *unit_find(struct idr *p, int n);
idr              3286 drivers/net/ppp/ppp_generic.c static int unit_set(struct idr *p, void *ptr, int n)
idr              3297 drivers/net/ppp/ppp_generic.c static int unit_get(struct idr *p, void *ptr)
idr              3303 drivers/net/ppp/ppp_generic.c static void unit_put(struct idr *p, int n)
idr              3309 drivers/net/ppp/ppp_generic.c static void *unit_find(struct idr *p, int n)
idr               109 drivers/net/tap.c 	struct idr minor_idr;
idr               178 drivers/net/wireless/ath/ath10k/core.h 	struct idr mgmt_pending_tx;
idr              1968 drivers/net/wireless/ath/ath10k/htt.h 	struct idr pending_tx;
idr               685 drivers/net/wireless/marvell/mwifiex/main.h 	struct idr ack_status_frames;
idr               101 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h 	struct idr token;
idr               398 drivers/powercap/powercap_sys.c 		idr_destroy(&power_zone->idr);
idr               412 drivers/powercap/powercap_sys.c 		idr_destroy(&control_type->idr);
idr               514 drivers/powercap/powercap_sys.c 		power_zone->parent_idr = &control_type->idr;
idr               517 drivers/powercap/powercap_sys.c 		power_zone->parent_idr = &parent->idr;
idr               528 drivers/powercap/powercap_sys.c 	idr_init(&power_zone->idr);
idr               630 drivers/powercap/powercap_sys.c 	idr_init(&control_type->idr);
idr                48 drivers/reset/reset-ti-sci.c 	struct idr idr;
idr                80 drivers/reset/reset-ti-sci.c 	control = idr_find(&data->idr, id);
idr               161 drivers/reset/reset-ti-sci.c 	control = idr_find(&data->idr, id);
idr               209 drivers/reset/reset-ti-sci.c 	return idr_alloc(&data->idr, control, 0, 0, GFP_KERNEL);
idr               239 drivers/reset/reset-ti-sci.c 	idr_init(&data->idr);
idr               252 drivers/reset/reset-ti-sci.c 	idr_destroy(&data->idr);
idr               116 drivers/rpmsg/qcom_glink_native.c 	struct idr lcids;
idr               117 drivers/rpmsg/qcom_glink_native.c 	struct idr rcids;
idr               169 drivers/rpmsg/qcom_glink_native.c 	struct idr liids;
idr               170 drivers/rpmsg/qcom_glink_native.c 	struct idr riids;
idr                65 drivers/rpmsg/virtio_rpmsg_bus.c 	struct idr endpoints;
idr               324 drivers/scsi/bfa/bfad_drv.h extern struct idr bfad_im_port_index;
idr               497 drivers/scsi/cxlflash/ocxl_hw.c 	rc = idr_alloc(&afu->idr, ctx, 0, afu->max_pasid, GFP_NOWAIT);
idr               551 drivers/scsi/cxlflash/ocxl_hw.c 	idr_remove(&ctx->hw_afu->idr, ctx->pe);
idr               711 drivers/scsi/cxlflash/ocxl_hw.c 	idr_destroy(&afu->idr);
idr               923 drivers/scsi/cxlflash/ocxl_hw.c 	idr_init(&afu->idr);
idr               955 drivers/scsi/cxlflash/ocxl_hw.c 	idr_destroy(&afu->idr);
idr                40 drivers/scsi/cxlflash/ocxl_hw.h 	struct idr idr;			/* IDR to manage contexts */
idr               411 drivers/slimbus/slimbus.h 	struct idr		tid_idr;
idr                22 drivers/soc/qcom/apr.c 	struct idr svcs_idr;
idr                89 drivers/staging/unisys/visorhba/visorhba_main.c 	struct idr idr;
idr               233 drivers/staging/unisys/visorhba/visorhba_main.c static unsigned int simple_idr_get(struct idr *idrtable, void *p,
idr               262 drivers/staging/unisys/visorhba/visorhba_main.c static void setup_scsitaskmgmt_handles(struct idr *idrtable, spinlock_t *lock,
idr               280 drivers/staging/unisys/visorhba/visorhba_main.c static void cleanup_scsitaskmgmt_handles(struct idr *idrtable,
idr               324 drivers/staging/unisys/visorhba/visorhba_main.c 	setup_scsitaskmgmt_handles(&devdata->idr, &devdata->privlock, cmdrsp,
idr               351 drivers/staging/unisys/visorhba/visorhba_main.c 	cleanup_scsitaskmgmt_handles(&devdata->idr, cmdrsp);
idr               358 drivers/staging/unisys/visorhba/visorhba_main.c 	cleanup_scsitaskmgmt_handles(&devdata->idr, cmdrsp);
idr               694 drivers/staging/unisys/visorhba/visorhba_main.c static void complete_taskmgmt_command(struct idr *idrtable,
idr               748 drivers/staging/unisys/visorhba/visorhba_main.c 			complete_taskmgmt_command(&devdata->idr, cmdrsp,
idr               945 drivers/staging/unisys/visorhba/visorhba_main.c 			complete_taskmgmt_command(&devdata->idr, cmdrsp,
idr              1114 drivers/staging/unisys/visorhba/visorhba_main.c 	idr_init(&devdata->idr);
idr              1157 drivers/staging/unisys/visorhba/visorhba_main.c 	idr_destroy(&devdata->idr);
idr               166 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	struct idr context_map;
idr                51 drivers/target/iscsi/iscsi_target.c static struct idr tiqn_idr;
idr               146 drivers/target/target_core_user.c 	struct idr commands;
idr                64 drivers/tee/optee/optee_private.h 	struct idr idr;
idr                27 drivers/tee/optee/supp.c 	idr_init(&supp->idr);
idr                35 drivers/tee/optee/supp.c 	idr_destroy(&supp->idr);
idr                47 drivers/tee/optee/supp.c 	idr_for_each_entry(&supp->idr, req, id) {
idr                48 drivers/tee/optee/supp.c 		idr_remove(&supp->idr, id);
idr               175 drivers/tee/optee/supp.c 	*id = idr_alloc(&supp->idr, req, 1, 0, GFP_KERNEL);
idr               315 drivers/tee/optee/supp.c 	req = idr_find(&supp->idr, id);
idr               322 drivers/tee/optee/supp.c 	idr_remove(&supp->idr, id);
idr               689 drivers/tee/tee_core.c 	idr_destroy(&teedev->idr);
idr               771 drivers/tee/tee_core.c 	idr_init(&teedev->idr);
idr                56 drivers/tee/tee_private.h 	struct idr idr;
idr                19 drivers/tee/tee_shm.c 	idr_remove(&teedev->idr, shm->id);
idr               155 drivers/tee/tee_shm.c 	shm->id = idr_alloc(&teedev->idr, shm, 1, 0, GFP_KERNEL);
idr               187 drivers/tee/tee_shm.c 	idr_remove(&teedev->idr, shm->id);
idr               279 drivers/tee/tee_shm.c 	shm->id = idr_alloc(&teedev->idr, shm, 1, 0, GFP_KERNEL);
idr               321 drivers/tee/tee_shm.c 			idr_remove(&teedev->idr, shm->id);
idr               478 drivers/tee/tee_shm.c 	shm = idr_find(&teedev->idr, id);
idr               689 drivers/tty/serial/atmel_serial.c 	uint32_t idr = 0;
idr               702 drivers/tty/serial/atmel_serial.c 		idr |= ATMEL_US_CTSIC;
idr               705 drivers/tty/serial/atmel_serial.c 		idr |= ATMEL_US_DSRIC;
idr               708 drivers/tty/serial/atmel_serial.c 		idr |= ATMEL_US_RIIC;
idr               711 drivers/tty/serial/atmel_serial.c 		idr |= ATMEL_US_DCDIC;
idr               713 drivers/tty/serial/atmel_serial.c 	atmel_uart_writel(port, ATMEL_US_IDR, idr);
idr                45 drivers/vfio/vfio.c 	struct idr			group_idr;
idr               533 fs/dlm/dlm_internal.h 	struct idr		ls_lkbidr;
idr               615 fs/dlm/dlm_internal.h 	struct idr		ls_recover_idr;
idr                29 fs/nfs/netns.h 	struct idr cb_ident_idr; /* Protected by nfs_client_lock */
idr               129 fs/nfsd/netns.h 	struct idr	s2s_cp_stateids;
idr               304 fs/nfsd/state.h 	struct idr		cl_stateids;	/* stateid lookup */
idr               184 fs/notify/inotify/inotify_fsnotify.c 	idr_for_each(&group->inotify_data.idr, idr_callback, group);
idr               185 fs/notify/inotify/inotify_fsnotify.c 	idr_destroy(&group->inotify_data.idr);
idr               309 fs/notify/inotify/inotify_user.c 			idr_set_cursor(&data->idr, (unsigned int)arg);
idr               357 fs/notify/inotify/inotify_user.c static int inotify_add_to_idr(struct idr *idr, spinlock_t *idr_lock,
idr               365 fs/notify/inotify/inotify_user.c 	ret = idr_alloc_cyclic(idr, i_mark, 1, 0, GFP_NOWAIT);
idr               380 fs/notify/inotify/inotify_user.c 	struct idr *idr = &group->inotify_data.idr;
idr               386 fs/notify/inotify/inotify_user.c 	i_mark = idr_find(idr, wd);
idr               418 fs/notify/inotify/inotify_user.c 	struct idr *idr = &group->inotify_data.idr;
idr               469 fs/notify/inotify/inotify_user.c 	idr_remove(idr, wd);
idr               565 fs/notify/inotify/inotify_user.c 	struct idr *idr = &group->inotify_data.idr;
idr               578 fs/notify/inotify/inotify_user.c 	ret = inotify_add_to_idr(idr, idr_lock, tmp_i_mark);
idr               648 fs/notify/inotify/inotify_user.c 	idr_init(&group->inotify_data.idr);
idr                92 fs/ocfs2/cluster/tcp_internal.h 	struct idr			nn_status_idr;
idr                24 fs/proc/loadavg.c 		idr_get_cursor(&task_active_pid_ns(current)->idr) - 1);
idr                88 include/drm/drm_auth.h 	struct idr magic_map;
idr               101 include/drm/drm_auth.h 	struct idr leases;
idr               102 include/drm/drm_auth.h 	struct idr lessee_idr;
idr               285 include/drm/drm_device.h 	struct idr object_name_idr;
idr               321 include/drm/drm_device.h 	struct idr ctx_idr;
idr               249 include/drm/drm_file.h 	struct idr object_idr;
idr               255 include/drm/drm_file.h 	struct idr syncobj_idr;
idr               405 include/drm/drm_mode_config.h 	struct idr object_idr;
idr               413 include/drm/drm_mode_config.h 	struct idr tile_idr;
idr                27 include/linux/bpf.h extern struct idr btf_idr;
idr               524 include/linux/cgroup-defs.h 	struct idr cgroup_idr;
idr               704 include/linux/cgroup-defs.h 	struct idr css_idr;
idr               197 include/linux/fsnotify_backend.h 			struct idr      idr;
idr                56 include/linux/idr.h #define DEFINE_IDR(name)	struct idr name = IDR_INIT(name)
idr                66 include/linux/idr.h static inline unsigned int idr_get_cursor(const struct idr *idr)
idr                68 include/linux/idr.h 	return READ_ONCE(idr->idr_next);
idr                79 include/linux/idr.h static inline void idr_set_cursor(struct idr *idr, unsigned int val)
idr                81 include/linux/idr.h 	WRITE_ONCE(idr->idr_next, val);
idr               101 include/linux/idr.h #define idr_lock(idr)		xa_lock(&(idr)->idr_rt)
idr               102 include/linux/idr.h #define idr_unlock(idr)		xa_unlock(&(idr)->idr_rt)
idr               103 include/linux/idr.h #define idr_lock_bh(idr)	xa_lock_bh(&(idr)->idr_rt)
idr               104 include/linux/idr.h #define idr_unlock_bh(idr)	xa_unlock_bh(&(idr)->idr_rt)
idr               105 include/linux/idr.h #define idr_lock_irq(idr)	xa_lock_irq(&(idr)->idr_rt)
idr               106 include/linux/idr.h #define idr_unlock_irq(idr)	xa_unlock_irq(&(idr)->idr_rt)
idr               107 include/linux/idr.h #define idr_lock_irqsave(idr, flags) \
idr               108 include/linux/idr.h 				xa_lock_irqsave(&(idr)->idr_rt, flags)
idr               109 include/linux/idr.h #define idr_unlock_irqrestore(idr, flags) \
idr               110 include/linux/idr.h 				xa_unlock_irqrestore(&(idr)->idr_rt, flags)
idr               114 include/linux/idr.h int idr_alloc(struct idr *, void *ptr, int start, int end, gfp_t);
idr               115 include/linux/idr.h int __must_check idr_alloc_u32(struct idr *, void *ptr, u32 *id,
idr               117 include/linux/idr.h int idr_alloc_cyclic(struct idr *, void *ptr, int start, int end, gfp_t);
idr               118 include/linux/idr.h void *idr_remove(struct idr *, unsigned long id);
idr               119 include/linux/idr.h void *idr_find(const struct idr *, unsigned long id);
idr               120 include/linux/idr.h int idr_for_each(const struct idr *,
idr               122 include/linux/idr.h void *idr_get_next(struct idr *, int *nextid);
idr               123 include/linux/idr.h void *idr_get_next_ul(struct idr *, unsigned long *nextid);
idr               124 include/linux/idr.h void *idr_replace(struct idr *, void *, unsigned long id);
idr               125 include/linux/idr.h void idr_destroy(struct idr *);
idr               135 include/linux/idr.h static inline void idr_init_base(struct idr *idr, int base)
idr               137 include/linux/idr.h 	INIT_RADIX_TREE(&idr->idr_rt, IDR_RT_MARKER);
idr               138 include/linux/idr.h 	idr->idr_base = base;
idr               139 include/linux/idr.h 	idr->idr_next = 0;
idr               149 include/linux/idr.h static inline void idr_init(struct idr *idr)
idr               151 include/linux/idr.h 	idr_init_base(idr, 0);
idr               160 include/linux/idr.h static inline bool idr_is_empty(const struct idr *idr)
idr               162 include/linux/idr.h 	return radix_tree_empty(&idr->idr_rt) &&
idr               163 include/linux/idr.h 		radix_tree_tagged(&idr->idr_rt, IDR_FREE);
idr               187 include/linux/idr.h #define idr_for_each_entry(idr, entry, id)			\
idr               188 include/linux/idr.h 	for (id = 0; ((entry) = idr_get_next(idr, &(id))) != NULL; id += 1U)
idr               201 include/linux/idr.h #define idr_for_each_entry_ul(idr, entry, tmp, id)			\
idr               203 include/linux/idr.h 	     tmp <= id && ((entry) = idr_get_next_ul(idr, &(id))) != NULL; \
idr               214 include/linux/idr.h #define idr_for_each_entry_continue(idr, entry, id)			\
idr               215 include/linux/idr.h 	for ((entry) = idr_get_next((idr), &(id));			\
idr               217 include/linux/idr.h 	     ++id, (entry) = idr_get_next((idr), &(id)))
idr               228 include/linux/idr.h #define idr_for_each_entry_continue_ul(idr, entry, tmp, id)		\
idr               230 include/linux/idr.h 	     tmp <= id && ((entry) = idr_get_next_ul(idr, &(id))) != NULL; \
idr                20 include/linux/ipc_namespace.h 	struct idr ipcs_idr;
idr               189 include/linux/kernfs.h 	struct idr		ino_idr;
idr               486 include/linux/mlx5/driver.h 	struct idr counters_idr;
idr                26 include/linux/pid_namespace.h 	struct idr idr;
idr                67 include/linux/powercap.h 	struct idr idr;
idr               144 include/linux/powercap.h 	struct idr idr;
idr               145 include/linux/powercap.h 	struct idr *parent_idr;
idr               504 include/linux/remoteproc.h 	struct idr notifyids;
idr               233 include/linux/soc/qcom/qmi.h 	struct idr txns;
idr               662 include/linux/usb/hcd.h extern struct idr usb_bus_idr;
idr               126 include/net/9p/client.h 	struct idr fids;
idr               127 include/net/9p/client.h 	struct idr reqs;
idr                17 include/net/act_api.h 	struct idr	action_idr;
idr                88 include/net/net_namespace.h 	struct idr		netns_ids;
idr               465 include/net/sctp/sctp.h extern struct idr sctp_assocs_id;
idr              2132 kernel/bpf/syscall.c 			       struct idr *idr,
idr              2146 kernel/bpf/syscall.c 	if (!idr_get_next(idr, &next_id))
idr               304 kernel/cgroup/cgroup.c static int cgroup_idr_alloc(struct idr *idr, void *ptr, int start, int end,
idr               311 kernel/cgroup/cgroup.c 	ret = idr_alloc(idr, ptr, start, end, gfp_mask & ~__GFP_DIRECT_RECLAIM);
idr               317 kernel/cgroup/cgroup.c static void *cgroup_idr_replace(struct idr *idr, void *ptr, int id)
idr               322 kernel/cgroup/cgroup.c 	ret = idr_replace(idr, ptr, id);
idr               327 kernel/cgroup/cgroup.c static void cgroup_idr_remove(struct idr *idr, int id)
idr               330 kernel/cgroup/cgroup.c 	idr_remove(idr, id);
idr              9928 kernel/events/core.c static struct idr pmu_idr;
idr                75 kernel/pid.c   	.idr = IDR_INIT(init_pid_ns.idr),
idr               153 kernel/pid.c   		idr_remove(&ns->idr, upid->nr);
idr               186 kernel/pid.c   		if (idr_get_cursor(&tmp->idr) > RESERVED_PIDS)
idr               193 kernel/pid.c   		nr = idr_alloc_cyclic(&tmp->idr, NULL, pid_min,
idr               226 kernel/pid.c   		idr_replace(&upid->ns->idr, pid, upid->nr);
idr               241 kernel/pid.c   		idr_remove(&upid->ns->idr, upid->nr);
idr               246 kernel/pid.c   		idr_set_cursor(&ns->idr, 0);
idr               263 kernel/pid.c   	return idr_find(&ns->idr, nr);
idr               454 kernel/pid.c   	return idr_get_next(&ns->idr, &nr);
idr               536 kernel/pid.c   	idr_init(&init_pid_ns.idr);
idr               102 kernel/pid_namespace.c 	idr_init(&ns->idr);
idr               124 kernel/pid_namespace.c 	idr_destroy(&ns->idr);
idr               146 kernel/pid_namespace.c 	idr_destroy(&ns->idr);
idr               217 kernel/pid_namespace.c 	idr_for_each_entry_continue(&pid_ns->idr, pid, nr) {
idr               283 kernel/pid_namespace.c 	next = idr_get_cursor(&pid_ns->idr) - 1;
idr               288 kernel/pid_namespace.c 		idr_set_cursor(&pid_ns->idr, next + 1);
idr                33 lib/idr.c      int idr_alloc_u32(struct idr *idr, void *ptr, u32 *nextid,
idr                38 lib/idr.c      	unsigned int base = idr->idr_base;
idr                41 lib/idr.c      	if (WARN_ON_ONCE(!(idr->idr_rt.xa_flags & ROOT_IS_IDR)))
idr                42 lib/idr.c      		idr->idr_rt.xa_flags |= IDR_RT_MARKER;
idr                46 lib/idr.c      	slot = idr_get_free(&idr->idr_rt, &iter, gfp, max - base);
idr                52 lib/idr.c      	radix_tree_iter_replace(&idr->idr_rt, &iter, slot, ptr);
idr                53 lib/idr.c      	radix_tree_iter_tag_clear(&idr->idr_rt, &iter, IDR_FREE);
idr                79 lib/idr.c      int idr_alloc(struct idr *idr, void *ptr, int start, int end, gfp_t gfp)
idr                87 lib/idr.c      	ret = idr_alloc_u32(idr, ptr, &id, end > 0 ? end - 1 : INT_MAX, gfp);
idr               117 lib/idr.c      int idr_alloc_cyclic(struct idr *idr, void *ptr, int start, int end, gfp_t gfp)
idr               119 lib/idr.c      	u32 id = idr->idr_next;
idr               125 lib/idr.c      	err = idr_alloc_u32(idr, ptr, &id, max, gfp);
idr               128 lib/idr.c      		err = idr_alloc_u32(idr, ptr, &id, max, gfp);
idr               133 lib/idr.c      	idr->idr_next = id + 1;
idr               152 lib/idr.c      void *idr_remove(struct idr *idr, unsigned long id)
idr               154 lib/idr.c      	return radix_tree_delete_item(&idr->idr_rt, id - idr->idr_base, NULL);
idr               172 lib/idr.c      void *idr_find(const struct idr *idr, unsigned long id)
idr               174 lib/idr.c      	return radix_tree_lookup(&idr->idr_rt, id - idr->idr_base);
idr               195 lib/idr.c      int idr_for_each(const struct idr *idr,
idr               200 lib/idr.c      	int base = idr->idr_base;
idr               202 lib/idr.c      	radix_tree_for_each_slot(slot, &idr->idr_rt, &iter, 0) {
idr               227 lib/idr.c      void *idr_get_next_ul(struct idr *idr, unsigned long *nextid)
idr               232 lib/idr.c      	unsigned long base = idr->idr_base;
idr               236 lib/idr.c      	radix_tree_for_each_slot(slot, &idr->idr_rt, &iter, id) {
idr               242 lib/idr.c      		if (slot != &idr->idr_rt.xa_head && !xa_is_retry(entry))
idr               264 lib/idr.c      void *idr_get_next(struct idr *idr, int *nextid)
idr               267 lib/idr.c      	void *entry = idr_get_next_ul(idr, &id);
idr               290 lib/idr.c      void *idr_replace(struct idr *idr, void *ptr, unsigned long id)
idr               296 lib/idr.c      	id -= idr->idr_base;
idr               298 lib/idr.c      	entry = __radix_tree_lookup(&idr->idr_rt, id, &node, &slot);
idr               299 lib/idr.c      	if (!slot || radix_tree_tag_get(&idr->idr_rt, id, IDR_FREE))
idr               302 lib/idr.c      	__radix_tree_replace(&idr->idr_rt, node, slot, ptr);
idr              1568 lib/radix-tree.c void idr_destroy(struct idr *idr)
idr              1570 lib/radix-tree.c 	struct radix_tree_node *node = rcu_dereference_raw(idr->idr_rt.xa_head);
idr              1573 lib/radix-tree.c 	idr->idr_rt.xa_head = NULL;
idr              1574 lib/radix-tree.c 	root_tag_set(&idr->idr_rt, IDR_FREE);
idr               872 net/mac80211/ieee80211_i.h 	struct idr function_inst_ids;
idr              1396 net/mac80211/ieee80211_i.h 	struct idr ack_status_frames;
idr               913 net/rxrpc/ar-internal.h extern struct idr rxrpc_client_conn_ids;
idr               221 net/sched/act_api.c 	struct idr *idr = &idrinfo->action_idr;
idr               230 net/sched/act_api.c 	idr_for_each_entry_ul(idr, p, tmp, id) {
idr               293 net/sched/act_api.c 	struct idr *idr = &idrinfo->action_idr;
idr               305 net/sched/act_api.c 	idr_for_each_entry_ul(idr, p, tmp, id) {
idr               534 net/sched/act_api.c 	struct idr *idr = &idrinfo->action_idr;
idr               540 net/sched/act_api.c 	idr_for_each_entry_ul(idr, p, tmp, id) {
idr               864 net/sched/cls_api.c 	struct idr idr;
idr               877 net/sched/cls_api.c 	err = idr_alloc_u32(&tn->idr, block, &block->index, block->index,
idr               890 net/sched/cls_api.c 	idr_remove(&tn->idr, block->index);
idr               927 net/sched/cls_api.c 	return idr_find(&tn->idr, block_index);
idr              3609 net/sched/cls_api.c 	idr_init(&tn->idr);
idr              3617 net/sched/cls_api.c 	idr_destroy(&tn->idr);
idr                24 net/sched/cls_basic.c 	struct idr		handle_idr;
idr                33 net/sched/cls_bpf.c 	struct idr handle_idr;
idr                99 net/sched/cls_flower.c 	struct idr handle_idr;
idr                75 net/sched/cls_u32.c 	struct idr		handle_idr;
idr                89 net/sched/cls_u32.c 	struct idr		handle_idr;
idr                53 net/sctp/protocol.c struct idr sctp_assocs_id;
idr                68 net/tipc/topsrv.c 	struct idr conn_idr;
idr                75 samples/vfio-mdev/mtty.c 	struct idr	vd_idr;
idr               934 sound/soc/stm/stm32_spdifrx.c 	u32 ver, idr;
idr               992 sound/soc/stm/stm32_spdifrx.c 	ret = regmap_read(spdifrx->regmap, STM32_SPDIFRX_IDR, &idr);
idr               996 sound/soc/stm/stm32_spdifrx.c 	if (idr == SPDIFRX_IPIDR_NUMBER) {
idr                25 tools/testing/radix-tree/idr-test.c void item_idr_remove(struct idr *idr, int id)
idr                27 tools/testing/radix-tree/idr-test.c 	struct item *item = idr_find(idr, id);
idr                29 tools/testing/radix-tree/idr-test.c 	idr_remove(idr, id);
idr                36 tools/testing/radix-tree/idr-test.c 	DEFINE_IDR(idr);
idr                38 tools/testing/radix-tree/idr-test.c 	assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0, 0x4000, GFP_KERNEL) == 0);
idr                39 tools/testing/radix-tree/idr-test.c 	assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0x3ffd, 0x4000, GFP_KERNEL) == 0x3ffd);
idr                40 tools/testing/radix-tree/idr-test.c 	idr_remove(&idr, 0x3ffd);
idr                41 tools/testing/radix-tree/idr-test.c 	idr_remove(&idr, 0);
idr                52 tools/testing/radix-tree/idr-test.c 		id = idr_alloc_cyclic(&idr, item, 1, 0x4000, GFP_KERNEL);
idr                56 tools/testing/radix-tree/idr-test.c 	idr_for_each(&idr, item_idr_free, &idr);
idr                57 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr                62 tools/testing/radix-tree/idr-test.c 	DEFINE_IDR(idr);
idr                64 tools/testing/radix-tree/idr-test.c 	idr_alloc(&idr, (void *)-1, 10, 11, GFP_KERNEL);
idr                65 tools/testing/radix-tree/idr-test.c 	idr_replace(&idr, &idr, 10);
idr                67 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr                79 tools/testing/radix-tree/idr-test.c 	DEFINE_IDR(idr);
idr                81 tools/testing/radix-tree/idr-test.c 	assert(idr_is_empty(&idr));
idr                83 tools/testing/radix-tree/idr-test.c 	assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0);
idr                84 tools/testing/radix-tree/idr-test.c 	assert(!idr_is_empty(&idr));
idr                85 tools/testing/radix-tree/idr-test.c 	idr_remove(&idr, 0);
idr                86 tools/testing/radix-tree/idr-test.c 	assert(idr_is_empty(&idr));
idr                88 tools/testing/radix-tree/idr-test.c 	assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0);
idr                89 tools/testing/radix-tree/idr-test.c 	assert(!idr_is_empty(&idr));
idr                90 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr                91 tools/testing/radix-tree/idr-test.c 	assert(idr_is_empty(&idr));
idr                94 tools/testing/radix-tree/idr-test.c 		assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == i);
idr                97 tools/testing/radix-tree/idr-test.c 	assert(idr_replace(&idr, DUMMY_PTR, 3) == NULL);
idr                98 tools/testing/radix-tree/idr-test.c 	assert(idr_replace(&idr, DUMMY_PTR, 4) == NULL);
idr                99 tools/testing/radix-tree/idr-test.c 	assert(idr_replace(&idr, NULL, 4) == DUMMY_PTR);
idr               100 tools/testing/radix-tree/idr-test.c 	assert(idr_replace(&idr, DUMMY_PTR, 11) == ERR_PTR(-ENOENT));
idr               101 tools/testing/radix-tree/idr-test.c 	idr_remove(&idr, 5);
idr               102 tools/testing/radix-tree/idr-test.c 	assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 5);
idr               103 tools/testing/radix-tree/idr-test.c 	idr_remove(&idr, 5);
idr               106 tools/testing/radix-tree/idr-test.c 		idr_remove(&idr, i);
idr               107 tools/testing/radix-tree/idr-test.c 		assert(!idr_is_empty(&idr));
idr               109 tools/testing/radix-tree/idr-test.c 	idr_remove(&idr, 8);
idr               110 tools/testing/radix-tree/idr-test.c 	assert(!idr_is_empty(&idr));
idr               111 tools/testing/radix-tree/idr-test.c 	idr_remove(&idr, 9);
idr               112 tools/testing/radix-tree/idr-test.c 	assert(idr_is_empty(&idr));
idr               114 tools/testing/radix-tree/idr-test.c 	assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0);
idr               115 tools/testing/radix-tree/idr-test.c 	assert(idr_replace(&idr, DUMMY_PTR, 3) == ERR_PTR(-ENOENT));
idr               116 tools/testing/radix-tree/idr-test.c 	assert(idr_replace(&idr, DUMMY_PTR, 0) == NULL);
idr               117 tools/testing/radix-tree/idr-test.c 	assert(idr_replace(&idr, NULL, 0) == DUMMY_PTR);
idr               119 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr               120 tools/testing/radix-tree/idr-test.c 	assert(idr_is_empty(&idr));
idr               123 tools/testing/radix-tree/idr-test.c 		assert(idr_alloc(&idr, NULL, 1, 0, GFP_KERNEL) == i);
idr               126 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr               127 tools/testing/radix-tree/idr-test.c 	assert(idr_is_empty(&idr));
idr               133 tools/testing/radix-tree/idr-test.c 	DEFINE_IDR(idr);
idr               139 tools/testing/radix-tree/idr-test.c 		assert(idr_alloc(&idr, item, i, i + 1, GFP_NOWAIT) == i);
idr               144 tools/testing/radix-tree/idr-test.c 	idr_for_each(&idr, item_idr_free, &idr);
idr               145 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr               152 tools/testing/radix-tree/idr-test.c 	DEFINE_IDR(idr);
idr               153 tools/testing/radix-tree/idr-test.c 	idr_init_base(&idr, base);
idr               159 tools/testing/radix-tree/idr-test.c 		assert(idr_alloc(&idr, item, indices[i], indices[i+1],
idr               164 tools/testing/radix-tree/idr-test.c 		idr_get_next(&idr, &nextid);
idr               169 tools/testing/radix-tree/idr-test.c 	idr_for_each(&idr, item_idr_free, &idr);
idr               170 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr               180 tools/testing/radix-tree/idr-test.c void idr_u32_test1(struct idr *idr, u32 handle)
idr               187 tools/testing/radix-tree/idr-test.c 	BUG_ON(idr_alloc_u32(idr, DUMMY_PTR, &id, id, GFP_KERNEL));
idr               189 tools/testing/radix-tree/idr-test.c 	BUG_ON(idr_alloc_u32(idr, DUMMY_PTR, &id, id, GFP_KERNEL) != -ENOSPC);
idr               193 tools/testing/radix-tree/idr-test.c 	ptr = idr_get_next(idr, &sid);
idr               201 tools/testing/radix-tree/idr-test.c 	idr_for_each(idr, idr_u32_cb, NULL);
idr               206 tools/testing/radix-tree/idr-test.c 	BUG_ON(idr_remove(idr, id) != DUMMY_PTR);
idr               207 tools/testing/radix-tree/idr-test.c 	BUG_ON(!idr_is_empty(idr));
idr               212 tools/testing/radix-tree/idr-test.c 	DEFINE_IDR(idr);
idr               213 tools/testing/radix-tree/idr-test.c 	idr_init_base(&idr, base);
idr               214 tools/testing/radix-tree/idr-test.c 	idr_u32_test1(&idr, 10);
idr               215 tools/testing/radix-tree/idr-test.c 	idr_u32_test1(&idr, 0x7fffffff);
idr               216 tools/testing/radix-tree/idr-test.c 	idr_u32_test1(&idr, 0x80000000);
idr               217 tools/testing/radix-tree/idr-test.c 	idr_u32_test1(&idr, 0x80000001);
idr               218 tools/testing/radix-tree/idr-test.c 	idr_u32_test1(&idr, 0xffe00000);
idr               219 tools/testing/radix-tree/idr-test.c 	idr_u32_test1(&idr, 0xffffffff);
idr               222 tools/testing/radix-tree/idr-test.c static void idr_align_test(struct idr *idr)
idr               229 tools/testing/radix-tree/idr-test.c 		BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != i);
idr               230 tools/testing/radix-tree/idr-test.c 		idr_for_each_entry(idr, entry, id);
idr               232 tools/testing/radix-tree/idr-test.c 	idr_destroy(idr);
idr               235 tools/testing/radix-tree/idr-test.c 		BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != i - 1);
idr               236 tools/testing/radix-tree/idr-test.c 		idr_for_each_entry(idr, entry, id);
idr               238 tools/testing/radix-tree/idr-test.c 	idr_destroy(idr);
idr               241 tools/testing/radix-tree/idr-test.c 		BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != i - 2);
idr               242 tools/testing/radix-tree/idr-test.c 		idr_for_each_entry(idr, entry, id);
idr               244 tools/testing/radix-tree/idr-test.c 	idr_destroy(idr);
idr               247 tools/testing/radix-tree/idr-test.c 		BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != i - 3);
idr               248 tools/testing/radix-tree/idr-test.c 		idr_for_each_entry(idr, entry, id);
idr               250 tools/testing/radix-tree/idr-test.c 	idr_destroy(idr);
idr               253 tools/testing/radix-tree/idr-test.c 		BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != 0);
idr               254 tools/testing/radix-tree/idr-test.c 		BUG_ON(idr_alloc(idr, &name[i + 1], 0, 0, GFP_KERNEL) != 1);
idr               255 tools/testing/radix-tree/idr-test.c 		idr_for_each_entry(idr, entry, id);
idr               256 tools/testing/radix-tree/idr-test.c 		idr_remove(idr, 1);
idr               257 tools/testing/radix-tree/idr-test.c 		idr_for_each_entry(idr, entry, id);
idr               258 tools/testing/radix-tree/idr-test.c 		idr_remove(idr, 0);
idr               259 tools/testing/radix-tree/idr-test.c 		BUG_ON(!idr_is_empty(idr));
idr               263 tools/testing/radix-tree/idr-test.c 		BUG_ON(idr_alloc(idr, NULL, 0, 0, GFP_KERNEL) != 0);
idr               264 tools/testing/radix-tree/idr-test.c 		idr_for_each_entry(idr, entry, id);
idr               265 tools/testing/radix-tree/idr-test.c 		idr_replace(idr, &name[i], 0);
idr               266 tools/testing/radix-tree/idr-test.c 		idr_for_each_entry(idr, entry, id);
idr               267 tools/testing/radix-tree/idr-test.c 		BUG_ON(idr_find(idr, 0) != &name[i]);
idr               268 tools/testing/radix-tree/idr-test.c 		idr_remove(idr, 0);
idr               272 tools/testing/radix-tree/idr-test.c 		BUG_ON(idr_alloc(idr, &name[i], 0, 0, GFP_KERNEL) != 0);
idr               273 tools/testing/radix-tree/idr-test.c 		BUG_ON(idr_alloc(idr, NULL, 0, 0, GFP_KERNEL) != 1);
idr               274 tools/testing/radix-tree/idr-test.c 		idr_remove(idr, 1);
idr               275 tools/testing/radix-tree/idr-test.c 		idr_for_each_entry(idr, entry, id);
idr               276 tools/testing/radix-tree/idr-test.c 		idr_replace(idr, &name[i + 1], 0);
idr               277 tools/testing/radix-tree/idr-test.c 		idr_for_each_entry(idr, entry, id);
idr               278 tools/testing/radix-tree/idr-test.c 		idr_remove(idr, 0);
idr               330 tools/testing/radix-tree/idr-test.c 	DEFINE_IDR(idr);
idr               334 tools/testing/radix-tree/idr-test.c 		assert(idr_alloc(&idr, item, 0, 20000, GFP_KERNEL) == i);
idr               337 tools/testing/radix-tree/idr-test.c 	assert(idr_alloc(&idr, DUMMY_PTR, 5, 30, GFP_KERNEL) < 0);
idr               340 tools/testing/radix-tree/idr-test.c 		item_idr_remove(&idr, i);
idr               342 tools/testing/radix-tree/idr-test.c 	idr_remove(&idr, 3);
idr               344 tools/testing/radix-tree/idr-test.c 	idr_for_each(&idr, item_idr_free, &idr);
idr               345 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr               347 tools/testing/radix-tree/idr-test.c 	assert(idr_is_empty(&idr));
idr               349 tools/testing/radix-tree/idr-test.c 	idr_remove(&idr, 3);
idr               350 tools/testing/radix-tree/idr-test.c 	idr_remove(&idr, 0);
idr               352 tools/testing/radix-tree/idr-test.c 	assert(idr_alloc(&idr, DUMMY_PTR, 0, 0, GFP_KERNEL) == 0);
idr               353 tools/testing/radix-tree/idr-test.c 	idr_remove(&idr, 1);
idr               355 tools/testing/radix-tree/idr-test.c 		assert(idr_alloc(&idr, DUMMY_PTR, 0, 0, GFP_KERNEL) == i);
idr               356 tools/testing/radix-tree/idr-test.c 	idr_remove(&idr, 1 << 30);
idr               357 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr               361 tools/testing/radix-tree/idr-test.c 		assert(idr_alloc(&idr, item, i, i + 10, GFP_KERNEL) == i);
idr               363 tools/testing/radix-tree/idr-test.c 	assert(idr_alloc(&idr, DUMMY_PTR, i - 2, i, GFP_KERNEL) == -ENOSPC);
idr               364 tools/testing/radix-tree/idr-test.c 	assert(idr_alloc(&idr, DUMMY_PTR, i - 2, i + 10, GFP_KERNEL) == -ENOSPC);
idr               366 tools/testing/radix-tree/idr-test.c 	idr_for_each(&idr, item_idr_free, &idr);
idr               367 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr               368 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr               370 tools/testing/radix-tree/idr-test.c 	assert(idr_is_empty(&idr));
idr               372 tools/testing/radix-tree/idr-test.c 	idr_set_cursor(&idr, INT_MAX - 3UL);
idr               381 tools/testing/radix-tree/idr-test.c 		id = idr_alloc_cyclic(&idr, item, 0, 0, GFP_KERNEL);
idr               385 tools/testing/radix-tree/idr-test.c 	idr_for_each(&idr, item_idr_free, &idr);
idr               386 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr               387 tools/testing/radix-tree/idr-test.c 	assert(idr_is_empty(&idr));
idr               391 tools/testing/radix-tree/idr-test.c 		assert(idr_alloc(&idr, item, 1, 20000, GFP_KERNEL) == i);
idr               394 tools/testing/radix-tree/idr-test.c 	idr_for_each(&idr, item_idr_free, &idr);
idr               395 tools/testing/radix-tree/idr-test.c 	idr_destroy(&idr);
idr               407 tools/testing/radix-tree/idr-test.c 	idr_align_test(&idr);