• Home
  • Raw
  • Download

Lines Matching full:element

104 	struct lc_element **element = NULL;  in lc_create()  local
122 element = kcalloc(e_count, sizeof(struct lc_element *), GFP_KERNEL); in lc_create()
123 if (!element) in lc_create()
141 lc->lc_element = element; in lc_create()
155 element[i] = e; in lc_create()
162 void *p = element[i]; in lc_create()
167 kfree(element); in lc_create()
282 * lc_find - find element by label, if present in the hash table
284 * @enr: element number
286 * Returns the pointer to an element, if the element with the requested
287 * "label" or element number is present in the hash table,
298 * lc_is_used - find element by label
300 * @enr: element number
302 * Returns true, if the element with the requested "label" or element number is
314 * lc_del - removes an element from the cache
316 * @e: The element to remove
428 * the LRU element, we have to wait ... in __lc_get()
436 * unused (or even "free") element, but we won't accumulate more than in __lc_get()
453 * lc_get - get element by label, maybe change the active set
457 * Finds an element in the cache, increases its usage count,
461 * cache. Therefore it is possible that an other element becomes evicted from
470 * Or no unused or free element could be recycled (@lc will be marked as
473 * pointer to the element with the REQUESTED element number.
476 * pointer to an UNUSED element with some different element number,
481 * The returned element pointer is moved to the "to_be_changed" list,
482 * and registered with the new element number on the hash collision chains,
502 * Unlike lc_get this also returns the element for @enr, if it is belonging to
506 * pointer to an element already on the "to_be_changed" list.
510 * before proceeding to actually use this element.
518 * lc_try_get - get element by label, if present; do not change the active set
522 * Finds an element in the cache, increases its usage count,
530 * pointer to the element with the REQUESTED element number.
565 * @e: the element to put
567 * If refcnt reaches zero, the element is moved to the lru list,
589 * @i: the index of the element to return
602 * @e: the element to query for its index position in lc->element
614 * @index: the element index to associate label with.