Home
last modified time | relevance | path

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

/linux-6.15/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);
498 return sysfs_emit(buf, "%lx\n", memory_block_size_bytes()); in block_size_bytes_show()
860 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in create_memory_block_devices()
861 !IS_ALIGNED(size, memory_block_size_bytes()))) in create_memory_block_devices()
896 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in remove_memory_block_devices()
897 !IS_ALIGNED(size, memory_block_size_bytes()))) in remove_memory_block_devices()
948 block_sz = memory_block_size_bytes(); in memory_dev_init()
1144 unit_pages < PHYS_PFN(memory_block_size_bytes())) in memory_group_register_dynamic()
H A Dnode.c789 unsigned long memory_block_pfns = memory_block_size_bytes() / PAGE_SIZE; in register_mem_block_under_node_early()
/linux-6.15/drivers/virtio/
H A Dvirtio_mem.c329 return addr / memory_block_size_bytes(); in virtio_mem_phys_to_mb_id()
337 return mb_id * memory_block_size_bytes(); in virtio_mem_mb_id_to_phys()
675 const uint64_t size = memory_block_size_bytes(); in virtio_mem_sbm_add_mb()
727 const uint64_t size = memory_block_size_bytes(); in virtio_mem_sbm_remove_mb()
777 const uint64_t size = memory_block_size_bytes(); in virtio_mem_sbm_offline_and_remove_mb()
1012 !IS_ALIGNED(start, memory_block_size_bytes()))) in virtio_mem_memory_notifier_cb()
2568 vm->sbm.sbs_per_mb = memory_block_size_bytes() / in virtio_mem_init_hotplug()
2573 memory_block_size_bytes() - 1; in virtio_mem_init_hotplug()
2579 memory_block_size_bytes()); in virtio_mem_init_hotplug()
2605 memory_block_size_bytes()); in virtio_mem_init_hotplug()
[all …]
/linux-6.15/mm/
H A Dmemory_hotplug.c54 return PHYS_PFN(memory_block_size_bytes()) * sizeof(struct page); in memory_block_memmap_size()
1338 if (!size || !IS_ALIGNED(start, memory_block_size_bytes()) || in check_hotplug_memory_range()
1339 !IS_ALIGNED(size, memory_block_size_bytes())) { in check_hotplug_memory_range()
1341 memory_block_size_bytes(), start, size); in check_hotplug_memory_range()
1408 if (memmap_pages == PHYS_PFN(memory_block_size_bytes())) in mhp_supports_memmap_on_memory()
1418 unsigned long memblock_size = memory_block_size_bytes(); in remove_memory_blocks_and_altmaps()
1450 unsigned long memblock_size = memory_block_size_bytes(); in create_altmaps_and_memory_blocks()
2144 endpa = beginpa + memory_block_size_bytes() - 1; in check_memblock_offlined_cb()
2235 u64 num_memblocks = size / memory_block_size_bytes(); in memory_blocks_have_altmaps()
2401 if (!IS_ALIGNED(start, memory_block_size_bytes()) || in offline_and_remove_memory()
[all …]
/linux-6.15/drivers/dax/
H A Dkmem.c37 r->start = ALIGN(range->start, memory_block_size_bytes()); in dax_kmem_range()
38 r->end = ALIGN_DOWN(range->end + 1, memory_block_size_bytes()) - 1; in dax_kmem_range()
/linux-6.15/include/linux/
H A Dmemory.h89 unsigned long memory_block_size_bytes(void);
/linux-6.15/arch/s390/mm/
H A Dinit.c168 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
/linux-6.15/arch/powerpc/platforms/powernv/
H A Dmemtrace.c270 bytes = memory_block_size_bytes(); in memtrace_enable_set()
/linux-6.15/arch/powerpc/platforms/pseries/
H A Dhotplug-memory.c299 if (is_fadump_memory_area(lmb->base_addr, memory_block_size_bytes())) in lmb_is_removable()
585 block_sz = memory_block_size_bytes(); in dlpar_add_lmb()
/linux-6.15/arch/powerpc/kernel/
H A Dsetup_64.c886 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
/linux-6.15/drivers/s390/char/
H A Dsclp_cmd.c426 block_size = memory_block_size_bytes(); in add_memory_merged()
/linux-6.15/drivers/hv/
H A Dhv_balloon.c1955 ha_pages_in_chunk = memory_block_size_bytes() / PAGE_SIZE; in balloon_probe()
/linux-6.15/arch/x86/mm/
H A Dinit_64.c1490 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function