Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/mtd/chips/cfi_cmdset_0002.c cfi_amdstd_get_fact_prot_info() -> cfi_amdstd_otp_walk()
| 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->parent | 0 |
| PARAM_VALUE | 0 | mtd->parent->parent | 0 |
| PARAM_VALUE | 1 | from | 0 |
| PARAM_VALUE | 2 | len | 4096 |
| PARAM_VALUE | 3 | retlen | 591364176497106944,2252280385869545472 |
| PARAM_VALUE | 4 | buf | 4096-ptr_max |
| PARAM_VALUE | 5 | action | 0 |
| PARAM_VALUE | 6 | user_regs | 0 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 4 | buf | 4096 |
| BUF_SIZE | 4 | buf | 4096 |
| DATA_SOURCE | 0 | mtd | $0 |
| DATA_SOURCE | 2 | len | $1 |
| DATA_SOURCE | 3 | retlen | $2 |
| DATA_SOURCE | 4 | buf | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | mtd->oobsize | 0-4095[c] |
| HOST_DATA | 0 | mtd->writesize | 0-262140 |
| USER_DATA | 0 | mtd->erasesize | 0-u32max |
| USER_DATA | 0 | mtd->size | 0-u64max |
| HALF_LOCKED2 | &master->master.chrdev_lock |
drivers/mtd/chips/cfi_cmdset_0002.c cfi_amdstd_get_user_prot_info() -> cfi_amdstd_otp_walk()
| 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->parent | 0 |
| PARAM_VALUE | 0 | mtd->parent->parent | 0 |
| PARAM_VALUE | 1 | from | 0 |
| PARAM_VALUE | 2 | len | 4096 |
| PARAM_VALUE | 3 | retlen | 591364176497106944,2252280385869545472 |
| PARAM_VALUE | 4 | buf | 4096-ptr_max |
| PARAM_VALUE | 5 | action | 0 |
| PARAM_VALUE | 6 | user_regs | 1 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 0 | mtd | (-1),2448,2984 |
| BUF_SIZE | 4 | buf | 4096 |
| BUF_SIZE | 4 | buf | 4096 |
| DATA_SOURCE | 0 | mtd | $0 |
| DATA_SOURCE | 2 | len | $1 |
| DATA_SOURCE | 3 | retlen | $2 |
| DATA_SOURCE | 4 | buf | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | mtd->oobsize | 0-4095[c] |
| HOST_DATA | 0 | mtd->writesize | 0-262140 |
| USER_DATA | 0 | mtd->erasesize | 0-u32max |
| USER_DATA | 0 | mtd->size | 0-u64max |
| HALF_LOCKED2 | &master->master.chrdev_lock |
drivers/mtd/chips/cfi_cmdset_0002.c cfi_amdstd_lock_user_prot_reg() -> cfi_amdstd_otp_walk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->_lock_user_prot_reg | 1-u64max |
| PARAM_VALUE | 0 | mtd->parent | 0 |
| PARAM_VALUE | 0 | mtd->parent->parent | 0 |
| PARAM_VALUE | 2 | len | 1-u64max |
| PARAM_VALUE | 3 | retlen | 4552359546813984768 |
| PARAM_VALUE | 4 | buf | 0 |
| PARAM_VALUE | 5 | action | 2808903696744009728 |
| PARAM_VALUE | 6 | user_regs | 1 |
| DATA_SOURCE | 0 | mtd | $0 |
| DATA_SOURCE | 1 | from | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 1 | from | 0-4294967295 |
| USER_DATA | 2 | len | 1-u32max |
| LOCK2 | &master->master.chrdev_lock | ||
| TYPE_LOCK | (struct mtd_master)->chrdev_lock |
drivers/mtd/chips/cfi_cmdset_0002.c cfi_amdstd_read_fact_prot_reg() -> cfi_amdstd_otp_walk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->_read_fact_prot_reg | 1-u64max |
| PARAM_VALUE | 0 | mtd->parent | 0 |
| PARAM_VALUE | 0 | mtd->parent->parent | 0 |
| PARAM_VALUE | 2 | len | 1-u64max |
| PARAM_VALUE | 3 | retlen | 1650582699143004160,3971551167215820800 |
| PARAM_VALUE | 3 | *retlen | 0 |
| PARAM_VALUE | 5 | action | 43314032135458816 |
| PARAM_VALUE | 6 | user_regs | 0 |
| BUF_SIZE | 0 | mtd | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | mtd | s32min-(-1),1-s32max |
| BUF_SIZE | 4 | buf | (-1)-s32max |
| BUF_SIZE | 4 | buf | (-1)-s32max |
| DATA_SOURCE | 0 | mtd | $0 |
| DATA_SOURCE | 1 | from | $1 |
| DATA_SOURCE | 2 | len | $2 |
| DATA_SOURCE | 3 | retlen | $3 |
| DATA_SOURCE | 4 | buf | $4 |
| PARAM_COMPARE | 4 | buf | == $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | from | 0-1007999998[c] |
| HOST_DATA | 2 | len | 2-3999999[c] |
| USER_DATA | 1 | from | 0-4294967294 |
| USER_DATA | 2 | len | 1-u32max[c] |
| BYTE_COUNT | 4 | ==buf2 | 8050 |
drivers/mtd/chips/cfi_cmdset_0002.c cfi_amdstd_read_user_prot_reg() -> cfi_amdstd_otp_walk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->_read_user_prot_reg | 1-u64max |
| PARAM_VALUE | 0 | mtd->parent | 0 |
| PARAM_VALUE | 0 | mtd->parent->parent | 0 |
| PARAM_VALUE | 2 | len | 1-u64max |
| PARAM_VALUE | 3 | retlen | 1650582699143004160,6084512727775047680 |
| PARAM_VALUE | 3 | *retlen | 0 |
| PARAM_VALUE | 5 | action | 43314032135458816 |
| PARAM_VALUE | 6 | user_regs | 1 |
| BUF_SIZE | 0 | mtd | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | mtd | s32min-(-1),1-s32max |
| BUF_SIZE | 4 | buf | (-1)-s32max |
| BUF_SIZE | 4 | buf | (-1)-s32max |
| DATA_SOURCE | 0 | mtd | $0 |
| DATA_SOURCE | 1 | from | $1 |
| DATA_SOURCE | 2 | len | $2 |
| DATA_SOURCE | 3 | retlen | $3 |
| DATA_SOURCE | 4 | buf | $4 |
| PARAM_COMPARE | 4 | buf | == $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | from | 0-1007999998[c] |
| HOST_DATA | 2 | len | 2-3999999[c] |
| USER_DATA | 1 | from | 0-4294967294 |
| USER_DATA | 2 | len | 1-u32max[c] |
| BYTE_COUNT | 4 | ==buf2 | 8050 |
| HALF_LOCKED2 | _T->lock |
drivers/mtd/chips/cfi_cmdset_0002.c cfi_amdstd_write_user_prot_reg() -> cfi_amdstd_otp_walk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | mtd->_write_user_prot_reg | 1-u64max |
| PARAM_VALUE | 0 | mtd->parent | 0 |
| PARAM_VALUE | 0 | mtd->parent->parent | 0 |
| PARAM_VALUE | 2 | len | 1-4000000 |
| PARAM_VALUE | 3 | retlen | 2800019977808556032 |
| PARAM_VALUE | 3 | *retlen | 0 |
| PARAM_VALUE | 4 | buf | 16,4096-ptr_max |
| PARAM_VALUE | 5 | action | 85183872192487424 |
| PARAM_VALUE | 6 | user_regs | 1 |
| BUF_SIZE | 4 | buf | 0-s32max |
| BUF_SIZE | 4 | buf | 0-s32max |
| CAPPED_DATA | 2 | len | 1 |
| CAPPED_DATA | 2 | len | 1 |
| DATA_SOURCE | 0 | mtd | $0 |
| DATA_SOURCE | 1 | from | $1 |
| DATA_SOURCE | 2 | len | $2 |
| DATA_SOURCE | 3 | retlen | $3 |
| DATA_SOURCE | 4 | buf | $4 |
| HOST_DATA | 1 | from | 0-5294967294[c] |
| HOST_DATA | 2 | len | 2-3999999[c] |
| USER_DATA | 1 | from | 1-1000000000[c] |
| USER_DATA | 2 | len | 2-3999999[c] |
| USER_DATA | 4 | *buf | 0-255 |
| USER_PTR | 4 | buf |