Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/mtd/mtdcore.c mtd_otp_size() -> mtd_get_user_prot_info()

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->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.iommu_group->owner_cnt 0-4294967295
PARAM_VALUE 0 mtd->dev.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 mtd->dev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 mtd->dev.kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 mtd->dev.kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 mtd->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 mtd->dev.p->dead 0-1
PARAM_VALUE 0 mtd->dev.p->deferred_probe_reason 0-s64max
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->nvmem->fixup_dt_cell_info 0-s64max
PARAM_VALUE 0 mtd->nvmem->flags s32min-s32max
PARAM_VALUE 0 mtd->nvmem->id s32min-s32max
PARAM_VALUE 0 mtd->nvmem->keepout 0-s64max
PARAM_VALUE 0 mtd->nvmem->nkeepout 0-4294967295
PARAM_VALUE 0 mtd->nvmem->ops 0-s64max
PARAM_VALUE 0 mtd->nvmem->root_only 0-1
PARAM_VALUE 0 mtd->nvmem->size s32min-s64max
PARAM_VALUE 0 mtd->nvmem->stride s32min-s32max
PARAM_VALUE 0 mtd->nvmem->type 0-4294967295
PARAM_VALUE 0 mtd->nvmem->word_size s32min-s32max
PARAM_VALUE 0 mtd->ooblayout->ecc 0,4096-ptr_max
PARAM_VALUE 0 mtd->ooblayout->free 0,4096-ptr_max
PARAM_VALUE 0 mtd->otp_factory_nvmem->ops 0-s64max
PARAM_VALUE 0 mtd->otp_user_nvmem->ops 0-s64max
PARAM_VALUE 0 mtd->partitions.next 4096-ptr_max
PARAM_VALUE 0 mtd->partitions.next->next 4096-ptr_max
PARAM_VALUE 0 mtd->partitions.prev 4096-ptr_max
PARAM_VALUE 0 mtd->partitions.prev->next 4096-ptr_max
PARAM_VALUE 0 mtd->partitions.prev->prev 4096-ptr_max
PARAM_VALUE 1 len 4096
PARAM_VALUE 2 retlen 2252280385869545472
PARAM_VALUE 3 buf 4096-ptr_max
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 s32min-(-1),1-s32max
BUF_SIZE 3 buf 4096
BUF_SIZE 3 buf 4096
DATA_SOURCE 0 mtd $0
DATA_SOURCE 3 buf r _kmalloc_noprof
STR_LEN 0 mtd (-1),18
STR_LEN 0 mtd (-1),18
STR_LEN 0 mtd->name (-1)
NOSPEC 0 mtd->erasesize
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
UNITS 1 len unit_byte
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &rtnl_mutex

drivers/mtd/mtdchar.c mtdchar_ioctl() -> mtd_get_user_prot_info()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 1 len 4096
PARAM_VALUE 2 retlen 591364176497106944
PARAM_VALUE 3 buf 4096-ptr_max
BUF_SIZE 3 buf 4096
BUF_SIZE 3 buf 4096
DATA_SOURCE 3 buf r _kmalloc_noprof
LOCK2 &master->master.chrdev_lock
TYPE_LOCK (struct mtd_master)->chrdev_lock