Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

mm/slab_common.c __kmem_cache_create_args() -> calculate_alignment()

Type Parameter Key Value
PARAM_VALUE 0 flags 0-2162686
PARAM_VALUE 2 size 0-4194304
CAPPED_DATA 2 size 1
DATA_SOURCE 0 flags $3 [m]
DATA_SOURCE 2 size $1
BIT_INFO 0 flags 0x0,0x15bfff
HARD_MAX 2 size 4194304
UNITS 1 align unit_byte
UNITS 2 size unit_byte
LOCK2 global &slab_mutex

mm/slab_common.c create_boot_cache() -> calculate_alignment()

Type Parameter Key Value
PARAM_VALUE 0 flags 8,40,8200,32776,65544,65576,73736,98312,1048584,1114120,8396808,8462344,41943056
PARAM_VALUE 1 align 8-u32max
DATA_SOURCE 0 flags $3
DATA_SOURCE 2 size $2
FUZZY_MAX 1 align 8
BIT_INFO 0 flags 0x0,0x291a038
UNITS 2 size unit_byte
LOCK2 irq

mm/slab_common.c find_mergeable() -> calculate_alignment()

Type Parameter Key Value
PARAM_VALUE 0 flags 0-33554431
PARAM_VALUE 2 size 0,8-4194304
CAPPED_DATA 2 size 1
DATA_SOURCE 0 flags $1 [m]
BIT_INFO 2 size 0x0,0x7ffff8
UNITS 1 align unit_byte
UNITS 2 size unit_byte
LOCK2 global &slab_mutex