Home
last modified time | relevance | path

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

/openbmc/linux/drivers/base/
H A Dmemory.c113 unsigned long __weak memory_block_size_bytes(void) in memory_block_size_bytes() function
117 EXPORT_SYMBOL_GPL(memory_block_size_bytes);
481 return sysfs_emit(buf, "%lx\n", memory_block_size_bytes()); in block_size_bytes_show()
859 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in create_memory_block_devices()
860 !IS_ALIGNED(size, memory_block_size_bytes()))) in create_memory_block_devices()
895 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in remove_memory_block_devices()
896 !IS_ALIGNED(size, memory_block_size_bytes()))) in remove_memory_block_devices()
947 block_sz = memory_block_size_bytes(); in memory_dev_init()
1135 unit_pages < PHYS_PFN(memory_block_size_bytes())) in memory_group_register_dynamic()
H A Dnode.c786 unsigned long memory_block_pfns = memory_block_size_bytes() / PAGE_SIZE; in register_mem_block_under_node_early()
/openbmc/linux/drivers/virtio/
H A Dvirtio_mem.c322 return addr / memory_block_size_bytes(); in virtio_mem_phys_to_mb_id()
330 return mb_id * memory_block_size_bytes(); in virtio_mem_mb_id_to_phys()
668 const uint64_t size = memory_block_size_bytes(); in virtio_mem_sbm_add_mb()
720 const uint64_t size = memory_block_size_bytes(); in virtio_mem_sbm_remove_mb()
770 const uint64_t size = memory_block_size_bytes(); in virtio_mem_sbm_offline_and_remove_mb()
1005 !IS_ALIGNED(start, memory_block_size_bytes()))) in virtio_mem_memory_notifier_cb()
2543 vm->sbm.sbs_per_mb = memory_block_size_bytes() / in virtio_mem_init_hotplug()
2548 memory_block_size_bytes() - 1; in virtio_mem_init_hotplug()
2554 memory_block_size_bytes()); in virtio_mem_init_hotplug()
2580 memory_block_size_bytes()); in virtio_mem_init_hotplug()
[all …]
/openbmc/linux/mm/
H A Dmemory_hotplug.c54 return PHYS_PFN(memory_block_size_bytes()) * sizeof(struct page); in memory_block_memmap_size()
1302 if (!size || !IS_ALIGNED(start, memory_block_size_bytes()) || in check_hotplug_memory_range()
1303 !IS_ALIGNED(size, memory_block_size_bytes())) { in check_hotplug_memory_range()
1305 memory_block_size_bytes(), start, size); in check_hotplug_memory_range()
1361 if (!mhp_memmap_on_memory() || size != memory_block_size_bytes()) in mhp_supports_memmap_on_memory()
1378 if (memmap_pages == PHYS_PFN(memory_block_size_bytes())) in mhp_supports_memmap_on_memory()
2059 endpa = beginpa + memory_block_size_bytes() - 1; in check_memblock_offlined_cb()
2180 if (size != memory_block_size_bytes()) { in try_remove_memory()
2319 const unsigned long mb_count = size / memory_block_size_bytes(); in offline_and_remove_memory()
2323 if (!IS_ALIGNED(start, memory_block_size_bytes()) || in offline_and_remove_memory()
[all …]
/openbmc/linux/drivers/dax/
H A Dkmem.c36 r->start = ALIGN(range->start, memory_block_size_bytes()); in dax_kmem_range()
37 r->end = ALIGN_DOWN(range->end + 1, memory_block_size_bytes()) - 1; in dax_kmem_range()
/openbmc/linux/include/linux/
H A Dmemory.h89 unsigned long memory_block_size_bytes(void);
/openbmc/linux/arch/s390/mm/
H A Dinit.c184 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dmemtrace.c289 bytes = memory_block_size_bytes(); in memtrace_enable_set()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dhotplug-memory.c296 if (is_fadump_memory_area(lmb->base_addr, memory_block_size_bytes())) in lmb_is_removable()
581 block_sz = memory_block_size_bytes(); in dlpar_add_lmb()
/openbmc/linux/arch/powerpc/kernel/
H A Dsetup_64.c888 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
/openbmc/linux/drivers/s390/char/
H A Dsclp_cmd.c399 block_size = memory_block_size_bytes(); in add_memory_merged()
/openbmc/linux/arch/x86/mm/
H A Dinit_64.c1479 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function