Home
last modified time | relevance | path

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

/linux/drivers/base/
H A Dmemory.c151 unsigned long __weak memory_block_size_bytes(void) in memory_block_size_bytes() function
155 EXPORT_SYMBOL_GPL(memory_block_size_bytes);
515 return sysfs_emit(buf, "%lx\n", memory_block_size_bytes()); in block_size_bytes_show()
870 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in create_memory_block_devices()
871 !IS_ALIGNED(size, memory_block_size_bytes()))) in create_memory_block_devices()
906 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in remove_memory_block_devices()
907 !IS_ALIGNED(size, memory_block_size_bytes()))) in remove_memory_block_devices()
958 block_sz = memory_block_size_bytes(); in memory_dev_init()
1154 unit_pages < PHYS_PFN(memory_block_size_bytes())) in memory_group_register_dynamic()
/linux/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()
1011 if (WARN_ON_ONCE(size != memory_block_size_bytes() || in virtio_mem_memory_notifier_cb()
1012 !IS_ALIGNED(start, memory_block_size_bytes()))) in virtio_mem_memory_notifier_cb()
1794 if (!virtio_mem_could_add_memory(vm, memory_block_size_bytes())) in virtio_mem_sbm_plug_request()
1805 if (!virtio_mem_could_add_memory(vm, memory_block_size_bytes())) in virtio_mem_sbm_plug_request()
2389 if (!IS_ALIGNED(end_addr + 1, memory_block_size_bytes())) in virtio_mem_refresh_config()
[all …]
/linux/mm/
H A Dmemory_hotplug.c55 return PHYS_PFN(memory_block_size_bytes()) * sizeof(struct page); in memory_block_memmap_size()
325 * enforces a larger memory_block_size_bytes() granularity for in check_pfn_span()
1328 if (!size || !IS_ALIGNED(start, memory_block_size_bytes()) || in check_hotplug_memory_range()
1329 !IS_ALIGNED(size, memory_block_size_bytes())) { in check_hotplug_memory_range()
1331 memory_block_size_bytes(), start, size); in check_hotplug_memory_range()
1398 if (memmap_pages == PHYS_PFN(memory_block_size_bytes())) in mhp_supports_memmap_on_memory()
1408 unsigned long memblock_size = memory_block_size_bytes(); in remove_memory_blocks_and_altmaps()
1440 unsigned long memblock_size = memory_block_size_bytes(); in create_altmaps_and_memory_blocks()
2108 endpa = beginpa + memory_block_size_bytes() - 1; in check_memblock_offlined_cb()
2199 u64 num_memblocks = size / memory_block_size_bytes(); in memory_blocks_have_altmaps()
[all...]
/linux/drivers/s390/char/
H A Dsclp_mem.c203 block_size = memory_block_size_bytes(); in sclp_config_mem_store()
295 block_size = memory_block_size_bytes(); in sclp_memmap_on_memory_store()
392 block_size = memory_block_size_bytes(); in sclp_create_standby_mems_merged()
425 const unsigned long block_size = memory_block_size_bytes(); in sclp_init_mem()
/linux/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/include/linux/
H A Dmemory.h99 unsigned long memory_block_size_bytes(void);
/linux/arch/powerpc/platforms/powernv/
H A Dmemtrace.c273 bytes = memory_block_size_bytes(); in memtrace_enable_set()
/linux/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/arch/powerpc/kernel/
H A Dsetup_64.c883 unsigned long memory_block_size_bytes(void) in memory_block_size_bytes() function
/linux/drivers/hv/
H A Dhv_balloon.c1955 ha_pages_in_chunk = memory_block_size_bytes() / PAGE_SIZE; in balloon_probe()