Searched refs:idrp (Results 1 - 2 of 2) sorted by relevance

/solaris-x11-s12/open-src/kernel/sys/drm/
H A Ddrm_sun_idr.h58 extern void idr_init(struct idr *idrp);
59 extern int idr_get_new_above(struct idr *idrp, void *obj, int start, int *newid);
60 extern void* idr_find(struct idr *idrp, uint32_t id);
61 extern int idr_remove(struct idr *idrp, uint32_t id);
62 extern void* idr_replace(struct idr *idrp, void *obj, uint32_t id);
63 extern int idr_pre_get(struct idr *idrp, int flag);
64 extern int idr_for_each(struct idr *idrp, int (*fn)(int id, void *obj, void *data), void *data);
65 extern void idr_remove_all(struct idr *idrp);
66 extern void idr_destroy(struct idr* idrp);
/solaris-x11-s12/open-src/kernel/drm/src/
H A Ddrm_sun_idr.c165 idr_init(struct idr *idrp) argument
167 avl_create(&idrp->used_ids, idr_compare, sizeof(struct idr_used_id),
170 idrp->free_id_ranges = fr_new(0);
171 mutex_init(&idrp->lock, NULL, MUTEX_DRIVER, NULL);
175 idr_get_new_above(struct idr *idrp, void *obj, int start, int *newid) argument
183 mutex_enter(&idrp->lock);
184 range = fr_get(idrp->free_id_ranges, start);
186 range = fr_insert(idrp->free_id_ranges, start);
194 mutex_exit(&idrp->lock);
200 mutex_exit(&idrp
214 idr_find_used_id(struct idr *idrp, uint32_t id) argument
230 idr_find(struct idr *idrp, uint32_t id) argument
246 idr_remove(struct idr *idrp, uint32_t id) argument
280 idr_remove_all(struct idr *idrp) argument
287 idr_replace(struct idr *idrp, void *obj, uint32_t id) argument
305 idr_for_each(struct idr *idrp, int (*fn)(int id, void *p, void *data), void *data) argument
325 idr_pre_get(struct idr *idrp, int flag) argument
330 idr_destroy(struct idr *idrp) argument
[all...]

Completed in 7 milliseconds