/linux-4.19.296/include/linux/ |
D | idr.h | 19 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 …]
|
D | powercap.h | 79 struct idr idr; member 156 struct idr idr; member 157 struct idr *parent_idr;
|
D | pid_namespace.h | 26 struct idr idr; member
|
D | ipc_namespace.h | 20 struct idr ipcs_idr;
|
D | cgroup-defs.h | 486 struct idr cgroup_idr; 663 struct idr css_idr;
|
D | fsnotify_backend.h | 188 struct idr idr; member
|
/linux-4.19.296/lib/ |
D | idr.c | 34 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/ |
D | reset-ti-sci.c | 48 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/ |
D | inotify_user.c | 319 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()
|
D | inotify_fsnotify.c | 183 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/ |
D | drm_auth.h | 82 struct idr magic_map; 96 struct idr leases; 97 struct idr lessee_idr;
|
D | drm_device.h | 108 struct idr ctx_idr; 218 struct idr object_name_idr;
|
D | drm_file.h | 248 struct idr object_idr; 254 struct idr syncobj_idr;
|
D | drm_mode_config.h | 399 struct idr crtc_idr; 407 struct idr tile_idr;
|
/linux-4.19.296/drivers/char/ipmi/ |
D | kcs_bmc_aspeed.c | 230 { .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()
|
D | kcs_bmc_npcm7xx.c | 161 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()
|
D | kcs_bmc.h | 64 u32 idr; member
|
/linux-4.19.296/drivers/misc/ocxl/ |
D | ocxl_internal.h | 46 struct idr contexts_idr; 79 struct idr irq_idr;
|
/linux-4.19.296/fs/nfs/ |
D | netns.h | 27 struct idr cb_ident_idr; /* Protected by nfs_client_lock */
|
/linux-4.19.296/fs/proc/ |
D | loadavg.c | 27 idr_get_cursor(&task_active_pid_ns(current)->idr) - 1); in loadavg_proc_show()
|
/linux-4.19.296/include/net/9p/ |
D | client.h | 141 struct idr fids; 142 struct idr reqs;
|
/linux-4.19.296/drivers/misc/mic/scif/ |
D | scif_ports.c | 24 struct idr scif_ports;
|
D | scif_main.h | 209 extern struct idr scif_ports;
|
/linux-4.19.296/drivers/dca/ |
D | dca-sysfs.c | 33 static struct idr dca_idr;
|
/linux-4.19.296/fs/ocfs2/cluster/ |
D | tcp_internal.h | 106 struct idr nn_status_idr;
|