Defined in 1 files as a function:
Referenced in 11 files:
- drivers/mtd/inftlcore.c, line 40
- drivers/mtd/mtdblock.c, line 264
- drivers/mtd/mtdblock_ro.c, line 51
- drivers/mtd/mtdcore.c, line 972
- drivers/mtd/nftlcore.c, line 40
- drivers/mtd/parsers/bcm63xxpart.c, line 144
- drivers/mtd/ssfdc.c, line 289
- drivers/mtd/tests/nandbiterrs.c, line 343
- drivers/mtd/tests/oobtest.c, line 362
- drivers/mtd/tests/pagetest.c, line 343
- drivers/mtd/tests/subpagetest.c, line 292
Smatch caller information:
drivers/mtd/mtdblock.c mtdblock_open() -> mtd_type_is_nand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &disk->open_mutex | ||
| LOCK2 | &mbd->lock | ||
| TYPE_LOCK | (struct gendisk)->open_mutex | ||
| TYPE_LOCK | (struct mtd_blktrans_dev)->lock |
drivers/mtd/nftlcore.c nftl_add_mtd() -> mtd_type_is_nand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| CAPPED_DATA | 0 | mtd | 1 |
| DATA_SOURCE | 0 | mtd | $1 |
| STR_LEN | 0 | mtd | (-1),18 |
| STR_LEN | 0 | mtd | (-1),18 |
| STR_LEN | 0 | mtd->dev.driver_data | (-1) |
| STR_LEN | 0 | mtd->name | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | mtd->parent->erasesize | |
| LOCK2 | global &mtd_table_mutex |
drivers/mtd/mtdcore.c mtd_otp_nvmem_register() -> mtd_type_is_nand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| DATA_SOURCE | 0 | mtd | $0 |
| STR_LEN | 0 | mtd | (-1),18 |
| STR_LEN | 0 | mtd | (-1),18 |
| STR_LEN | 0 | mtd->name | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/mtd/tests/subpagetest.c mtd_subpagetest_init() -> mtd_type_is_nand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 0-ptr_max |
| DATA_SOURCE | 0 | mtd | r get_mtd_device |
drivers/mtd/ssfdc.c ssfdcr_add_mtd() -> mtd_type_is_nand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| CAPPED_DATA | 0 | mtd | 1 |
| DATA_SOURCE | 0 | mtd | $1 |
| STR_LEN | 0 | mtd | (-1),18 |
| STR_LEN | 0 | mtd | (-1),18 |
| STR_LEN | 0 | mtd->dev.driver_data | (-1) |
| STR_LEN | 0 | mtd->name | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | mtd->parent->erasesize | |
| LOCK2 | global &mtd_table_mutex |
drivers/mtd/inftlcore.c inftl_add_mtd() -> mtd_type_is_nand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| CAPPED_DATA | 0 | mtd | 1 |
| DATA_SOURCE | 0 | mtd | $1 |
| STR_LEN | 0 | mtd | (-1),18 |
| STR_LEN | 0 | mtd | (-1),18 |
| STR_LEN | 0 | mtd->dev.driver_data | (-1) |
| STR_LEN | 0 | mtd->name | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | mtd->parent->erasesize | |
| LOCK2 | global &mtd_table_mutex |
drivers/mtd/tests/nandbiterrs.c mtd_nandbiterrs_init() -> mtd_type_is_nand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 0-ptr_max |
| DATA_SOURCE | 0 | mtd | r get_mtd_device |
drivers/mtd/parsers/bcm63xxpart.c bcm63xx_parse_cfe_partitions() -> mtd_type_is_nand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| CAPPED_DATA | 0 | mtd | 1 |
| DATA_SOURCE | 0 | mtd | $0 |
| STR_LEN | 0 | mtd | (-1),18 |
| STR_LEN | 0 | mtd | (-1),18 |
| STR_LEN | 0 | mtd->name | (-1) |
| STR_LEN | 0 | mtd->parent | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | mtd->parent->erasesize |
drivers/mtd/tests/pagetest.c mtd_pagetest_init() -> mtd_type_is_nand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 0-ptr_max |
| DATA_SOURCE | 0 | mtd | r get_mtd_device |
drivers/mtd/tests/oobtest.c mtd_oobtest_init() -> mtd_type_is_nand()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 0-ptr_max |
| DATA_SOURCE | 0 | mtd | r get_mtd_device |