/linux-4.4.14/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 | 326 struct idr cgroup_idr; 473 struct idr css_idr;
|
D | ipc_namespace.h | 17 struct idr ipcs_idr;
|
D | fsnotify_backend.h | 171 struct idr idr; member
|
D | thermal.h | 209 struct idr idr; member
|
D | remoteproc.h | 431 struct idr notifyids;
|
D | intel-iommu.h | 431 struct idr pasid_idr;
|
/linux-4.4.14/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.4.14/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.4.14/drivers/infiniband/core/ |
D | uverbs.h | 175 extern struct idr ib_uverbs_pd_idr; 176 extern struct idr ib_uverbs_mr_idr; 177 extern struct idr ib_uverbs_mw_idr; 178 extern struct idr ib_uverbs_ah_idr; 179 extern struct idr ib_uverbs_cq_idr; 180 extern struct idr ib_uverbs_qp_idr; 181 extern struct idr ib_uverbs_srq_idr; 182 extern struct idr ib_uverbs_xrcd_idr; 183 extern struct idr ib_uverbs_rule_idr; 185 void idr_remove_uobj(struct idr *idp, struct ib_uobject *uobj);
|
D | uverbs_cmd.c | 121 static int idr_add_uobj(struct idr *idr, struct ib_uobject *uobj) in idr_add_uobj() argument 128 ret = idr_alloc(idr, uobj, 0, 0, GFP_NOWAIT); in idr_add_uobj() 138 void idr_remove_uobj(struct idr *idr, struct ib_uobject *uobj) in idr_remove_uobj() argument 141 idr_remove(idr, uobj->id); in idr_remove_uobj() 145 static struct ib_uobject *__idr_get_uobj(struct idr *idr, int id, in __idr_get_uobj() argument 151 uobj = idr_find(idr, id); in __idr_get_uobj() 163 static struct ib_uobject *idr_read_uobj(struct idr *idr, int id, in idr_read_uobj() argument 168 uobj = __idr_get_uobj(idr, id, context); in idr_read_uobj() 184 static struct ib_uobject *idr_write_uobj(struct idr *idr, int id, in idr_write_uobj() argument 189 uobj = __idr_get_uobj(idr, id, context); in idr_write_uobj() [all …]
|
D | cma.c | 118 struct idr tcp_ps; 119 struct idr udp_ps; 120 struct idr ipoib_ps; 121 struct idr ib_ps; 129 static struct idr *cma_pernet_idr(struct net *net, enum rdma_port_space ps) in cma_pernet_idr() 164 struct idr *idr = cma_pernet_idr(net, ps); in cma_ps_alloc() local 166 return idr_alloc(idr, bind_list, snum, snum + 1, GFP_KERNEL); in cma_ps_alloc() 172 struct idr *idr = cma_pernet_idr(net, ps); in cma_ps_find() local 174 return idr_find(idr, snum); in cma_ps_find() 179 struct idr *idr = cma_pernet_idr(net, ps); in cma_ps_remove() local [all …]
|
D | cm.c | 79 struct idr local_id_table;
|
/linux-4.4.14/drivers/infiniband/hw/cxgb4/ |
D | iw_cxgb4.h | 254 struct idr cqidr; 255 struct idr qpidr; 256 struct idr mmidr; 261 struct idr hwtid_idr; 262 struct idr atid_idr; 263 struct idr stid_idr; 293 static inline int _insert_handle(struct c4iw_dev *rhp, struct idr *idr, in _insert_handle() argument 303 ret = idr_alloc(idr, handle, id, id + 1, GFP_ATOMIC); in _insert_handle() 314 static inline int insert_handle(struct c4iw_dev *rhp, struct idr *idr, in insert_handle() argument 317 return _insert_handle(rhp, idr, handle, id, 1); in insert_handle() [all …]
|
/linux-4.4.14/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.4.14/drivers/thermal/ |
D | devfreq_cooling.c | 70 static int get_idr(struct idr *idr, int *id) in get_idr() argument 75 ret = idr_alloc(idr, NULL, 0, 0, GFP_KERNEL); in get_idr() 89 static void release_idr(struct idr *idr, int id) in release_idr() argument 92 idr_remove(idr, id); in release_idr()
|
D | cpu_cooling.c | 125 static int get_idr(struct idr *idr, int *id) in get_idr() argument 130 ret = idr_alloc(idr, NULL, 0, 0, GFP_KERNEL); in get_idr() 144 static void release_idr(struct idr *idr, int id) in release_idr() argument 147 idr_remove(idr, id); in release_idr()
|
D | thermal_core.c | 209 static int get_idr(struct idr *idr, struct mutex *lock, int *id) in get_idr() argument 215 ret = idr_alloc(idr, NULL, 0, 0, GFP_KERNEL); in get_idr() 224 static void release_idr(struct idr *idr, struct mutex *lock, int id) in release_idr() argument 228 idr_remove(idr, id); in release_idr() 1309 result = get_idr(&tz->idr, &tz->lock, &dev->id); in thermal_zone_bind_cooling_device() 1362 release_idr(&tz->idr, &tz->lock, dev->id); in thermal_zone_bind_cooling_device() 1409 release_idr(&tz->idr, &tz->lock, pos->id); in thermal_zone_unbind_cooling_device() 1826 idr_init(&tz->idr); in thermal_zone_device_register() 2019 idr_destroy(&tz->idr); in thermal_zone_device_unregister()
|
/linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_resource.c | 108 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release_id() local 112 idr_remove(idr, res->id); in vmw_resource_release_id() 123 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release() local 162 idr_remove(idr, id); in vmw_resource_release() 187 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_alloc_id() local 194 ret = idr_alloc(idr, res, 1, 0, GFP_NOWAIT); in vmw_resource_alloc_id() 263 struct idr *idr, int id) in vmw_resource_lookup() argument 268 res = idr_find(idr, id); in vmw_resource_lookup() 863 struct idr *idr = &dev_priv->res_idr[vmw_res_stream]; in vmw_stream_unref_ioctl() local 867 res = vmw_resource_lookup(dev_priv, idr, arg->stream_id); in vmw_stream_unref_ioctl()
|
D | vmwgfx_drv.h | 419 struct idr res_idr[vmw_res_max];
|
/linux-4.4.14/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…
|
D | kernel-api.xml.db | 141 API-idr-preload 142 API-idr-alloc 143 API-idr-alloc-cyclic 144 API-idr-remove 145 API-idr-destroy 146 API-idr-for-each 147 API-idr-get-next 148 API-idr-replace 149 API-idr-init 293 API-ipc-obtain-object-idr
|
/linux-4.4.14/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.4.14/fs/nfs/ |
D | netns.h | 26 struct idr cb_ident_idr; /* Protected by nfs_client_lock */
|
/linux-4.4.14/net/tipc/ |
D | server.h | 64 struct idr conn_idr;
|
/linux-4.4.14/drivers/gpu/drm/sis/ |
D | sis_drv.h | 67 struct idr object_idr;
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/net/9p/ |
D | util.c | 45 struct idr pool;
|
/linux-4.4.14/include/drm/ |
D | drmP.h | 326 struct idr object_idr; 386 struct idr magic_map; 773 struct idr ctx_idr; 856 struct idr object_name_idr;
|
D | drm_crtc.h | 1056 …struct idr crtc_idr; /* use this idr for all IDs, fb, crtc, connector, modes - just makes life eas… 1057 …struct idr tile_idr; /* use this idr for all IDs, fb, crtc, connector, modes - just makes life eas…
|
/linux-4.4.14/drivers/dca/ |
D | dca-sysfs.c | 33 static struct idr dca_idr;
|
/linux-4.4.14/drivers/staging/rdma/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.4.14/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() 774 idr_init(&client->idr); in ion_client_create() 841 idr_destroy(&client->idr); in ion_client_destroy()
|
/linux-4.4.14/fs/ocfs2/cluster/ |
D | tcp_internal.h | 106 struct idr nn_status_idr;
|
/linux-4.4.14/drivers/staging/rdma/ehca/ |
D | ehca_classes.h | 376 extern struct idr ehca_qp_idr; 377 extern struct idr ehca_cq_idr;
|
/linux-4.4.14/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.4.14/fs/dlm/ |
D | dlm_internal.h | 528 struct idr ls_lkbidr; 610 struct idr ls_recover_idr;
|
/linux-4.4.14/drivers/gpu/drm/virtio/ |
D | virtgpu_drv.h | 184 struct idr resource_idr; 194 struct idr ctx_id_idr;
|
/linux-4.4.14/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.4.14/drivers/gpu/drm/via/ |
D | via_drv.h | 98 struct idr object_idr;
|
/linux-4.4.14/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.4.14/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); 3016 static int unit_set(struct idr *p, void *ptr, int n) in unit_set() 3027 static int unit_get(struct idr *p, void *ptr) in unit_get() 3033 static void unit_put(struct idr *p, int n) in unit_put() 3039 static void *unit_find(struct idr *p, int n) in unit_find()
|
/linux-4.4.14/drivers/gpu/drm/exynos/ |
D | exynos_drm_ipp.c | 92 struct idr ipp_idr; 93 struct idr prop_idr; 120 static int ipp_create_id(struct idr *id_idr, struct mutex *lock, void *obj) in ipp_create_id() 131 static void ipp_remove_id(struct idr *id_idr, struct mutex *lock, u32 id) in ipp_remove_id() 138 static void *ipp_find_obj(struct idr *id_idr, struct mutex *lock, u32 id) in ipp_find_obj()
|
/linux-4.4.14/drivers/gpu/drm/qxl/ |
D | qxl_drv.h | 288 struct idr release_idr; 311 struct idr surf_id_idr;
|
/linux-4.4.14/drivers/firewire/ |
D | core.h | 135 extern struct idr fw_device_idr;
|
D | core-cdev.c | 65 struct idr resource_idr;
|
/linux-4.4.14/include/net/ |
D | net_namespace.h | 64 struct idr netns_ids;
|
/linux-4.4.14/drivers/usb/gadget/function/ |
D | f_hid.c | 840 if (idr_is_empty(&hidg_ida.idr)) in hidg_free_inst() 866 if (idr_is_empty(&hidg_ida.idr)) { in hidg_alloc_inst() 879 if (idr_is_empty(&hidg_ida.idr)) in hidg_alloc_inst()
|
D | f_printer.c | 1272 if (idr_is_empty(&printer_ida.idr)) in gprinter_free_inst() 1296 if (idr_is_empty(&printer_ida.idr)) { in gprinter_alloc_inst() 1309 if (idr_is_empty(&printer_ida.idr)) in gprinter_alloc_inst()
|
/linux-4.4.14/drivers/scsi/bfa/ |
D | bfad_drv.h | 331 extern struct idr bfad_im_port_index;
|
/linux-4.4.14/Documentation/infiniband/ |
D | user_verbs.txt | 35 ib_uverbs module maintains idr tables that are used to translate
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ctx.c | 297 struct idr *idp; in amdgpu_ctx_mgr_fini()
|
D | amdgpu.h | 1045 struct idr ctx_handles; 1073 struct idr bo_list_handles;
|
/linux-4.4.14/drivers/tty/serial/ |
D | atmel_serial.c | 589 uint32_t idr = 0; in atmel_disable_ms() local 602 idr |= ATMEL_US_CTSIC; in atmel_disable_ms() 607 idr |= ATMEL_US_DSRIC; in atmel_disable_ms() 612 idr |= ATMEL_US_RIIC; in atmel_disable_ms() 617 idr |= ATMEL_US_DCDIC; in atmel_disable_ms() 619 atmel_uart_writel(port, ATMEL_US_IDR, idr); in atmel_disable_ms()
|
/linux-4.4.14/arch/powerpc/platforms/52xx/ |
D | mpc52xx_pci.c | 64 u32 idr; /* PCI + 0x00 */ member
|
/linux-4.4.14/kernel/ |
D | cgroup.c | 301 static int cgroup_idr_alloc(struct idr *idr, void *ptr, int start, int end, in cgroup_idr_alloc() argument 308 ret = idr_alloc(idr, ptr, start, end, gfp_mask & ~__GFP_DIRECT_RECLAIM); in cgroup_idr_alloc() 314 static void *cgroup_idr_replace(struct idr *idr, void *ptr, int id) in cgroup_idr_replace() argument 319 ret = idr_replace(idr, ptr, id); in cgroup_idr_replace() 324 static void cgroup_idr_remove(struct idr *idr, int id) in cgroup_idr_remove() argument 327 idr_remove(idr, id); in cgroup_idr_remove()
|
/linux-4.4.14/Documentation/filesystems/ |
D | inotify.txt | 33 cleanly--and we can, the idr layer makes stuff like this trivial--then we
|
/linux-4.4.14/drivers/dma/ |
D | ti-dma-crossbar.c | 201 struct idr map_idr;
|
/linux-4.4.14/fs/nfsd/ |
D | state.h | 300 struct idr cl_stateids; /* stateid lookup */
|
/linux-4.4.14/include/net/sctp/ |
D | sctp.h | 478 extern struct idr sctp_assocs_id;
|
/linux-4.4.14/drivers/block/drbd/ |
D | drbd_int.h | 204 extern struct idr drbd_devices; /* RCU, updates: genl_lock() */ 682 struct idr devices; /* volume number to device mapping */ 717 struct idr peer_devices; /* volume number to peer device mapping */
|
D | drbd_main.c | 118 struct idr drbd_devices;
|
/linux-4.4.14/drivers/misc/cxl/ |
D | cxl.h | 363 struct idr contexts_idr;
|
/linux-4.4.14/drivers/gpu/drm/ |
D | drm_drv.c | 54 static struct idr drm_minors_idr;
|
/linux-4.4.14/drivers/net/wireless/ath/ath10k/ |
D | htt.h | 1489 struct idr pending_tx;
|
/linux-4.4.14/drivers/infiniband/hw/mlx4/ |
D | mlx4_ib.h | 471 struct idr pv_id_table;
|
/linux-4.4.14/drivers/rpmsg/ |
D | virtio_rpmsg_bus.c | 68 struct idr endpoints;
|
/linux-4.4.14/drivers/target/ |
D | target_core_user.c | 107 struct idr commands;
|
/linux-4.4.14/net/sctp/ |
D | protocol.c | 68 struct idr sctp_assocs_id;
|
/linux-4.4.14/drivers/vfio/ |
D | vfio.c | 47 struct idr group_idr;
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | init.c | 119 static struct idr hfi1_unit_table;
|
/linux-4.4.14/drivers/infiniband/hw/qib/ |
D | qib_init.c | 97 static struct idr qib_unit_table;
|
/linux-4.4.14/net/mac80211/ |
D | ieee80211_i.h | 1343 struct idr ack_status_frames;
|
/linux-4.4.14/drivers/net/wireless/mwifiex/ |
D | main.h | 654 struct idr ack_status_frames;
|
/linux-4.4.14/drivers/staging/rdma/ipath/ |
D | ipath_driver.c | 71 static struct idr unit_table;
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | i915_drv.h | 337 struct idr context_idr;
|
/linux-4.4.14/kernel/events/ |
D | core.c | 7503 static struct idr pmu_idr;
|