Lines Matching refs:error
205 int error, is_ram; in pagemap_range() local
235 error = xa_err(xa_store_range(&pgmap_array, PHYS_PFN(range->start), in pagemap_range()
237 if (error) in pagemap_range()
238 return error; in pagemap_range()
243 error = track_pfn_remap(NULL, ¶ms->pgprot, PHYS_PFN(range->start), 0, in pagemap_range()
245 if (error) in pagemap_range()
262 error = add_pages(nid, PHYS_PFN(range->start), in pagemap_range()
265 error = kasan_add_zero_shadow(__va(range->start), range_len(range)); in pagemap_range()
266 if (error) { in pagemap_range()
271 error = arch_add_memory(nid, range->start, range_len(range), in pagemap_range()
275 if (!error) { in pagemap_range()
285 if (error) in pagemap_range()
305 return error; in pagemap_range()
321 int error, i; in memremap_pages() local
368 error = percpu_ref_init(&pgmap->internal_ref, in memremap_pages()
370 if (error) in memremap_pages()
371 return ERR_PTR(error); in memremap_pages()
388 error = 0; in memremap_pages()
390 error = pagemap_range(pgmap, ¶ms, i, nid); in memremap_pages()
391 if (error) in memremap_pages()
399 return ERR_PTR(error); in memremap_pages()
428 int error; in devm_memremap_pages() local
435 error = devm_add_action_or_reset(dev, devm_memremap_pages_release, in devm_memremap_pages()
437 if (error) in devm_memremap_pages()
438 return ERR_PTR(error); in devm_memremap_pages()