Lines Matching refs:location

59 static void *location_to_slab(uintptr_t location)  in location_to_slab()  argument
61 __ASSERT(location % CONFIG_MMU_PAGE_SIZE == 0, in location_to_slab()
62 "unaligned location 0x%lx", location); in location_to_slab()
63 __ASSERT(location < in location_to_slab()
65 "bad location 0x%lx, past bounds of backing store", location); in location_to_slab()
67 return backing_store + location; in location_to_slab()
86 uintptr_t *location, in k_mem_paging_backing_store_location_get() argument
101 *location = slab_to_location(slab); in k_mem_paging_backing_store_location_get()
107 void k_mem_paging_backing_store_location_free(uintptr_t location) in k_mem_paging_backing_store_location_free() argument
109 void *slab = location_to_slab(location); in k_mem_paging_backing_store_location_free()
115 void k_mem_paging_backing_store_page_out(uintptr_t location) in k_mem_paging_backing_store_page_out() argument
117 (void)memcpy(location_to_slab(location), K_MEM_SCRATCH_PAGE, in k_mem_paging_backing_store_page_out()
121 void k_mem_paging_backing_store_page_in(uintptr_t location) in k_mem_paging_backing_store_page_in() argument
123 (void)memcpy(K_MEM_SCRATCH_PAGE, location_to_slab(location), in k_mem_paging_backing_store_page_in()
128 uintptr_t location) in k_mem_paging_backing_store_page_finalize() argument
132 if (location == ARCH_UNPAGED_ANON_ZERO || location == ARCH_UNPAGED_ANON_UNINIT) { in k_mem_paging_backing_store_page_finalize()
136 k_mem_paging_backing_store_location_free(location); in k_mem_paging_backing_store_page_finalize()