Defined in 1 files as a function:
Referenced in 11 files:
- drivers/mtd/mtdcore.c
- drivers/mtd/mtdpart.c, line 615
- drivers/mtd/parsers/ofpart_core.c
- drivers/mtd/parsers/parser_trx.c, line 54
- drivers/mtd/parsers/redboot.c, line 52
- drivers/mtd/parsers/scpart.c, line 153
- drivers/mtd/parsers/tplink_safeloader.c, line 31
- drivers/mtd/ubi/build.c, line 1234
- include/linux/mtd/nand.h, line 736
- include/linux/mtd/rawnand.h, line 1387
- include/linux/mtd/spi-nor.h, line 436
Smatch caller information:
drivers/mtd/parsers/parser_trx.c parser_trx_parse() -> mtd_get_of_node()
| 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/parsers/ofpart_core.c parse_fixed_partitions() -> mtd_get_of_node()
| 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/parsers/ofpart_core.c parse_ofoldpart_partitions() -> mtd_get_of_node()
| 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/nand/raw/vf610_nfc.c nand_get_flash_node() -> mtd_get_of_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/mtd/spi-nor/core.c spi_nor_get_flash_node() -> mtd_get_of_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/mtd/mtdcore.c add_mtd_device() -> mtd_get_of_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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 | |||
| NO_OVERFLOW_SIMPLE | 0 | mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | mtd->parent->erasesize | |
| HALF_LOCKED2 | &master->master.chrdev_lock |
drivers/mtd/mtdcore.c add_mtd_device() -> mtd_get_of_node()
| 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 |
| BUF_SIZE | 0 | mtd->dev.class | 96 |
| BUF_SIZE | 0 | mtd->dev.type | 48 |
| DATA_SOURCE | 0 | mtd | $0 |
| 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) |
| BIT_INFO | 0 | mtd->dev.devt | 0x5a00000,0xffffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | mtd->parent->erasesize | |
| LOCK2 | global &mtd_table_mutex | ||
| HALF_LOCKED2 | &master->master.chrdev_lock |
drivers/mtd/mtdcore.c add_mtd_device() -> mtd_get_of_node()
| 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->dev | 1 |
| DATA_SOURCE | 0 | mtd | $0 |
| 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 | |
| HALF_LOCKED2 | &cxt->pstore_zone_info_lock | ||
| HALF_LOCKED2 | &master->master.chrdev_lock |
drivers/mtd/mtdcore.c add_mtd_device() -> mtd_get_of_node()
| 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->dev.physical_location | 1 |
| CAPPED_DATA | 0 | &mtd->dev | 1 |
| DATA_SOURCE | 0 | mtd | $0 |
| 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 | ||
| HALF_LOCKED2 | &master->master.chrdev_lock |
drivers/mtd/mtdcore.c mtd_check_of_node() -> mtd_get_of_node()
| 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 |
| BUF_SIZE | 0 | mtd->dev.class | 96 |
| BUF_SIZE | 0 | mtd->dev.type | 48 |
| DATA_SOURCE | 0 | mtd | $0 |
| 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) |
| BIT_INFO | 0 | mtd->dev.devt | 0x5a00000,0x7fffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | mtd->parent->erasesize | |
| LOCK2 | global &mtd_table_mutex | ||
| HALF_LOCKED2 | &master->master.chrdev_lock |
drivers/mtd/mtdcore.c mtd_check_of_node() -> mtd_get_of_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | mtd->erasesize | |
| LOCK2 | global &mtd_table_mutex | ||
| HALF_LOCKED2 | &master->master.chrdev_lock |
drivers/mtd/mtdcore.c mtd_nvmem_add() -> mtd_get_of_node()
| 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->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 | ||
| HALF_LOCKED2 | &master->master.chrdev_lock |
drivers/mtd/mtdcore.c mtd_release() -> mtd_get_of_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| BUF_SIZE | 0 | mtd | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | mtd | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | mtd | unit_byte |
| HALF_LOCKED2 | &subsys->su_mutex |
drivers/mtd/mtdcore.c of_get_mtd_device_by_node() -> mtd_get_of_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &mtd_table_mutex |
drivers/mtd/nand/raw/nand_base.c nand_get_flash_node() -> mtd_get_of_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/mtd/mtdpart.c mtd_part_of_parse() -> mtd_get_of_node()
| 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) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | mtd->parent->erasesize |
drivers/mtd/parsers/redboot.c parse_redboot_of() -> mtd_get_of_node()
| 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->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/nand/raw/sunxi_nand.c nand_get_flash_node() -> mtd_get_of_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
drivers/mtd/nand/ecc.c nanddev_get_of_node() -> mtd_get_of_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/mtd/nand/raw/brcmnand/brcmnand.c nand_get_flash_node() -> mtd_get_of_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
drivers/mtd/nand/raw/nand_macronix.c nand_get_flash_node() -> mtd_get_of_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
drivers/mtd/parsers/tplink_safeloader.c mtd_parser_tplink_safeloader_read_table() -> mtd_get_of_node()
| 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->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/ubi/build.c ubi_notify_add() -> mtd_get_of_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 1-u64max |
| 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->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 |