Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
drivers/mtd/mtdcore.c get_mtd_device() -> __get_mtd_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 1-u64max |
| DATA_SOURCE | 0 | mtd | r idr_find |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &mtd_table_mutex |
drivers/mtd/mtdcore.c get_mtd_device_nm() -> __get_mtd_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &mtd_table_mutex |
drivers/mtd/mtdcore.c of_get_mtd_device_by_node() -> __get_mtd_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &mtd_table_mutex |
drivers/mtd/mtd_blkdevs.c blktrans_open() -> __get_mtd_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev->lock | ||
| LOCK2 | &disk->open_mutex | ||
| TYPE_LOCK | (struct gendisk)->open_mutex | ||
| TYPE_LOCK | (struct mtd_blktrans_dev)->lock |
drivers/mtd/ubi/build.c ubi_notify_add() -> __get_mtd_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 1-u64max |
| PARAM_VALUE | 0 | mtd->dbg.dfs_dir->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | mtd->dbg.dfs_dir->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | mtd->dev.kobj.parent->sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | mtd->dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | mtd->dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | mtd->ooblayout->ecc | 0,4096-ptr_max |
| PARAM_VALUE | 0 | mtd->ooblayout->free | 0,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 |