| /linux/tools/testing/memblock/tests/ |
| A D | alloc_helpers_api.c | 28 min_addr = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_from_simple_generic_check() 30 allocated_ptr = memblock_alloc_from(size, SMP_CACHE_BYTES, min_addr); in alloc_from_simple_generic_check() 72 min_addr = memblock_end_of_DRAM() - (SMP_CACHE_BYTES * 2 - 1); in alloc_from_misaligned_generic_check() 74 allocated_ptr = memblock_alloc_from(size, SMP_CACHE_BYTES, min_addr); in alloc_from_misaligned_generic_check() 80 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - SMP_CACHE_BYTES); in alloc_from_misaligned_generic_check() 121 allocated_ptr = memblock_alloc_from(size, SMP_CACHE_BYTES, min_addr); in alloc_from_top_down_high_addr_check() 125 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - SMP_CACHE_BYTES); in alloc_from_top_down_high_addr_check() 163 min_addr = memblock_end_of_DRAM() - SMP_CACHE_BYTES * 2; in alloc_from_top_down_no_space_above_check() 200 min_addr = start_addr - SMP_CACHE_BYTES * 3; in alloc_from_top_down_min_addr_cap_check() 291 memblock_reserve(min_addr - SMP_CACHE_BYTES, r2_size); in alloc_from_bottom_up_no_space_above_check() [all …]
|
| A D | alloc_nid_api.c | 231 max_addr = min_addr + SMP_CACHE_BYTES; in alloc_nid_top_down_narrow_range_check() 282 max_addr = min_addr + SMP_CACHE_BYTES; in alloc_nid_low_max_generic_check() 421 phys_addr_t gap_size = SMP_CACHE_BYTES; in alloc_nid_top_down_reserved_with_space_check() 430 r1.size = SMP_CACHE_BYTES; in alloc_nid_top_down_reserved_with_space_check() 493 r1.size = SMP_CACHE_BYTES; in alloc_nid_reserved_full_merge_generic_check() 548 phys_addr_t gap_size = SMP_CACHE_BYTES; in alloc_nid_top_down_reserved_no_space_check() 557 r1.size = SMP_CACHE_BYTES; in alloc_nid_top_down_reserved_no_space_check() 623 r1.size = SMP_CACHE_BYTES; in alloc_nid_reserved_all_generic_check() 850 max_addr = min_addr + SMP_CACHE_BYTES; in alloc_nid_bottom_up_narrow_range_check() 903 r1.size = SMP_CACHE_BYTES; in alloc_nid_bottom_up_reserved_with_space_check() [all …]
|
| A D | alloc_api.c | 34 expected_start = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_top_down_simple_check() 36 allocated_ptr = run_memblock_alloc(size, SMP_CACHE_BYTES); in alloc_top_down_simple_check() 79 phys_addr_t alignment = SMP_CACHE_BYTES * 2; in alloc_top_down_disjoint_check() 130 phys_addr_t r1_size = SMP_CACHE_BYTES; in alloc_top_down_before_check() 139 allocated_ptr = run_memblock_alloc(r2_size, SMP_CACHE_BYTES); in alloc_top_down_before_check() 180 r1.base = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_top_down_after_check() 269 phys_addr_t gap_size = SMP_CACHE_BYTES; in alloc_in_between_generic_check() 394 allocated_ptr = run_memblock_alloc(SZ_1K, SMP_CACHE_BYTES); in alloc_no_space_generic_check() 515 allocated_ptr = run_memblock_alloc(SZ_2, SMP_CACHE_BYTES); in alloc_bottom_up_simple_check() 556 phys_addr_t alignment = SMP_CACHE_BYTES * 2; in alloc_bottom_up_disjoint_check() [all …]
|
| A D | alloc_exact_nid_api.c | 45 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_top_down_numa_simple_check() 101 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_top_down_numa_part_reserved_check() 158 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_top_down_numa_split_range_low_check() 215 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_top_down_numa_no_overlap_split_check() 273 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_top_down_numa_no_overlap_low_check() 314 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_bottom_up_numa_simple_check() 372 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_bottom_up_numa_part_reserved_check() 429 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_bottom_up_numa_split_range_low_check() 486 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_bottom_up_numa_no_overlap_split_check() 544 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_bottom_up_numa_no_overlap_low_check() [all …]
|
| /linux/include/linux/ |
| A D | cache.h | 12 #ifndef SMP_CACHE_BYTES 13 #define SMP_CACHE_BYTES L1_CACHE_BYTES macro 26 #define SMP_CACHE_ALIGN(x) ALIGN(x, SMP_CACHE_BYTES) 67 #define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES))) 80 __attribute__((__aligned__(SMP_CACHE_BYTES), \ 141 __aligned((__VA_ARGS__ + 0) ? : SMP_CACHE_BYTES) 155 __aligned((__VA_ARGS__ + 0) ? : SMP_CACHE_BYTES)
|
| /linux/mm/ |
| A D | numa.c | 14 const size_t nd_size = roundup(sizeof(pg_data_t), SMP_CACHE_BYTES); in alloc_node_data() 20 nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid); in alloc_node_data() 41 pgdat = memblock_alloc(sizeof(*pgdat), SMP_CACHE_BYTES); in alloc_offline_node_data()
|
| /linux/arch/arc/include/asm/ |
| A D | cache.h | 50 #define SMP_CACHE_BYTES 128 macro 51 #define cache_line_size() SMP_CACHE_BYTES 52 #define ARCH_DMA_MINALIGN SMP_CACHE_BYTES
|
| /linux/arch/sparc/kernel/ |
| A D | vmlinux.lds.S | 22 #define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT) macro 69 RW_DATA(SMP_CACHE_BYTES, 0, THREAD_SIZE) 171 PERCPU_SECTION(SMP_CACHE_BYTES)
|
| /linux/arch/sh/mm/ |
| A D | numa.c | 42 SMP_CACHE_BYTES, nid); in setup_bootmem_node() 45 __func__, sizeof(struct pglist_data), SMP_CACHE_BYTES, in setup_bootmem_node()
|
| /linux/tools/virtio/ringtest/ |
| A D | ptr_ring.c | 13 #define SMP_CACHE_BYTES 64 macro 14 #define cache_line_size() SMP_CACHE_BYTES 15 #define ____cacheline_aligned_in_smp __attribute__ ((aligned (SMP_CACHE_BYTES)))
|
| /linux/include/net/libeth/ |
| A D | cache.h | 15 #if defined(CONFIG_64BIT) && SMP_CACHE_BYTES == 64 49 static_assert(__alignof(type) >= SMP_CACHE_BYTES)
|
| /linux/fs/bcachefs/ |
| A D | alloc_types.h | 116 } __aligned(SMP_CACHE_BYTES); 127 } __aligned(SMP_CACHE_BYTES);
|
| A D | nocow_locking_types.h | 13 } __aligned(SMP_CACHE_BYTES);
|
| A D | journal_types.h | 179 } __aligned(SMP_CACHE_BYTES); 304 } __aligned(SMP_CACHE_BYTES);
|
| /linux/arch/powerpc/mm/nohash/ |
| A D | mmu_context.c | 388 context_map = memblock_alloc(CTX_MAP_SIZE, SMP_CACHE_BYTES); in mmu_context_init() 393 SMP_CACHE_BYTES); in mmu_context_init() 398 stale_map[boot_cpuid] = memblock_alloc(CTX_MAP_SIZE, SMP_CACHE_BYTES); in mmu_context_init()
|
| /linux/tools/include/linux/ |
| A D | cache.h | 8 #define SMP_CACHE_BYTES L1_CACHE_BYTES macro
|
| /linux/arch/alpha/include/asm/ |
| A D | cache.h | 21 #define SMP_CACHE_BYTES L1_CACHE_BYTES macro
|
| /linux/arch/microblaze/include/asm/ |
| A D | cache.h | 19 #define SMP_CACHE_BYTES L1_CACHE_BYTES macro
|
| /linux/arch/sparc/include/asm/ |
| A D | cache.h | 22 #define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT) macro
|
| /linux/arch/xtensa/include/asm/ |
| A D | cache.h | 18 #define SMP_CACHE_BYTES L1_CACHE_BYTES macro
|
| /linux/init/ |
| A D | main.c | 382 new_cmdline = memblock_alloc(len + 1, SMP_CACHE_BYTES); in xbc_make_cmdline() 643 saved_command_line = memblock_alloc(len, SMP_CACHE_BYTES); in setup_command_line() 649 static_command_line = memblock_alloc(len, SMP_CACHE_BYTES); in setup_command_line() 870 unknown_options = memblock_alloc(len, SMP_CACHE_BYTES); in print_unknown_bootoptions() 1152 SMP_CACHE_BYTES); in initcall_blacklist() 1157 SMP_CACHE_BYTES); in initcall_blacklist()
|
| /linux/drivers/char/hw_random/ |
| A D | virtio-rng.c | 31 #if SMP_CACHE_BYTES < 32 34 u8 data[SMP_CACHE_BYTES];
|
| /linux/arch/um/kernel/ |
| A D | load_file.c | 51 area = memblock_alloc(*size, SMP_CACHE_BYTES); in uml_load_file()
|
| /linux/arch/csky/include/asm/ |
| A D | processor.h | 19 } __aligned(SMP_CACHE_BYTES);
|
| /linux/arch/parisc/include/asm/ |
| A D | cache.h | 21 #define SMP_CACHE_BYTES L1_CACHE_BYTES macro
|