/linux-4.1.27/include/linux/ |
D | idr.h | 42 struct idr { struct 56 #define DEFINE_IDR(name) struct idr name = IDR_INIT(name) argument 79 void *idr_find_slowpath(struct idr *idp, int id); 81 int idr_alloc(struct idr *idp, void *ptr, int start, int end, gfp_t gfp_mask); 82 int idr_alloc_cyclic(struct idr *idr, void *ptr, int start, int end, gfp_t gfp_mask); 83 int idr_for_each(struct idr *idp, 85 void *idr_get_next(struct idr *idp, int *nextid); 86 void *idr_replace(struct idr *idp, void *ptr, int id); 87 void idr_remove(struct idr *idp, int id); 88 void idr_destroy(struct idr *idp); [all …]
|
D | powercap.h | 79 struct idr idr; member 156 struct idr idr; member 157 struct idr *parent_idr;
|
D | cgroup-defs.h | 301 struct idr cgroup_idr; 444 struct idr css_idr;
|
D | thermal.h | 199 struct idr idr; member
|
D | ipc_namespace.h | 17 struct idr ipcs_idr;
|
D | fsnotify_backend.h | 173 struct idr idr; member
|
D | remoteproc.h | 429 struct idr notifyids;
|
/linux-4.1.27/lib/ |
D | idr.c | 66 static struct idr_layer *get_from_free_list(struct idr *idp) in get_from_free_list() 94 static struct idr_layer *idr_layer_alloc(gfp_t gfp_mask, struct idr *layer_idr) in idr_layer_alloc() 145 static inline void free_layer(struct idr *idr, struct idr_layer *p) in free_layer() argument 147 if (idr->hint == p) in free_layer() 148 RCU_INIT_POINTER(idr->hint, NULL); in free_layer() 153 static void __move_to_free_list(struct idr *idp, struct idr_layer *p) in __move_to_free_list() 160 static void move_to_free_list(struct idr *idp, struct idr_layer *p) in move_to_free_list() 192 static int __idr_pre_get(struct idr *idp, gfp_t gfp_mask) in __idr_pre_get() 220 static int sub_alloc(struct idr *idp, int *starting_id, struct idr_layer **pa, in sub_alloc() 221 gfp_t gfp_mask, struct idr *layer_idr) in sub_alloc() [all …]
|
D | Makefile | 12 idr.o int_sqrt.o extable.o \
|
/linux-4.1.27/drivers/infiniband/hw/cxgb3/ |
D | iwch.h | 109 struct idr cqidr; 110 struct idr qpidr; 111 struct idr mmidr; 152 static inline int insert_handle(struct iwch_dev *rhp, struct idr *idr, in insert_handle() argument 160 ret = idr_alloc(idr, handle, id, id + 1, GFP_NOWAIT); in insert_handle() 169 static inline void remove_handle(struct iwch_dev *rhp, struct idr *idr, u32 id) in remove_handle() argument 172 idr_remove(idr, id); in remove_handle()
|
/linux-4.1.27/drivers/infiniband/core/ |
D | uverbs.h | 168 extern struct idr ib_uverbs_pd_idr; 169 extern struct idr ib_uverbs_mr_idr; 170 extern struct idr ib_uverbs_mw_idr; 171 extern struct idr ib_uverbs_ah_idr; 172 extern struct idr ib_uverbs_cq_idr; 173 extern struct idr ib_uverbs_qp_idr; 174 extern struct idr ib_uverbs_srq_idr; 175 extern struct idr ib_uverbs_xrcd_idr; 176 extern struct idr ib_uverbs_rule_idr; 178 void idr_remove_uobj(struct idr *idp, struct ib_uobject *uobj);
|
D | uverbs_cmd.c | 119 static int idr_add_uobj(struct idr *idr, struct ib_uobject *uobj) in idr_add_uobj() argument 126 ret = idr_alloc(idr, uobj, 0, 0, GFP_NOWAIT); in idr_add_uobj() 136 void idr_remove_uobj(struct idr *idr, struct ib_uobject *uobj) in idr_remove_uobj() argument 139 idr_remove(idr, uobj->id); in idr_remove_uobj() 143 static struct ib_uobject *__idr_get_uobj(struct idr *idr, int id, in __idr_get_uobj() argument 149 uobj = idr_find(idr, id); in __idr_get_uobj() 161 static struct ib_uobject *idr_read_uobj(struct idr *idr, int id, in idr_read_uobj() argument 166 uobj = __idr_get_uobj(idr, id, context); in idr_read_uobj() 182 static struct ib_uobject *idr_write_uobj(struct idr *idr, int id, in idr_write_uobj() argument 187 uobj = __idr_get_uobj(idr, id, context); in idr_write_uobj() [all …]
|
D | cma.c | 97 struct idr *ps; 2320 static int cma_alloc_port(struct idr *ps, struct rdma_id_private *id_priv, in cma_alloc_port() 2343 static int cma_alloc_any_port(struct idr *ps, struct rdma_id_private *id_priv) in cma_alloc_any_port() 2409 static int cma_use_port(struct idr *ps, struct rdma_id_private *id_priv) in cma_use_port() 2442 static struct idr *cma_select_inet_ps(struct rdma_id_private *id_priv) in cma_select_inet_ps() 2458 static struct idr *cma_select_ib_ps(struct rdma_id_private *id_priv) in cma_select_ib_ps() 2460 struct idr *ps = NULL; in cma_select_ib_ps() 2491 struct idr *ps; in cma_get_port()
|
D | cm.c | 79 struct idr local_id_table;
|
/linux-4.1.27/drivers/infiniband/hw/cxgb4/ |
D | iw_cxgb4.h | 256 struct idr cqidr; 257 struct idr qpidr; 258 struct idr mmidr; 263 struct idr hwtid_idr; 264 struct idr atid_idr; 265 struct idr stid_idr; 295 static inline int _insert_handle(struct c4iw_dev *rhp, struct idr *idr, in _insert_handle() argument 305 ret = idr_alloc(idr, handle, id, id + 1, GFP_ATOMIC); in _insert_handle() 316 static inline int insert_handle(struct c4iw_dev *rhp, struct idr *idr, in insert_handle() argument 319 return _insert_handle(rhp, idr, handle, id, 1); in insert_handle() [all …]
|
/linux-4.1.27/fs/notify/inotify/ |
D | inotify_user.c | 346 static int inotify_add_to_idr(struct idr *idr, spinlock_t *idr_lock, in inotify_add_to_idr() argument 354 ret = idr_alloc_cyclic(idr, i_mark, 1, 0, GFP_NOWAIT); in inotify_add_to_idr() 369 struct idr *idr = &group->inotify_data.idr; in inotify_idr_find_locked() local 375 i_mark = idr_find(idr, wd); in inotify_idr_find_locked() 403 struct idr *idr = &group->inotify_data.idr; in do_inotify_remove_from_idr() local 409 idr_remove(idr, wd); in do_inotify_remove_from_idr() 574 struct idr *idr = &group->inotify_data.idr; in inotify_new_watch() local 591 ret = inotify_add_to_idr(idr, idr_lock, tmp_i_mark); in inotify_new_watch() 655 idr_init(&group->inotify_data.idr); in inotify_new_group()
|
D | inotify_fsnotify.c | 166 idr_for_each(&group->inotify_data.idr, idr_callback, group); in inotify_free_group_priv() 167 idr_destroy(&group->inotify_data.idr); in inotify_free_group_priv()
|
/linux-4.1.27/drivers/thermal/ |
D | cpu_cooling.c | 90 static int get_idr(struct idr *idr, int *id) in get_idr() argument 95 ret = idr_alloc(idr, NULL, 0, 0, GFP_KERNEL); in get_idr() 109 static void release_idr(struct idr *idr, int id) in release_idr() argument 112 idr_remove(idr, id); in release_idr()
|
D | thermal_core.c | 150 static int get_idr(struct idr *idr, struct mutex *lock, int *id) in get_idr() argument 156 ret = idr_alloc(idr, NULL, 0, 0, GFP_KERNEL); in get_idr() 165 static void release_idr(struct idr *idr, struct mutex *lock, int id) in release_idr() argument 169 idr_remove(idr, id); in release_idr() 1014 result = get_idr(&tz->idr, &tz->lock, &dev->id); in thermal_zone_bind_cooling_device() 1055 release_idr(&tz->idr, &tz->lock, dev->id); in thermal_zone_bind_cooling_device() 1101 release_idr(&tz->idr, &tz->lock, pos->id); in thermal_zone_unbind_cooling_device() 1516 idr_init(&tz->idr); in thermal_zone_device_register() 1694 idr_destroy(&tz->idr); in thermal_zone_device_unregister()
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_resource.c | 107 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release_id() local 111 idr_remove(idr, res->id); in vmw_resource_release_id() 122 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() 188 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_alloc_id() local 195 ret = idr_alloc(idr, res, 1, 0, GFP_NOWAIT); in vmw_resource_alloc_id() 264 struct idr *idr, int id) in vmw_resource_lookup() argument 269 res = idr_find(idr, id); in vmw_resource_lookup() 865 struct idr *idr = &dev_priv->res_idr[vmw_res_stream]; in vmw_stream_unref_ioctl() local 869 res = vmw_resource_lookup(dev_priv, idr, arg->stream_id); in vmw_stream_unref_ioctl()
|
D | vmwgfx_drv.h | 432 struct idr res_idr[vmw_res_max];
|
/linux-4.1.27/Documentation/DocBook/ |
D | .kernel-api.xml.cmd | 2 …rc16.c lib/crc-itu-t.c lib/crc32.c lib/crc-ccitt.c include/linux/idr.h lib/idr.c lib/idr.c include…
|
/linux-4.1.27/drivers/powercap/ |
D | powercap_sys.c | 410 idr_destroy(&power_zone->idr); in powercap_release() 424 idr_destroy(&control_type->idr); in powercap_release() 526 power_zone->parent_idr = &control_type->idr; in powercap_register_zone() 529 power_zone->parent_idr = &parent->idr; in powercap_register_zone() 540 idr_init(&power_zone->idr); in powercap_register_zone() 640 idr_init(&control_type->idr); in powercap_register_control_type()
|
/linux-4.1.27/fs/nfs/ |
D | netns.h | 26 struct idr cb_ident_idr; /* Protected by nfs_client_lock */
|
/linux-4.1.27/net/tipc/ |
D | server.h | 64 struct idr conn_idr;
|
/linux-4.1.27/drivers/gpu/drm/sis/ |
D | sis_drv.h | 67 struct idr object_idr;
|
/linux-4.1.27/arch/powerpc/kvm/ |
D | mpic.c | 149 uint32_t idr; /* IRQ destination register */ member 564 return opp->src[n_IRQ].idr; in read_IRQreg_idr() 595 src->idr = val & mask; in write_IRQreg_idr() 596 pr_debug("Set IDR %d to 0x%08x\n", n_IRQ, src->idr); in write_IRQreg_idr() 599 if (src->idr & crit_mask) { in write_IRQreg_idr() 600 if (src->idr & normal_mask) { in write_IRQreg_idr() 612 if (src->idr & (1UL << n_ci)) in write_IRQreg_idr() 618 src->destmask = src->idr & normal_mask; in write_IRQreg_idr() 621 src->destmask = src->idr; in write_IRQreg_idr() 632 pr_debug("Set ILR %d to 0x%08x, output %d\n", n_IRQ, src->idr, in write_IRQreg_ilr()
|
/linux-4.1.27/drivers/target/iscsi/ |
D | iscsi_target.h | 45 extern struct idr sess_idr;
|
D | iscsi_target.c | 55 static struct idr tiqn_idr; 56 struct idr sess_idr;
|
/linux-4.1.27/net/9p/ |
D | util.c | 45 struct idr pool;
|
/linux-4.1.27/drivers/dca/ |
D | dca-sysfs.c | 33 static struct idr dca_idr;
|
/linux-4.1.27/drivers/staging/android/ion/ |
D | ion.c | 87 struct idr idr; member 370 idr_remove(&client->idr, handle->id); in ion_handle_destroy() 426 handle = idr_find(&client->idr, id); in ion_handle_get_by_id() 438 return idr_find(&client->idr, handle->id) == handle; in ion_handle_validate() 448 id = idr_alloc(&client->idr, handle, 1, 0, GFP_KERNEL); in ion_handle_add() 772 idr_init(&client->idr); in ion_client_create() 839 idr_destroy(&client->idr); in ion_client_destroy()
|
/linux-4.1.27/drivers/infiniband/hw/amso1100/ |
D | c2_qp.c | 388 ret = idr_alloc_cyclic(&c2dev->qp_table.idr, qp, 0, 0, GFP_NOWAIT); in c2_alloc_qpn() 400 idr_remove(&c2dev->qp_table.idr, qpn); in c2_free_qpn() 410 qp = idr_find(&c2dev->qp_table.idr, qpn); in c2_find_qpn() 1018 idr_init(&c2dev->qp_table.idr); in c2_init_qp_table() 1023 idr_destroy(&c2dev->qp_table.idr); in c2_cleanup_qp_table()
|
D | c2.h | 266 struct idr idr; member
|
/linux-4.1.27/fs/ocfs2/cluster/ |
D | tcp_internal.h | 106 struct idr nn_status_idr;
|
/linux-4.1.27/drivers/infiniband/hw/ehca/ |
D | ehca_classes.h | 376 extern struct idr ehca_qp_idr; 377 extern struct idr ehca_cq_idr;
|
/linux-4.1.27/Documentation/blockdev/drbd/ |
D | data-structure-v9.txt | 33 devices can be accessed by their minor device number via the drbd_devices idr.
|
/linux-4.1.27/include/drm/ |
D | drmP.h | 311 struct idr object_idr; 750 struct idr ctx_idr; 833 struct idr object_name_idr;
|
D | drm_crtc.h | 1067 …struct idr crtc_idr; /* use this idr for all IDs, fb, crtc, connector, modes - just makes life eas… 1068 …struct idr tile_idr; /* use this idr for all IDs, fb, crtc, connector, modes - just makes life eas…
|
/linux-4.1.27/fs/dlm/ |
D | dlm_internal.h | 528 struct idr ls_lkbidr; 610 struct idr ls_recover_idr;
|
/linux-4.1.27/drivers/gpu/drm/via/ |
D | via_drv.h | 98 struct idr object_idr;
|
/linux-4.1.27/drivers/ata/ |
D | sata_dwc_460ex.c | 103 u32 idr; /* ID Register */ member 1185 u32 idr, versionr; in sata_dwc_probe() local 1223 idr = in_le32(&hsdev->sata_dwc_regs->idr); in sata_dwc_probe() 1226 idr, ver[0], ver[1], ver[2]); in sata_dwc_probe()
|
/linux-4.1.27/drivers/atm/ |
D | nicstar.h | 716 struct idr idr; member
|
D | nicstar.c | 246 idr_destroy(&card->idr); in nicstar_remove_one() 640 idr_init(&card->idr); in ns_init_card() 1019 id1 = idr_alloc(&card->idr, handle1, 0, 0, GFP_ATOMIC); in push_rxbufs() 1023 id2 = idr_alloc(&card->idr, handle2, 0, 0, GFP_ATOMIC); in push_rxbufs() 1151 card->rcbuf = idr_find(&card->idr, in ns_irq_handler() 1980 skb = idr_find(&card->idr, id); in dequeue_rx() 1986 idr_remove(&card->idr, id); in dequeue_rx()
|
/linux-4.1.27/drivers/net/ppp/ |
D | ppp_generic.c | 203 struct idr units_idr; 281 static int unit_get(struct idr *p, void *ptr); 282 static int unit_set(struct idr *p, void *ptr, int n); 283 static void unit_put(struct idr *p, int n); 284 static void *unit_find(struct idr *p, int n); 2989 static int unit_set(struct idr *p, void *ptr, int n) in unit_set() 3000 static int unit_get(struct idr *p, void *ptr) in unit_get() 3006 static void unit_put(struct idr *p, int n) in unit_put() 3012 static void *unit_find(struct idr *p, int n) in unit_find()
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
D | exynos_drm_ipp.c | 95 struct idr ipp_idr; 96 struct idr prop_idr; 147 static int ipp_create_id(struct idr *id_idr, struct mutex *lock, void *obj) in ipp_create_id() 158 static void ipp_remove_id(struct idr *id_idr, struct mutex *lock, u32 id) in ipp_remove_id() 165 static void *ipp_find_obj(struct idr *id_idr, struct mutex *lock, u32 id) in ipp_find_obj()
|
/linux-4.1.27/drivers/gpu/drm/qxl/ |
D | qxl_drv.h | 288 struct idr release_idr; 311 struct idr surf_id_idr;
|
/linux-4.1.27/drivers/firewire/ |
D | core.h | 135 extern struct idr fw_device_idr;
|
D | core-cdev.c | 65 struct idr resource_idr;
|
/linux-4.1.27/include/net/ |
D | net_namespace.h | 61 struct idr netns_ids;
|
/linux-4.1.27/drivers/usb/gadget/function/ |
D | f_hid.c | 850 if (idr_is_empty(&hidg_ida.idr)) in hidg_free_inst() 876 if (idr_is_empty(&hidg_ida.idr)) { in hidg_alloc_inst() 889 if (idr_is_empty(&hidg_ida.idr)) in hidg_alloc_inst()
|
D | f_printer.c | 1271 if (idr_is_empty(&printer_ida.idr)) in gprinter_free_inst() 1295 if (idr_is_empty(&printer_ida.idr)) { in gprinter_alloc_inst() 1308 if (idr_is_empty(&printer_ida.idr)) in gprinter_alloc_inst()
|
/linux-4.1.27/drivers/scsi/bfa/ |
D | bfad_drv.h | 331 extern struct idr bfad_im_port_index;
|
/linux-4.1.27/Documentation/infiniband/ |
D | user_verbs.txt | 35 ib_uverbs module maintains idr tables that are used to translate
|
/linux-4.1.27/drivers/tty/serial/ |
D | atmel_serial.c | 549 uint32_t idr = 0; in atmel_disable_ms() local 562 idr |= ATMEL_US_CTSIC; in atmel_disable_ms() 567 idr |= ATMEL_US_DSRIC; in atmel_disable_ms() 572 idr |= ATMEL_US_RIIC; in atmel_disable_ms() 577 idr |= ATMEL_US_DCDIC; in atmel_disable_ms() 579 UART_PUT_IDR(port, idr); in atmel_disable_ms()
|
/linux-4.1.27/kernel/ |
D | cgroup.c | 199 static int cgroup_idr_alloc(struct idr *idr, void *ptr, int start, int end, in cgroup_idr_alloc() argument 206 ret = idr_alloc(idr, ptr, start, end, gfp_mask); in cgroup_idr_alloc() 212 static void *cgroup_idr_replace(struct idr *idr, void *ptr, int id) in cgroup_idr_replace() argument 217 ret = idr_replace(idr, ptr, id); in cgroup_idr_replace() 222 static void cgroup_idr_remove(struct idr *idr, int id) in cgroup_idr_remove() argument 225 idr_remove(idr, id); in cgroup_idr_remove()
|
/linux-4.1.27/arch/powerpc/platforms/52xx/ |
D | mpc52xx_pci.c | 64 u32 idr; /* PCI + 0x00 */ member
|
/linux-4.1.27/Documentation/filesystems/ |
D | inotify.txt | 33 cleanly--and we can, the idr layer makes stuff like this trivial--then we
|
/linux-4.1.27/fs/nfsd/ |
D | state.h | 298 struct idr cl_stateids; /* stateid lookup */
|
/linux-4.1.27/include/net/sctp/ |
D | sctp.h | 478 extern struct idr sctp_assocs_id;
|
/linux-4.1.27/drivers/block/drbd/ |
D | drbd_int.h | 203 extern struct idr drbd_devices; /* RCU, updates: genl_lock() */ 681 struct idr devices; /* volume number to device mapping */ 716 struct idr peer_devices; /* volume number to peer device mapping */
|
D | drbd_main.c | 118 struct idr drbd_devices;
|
/linux-4.1.27/drivers/misc/cxl/ |
D | cxl.h | 359 struct idr contexts_idr;
|
/linux-4.1.27/drivers/gpu/drm/ |
D | drm_drv.c | 58 static struct idr drm_minors_idr;
|
/linux-4.1.27/drivers/net/wireless/ath/ath10k/ |
D | htt.h | 1335 struct idr pending_tx;
|
/linux-4.1.27/drivers/rpmsg/ |
D | virtio_rpmsg_bus.c | 68 struct idr endpoints;
|
/linux-4.1.27/drivers/infiniband/hw/mlx4/ |
D | mlx4_ib.h | 456 struct idr pv_id_table;
|
/linux-4.1.27/drivers/target/ |
D | target_core_user.c | 104 struct idr commands;
|
/linux-4.1.27/drivers/vfio/ |
D | vfio.c | 46 struct idr group_idr;
|
/linux-4.1.27/net/sctp/ |
D | protocol.c | 68 struct idr sctp_assocs_id;
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
D | qib_init.c | 97 static struct idr qib_unit_table;
|
/linux-4.1.27/drivers/net/wireless/mwifiex/ |
D | main.h | 601 struct idr ack_status_frames;
|
/linux-4.1.27/net/mac80211/ |
D | ieee80211_i.h | 1353 struct idr ack_status_frames;
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
D | ipath_driver.c | 67 static struct idr unit_table;
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | i915_drv.h | 2173 struct idr context_idr;
|
/linux-4.1.27/kernel/events/ |
D | core.c | 7184 static struct idr pmu_idr;
|