Home
last modified time | relevance | path

Searched refs:memory_block_size_bytes (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.15/drivers/base/
Dmemory.c112 unsigned long __weak memory_block_size_bytes(void) in memory_block_size_bytes() function
116 EXPORT_SYMBOL_GPL(memory_block_size_bytes);
451 return sysfs_emit(buf, "%lx\n", memory_block_size_bytes()); in block_size_bytes_show()
726 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in create_memory_block_devices()
727 !IS_ALIGNED(size, memory_block_size_bytes()))) in create_memory_block_devices()
763 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in remove_memory_block_devices()
764 !IS_ALIGNED(size, memory_block_size_bytes()))) in remove_memory_block_devices()
817 block_sz = memory_block_size_bytes(); in memory_dev_init()
1005 unit_pages < PHYS_PFN(memory_block_size_bytes())) in memory_group_register_dynamic()
Dnode.c828 unsigned long memory_block_pfns = memory_block_size_bytes() / PAGE_SIZE; in register_mem_block_under_node_early()
/Linux-v5.15/drivers/virtio/
Dvirtio_mem.c304 return addr / memory_block_size_bytes(); in virtio_mem_phys_to_mb_id()
312 return mb_id * memory_block_size_bytes(); in virtio_mem_mb_id_to_phys()
650 const uint64_t size = memory_block_size_bytes(); in virtio_mem_sbm_add_mb()
702 const uint64_t size = memory_block_size_bytes(); in virtio_mem_sbm_remove_mb()
748 const uint64_t size = memory_block_size_bytes(); in virtio_mem_sbm_offline_and_remove_mb()
955 if (WARN_ON_ONCE(size != memory_block_size_bytes() || in virtio_mem_memory_notifier_cb()
956 !IS_ALIGNED(start, memory_block_size_bytes()))) in virtio_mem_memory_notifier_cb()
1673 if (!virtio_mem_could_add_memory(vm, memory_block_size_bytes())) in virtio_mem_sbm_plug_request()
1684 if (!virtio_mem_could_add_memory(vm, memory_block_size_bytes())) in virtio_mem_sbm_plug_request()
2262 if (!IS_ALIGNED(end_addr + 1, memory_block_size_bytes())) in virtio_mem_refresh_config()
[all …]
/Linux-v5.15/drivers/dax/
Dkmem.c28 r->start = ALIGN(range->start, memory_block_size_bytes()); in dax_kmem_range()
29 r->end = ALIGN_DOWN(range->end + 1, memory_block_size_bytes()) - 1; in dax_kmem_range()
/Linux-v5.15/mm/
Dmemory_hotplug.c1295 if (!size || !IS_ALIGNED(start, memory_block_size_bytes()) || in check_hotplug_memory_range()
1296 !IS_ALIGNED(size, memory_block_size_bytes())) { in check_hotplug_memory_range()
1298 memory_block_size_bytes(), start, size); in check_hotplug_memory_range()
1346 size == memory_block_size_bytes() && in mhp_supports_memmap_on_memory()
2058 endpa = beginpa + memory_block_size_bytes() - 1; in check_memblock_offlined_cb()
2176 if (size != memory_block_size_bytes()) { in try_remove_memory()
2311 const unsigned long mb_count = size / memory_block_size_bytes(); in offline_and_remove_memory()
2315 if (!IS_ALIGNED(start, memory_block_size_bytes()) || in offline_and_remove_memory()
2316 !IS_ALIGNED(size, memory_block_size_bytes()) || !size) in offline_and_remove_memory()
/Linux-v5.15/include/linux/
Dmemory.h84 unsigned long memory_block_size_bytes(void);
/Linux-v5.15/arch/s390/mm/
Dinit.c224 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
/Linux-v5.15/arch/powerpc/platforms/powernv/
Dmemtrace.c289 bytes = memory_block_size_bytes(); in memtrace_enable_set()
/Linux-v5.15/arch/powerpc/platforms/pseries/
Dhotplug-memory.c359 if (is_fadump_memory_area(lmb->base_addr, memory_block_size_bytes())) in lmb_is_removable()
646 block_sz = memory_block_size_bytes(); in dlpar_add_lmb()
/Linux-v5.15/arch/powerpc/kernel/
Dsetup_64.c916 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
/Linux-v5.15/drivers/s390/char/
Dsclp_cmd.c404 block_size = memory_block_size_bytes(); in add_memory_merged()
/Linux-v5.15/arch/x86/mm/
Dinit_64.c1519 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function