Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

drivers/mtd/tests/readtest.c read_eraseblock_by_page() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 3 buf 0,16,4096-u64max
MEM_ZERO 3 buf

drivers/mtd/tests/stresstest.c do_read() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 1 addr s64min-9223372032559808512
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
UNITS 1 addr unit_byte
UNITS 2 size unit_byte

drivers/mtd/tests/speedtest.c read_eraseblock() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 3 buf 0,16,4096-ptr_max
UNITS 2 size unit_byte

drivers/mtd/tests/speedtest.c read_eraseblock_by_2pages() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
CAPPED_DATA 2 size 1
CAPPED_DATA 2 size 1
BIT_INFO 2 size 0x0,0x7fffffff
BIT_INFO 2 size 0x0,0x7fffffff

drivers/mtd/tests/speedtest.c read_eraseblock_by_2pages() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0,2-s32max,18446744071562067968-u64max

drivers/mtd/tests/speedtest.c read_eraseblock_by_page() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0,2-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 0,16,4096-u64max

drivers/mtd/tests/pagetest.c crosstest() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 16,4096-ptr_max
BUF_SIZE 3 buf 4
DATA_SOURCE 3 buf r _kmalloc_array_noprof
NO_OVERFLOW_SIMPLE 2 size
UNITS 1 addr unit_byte
UNITS 2 size unit_byte

drivers/mtd/tests/pagetest.c crosstest() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 16,4096-ptr_max
BUF_SIZE 3 buf 4
CAPPED_DATA 2 size 1
DATA_SOURCE 3 buf r _kmalloc_array_noprof
NO_OVERFLOW_SIMPLE 2 size
UNITS 1 addr unit_byte
UNITS 2 size unit_byte

drivers/mtd/tests/pagetest.c crosstest() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 4096-ptr_max
CAPPED_DATA 2 size 1
PARAM_COMPARE 2 size < $3
PARAM_COMPARE 3 buf > $2
NO_OVERFLOW_SIMPLE 2 size
UNITS 1 addr unit_byte
UNITS 2 size unit_byte

drivers/mtd/tests/pagetest.c crosstest() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
CAPPED_DATA 2 size 1
PARAM_COMPARE 2 size < $3
PARAM_COMPARE 3 buf > $2
NO_OVERFLOW_SIMPLE 2 size
UNITS 1 addr unit_byte
UNITS 2 size unit_byte

drivers/mtd/tests/pagetest.c crosstest() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 4096-ptr_max
CAPPED_DATA 2 size 1
PARAM_COMPARE 2 size <= $3
PARAM_COMPARE 3 buf >= $2
NO_OVERFLOW_SIMPLE 2 size
UNITS 1 addr unit_byte
UNITS 2 size unit_byte

drivers/mtd/tests/pagetest.c erasecrosstest() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 1 addr 0-s64max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 0,16,4096-ptr_max
CAPPED_DATA 2 size 1

drivers/mtd/tests/pagetest.c erasecrosstest() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 1 addr 0-s64max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 0,16,4096-ptr_max
CAPPED_DATA 2 size 1

drivers/mtd/tests/pagetest.c erasetest() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 1 addr 0-s64max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 0,16,4096-ptr_max
CAPPED_DATA 2 size 1

drivers/mtd/tests/pagetest.c verify_eraseblock() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 0,16,4096-ptr_max
UNITS 2 size unit_byte

drivers/mtd/tests/pagetest.c verify_eraseblock() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 0,16,4096-ptr_max
CAPPED_DATA 2 size 1
UNITS 1 addr unit_byte
UNITS 2 size unit_byte

drivers/mtd/tests/pagetest.c verify_eraseblock() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 0,16,4096-ptr_max
CAPPED_DATA 2 size 1
UNITS 2 size unit_byte

drivers/mtd/tests/pagetest.c verify_eraseblock() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 0,16,4096-ptr_max
UNITS 2 size unit_byte

drivers/mtd/tests/pagetest.c verify_eraseblock() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 0,16,4096-ptr_max
CAPPED_DATA 2 size 1
UNITS 1 addr unit_byte
UNITS 2 size unit_byte

drivers/mtd/tests/pagetest.c verify_eraseblock() -> mtdtest_read()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 2 size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 buf 0,16,4096-ptr_max
CAPPED_DATA 1 addr 1
CAPPED_DATA 1 addr 1
CAPPED_DATA 2 size 1
UNITS 1 addr unit_byte
UNITS 2 size unit_byte