Lines Matching full:element

93 	struct lc_element **element = NULL;  in lc_create()  local
111 element = kcalloc(e_count, sizeof(struct lc_element *), GFP_KERNEL); in lc_create()
112 if (!element) in lc_create()
130 lc->lc_element = element; in lc_create()
144 element[i] = e; in lc_create()
151 void *p = element[i]; in lc_create()
156 kfree(element); in lc_create()
271 * lc_find - find element by label, if present in the hash table
273 * @enr: element number
275 * Returns the pointer to an element, if the element with the requested
276 * "label" or element number is present in the hash table,
287 * lc_is_used - find element by label
289 * @enr: element number
291 * Returns true, if the element with the requested "label" or element number is
303 * lc_del - removes an element from the cache
305 * @e: The element to remove
417 * the LRU element, we have to wait ... in __lc_get()
425 * unused (or even "free") element, but we won't accumulate more than in __lc_get()
442 * lc_get - get element by label, maybe change the active set
446 * Finds an element in the cache, increases its usage count,
450 * cache. Therefore it is possible that an other element becomes evicted from
459 * Or no unused or free element could be recycled (@lc will be marked as
462 * pointer to the element with the REQUESTED element number.
465 * pointer to an UNUSED element with some different element number,
470 * The returned element pointer is moved to the "to_be_changed" list,
471 * and registered with the new element number on the hash collision chains,
491 * Unlike lc_get this also returns the element for @enr, if it is belonging to
495 * pointer to an element already on the "to_be_changed" list.
499 * before proceeding to actually use this element.
507 * lc_try_get - get element by label, if present; do not change the active set
511 * Finds an element in the cache, increases its usage count,
519 * pointer to the element with the REQUESTED element number.
554 * @e: the element to put
556 * If refcnt reaches zero, the element is moved to the lru list,
578 * @i: the index of the element to return
591 * @e: the element to query for its index position in lc->element
603 * @index: the element index to associate label with.