Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 8 files:
- drivers/mtd/tests/mtd_test.c, line 61
- drivers/mtd/tests/oobtest.c, line 389
- drivers/mtd/tests/pagetest.c, line 375
- drivers/mtd/tests/readtest.c, line 164
- drivers/mtd/tests/speedtest.c, line 231
- drivers/mtd/tests/stresstest.c, line 191
- drivers/mtd/tests/subpagetest.c, line 321
- drivers/mtd/tests/torturetest.c, line 245
Smatch caller information:
drivers/mtd/tests/readtest.c mtd_readtest_init() -> mtdtest_scan_for_bad_eraseblocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->erasesize | 0-4000000 |
| PARAM_VALUE | 1 | bbt | 16,4096-ptr_max |
| PARAM_VALUE | 2 | eb | 0 |
| PARAM_VALUE | 3 | ebcnt | 0-4000000 |
| BUF_SIZE | 1 | bbt | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | bbt | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | mtd | r get_mtd_device |
| DATA_SOURCE | 1 | bbt | r _kzalloc_noprof |
| UNITS | 3 | ebcnt | unit_byte |
drivers/mtd/tests/subpagetest.c mtd_subpagetest_init() -> mtdtest_scan_for_bad_eraseblocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->type | 4,8 |
| PARAM_VALUE | 1 | bbt | 16,4096-ptr_max |
| PARAM_VALUE | 2 | eb | 0 |
| PARAM_VALUE | 3 | ebcnt | 0-4000000 |
| BUF_SIZE | 1 | bbt | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | bbt | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | mtd | r get_mtd_device |
| DATA_SOURCE | 1 | bbt | r _kzalloc_noprof |
| UNITS | 3 | ebcnt | unit_byte |
drivers/mtd/tests/stresstest.c mtd_stresstest_init() -> mtdtest_scan_for_bad_eraseblocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 1 | bbt | 4096-ptr_max |
| PARAM_VALUE | 2 | eb | 0 |
| PARAM_VALUE | 3 | ebcnt | 2-4000000 |
| BUF_SIZE | 1 | bbt | 2-s32max |
| BUF_SIZE | 1 | bbt | 2-s32max |
| CAPPED_DATA | 3 | ebcnt | 1 |
| DATA_SOURCE | 0 | mtd | r get_mtd_device |
| DATA_SOURCE | 1 | bbt | r _kzalloc_noprof |
| FUZZY_MAX | 3 | ebcnt | 2 |
| NO_OVERFLOW_SIMPLE | 3 | ebcnt | |
| UNITS | 3 | ebcnt | unit_array_size |
drivers/mtd/tests/torturetest.c tort_init() -> mtdtest_scan_for_bad_eraseblocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->erasesize | 0-4000000 |
| PARAM_VALUE | 1 | bbt | 16,4096-ptr_max |
| PARAM_VALUE | 3 | ebcnt | 0-4000000 |
| BUF_SIZE | 1 | bbt | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | bbt | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | mtd | r get_mtd_device |
| DATA_SOURCE | 1 | bbt | r _kzalloc_noprof |
drivers/mtd/tests/speedtest.c mtd_speedtest_init() -> mtdtest_scan_for_bad_eraseblocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->erasesize | 0-4000000 |
| PARAM_VALUE | 1 | bbt | 16,4096-ptr_max |
| PARAM_VALUE | 2 | eb | 0 |
| PARAM_VALUE | 3 | ebcnt | 0-4000000 |
| BUF_SIZE | 1 | bbt | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | bbt | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | mtd | r get_mtd_device |
| DATA_SOURCE | 1 | bbt | r _kzalloc_noprof |
| UNITS | 3 | ebcnt | unit_byte |
| BYTE_COUNT | 1 | ==bbt3 | 8050 |
drivers/mtd/tests/pagetest.c mtd_pagetest_init() -> mtdtest_scan_for_bad_eraseblocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->erasesize | 0-4000000 |
| PARAM_VALUE | 0 | mtd->type | 4,8 |
| PARAM_VALUE | 1 | bbt | 16,4096-ptr_max |
| PARAM_VALUE | 2 | eb | 0 |
| PARAM_VALUE | 3 | ebcnt | 0-4000000 |
| BUF_SIZE | 1 | bbt | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | bbt | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | mtd | r get_mtd_device |
| DATA_SOURCE | 1 | bbt | r _kzalloc_noprof |
| UNITS | 3 | ebcnt | unit_byte |
drivers/mtd/tests/oobtest.c mtd_oobtest_init() -> mtdtest_scan_for_bad_eraseblocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->erasesize | 0-4000000 |
| PARAM_VALUE | 0 | mtd->type | 4,8 |
| PARAM_VALUE | 1 | bbt | 16,4096-ptr_max |
| PARAM_VALUE | 2 | eb | 0 |
| PARAM_VALUE | 3 | ebcnt | 0-4000000 |
| BUF_SIZE | 1 | bbt | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | bbt | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | mtd | r get_mtd_device |
| DATA_SOURCE | 1 | bbt | r _kzalloc_noprof |
| UNITS | 3 | ebcnt | unit_byte |