Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/mtd/mtdcore.c mtd_otp_nvmem_add() -> mtd_otp_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->_get_user_prot_info | 1-u64max |
| PARAM_VALUE | 0 | mtd->_read_user_prot_reg | 1-u64max |
| PARAM_VALUE | 0 | mtd->dev.dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | mtd->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | mtd->dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | mtd->dev.dma_io_tlb_mem->force_bounce | 0-1 |
| PARAM_VALUE | 0 | mtd->dev.dma_io_tlb_mem->nslabs | 0-s64max |
| PARAM_VALUE | 0 | mtd->dev.dma_io_tlb_mem->phys_limit | 0-s64max |
| 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->master.chrdev_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mtd->master.chrdev_lock.first_waiter | 0 |
| PARAM_VALUE | 0 | mtd->master.chrdev_lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->master.chrdev_lock.owner.counter | 0 |
| PARAM_VALUE | 0 | mtd->master.partitions_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mtd->master.partitions_lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->ooblayout->ecc | 0,4096-ptr_max |
| PARAM_VALUE | 0 | mtd->ooblayout->free | 0,4096-ptr_max |
| PARAM_VALUE | 1 | is_user | 1 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 0 | mtd->dev.parent | (-1),1616 |
| BUF_SIZE | 0 | mtd->priv | (-1),16,40,2648 |
| 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 | |||
| HOST_DATA | 0 | mtd->oobsize | 0[c] |
| HOST_DATA | 0 | mtd->writesize | 0-262140 |
| USER_DATA | 0 | mtd->erasesize | 0-u32max |
| USER_DATA | 0 | mtd->size | 0-u64max |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/mtd/mtdcore.c mtd_otp_nvmem_add() -> mtd_otp_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->_get_fact_prot_info | 1-u64max |
| PARAM_VALUE | 0 | mtd->_read_fact_prot_reg | 1-u64max |
| PARAM_VALUE | 0 | mtd->dev.dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | mtd->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | mtd->dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | mtd->dev.dma_io_tlb_mem->force_bounce | 0-1 |
| PARAM_VALUE | 0 | mtd->dev.dma_io_tlb_mem->nslabs | 0-s64max |
| PARAM_VALUE | 0 | mtd->dev.dma_io_tlb_mem->phys_limit | 0-s64max |
| 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->master.chrdev_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mtd->master.partitions_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mtd->ooblayout->ecc | 0,4096-ptr_max |
| PARAM_VALUE | 0 | mtd->ooblayout->free | 0,4096-ptr_max |
| PARAM_VALUE | 1 | is_user | 0 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 0 | mtd->dev.parent | (-1),1616 |
| BUF_SIZE | 0 | mtd->otp_user_nvmem | (-1),1848 |
| BUF_SIZE | 0 | mtd->priv | (-1),16,40,2648 |
| 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 | |||
| HOST_DATA | 0 | mtd->oobsize | 0[c] |
| HOST_DATA | 0 | mtd->writesize | 0-262140 |
| USER_DATA | 0 | mtd->erasesize | 0-u32max |
| USER_DATA | 0 | mtd->size | 0-u64max |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &rtnl_mutex |