Home
last modified time | relevance | path

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

12

/linux-4.19.296/include/linux/
Didr.h19 struct idr { struct
56 #define DEFINE_IDR(name) struct idr name = IDR_INIT(name)
66 static inline unsigned int idr_get_cursor(const struct idr *idr) in idr_get_cursor() argument
68 return READ_ONCE(idr->idr_next); in idr_get_cursor()
79 static inline void idr_set_cursor(struct idr *idr, unsigned int val) in idr_set_cursor() argument
81 WRITE_ONCE(idr->idr_next, val); in idr_set_cursor()
101 #define idr_lock(idr) xa_lock(&(idr)->idr_rt) argument
102 #define idr_unlock(idr) xa_unlock(&(idr)->idr_rt) argument
103 #define idr_lock_bh(idr) xa_lock_bh(&(idr)->idr_rt) argument
104 #define idr_unlock_bh(idr) xa_unlock_bh(&(idr)->idr_rt) argument
[all …]
Dpowercap.h79 struct idr idr; member
156 struct idr idr; member
157 struct idr *parent_idr;
Dpid_namespace.h26 struct idr idr; member
Dipc_namespace.h20 struct idr ipcs_idr;
Dcgroup-defs.h486 struct idr cgroup_idr;
663 struct idr css_idr;
Dfsnotify_backend.h188 struct idr idr; member
/linux-4.19.296/lib/
Didr.c34 int idr_alloc_u32(struct idr *idr, void *ptr, u32 *nextid, in idr_alloc_u32() argument
39 unsigned int base = idr->idr_base; in idr_alloc_u32()
44 if (WARN_ON_ONCE(!(idr->idr_rt.gfp_mask & ROOT_IS_IDR))) in idr_alloc_u32()
45 idr->idr_rt.gfp_mask |= IDR_RT_MARKER; in idr_alloc_u32()
49 slot = idr_get_free(&idr->idr_rt, &iter, gfp, max - base); in idr_alloc_u32()
55 radix_tree_iter_replace(&idr->idr_rt, &iter, slot, ptr); in idr_alloc_u32()
56 radix_tree_iter_tag_clear(&idr->idr_rt, &iter, IDR_FREE); in idr_alloc_u32()
82 int idr_alloc(struct idr *idr, void *ptr, int start, int end, gfp_t gfp) in idr_alloc() argument
90 ret = idr_alloc_u32(idr, ptr, &id, end > 0 ? end - 1 : INT_MAX, gfp); in idr_alloc()
120 int idr_alloc_cyclic(struct idr *idr, void *ptr, int start, int end, gfp_t gfp) in idr_alloc_cyclic() argument
[all …]
/linux-4.19.296/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()
/linux-4.19.296/fs/notify/inotify/
Dinotify_user.c319 idr_set_cursor(&data->idr, (unsigned int)arg); in inotify_ioctl()
359 static int inotify_add_to_idr(struct idr *idr, spinlock_t *idr_lock, in inotify_add_to_idr() argument
367 ret = idr_alloc_cyclic(idr, i_mark, 1, 0, GFP_NOWAIT); in inotify_add_to_idr()
382 struct idr *idr = &group->inotify_data.idr; in inotify_idr_find_locked() local
388 i_mark = idr_find(idr, wd); in inotify_idr_find_locked()
420 struct idr *idr = &group->inotify_data.idr; in inotify_remove_from_idr() local
471 idr_remove(idr, wd); in inotify_remove_from_idr()
567 struct idr *idr = &group->inotify_data.idr; in inotify_new_watch() local
580 ret = inotify_add_to_idr(idr, idr_lock, tmp_i_mark); in inotify_new_watch()
649 idr_init(&group->inotify_data.idr); in inotify_new_group()
Dinotify_fsnotify.c183 idr_for_each(&group->inotify_data.idr, idr_callback, group); in inotify_free_group_priv()
184 idr_destroy(&group->inotify_data.idr); in inotify_free_group_priv()
/linux-4.19.296/include/drm/
Ddrm_auth.h82 struct idr magic_map;
96 struct idr leases;
97 struct idr lessee_idr;
Ddrm_device.h108 struct idr ctx_idr;
218 struct idr object_name_idr;
Ddrm_file.h248 struct idr object_idr;
254 struct idr syncobj_idr;
Ddrm_mode_config.h399 struct idr crtc_idr;
407 struct idr tile_idr;
/linux-4.19.296/drivers/char/ipmi/
Dkcs_bmc_aspeed.c230 { .idr = LPC_IDR1, .odr = LPC_ODR1, .str = LPC_STR1 },
231 { .idr = LPC_IDR2, .odr = LPC_ODR2, .str = LPC_STR2 },
232 { .idr = LPC_IDR3, .odr = LPC_ODR3, .str = LPC_STR3 },
233 { .idr = LPC_IDR4, .odr = LPC_ODR4, .str = LPC_STR4 },
287 kcs_bmc->ioreg.idr, kcs_bmc->ioreg.odr, kcs_bmc->ioreg.str); in aspeed_kcs_probe()
Dkcs_bmc_npcm7xx.c161 kcs_bmc->ioreg.idr = priv->reg->dib; in npcm7xx_kcs_probe()
182 kcs_bmc->ioreg.idr, kcs_bmc->ioreg.odr, kcs_bmc->ioreg.str); in npcm7xx_kcs_probe()
Dkcs_bmc.h64 u32 idr; member
/linux-4.19.296/drivers/misc/ocxl/
Docxl_internal.h46 struct idr contexts_idr;
79 struct idr irq_idr;
/linux-4.19.296/fs/nfs/
Dnetns.h27 struct idr cb_ident_idr; /* Protected by nfs_client_lock */
/linux-4.19.296/fs/proc/
Dloadavg.c27 idr_get_cursor(&task_active_pid_ns(current)->idr) - 1); in loadavg_proc_show()
/linux-4.19.296/include/net/9p/
Dclient.h141 struct idr fids;
142 struct idr reqs;
/linux-4.19.296/drivers/misc/mic/scif/
Dscif_ports.c24 struct idr scif_ports;
Dscif_main.h209 extern struct idr scif_ports;
/linux-4.19.296/drivers/dca/
Ddca-sysfs.c33 static struct idr dca_idr;
/linux-4.19.296/fs/ocfs2/cluster/
Dtcp_internal.h106 struct idr nn_status_idr;

12