Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 21 files:

Smatch caller information:

arch/x86/kernel/aperture_64.c allocate_aperture() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 2 start 536870912
PARAM_VALUE 3 end 4294967296
LOCK2 irq

arch/x86/mm/init.c alloc_low_pages() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 0 size 4096
PARAM_VALUE 1 align 4096
PARAM_VALUE 2 start 0,4096-18446744073709543424
PARAM_VALUE 3 end 4096-18446744073709547520
CAPPED_DATA 2 start 1
BIT_INFO 2 start 0x0,0xfffffffffffff000
BIT_INFO 3 end 0x0,0xfffffffffffff000
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 align unit_byte
UNITS 2 start unit_byte
UNITS 3 end unit_byte

arch/x86/mm/init.c memory_map_top_down() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 0 size 2097152
PARAM_VALUE 1 align 2097152
PARAM_VALUE 2 start 1048576
PARAM_VALUE 3 end 0,4096-4503599627370496
DATA_SOURCE 2 start $0
DATA_SOURCE 3 end $1
BIT_INFO 3 end 0x0,0x1ffffffffff000
BIT_INFO 3 end 0x0,0x1ffffffffff000
UNITS 3 end unit_byte
LOCK2 irq

arch/x86/platform/efi/memmap.c memblock_phys_alloc() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 1 align 64
PARAM_VALUE 2 start 0
PARAM_VALUE 3 end 0
DATA_SOURCE 0 size $0
DATA_SOURCE 1 align $1
UNITS 0 size unit_byte

arch/x86/realmode/init.c reserve_real_mode() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 0 size 16025566594012024832
PARAM_VALUE 1 align 4096
PARAM_VALUE 2 start 0
PARAM_VALUE 3 end 1048576,4294967296
DATA_SOURCE 0 size r real_mode_size_needed
UNITS 1 align unit_byte
LOCK2 irq

arch/x86/kernel/e820.c memblock_phys_alloc() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 1 align 4
PARAM_VALUE 2 start 0
PARAM_VALUE 3 end 0
DATA_SOURCE 0 size $0
DATA_SOURCE 1 align $1
LOCK2 irq

mm/memblock.c memblock_phys_alloc() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 0 size 1-u64max
PARAM_VALUE 1 align 64-u64max
PARAM_VALUE 2 start 0
PARAM_VALUE 3 end 0
DATA_SOURCE 0 size $0
DATA_SOURCE 1 align $1
FUZZY_MAX 1 align 64
USER_DATA 0 size 1-u64max
USER_DATA 1 align 64-u64max
HALF_LOCKED2 irq

drivers/acpi/tables.c acpi_table_upgrade() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 0 size 36-s32max,18446744071562067968-u64max
PARAM_VALUE 1 align 4096
PARAM_VALUE 2 start 0
PARAM_VALUE 3 end 0,4096-4294967296
BIT_INFO 3 end 0x0,0x1fffff000
UNITS 1 align unit_byte
LOCK2 irq

kernel/liveupdate/kexec_handover.c kho_reserve_scratch() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 1 align 4194304
PARAM_VALUE 2 start 0
PARAM_VALUE 3 end u32max
NO_OVERFLOW_SIMPLE 0 size
LOCK2 irq

kernel/liveupdate/kexec_handover.c memblock_phys_alloc() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 1 align 4194304
PARAM_VALUE 2 start 0
PARAM_VALUE 3 end 0
DATA_SOURCE 0 size $0
DATA_SOURCE 1 align $1
LOCK2 irq

arch/x86/kernel/setup.c relocate_initrd() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 0 size 0,4096-u64max
PARAM_VALUE 1 align 4096
PARAM_VALUE 2 start 0
PARAM_VALUE 3 end 0,4096-18446744073709547520
BIT_INFO 0 size 0x0,0xfffffffffffff000
BIT_INFO 0 size 0x0,0xfffffffffffff000
BIT_INFO 3 end 0x0,0xfffffffffffff000
UNITS 1 align unit_byte
LOCK2 irq

drivers/of/of_reserved_mem.c early_init_dt_alloc_reserved_memory_arch() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 0 size 0-u32max
PARAM_VALUE 1 align 1-u32max
PARAM_VALUE 2 start 0-u32max
PARAM_VALUE 3 end 1-8589934590,u64max
CAPPED_DATA 0 size 1
CAPPED_DATA 0 size 1
CAPPED_DATA 2 start 1
CAPPED_DATA 2 start 1
CAPPED_DATA 3 end 1
CAPPED_DATA 3 end 1
DATA_SOURCE 0 size $0
DATA_SOURCE 2 start $2
FUZZY_MAX 1 align 64
FUZZY_MAX 3 end u64max
UNITS 2 start unit_byte
UNITS 3 end unit_byte

kernel/crash_reserve.c reserve_crashkernel_generic() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 0 size 0-18446744073709551614
PARAM_VALUE 1 align 16777216
DATA_SOURCE 0 size $0
USER_DATA 2 start 1-u64max
LOCK2 irq

kernel/crash_reserve.c reserve_crashkernel_low() -> memblock_phys_alloc_range()

Type Parameter Key Value
PARAM_VALUE 0 size 1-u64max
PARAM_VALUE 1 align 16777216
PARAM_VALUE 2 start 0
PARAM_VALUE 3 end 4294967296
DATA_SOURCE 0 size $0
USER_DATA 0 size 1-u64max
LOCK2 irq