Searched defs:idr (Results 1 - 12 of 12) sorted by relevance

/drivers/infiniband/hw/cxgb3/
H A Diwch.h38 #include <linux/idr.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, argument
160 ret = idr_alloc(idr, handle, id, id + 1, GFP_NOWAIT);
169 static inline void remove_handle(struct iwch_dev *rhp, struct idr *idr, u32 id) argument
172 idr_remove(idr, i
[all...]
/drivers/thermal/
H A Dcpu_cooling.c64 * @idr: struct idr * handle used to create a id.
68 * id, using the idr API.
72 static int get_idr(struct idr *idr, int *id) argument
77 ret = idr_alloc(idr, NULL, 0, 0, GFP_KERNEL);
88 * @idr: struct idr * handle used for creating the id.
91 static void release_idr(struct idr *idr, in argument
[all...]
H A Dthermal_core.c33 #include <linux/idr.h>
147 static int get_idr(struct idr *idr, struct mutex *lock, int *id) argument
153 ret = idr_alloc(idr, NULL, 0, 0, GFP_KERNEL);
162 static void release_idr(struct idr *idr, struct mutex *lock, int id) argument
166 idr_remove(idr, id);
968 result = get_idr(&tz->idr, &tz->lock, &dev->id);
1008 release_idr(&tz->idr, &tz->lock, dev->id);
1054 release_idr(&tz->idr,
[all...]
/drivers/video/adf/
H A Dadf.c20 #include <linux/idr.h>
459 struct idr *idr, struct adf_device *parent,
470 ret = idr_alloc(idr, obj, 0, 0, GFP_KERNEL);
489 static void adf_obj_destroy(struct adf_obj *obj, struct idr *idr) argument
503 idr_remove(idr, obj->id);
458 adf_obj_init(struct adf_obj *obj, enum adf_obj_type type, struct idr *idr, struct adf_device *parent, const struct adf_obj_ops *ops, const char *fmt, va_list args) argument
/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_resource.c107 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; local
111 idr_remove(idr, res->id);
122 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; local
161 idr_remove(idr, id);
188 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; local
195 ret = idr_alloc(idr, res, 1, 0, GFP_NOWAIT);
264 struct idr *id
263 vmw_resource_lookup(struct vmw_private *dev_priv, struct idr *idr, int id) argument
852 struct idr *idr = &dev_priv->res_idr[vmw_res_stream]; local
[all...]
/drivers/infiniband/core/
H A Duverbs_cmd.c64 * needs to be held during all idr operations. When an object is
76 * the idr. This handles a reader that blocks and does not acquire
118 static int idr_add_uobj(struct idr *idr, struct ib_uobject *uobj) argument
125 ret = idr_alloc(idr, uobj, 0, 0, GFP_NOWAIT);
135 void idr_remove_uobj(struct idr *idr, struct ib_uobject *uobj) argument
138 idr_remove(idr, uobj->id);
142 static struct ib_uobject *__idr_get_uobj(struct idr *idr, in argument
160 idr_read_uobj(struct idr *idr, int id, struct ib_ucontext *context, int nested) argument
181 idr_write_uobj(struct idr *idr, int id, struct ib_ucontext *context) argument
199 idr_read_obj(struct idr *idr, int id, struct ib_ucontext *context, int nested) argument
[all...]
/drivers/infiniband/hw/amso1100/
H A Dc2.h42 #include <linux/idr.h>
266 struct idr idr; member in struct:c2_qp_table
/drivers/staging/android/ion/
H A Dion.c38 #include <linux/idr.h>
72 * @idr: an idr space for allocating handle ids
87 struct idr idr; member in struct:ion_client
104 * @id: client-unique id allocated by client->idr
372 idr_remove(&client->idr, handle->id);
428 handle = idr_find(&client->idr, id);
440 return idr_find(&client->idr, handle->id) == handle;
450 id = idr_alloc(&client->idr, handl
[all...]
/drivers/tty/serial/
H A Datmel_serial.c536 uint32_t idr = 0; local
549 idr |= ATMEL_US_CTSIC;
554 idr |= ATMEL_US_DSRIC;
559 idr |= ATMEL_US_RIIC;
564 idr |= ATMEL_US_DCDIC;
566 UART_PUT_IDR(port, idr);
/drivers/ata/
H A Dsata_dwc_460ex.c230 u32 idr; /* ID Register */ member in struct:sata_dwc_regs
1661 u32 idr, versionr; local
1718 idr = in_le32(&hsdev->sata_dwc_regs->idr);
1721 idr, ver[0], ver[1], ver[2]);
/drivers/atm/
H A Dnicstar.h19 #include <linux/idr.h>
716 struct idr idr; member in struct:ns_dev
/drivers/infiniband/hw/cxgb4/
H A Diw_cxgb4.h37 #include <linux/idr.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, argument
305 ret = idr_alloc(idr, handl
316 insert_handle(struct c4iw_dev *rhp, struct idr *idr, void *handle, u32 id) argument
322 insert_handle_nolock(struct c4iw_dev *rhp, struct idr *idr, void *handle, u32 id) argument
328 _remove_handle(struct c4iw_dev *rhp, struct idr *idr, u32 id, int lock) argument
338 remove_handle(struct c4iw_dev *rhp, struct idr *idr, u32 id) argument
343 remove_handle_nolock(struct c4iw_dev *rhp, struct idr *idr, u32 id) argument
[all...]

Completed in 3104 milliseconds