Home
last modified time | relevance | path

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

/linux/drivers/base/
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);
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()
A Dnode.c787 unsigned long memory_block_pfns = memory_block_size_bytes() / PAGE_SIZE; in register_mem_block_under_node_early()
/linux/drivers/virtio/
A Dvirtio_mem.c327 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()
1010 !IS_ALIGNED(start, memory_block_size_bytes()))) in virtio_mem_memory_notifier_cb()
2566 vm->sbm.sbs_per_mb = memory_block_size_bytes() / in virtio_mem_init_hotplug()
2571 memory_block_size_bytes() - 1; in virtio_mem_init_hotplug()
2577 memory_block_size_bytes()); in virtio_mem_init_hotplug()
2603 memory_block_size_bytes()); in virtio_mem_init_hotplug()
[all …]
/linux/mm/
A Dmemory_hotplug.c54 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()
2384 if (!IS_ALIGNED(start, memory_block_size_bytes()) || in offline_and_remove_memory()
[all …]
/linux/drivers/dax/
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/include/linux/
A Dmemory.h89 unsigned long memory_block_size_bytes(void);
/linux/arch/s390/mm/
A Dinit.c175 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
/linux/arch/powerpc/platforms/powernv/
A Dmemtrace.c289 bytes = memory_block_size_bytes(); in memtrace_enable_set()
/linux/arch/powerpc/platforms/pseries/
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/arch/powerpc/kernel/
A Dsetup_64.c886 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
/linux/drivers/s390/char/
A Dsclp_cmd.c425 block_size = memory_block_size_bytes(); in add_memory_merged()
/linux/arch/x86/mm/
A Dinit_64.c1475 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
/linux/drivers/hv/
A Dhv_balloon.c1950 ha_pages_in_chunk = memory_block_size_bytes() / PAGE_SIZE; in balloon_probe()

Completed in 39 milliseconds