Lines Matching full:element

82 	struct lc_element **element = NULL;  in lc_create()  local
100 element = kcalloc(e_count, sizeof(struct lc_element *), GFP_KERNEL); in lc_create()
101 if (!element) in lc_create()
119 lc->lc_element = element; in lc_create()
133 element[i] = e; in lc_create()
140 void *p = element[--i]; in lc_create()
145 kfree(element); in lc_create()
260 * lc_find - find element by label, if present in the hash table
262 * @enr: element number
264 * Returns the pointer to an element, if the element with the requested
265 * "label" or element number is present in the hash table,
276 * lc_is_used - find element by label
278 * @enr: element number
280 * Returns true, if the element with the requested "label" or element number is
292 * lc_del - removes an element from the cache
294 * @e: The element to remove
406 * the LRU element, we have to wait ... in __lc_get()
414 * unused (or even "free") element, but we won't accumulate more than in __lc_get()
431 * lc_get - get element by label, maybe change the active set
435 * Finds an element in the cache, increases its usage count,
439 * cache. Therefore it is possible that an other element becomes evicted from
448 * Or no unused or free element could be recycled (@lc will be marked as
451 * pointer to the element with the REQUESTED element number.
454 * pointer to an UNUSED element with some different element number,
459 * The returned element pointer is moved to the "to_be_changed" list,
460 * and registered with the new element number on the hash collision chains,
480 * Unlike lc_get this also returns the element for @enr, if it is belonging to
484 * pointer to an element already on the "to_be_changed" list.
488 * before proceeding to actually use this element.
496 * lc_try_get - get element by label, if present; do not change the active set
500 * Finds an element in the cache, increases its usage count,
508 * pointer to the element with the REQUESTED element number.
543 * @e: the element to put
545 * If refcnt reaches zero, the element is moved to the lru list,
567 * @i: the index of the element to return