Lines Matching refs:array
90 u64 *array; /* container page */ member
146 u8 decay = DECAY(ca->array[i]); in do_spring_cleaning()
153 ca->array[i] &= ~(DECAY_MASK << COUNT_BITS); in do_spring_cleaning()
154 ca->array[i] |= (decay << COUNT_BITS); in do_spring_cleaning()
192 this_pfn = PFN(ca->array[tmp]); in __find_elem()
207 this_pfn = PFN(ca->array[min]); in __find_elem()
230 memmove((void *)&ca->array[idx], in del_elem()
231 (void *)&ca->array[idx + 1], in del_elem()
243 unsigned int this = FULL_COUNT(ca->array[i]); in del_lru_elem_unlocked()
253 return PFN(ca->array[min_idx]); in del_lru_elem_unlocked()
286 if (!ce_arr.array || ce_arr.disabled) in cec_add_elem()
301 memmove((void *)&ca->array[to + 1], in cec_add_elem()
302 (void *)&ca->array[to], in cec_add_elem()
305 ca->array[to] = (pfn << PAGE_SHIFT) | in cec_add_elem()
315 count = COUNT(ca->array[to]); in cec_add_elem()
318 ca->array[to] |= (DECAY_MASK << COUNT_BITS); in cec_add_elem()
319 ca->array[to]++; in cec_add_elem()
323 u64 pfn = ca->array[to] >> PAGE_SHIFT; in cec_add_elem()
413 u64 this = PFN(ca->array[i]); in array_dump()
415 seq_printf(m, " %03d: [%016llx|%03llx]\n", i, this, FULL_COUNT(ca->array[i])); in array_dump()
454 struct dentry *d, *pfn, *decay, *count, *array; in create_debugfs_nodes() local
468 array = debugfs_create_file("array", S_IRUSR, d, NULL, &array_ops); in create_debugfs_nodes()
469 if (!array) { in create_debugfs_nodes()
502 ce_arr.array = (void *)get_zeroed_page(GFP_KERNEL); in cec_init()
503 if (!ce_arr.array) { in cec_init()