Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/regulator/core.c, line 4876 (as a function)
- include/linux/regulator/consumer.h, line 523 (as a function)
Referenced in 8 files:
- drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
- drivers/leds/leds-wm8350.c, line 167
- drivers/net/pse-pd/pse_core.c, line 1893
- drivers/power/supply/charger-manager.c, line 919
- drivers/power/supply/max8997_charger.c, line 126
- drivers/regulator/core.c, line 4900
- drivers/regulator/virtual.c, line 77
- drivers/usb/phy/phy-gpio-vbus-usb.c, line 69
Smatch caller information:
drivers/regulator/virtual.c update_current_limit_constraints() -> regulator_set_current_limit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | max_uA | s32min-(-1),1-s32max |
| CAPPED_DATA | 1 | min_uA | 1 |
| PARAM_COMPARE | 1 | min_uA | <= $2 |
| PARAM_COMPARE | 2 | max_uA | >= $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | min_uA | s32min-s32max[c] |
| USER_DATA | 2 | max_uA | s32min-(-1),1-s32max |
| 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 |
drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c boe_bf060y8m_aj0_init_vregs() -> regulator_set_current_limit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | regulator->rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | regulator->rdev->desc | 4096-ptr_max |
| PARAM_VALUE | 1 | min_uA | 1500 |
| PARAM_VALUE | 2 | max_uA | 2500 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c boe_bf060y8m_aj0_init_vregs() -> regulator_set_current_limit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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->mutex_owner | 0 |
| PARAM_VALUE | 0 | regulator->rdev->ref_cnt | s32min-s32max |
| PARAM_VALUE | 1 | min_uA | 20000 |
| PARAM_VALUE | 2 | max_uA | 40000 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/pse-pd/pse_core.c pse_ethtool_set_pw_limit() -> regulator_set_current_limit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | regulator | 4096-ptr_max |
| 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->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 | 0-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_dirty | 0-1 |
| PARAM_VALUE | 0 | *regulator->rdev->reg_data->mc13xxx->regmap->cache->data | 0-4294967295 |
| PARAM_VALUE | 0 | *regulator->rdev->reg_data->regmap->work_buf | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 1 | min_uA | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &dpll_lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &net_dm_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
drivers/power/supply/max8997_charger.c max8997_battery_extcon_evt_worker() -> regulator_set_current_limit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | min_uA | 450000,650000 |
| PARAM_VALUE | 2 | max_uA | 450000,650000 |
| FUZZY_MAX | 1 | min_uA | 650000 |
| FUZZY_MAX | 2 | max_uA | 650000 |
| BIT_INFO | 1 | min_uA | 0xc910,0xfffd0 |
| BIT_INFO | 2 | max_uA | 0xc910,0xfffd0 |
| HARD_MAX | 1 | min_uA | 650000 |
| HARD_MAX | 2 | max_uA | 650000 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/charger-manager.c charger_extcon_work() -> regulator_set_current_limit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | min_uA | 1-s32max |
| PARAM_VALUE | 2 | max_uA | 1-s32max |
| HALF_LOCKED2 | &pool->lock |
drivers/leds/leds-wm8350.c wm8350_led_set() -> regulator_set_current_limit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | min_uA | 4-8,10-11,14,16,19,23,27,32,39,46,54,65,77,92,109,130,154,183,218,259,308,367,436,518,616,733,872,1037,1233,1466,1744,2073,2466,2933,3487,4147,4932,5865,6975,8294,9864,11730,13949,16589,19728,23460,27899,33178-s32max |
| PARAM_VALUE | 2 | max_uA | 4-8,10-11,14,16,19,23,27,32,39,46,54,65,77,92,109,130,154,183,218,259,308,367,436,518,616,733,872,1037,1233,1466,1744,2073,2466,2933,3487,4147,4932,5865,6975,8294,9864,11730,13949,16589,19728,23460,27899,33178-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING |