Defined in 2 files as a function:
- drivers/counter/ftm-quaddec.c, line 63 (as a function)
- drivers/pwm/pwm-fsl-ftm.c, line 70 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/pwm/pwm-fsl-ftm.c fsl_pwm_apply_config() -> ftm_set_write_protection()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ftm | 4096-ptr_max |
| PARAM_VALUE | 0 | ftm->period.clk_ps | 0-7 |
| PARAM_VALUE | 0 | ftm->period.clk_select | 0-2 |
| PARAM_VALUE | 0 | ftm->period.mod_period | 0-u16max |
| PARAM_VALUE | 0 | ftm->regmap | 4096-ptr_max |
| PARAM_VALUE | 0 | ftm->regmap->async | 0 |
| PARAM_VALUE | 0 | ftm->regmap->cache->cached_rbnode->base_reg | 0-4294967295 |
| PARAM_VALUE | 0 | ftm->regmap->cache->cached_rbnode->blklen | 0-4294967295 |
| PARAM_VALUE | 0 | ftm->regmap->cache_dirty | 1 |
| BUF_SIZE | 0 | ftm | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ftm | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | ftm->period.clk_ps | 1 |
| CAPPED_DATA | 0 | ftm->period.clk_select | 1 |
| CAPPED_DATA | 0 | ftm->period.mod_period | 1 |
| CAPPED_DATA | 0 | ftm->regmap->rd_table->n_no_ranges | 1 |
| CAPPED_DATA | 0 | ftm->regmap->volatile_table->n_no_ranges | 1 |
| CAPPED_DATA | 0 | ftm->regmap->volatile_table->n_yes_ranges | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | ftm | unit_byte |
drivers/counter/ftm-quaddec.c ftm_quaddec_disable() -> ftm_set_write_protection()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ftm | 4096-ptr_max |
| PARAM_VALUE | 0 | ftm->ftm_base | 4096-ptr_max |
| DATA_SOURCE | 0 | ftm | $0 |
| NOCHECK_CALL |
drivers/counter/ftm-quaddec.c ftm_quaddec_init() -> ftm_set_write_protection()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ftm | 4096-ptr_max |
| PARAM_VALUE | 0 | ftm->ftm_base | 4096-ptr_max |
| PARAM_VALUE | 0 | ftm->ftm_quaddec_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ftm->ftm_quaddec_mutex.first_waiter | 0 |
| PARAM_VALUE | 0 | ftm->ftm_quaddec_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | ftm->ftm_quaddec_mutex.osq.tail.counter | 0 |
| PARAM_VALUE | 0 | ftm->ftm_quaddec_mutex.owner.counter | 0 |
| PARAM_VALUE | 0 | ftm->pdev | 4096-ptr_max |
| PARAM_VALUE | 0 | ftm->pdev->dev.devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ftm->pdev->num_resources | 1-u32max |
| CAPPED_DATA | 0 | ftm->pdev->num_resources | 1 |
| DATA_SOURCE | 0 | ftm | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/counter/ftm-quaddec.c ftm_quaddec_set_prescaler() -> ftm_set_write_protection()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ftm | 4096-ptr_max |
| PARAM_VALUE | 0 | ftm->ftm_base | 0-ptr_max |
| PARAM_VALUE | 0 | ftm->ftm_quaddec_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ftm->ftm_quaddec_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ftm->ftm_quaddec_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ftm->ftm_quaddec_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ftm->ftm_quaddec_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ftm->ftm_quaddec_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | ftm->ftm_quaddec_mutex.wait_lock.owner_cpu | u32max |
| CAPPED_DATA | 0 | &ftm->ftm_quaddec_mutex | 1 |
| DATA_SOURCE | 0 | ftm | r counter_priv |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | 0 | &ftm->ftm_quaddec_mutex | |
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ftm_quaddec)->ftm_quaddec_mutex | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |