Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 26 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 0 base 1-u64max
PARAM_VALUE 1 size 2097152
DATA_SOURCE 0 base r memblock_phys_alloc_range
NOCHECK_CALL
LOCK2 irq

drivers/of/kexec.c ima_free_kexec_buffer() -> memblock_phys_free()

Type Parameter Key Value
NOCHECK_CALL

arch/x86/platform/efi/memmap.c __efi_memmap_free() -> memblock_phys_free()

Type Parameter Key Value
DATA_SOURCE 0 base $0
DATA_SOURCE 1 size $1
NOCHECK_CALL
HALF_LOCKED2 irq

mm/cma.c __cma_declare_contiguous_nid() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 0 base 1-u64max
CAPPED_DATA 1 size 1
CAPPED_DATA 1 size 1
STR_LEN 0 base (-1)
STR_LEN 1 size (-1)
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 size
UNITS 0 base unit_byte
UNITS 1 size unit_byte
LOCK2 irq

mm/cma.c cma_declare_contiguous_multi() -> memblock_phys_free()

Type Parameter Key Value
NOCHECK_CALL
UNITS 0 base unit_byte
UNITS 1 size unit_byte
LOCK2 irq

drivers/firmware/efi/apple-properties.c map_properties() -> memblock_phys_free()

Type Parameter Key Value
CAPPED_DATA 1 size 1
NOCHECK_CALL
UNITS 0 base unit_byte
UNITS 1 size unit_byte

drivers/usb/early/xhci-dbc.c early_xdbc_setup_hardware() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 0 base 1-u64max
PARAM_VALUE 1 size 4096
NOCHECK_CALL
UNITS 1 size unit_byte
LOCK2 irq

drivers/usb/early/xhci-dbc.c early_xdbc_setup_hardware() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 0 base 1-u64max
PARAM_VALUE 1 size 4096
NOCHECK_CALL
UNITS 1 size unit_byte
LOCK2 irq

drivers/usb/early/xhci-dbc.c xdbc_free_ring() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 1 size 4096
NOCHECK_CALL
UNITS 1 size unit_byte
HALF_LOCKED2 irq

drivers/usb/early/xhci-dbc.c xdbc_init() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 1 size 4096
NOCHECK_CALL
UNITS 1 size unit_byte

drivers/usb/early/xhci-dbc.c xdbc_init() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 1 size 4096
NOCHECK_CALL
UNITS 1 size unit_byte

kernel/dma/swiotlb.c swiotlb_exit() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 1 size 0,4096-u64max
BIT_INFO 1 size 0x0,0xfffffffffffff000
BIT_INFO 1 size 0x0,0xfffffffffffff000
NOCHECK_CALL
UNITS 0 base unit_byte
UNITS 1 size unit_byte

mm/memblock.c free_memmap() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 0 base 0,4096-18446744073709551614
PARAM_VALUE 1 size 1-u64max
CAPPED_DATA 0 base 1
CAPPED_DATA 0 base 1
CAPPED_DATA 1 size 1
BIT_INFO 0 base 0x0,0xfffffffffffff000
BIT_INFO 0 base 0x0,0xfffffffffffff000
NOCHECK_CALL

mm/memblock.c memblock_free() -> memblock_phys_free()

Type Parameter Key Value
CAPPED_DATA 0 base 1
DATA_SOURCE 1 size $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 size
UNITS 1 size unit_byte
HALF_LOCKED2 irq

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

Type Parameter Key Value
NOCHECK_CALL
UNITS 0 base unit_byte
UNITS 1 size unit_byte
LOCK2 irq

arch/x86/kernel/setup.c reserve_initrd() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 0 base 1-u64max
DATA_SOURCE 0 base r get_ramdisk_image
NOCHECK_CALL
LOCK2 irq

arch/x86/xen/setup.c xen_del_extra_mem() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 0 base 0,4096-18446744073709543424
PARAM_VALUE 1 size 0,4096-18446744073709547520
CAPPED_DATA 0 base 1
BIT_INFO 0 base 0x0,0xfffffffffffff000
BIT_INFO 1 size 0x0,0xfffffffffffff000
NOCHECK_CALL
LOCK2 irq

arch/x86/xen/setup.c xen_memory_setup() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 0 base 0-u32max
PARAM_VALUE 1 size 0-u32max
CAPPED_DATA 1 size 1
CAPPED_DATA 1 size 1
NOCHECK_CALL
UNITS 0 base unit_byte
UNITS 1 size unit_byte
LOCK2 irq

arch/x86/xen/setup.c xen_reserve_xen_mfnlist() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 1 size 4096-u64max
CAPPED_DATA 0 base 1
CAPPED_DATA 0 base 1
BIT_INFO 1 size 0x0,0xfffffffffffff000
BIT_INFO 1 size 0x0,0xfffffffffffff000
NOCHECK_CALL
LOCK2 irq

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

Type Parameter Key Value
PARAM_VALUE 0 base 1-u64max
PARAM_VALUE 1 size 0-u32max
CAPPED_DATA 1 size 1
CAPPED_DATA 1 size 1
DATA_SOURCE 0 base r memblock_phys_alloc_range
DATA_SOURCE 1 size $0
NOCHECK_CALL

drivers/of/of_reserved_mem.c fdt_init_reserved_mem_node() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 1 size 0-u32max
CAPPED_DATA 1 size 1
CAPPED_DATA 1 size 1
DATA_SOURCE 0 base $2 [m]
DATA_SOURCE 1 size $3
NOCHECK_CALL
UNITS 0 base unit_byte
UNITS 1 size unit_byte
HALF_LOCKED2 irq

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

Type Parameter Key Value
PARAM_VALUE 0 base 4294967296-u64max
PARAM_VALUE 1 size 0-18446744073709551614
DATA_SOURCE 0 base r memblock_phys_alloc_range
DATA_SOURCE 1 size $0
NOCHECK_CALL
USER_DATA 0 base 4294967296-9223372036854775806[c]
LOCK2 irq

arch/x86/xen/mmu_pv.c xen_free_ro_pages() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 0 base 0,4096-18446744073709547520
PARAM_VALUE 1 size 4096,2097152,1073741824
CAPPED_DATA 0 base 1
CAPPED_DATA 0 base 1
DATA_SOURCE 0 base $0
DATA_SOURCE 1 size $1
BIT_INFO 0 base 0x0,0xfffffffffffff000
BIT_INFO 0 base 0x0,0xfffffffffffff000
HARD_MAX 1 size 1073741824
NOCHECK_CALL
UNITS 0 base unit_byte
UNITS 1 size unit_byte
LOCK2 irq

arch/x86/xen/mmu_pv.c xen_relocate_p2m() -> memblock_phys_free()

Type Parameter Key Value
PARAM_VALUE 0 base 0,4096-18446744073709547520
BIT_INFO 0 base 0x0,0xfffffffffffff000
NOCHECK_CALL
LOCK2 irq