Searched refs:idr (Results 1 - 25 of 414) sorted by relevance

1234567891011>>

/linux-master/tools/testing/radix-tree/
H A Didr-test.c3 * idr-test.c: Test the IDR API
7 #include <linux/idr.h>
25 void item_idr_remove(struct idr *idr, int id) argument
27 struct item *item = idr_find(idr, id);
29 idr_remove(idr, id);
36 DEFINE_IDR(idr);
38 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0, 0x4000, GFP_KERNEL) == 0);
39 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0x3ffd, 0x4000, GFP_KERNEL) == 0x3ffd);
40 idr_remove(&idr,
180 idr_u32_test1(struct idr *idr, u32 handle) argument
222 idr_align_test(struct idr *idr) argument
[all...]
H A DMakefile7 TARGETS = main idr-test multiorder xarray maple
8 CORE_OFILES := xarray.o radix-tree.o idr.o linux.o test.o find_bit.o bitmap.o \
11 regression4.o tag_check.o multiorder.o idr-test.o iteration_check.o \
32 idr-test.o: ../../../lib/test_ida.c
33 idr-test: idr-test.o $(CORE_OFILES)
42 $(RM) $(TARGETS) *.o radix-tree.c idr.c generated/map-shift.h generated/bit-length.h
53 ../../../include/linux/idr.h
58 idr.c: ../../../lib/idr
[all...]
/linux-master/include/linux/
H A Didr.h3 * include/linux/idr.h
19 struct idr { struct
56 #define DEFINE_IDR(name) struct idr name = IDR_INIT(name)
60 * @idr: idr handle
66 static inline unsigned int idr_get_cursor(const struct idr *idr) argument
68 return READ_ONCE(idr->idr_next);
73 * @idr: idr handl
79 idr_set_cursor(struct idr *idr, unsigned int val) argument
135 idr_init_base(struct idr *idr, int base) argument
149 idr_init(struct idr *idr) argument
160 idr_is_empty(const struct idr *idr) argument
[all...]
H A Dpowercap.h11 #include <linux/idr.h>
49 * @idr: idr to have unique id for its child
66 struct idr idr; member in struct:powercap_control_type
119 * @idr: Instance to an idr entry for children zones.
120 * @parent_idr: To remove reference from the parent idr.
143 struct idr idr; member in struct:powercap_zone
[all...]
H A Dpid_namespace.h12 #include <linux/idr.h>
27 struct idr idr; member in struct:pid_namespace
/linux-master/include/drm/
H A Ddrm_auth.h31 #include <linux/idr.h>
64 struct idr magic_map;
121 struct idr leases;
129 struct idr lessee_idr;
H A Ddrm_device.h7 #include <linux/idr.h>
287 struct idr object_name_idr;
/linux-master/drivers/gpu/drm/nouveau/include/nvrm/535.113.01/nvidia/kernel/inc/vgpu/
H A Dsdk-structures.h31 NvU32 idr:2; member in struct:pte_desc
/linux-master/lib/
H A Didr.c5 #include <linux/idr.h>
12 * @idr: IDR handle.
33 int idr_alloc_u32(struct idr *idr, void *ptr, u32 *nextid, argument
38 unsigned int base = idr->idr_base;
41 if (WARN_ON_ONCE(!(idr->idr_rt.xa_flags & ROOT_IS_IDR)))
42 idr->idr_rt.xa_flags |= IDR_RT_MARKER;
46 slot = idr_get_free(&idr->idr_rt, &iter, gfp, max - base);
52 radix_tree_iter_replace(&idr->idr_rt, &iter, slot, ptr);
53 radix_tree_iter_tag_clear(&idr
79 idr_alloc(struct idr *idr, void *ptr, int start, int end, gfp_t gfp) argument
117 idr_alloc_cyclic(struct idr *idr, void *ptr, int start, int end, gfp_t gfp) argument
152 idr_remove(struct idr *idr, unsigned long id) argument
172 idr_find(const struct idr *idr, unsigned long id) argument
195 idr_for_each(const struct idr *idr, int (*fn)(int id, void *p, void *data), void *data) argument
227 idr_get_next_ul(struct idr *idr, unsigned long *nextid) argument
264 idr_get_next(struct idr *idr, int *nextid) argument
290 idr_replace(struct idr *idr, void *ptr, unsigned long id) argument
[all...]
H A Dmemregion.c3 #include <linux/idr.h>
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_fdinfo.h28 #include <linux/idr.h>
/linux-master/fs/smb/server/mgmt/
H A Dksmbd_ida.h10 #include <linux/idr.h>
/linux-master/drivers/scsi/cxlflash/
H A Docxl_hw.h39 struct idr idr; /* IDR to manage contexts */ member in struct:ocxl_hw_afu
/linux-master/drivers/reset/
H A Dreset-ti-sci.c9 #include <linux/idr.h>
34 * @idr: idr structure for mapping ids to reset control structures
40 struct idr idr; member in struct:ti_sci_reset_data
72 control = idr_find(&data->idr, id);
153 control = idr_find(&data->idr, id);
178 * driver for performing any reset functions on that reset. An idr structure
179 * is allocated and used to map to the reset control structure. This idr
201 return idr_alloc(&data->idr, contro
[all...]
/linux-master/drivers/tee/
H A Dtee_private.h28 * @mutex: mutex protecting @num_users and @idr
29 * @idr: register of user space shared memory objects allocated or
44 struct mutex mutex; /* protects num_users and idr */
46 struct idr idr; member in struct:tee_device
/linux-master/drivers/char/ipmi/
H A Dkcs_bmc.h19 * @idr: Input Data Register
24 u32 idr; member in struct:kcs_ioreg
/linux-master/drivers/gpu/drm/vgem/
H A Dvgem_drv.h38 struct idr fence_idr;
/linux-master/drivers/gpu/drm/tegra/
H A Duapi.h8 #include <linux/idr.h>
19 struct idr legacy_contexts;
/linux-master/drivers/net/wireless/ath/ath12k/
H A Ddbring.h11 #include <linux/idr.h>
44 struct idr bufs_idr;
/linux-master/sound/soc/qcom/qdsp6/
H A Dq6apm.h63 struct idr graph_idr;
64 struct idr graph_info_idr;
65 struct idr sub_graphs_idr;
66 struct idr containers_idr;
67 struct idr modules_idr;
/linux-master/fs/notify/inotify/
H A Dinotify_user.c19 #include <linux/idr.h>
346 idr_set_cursor(&data->idr, (unsigned int)arg);
394 static int inotify_add_to_idr(struct idr *idr, spinlock_t *idr_lock, argument
402 ret = idr_alloc_cyclic(idr, i_mark, 1, 0, GFP_NOWAIT);
404 /* we added the mark to the idr, take a reference */
417 struct idr *idr = &group->inotify_data.idr; local
423 i_mark = idr_find(idr, w
455 struct idr *idr = &group->inotify_data.idr; local
596 struct idr *idr = &group->inotify_data.idr; local
[all...]
/linux-master/drivers/gpu/drm/vc4/
H A Dvc4_perfmon.c97 perfmon = idr_find(&vc4file->perfmon.idr, id);
112 idr_init_base(&vc4file->perfmon.idr, VC4_PERFMONID_MIN);
133 idr_for_each(&vc4file->perfmon.idr, vc4_perfmon_idr_del, NULL);
134 idr_destroy(&vc4file->perfmon.idr);
182 ret = idr_alloc(&vc4file->perfmon.idr, perfmon, VC4_PERFMONID_MIN,
212 perfmon = idr_remove(&vc4file->perfmon.idr, req->id);
240 perfmon = idr_find(&vc4file->perfmon.idr, req->id);
/linux-master/drivers/gpu/drm/v3d/
H A Dv3d_perfmon.c90 perfmon = idr_find(&v3d_priv->perfmon.idr, id);
100 idr_init_base(&v3d_priv->perfmon.idr, 1);
115 idr_for_each(&v3d_priv->perfmon.idr, v3d_perfmon_idr_del, NULL);
116 idr_destroy(&v3d_priv->perfmon.idr);
155 ret = idr_alloc(&v3d_priv->perfmon.idr, perfmon, V3D_PERFMONID_MIN,
178 perfmon = idr_remove(&v3d_priv->perfmon.idr, req->id);
202 perfmon = idr_find(&v3d_priv->perfmon.idr, req->id);
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_virtchnl_fdir.h34 struct idr fdir_rule_idr;
/linux-master/fs/proc/
H A Dloadavg.c25 idr_get_cursor(&task_active_pid_ns(current)->idr) - 1);

Completed in 290 milliseconds

1234567891011>>