Lines Matching refs:array
95 u64 *array; /* container page */ member
147 u8 decay = DECAY(ca->array[i]); in do_spring_cleaning()
154 ca->array[i] &= ~(DECAY_MASK << COUNT_BITS); in do_spring_cleaning()
155 ca->array[i] |= (decay << COUNT_BITS); in do_spring_cleaning()
194 this_pfn = PFN(ca->array[i]); in __find_elem()
238 memmove((void *)&ca->array[idx], in del_elem()
239 (void *)&ca->array[idx + 1], in del_elem()
251 unsigned int this = FULL_COUNT(ca->array[i]); in del_lru_elem_unlocked()
261 return PFN(ca->array[min_idx]); in del_lru_elem_unlocked()
290 u64 this = PFN(ca->array[i]); in sanity_check()
303 u64 this = PFN(ca->array[i]); in sanity_check()
305 pr_info(" %03d: [%016llx|%03llx]\n", i, this, FULL_COUNT(ca->array[i])); in sanity_check()
322 if (!ce_arr.array || ce_arr.disabled) in cec_add_elem()
338 memmove((void *)&ca->array[to + 1], in cec_add_elem()
339 (void *)&ca->array[to], in cec_add_elem()
342 ca->array[to] = pfn << PAGE_SHIFT; in cec_add_elem()
347 ca->array[to] |= DECAY_MASK << COUNT_BITS; in cec_add_elem()
348 ca->array[to]++; in cec_add_elem()
351 count = COUNT(ca->array[to]); in cec_add_elem()
353 u64 pfn = ca->array[to] >> PAGE_SHIFT; in cec_add_elem()
447 u64 this = PFN(ca->array[i]); in array_dump()
450 i, this, bins[DECAY(ca->array[i])], COUNT(ca->array[i])); in array_dump()
485 struct dentry *d, *pfn, *decay, *count, *array; in create_debugfs_nodes() local
516 array = debugfs_create_file("array", S_IRUSR, d, NULL, &array_ops); in create_debugfs_nodes()
517 if (!array) { in create_debugfs_nodes()
535 ce_arr.array = (void *)get_zeroed_page(GFP_KERNEL); in cec_init()
536 if (!ce_arr.array) { in cec_init()
542 free_page((unsigned long)ce_arr.array); in cec_init()