Searched refs:memory_block_size_bytes (Results 1 – 13 of 13) sorted by relevance
/linux-6.12.1/drivers/base/ |
D | memory.c | 113 unsigned long __weak memory_block_size_bytes(void) in memory_block_size_bytes() function 117 EXPORT_SYMBOL_GPL(memory_block_size_bytes); 502 return sysfs_emit(buf, "%lx\n", memory_block_size_bytes()); in block_size_bytes_show() 880 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in create_memory_block_devices() 881 !IS_ALIGNED(size, memory_block_size_bytes()))) in create_memory_block_devices() 916 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in remove_memory_block_devices() 917 !IS_ALIGNED(size, memory_block_size_bytes()))) in remove_memory_block_devices() 968 block_sz = memory_block_size_bytes(); in memory_dev_init() 1156 unit_pages < PHYS_PFN(memory_block_size_bytes())) in memory_group_register_dynamic()
|
D | node.c | 787 unsigned long memory_block_pfns = memory_block_size_bytes() / PAGE_SIZE; in register_mem_block_under_node_early()
|
/linux-6.12.1/drivers/virtio/ |
D | virtio_mem.c | 327 return addr / memory_block_size_bytes(); in virtio_mem_phys_to_mb_id() 335 return mb_id * memory_block_size_bytes(); in virtio_mem_mb_id_to_phys() 673 const uint64_t size = memory_block_size_bytes(); in virtio_mem_sbm_add_mb() 725 const uint64_t size = memory_block_size_bytes(); in virtio_mem_sbm_remove_mb() 775 const uint64_t size = memory_block_size_bytes(); in virtio_mem_sbm_offline_and_remove_mb() 1009 if (WARN_ON_ONCE(size != memory_block_size_bytes() || in virtio_mem_memory_notifier_cb() 1010 !IS_ALIGNED(start, memory_block_size_bytes()))) in virtio_mem_memory_notifier_cb() 1792 if (!virtio_mem_could_add_memory(vm, memory_block_size_bytes())) in virtio_mem_sbm_plug_request() 1803 if (!virtio_mem_could_add_memory(vm, memory_block_size_bytes())) in virtio_mem_sbm_plug_request() 2387 if (!IS_ALIGNED(end_addr + 1, memory_block_size_bytes())) in virtio_mem_refresh_config() [all …]
|
/linux-6.12.1/mm/ |
D | memory_hotplug.c | 54 return PHYS_PFN(memory_block_size_bytes()) * sizeof(struct page); in memory_block_memmap_size() 1311 if (!size || !IS_ALIGNED(start, memory_block_size_bytes()) || in check_hotplug_memory_range() 1312 !IS_ALIGNED(size, memory_block_size_bytes())) { in check_hotplug_memory_range() 1314 memory_block_size_bytes(), start, size); in check_hotplug_memory_range() 1381 if (memmap_pages == PHYS_PFN(memory_block_size_bytes())) in mhp_supports_memmap_on_memory() 1391 unsigned long memblock_size = memory_block_size_bytes(); in remove_memory_blocks_and_altmaps() 1423 unsigned long memblock_size = memory_block_size_bytes(); in create_altmaps_and_memory_blocks() 2127 endpa = beginpa + memory_block_size_bytes() - 1; in check_memblock_offlined_cb() 2218 u64 num_memblocks = size / memory_block_size_bytes(); in memory_blocks_have_altmaps() 2380 const unsigned long mb_count = size / memory_block_size_bytes(); in offline_and_remove_memory() [all …]
|
/linux-6.12.1/drivers/dax/ |
D | kmem.c | 37 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.12.1/include/linux/ |
D | memory.h | 89 unsigned long memory_block_size_bytes(void);
|
/linux-6.12.1/arch/s390/mm/ |
D | init.c | 175 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
|
/linux-6.12.1/arch/powerpc/platforms/pseries/ |
D | hotplug-memory.c | 299 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.12.1/arch/powerpc/platforms/powernv/ |
D | memtrace.c | 289 bytes = memory_block_size_bytes(); in memtrace_enable_set()
|
/linux-6.12.1/arch/powerpc/kernel/ |
D | setup_64.c | 886 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
|
/linux-6.12.1/drivers/s390/char/ |
D | sclp_cmd.c | 425 block_size = memory_block_size_bytes(); in add_memory_merged()
|
/linux-6.12.1/drivers/hv/ |
D | hv_balloon.c | 1950 ha_pages_in_chunk = memory_block_size_bytes() / PAGE_SIZE; in balloon_probe()
|
/linux-6.12.1/arch/x86/mm/ |
D | init_64.c | 1475 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
|