Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/regulator/core.c, line 5032 (as a function)
- include/linux/regulator/consumer.h, line 550 (as a function)
Referenced in 5 files:
- drivers/regulator/core.c, line 5065
- drivers/regulator/virtual.c, line 256
- drivers/soc/mediatek/mtk-svs.c
- drivers/ufs/host/ufs-mediatek.c, line 1745
- sound/soc/codecs/cpcap.c
Smatch caller information:
drivers/regulator/virtual.c set_mode() -> regulator_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 1-2,4,8 |
| FUZZY_MAX | 1 | mode | 8 |
| HARD_MAX | 1 | mode | 8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &data->lock | ||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct virtual_consumer_data)->lock |
sound/soc/codecs/cpcap.c cpcap_hs_irq_thread() -> regulator_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &card->mutex | ||
| HALF_LOCKED2 | _T->lock |
sound/soc/codecs/cpcap.c cpcap_hs_irq_thread() -> regulator_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &card->mutex | ||
| HALF_LOCKED2 | _T->lock |
sound/soc/codecs/cpcap.c cpcap_set_bias_level() -> regulator_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &card->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | _T->lock |
sound/soc/codecs/cpcap.c cpcap_set_bias_level() -> regulator_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &card->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | _T->lock |
drivers/soc/mediatek/mtk-svs.c svs_init01() -> regulator_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | regulator | 4096-ptr_max |
| PARAM_VALUE | 0 | regulator->enable_count | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | regulator->rdev->desc | 4096-ptr_max |
| PARAM_VALUE | 0 | regulator->rdev->desc->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | regulator->rdev->ena_gpio_state | 1 |
| PARAM_VALUE | 0 | regulator->rdev->ena_pin->enable_count | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->mutex_owner | 0 |
| PARAM_VALUE | 0 | regulator->rdev->notifier.head->priority | s32min-s32max |
| PARAM_VALUE | 0 | regulator->rdev->ref_cnt | s32min-s32max |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->load | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->load_updated | 0-1 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock->wait_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->regmap->cache->cached_rbnode->base_reg | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->regmap->cache->cached_rbnode->blklen | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->regmap->cache->cached_rbnode->node.__rb_parent_color | 0-1 |
| PARAM_VALUE | 0 | regulator->rdev->regmap->async | 0-1 |
| PARAM_VALUE | 0 | regulator->rdev->regmap->cache->cached_rbnode->base_reg | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->regmap->cache->cached_rbnode->blklen | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->regmap->cache->cached_rbnode->node.__rb_parent_color | 0-1 |
| PARAM_VALUE | 0 | regulator->rdev->regmap->cache_dirty | 0-1 |
| PARAM_VALUE | 0 | regulator->rdev->supply->enable_count | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->use_count | 0-4294967295 |
| PARAM_VALUE | 1 | mode | 1 |
| CAPPED_DATA | 0 | regulator->rdev | 1 |
| CAPPED_DATA | 0 | regulator->rdev->coupling_desc.n_coupled | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &cpuidle_lock |
drivers/soc/mediatek/mtk-svs.c svs_init01() -> regulator_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | regulator->enable_count | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | regulator->rdev->desc | 4096-ptr_max |
| PARAM_VALUE | 0 | regulator->rdev->desc->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | regulator->rdev->ena_gpio_state | 0-1 |
| PARAM_VALUE | 0 | regulator->rdev->ena_pin->enable_count | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->mutex_owner | 0 |
| PARAM_VALUE | 0 | regulator->rdev->notifier.head->priority | s32min-s32max |
| PARAM_VALUE | 0 | regulator->rdev->ref_cnt | s32min-s32max |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock->wait_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->regmap->cache->cached_rbnode->base_reg | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->regmap->cache->cached_rbnode->blklen | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->reg_data->regmap->cache->cached_rbnode->node.__rb_parent_color | 0-1 |
| PARAM_VALUE | 0 | regulator->rdev->regmap->async | 0-1 |
| PARAM_VALUE | 0 | regulator->rdev->regmap->cache->cached_rbnode->base_reg | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->regmap->cache->cached_rbnode->blklen | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->regmap->cache->cached_rbnode->node.__rb_parent_color | 0-1 |
| PARAM_VALUE | 0 | regulator->rdev->regmap->cache_dirty | 0-1 |
| PARAM_VALUE | 0 | regulator->rdev->supply->enable_count | 0-4294967295 |
| PARAM_VALUE | 0 | regulator->rdev->use_count | 0-4294967295 |
| PARAM_VALUE | 1 | mode | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &cpuidle_lock |