Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/base/
Dmemory.c106 unsigned long __weak memory_block_size_bytes(void) in memory_block_size_bytes() function
110 EXPORT_SYMBOL_GPL(memory_block_size_bytes);
377 return sysfs_emit(buf, "%lx\n", memory_block_size_bytes()); in block_size_bytes_show()
643 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in create_memory_block_devices()
644 !IS_ALIGNED(size, memory_block_size_bytes()))) in create_memory_block_devices()
679 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in remove_memory_block_devices()
680 !IS_ALIGNED(size, memory_block_size_bytes()))) in remove_memory_block_devices()
733 block_sz = memory_block_size_bytes(); in memory_dev_init()
Dnode.c808 unsigned long memory_block_pfns = memory_block_size_bytes() / PAGE_SIZE; in register_mem_block_under_node_early()
/Linux-v5.10/drivers/virtio/
Dvirtio_mem.c204 return addr / memory_block_size_bytes(); in virtio_mem_phys_to_mb_id()
212 return mb_id * memory_block_size_bytes(); in virtio_mem_mb_id_to_phys()
426 return add_memory_driver_managed(nid, addr, memory_block_size_bytes(), in virtio_mem_mb_add()
449 return remove_memory(nid, addr, memory_block_size_bytes()); in virtio_mem_mb_remove()
471 return offline_and_remove_memory(nid, addr, memory_block_size_bytes()); in virtio_mem_mb_offline_and_remove()
507 memory_block_size_bytes(); in virtio_mem_overlaps_range()
662 if (WARN_ON_ONCE(size != memory_block_size_bytes() || in virtio_mem_memory_notifier_cb()
663 !IS_ALIGNED(start, memory_block_size_bytes()))) in virtio_mem_memory_notifier_cb()
1666 if (vm->device_block_size > memory_block_size_bytes()) { in virtio_mem_init()
1673 if (!IS_ALIGNED(vm->addr, memory_block_size_bytes())) in virtio_mem_init()
[all …]
/Linux-v5.10/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.10/arch/powerpc/platforms/powernv/
Dmemtrace.c99 u64 bytes = memory_block_size_bytes(); in memtrace_alloc_node()
266 bytes = memory_block_size_bytes(); in memtrace_enable_set()
/Linux-v5.10/include/linux/
Dmemory.h36 unsigned long memory_block_size_bytes(void);
/Linux-v5.10/mm/
Dmemory_hotplug.c999 if (!size || !IS_ALIGNED(start, memory_block_size_bytes()) || in check_hotplug_memory_range()
1000 !IS_ALIGNED(size, memory_block_size_bytes())) { in check_hotplug_memory_range()
1002 memory_block_size_bytes(), start, size); in check_hotplug_memory_range()
1633 endpa = beginpa + memory_block_size_bytes() - 1; in check_memblock_offlined_cb()
1802 if (!IS_ALIGNED(start, memory_block_size_bytes()) || in offline_and_remove_memory()
1803 size != memory_block_size_bytes()) in offline_and_remove_memory()
/Linux-v5.10/arch/s390/mm/
Dinit.c219 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
/Linux-v5.10/arch/powerpc/platforms/pseries/
Dhotplug-memory.c359 if (is_fadump_memory_area(lmb->base_addr, memory_block_size_bytes())) in lmb_is_removable()
625 block_sz = memory_block_size_bytes(); in dlpar_add_lmb()
/Linux-v5.10/drivers/s390/char/
Dsclp_cmd.c404 block_size = memory_block_size_bytes(); in add_memory_merged()
/Linux-v5.10/arch/powerpc/kernel/
Dsetup_64.c902 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
/Linux-v5.10/arch/x86/mm/
Dinit_64.c1476 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function