Lines Matching full:lic
67 idr_preload_dequeue_locked(struct linux_idr_cache *lic) in idr_preload_dequeue_locked() argument
72 if (mtx_owned(&lic->lock) == 0) in idr_preload_dequeue_locked()
75 retval = lic->head; in idr_preload_dequeue_locked()
77 lic->head = retval->ary[0]; in idr_preload_dequeue_locked()
78 lic->count--; in idr_preload_dequeue_locked()
90 struct linux_idr_cache *lic = in idr_preload_init() local
93 spin_lock_init(&lic->lock); in idr_preload_init()
105 struct linux_idr_cache *lic = in idr_preload_uninit() local
109 spin_lock(&lic->lock); in idr_preload_uninit()
110 cacheval = idr_preload_dequeue_locked(lic); in idr_preload_uninit()
111 spin_unlock(&lic->lock); in idr_preload_uninit()
117 spin_lock_destroy(&lic->lock); in idr_preload_uninit()
125 struct linux_idr_cache *lic; in idr_preload() local
130 lic = &DPCPU_GET(linux_idr_cache); in idr_preload()
133 spin_lock(&lic->lock); in idr_preload()
134 while (lic->count < MAX_IDR_FREE) { in idr_preload()
135 spin_unlock(&lic->lock); in idr_preload()
137 spin_lock(&lic->lock); in idr_preload()
140 cacheval->ary[0] = lic->head; in idr_preload()
141 lic->head = cacheval; in idr_preload()
142 lic->count++; in idr_preload()
149 struct linux_idr_cache *lic; in idr_preload_end() local
151 lic = &DPCPU_GET(linux_idr_cache); in idr_preload_end()
152 spin_unlock(&lic->lock); in idr_preload_end()