Lines Matching refs:pfn
186 static int __find_elem(struct ce_array *ca, u64 pfn, unsigned int *to) in __find_elem() argument
196 if (this_pfn < pfn) in __find_elem()
198 else if (this_pfn > pfn) in __find_elem()
200 else if (this_pfn == pfn) { in __find_elem()
223 static int find_elem(struct ce_array *ca, u64 pfn, unsigned int *to) in find_elem() argument
231 return __find_elem(ca, pfn, to); in find_elem()
271 u64 pfn; in del_lru_elem() local
277 pfn = del_lru_elem_unlocked(ca); in del_lru_elem()
280 return pfn; in del_lru_elem()
321 static int cec_add_elem(u64 pfn) in cec_add_elem() argument
342 err = find_elem(ca, pfn, &to); in cec_add_elem()
351 ca->array[to] = pfn << PAGE_SHIFT; in cec_add_elem()
362 u64 pfn = ca->array[to] >> PAGE_SHIFT; in cec_add_elem() local
364 if (!pfn_valid(pfn)) { in cec_add_elem()
365 pr_warn("CEC: Invalid pfn: 0x%llx\n", pfn); in cec_add_elem()
368 pr_err("Soft-offlining pfn: 0x%llx\n", pfn); in cec_add_elem()
369 memory_failure_queue(pfn, MF_SOFT_OFFLINE); in cec_add_elem()
483 struct dentry *d, *pfn, *decay, *count, *array; in create_debugfs_nodes() local
508 pfn = debugfs_create_file("pfn", S_IRUSR | S_IWUSR, d, &dfs_pfn, &pfn_ops); in create_debugfs_nodes()
509 if (!pfn) { in create_debugfs_nodes()