Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 26 files:
- drivers/power/supply/mt6370-charger.c, line 648
- drivers/power/supply/rt9467-charger.c, line 309
- drivers/power/supply/rt9471.c, line 608
- drivers/power/supply/sgm41542_charger.c, line 908
- drivers/regulator/as3722-regulator.c
- drivers/regulator/bd71815-regulator.c, line 269
- drivers/regulator/da9055-regulator.c, line 295
- drivers/regulator/da9062-regulator.c, line 330
- drivers/regulator/da9063-regulator.c
- drivers/regulator/da9210-regulator.c, line 36
- drivers/regulator/helpers.c, line 858
- drivers/regulator/lp872x.c, line 453
- drivers/regulator/lp873x-regulator.c, line 119
- drivers/regulator/lp87565-regulator.c, line 129
- drivers/regulator/max77503-regulator.c, line 43
- drivers/regulator/max77650-regulator.c
- drivers/regulator/mp5416.c, line 162
- drivers/regulator/mpq7920.c, line 155
- drivers/regulator/pf8x00-regulator.c
- drivers/regulator/pv88060-regulator.c, line 126
- drivers/regulator/pv88080-regulator.c, line 254
- drivers/regulator/pv88090-regulator.c, line 148
- drivers/regulator/qcom_usb_vbus-regulator.c, line 57
- drivers/regulator/wm831x-dcdc.c, line 312
- drivers/regulator/wm831x-isink.c, line 90
- drivers/regulator/wm8350-regulator.c, line 913
Smatch caller information:
drivers/regulator/bd71815-regulator.c bd7181x_led_set_current_limit() -> regulator_set_current_limit_regmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->constraints | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->ops->set_current_limit | 1-u64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->force_bounce | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->nslabs | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->phys_limit | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->acquire_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->is_wait_die | 0-1 |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->mutex_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rdev->regmap | 4096-ptr_max |
| BUF_SIZE | 0 | rdev->constraints | (-1),224 |
| BUF_SIZE | 0 | rdev->dev.class | (-1),96 |
| BUF_SIZE | 0 | rdev->dev.of_node | (-1)-0,392 |
| BUF_SIZE | 0 | rdev->reg_data | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rdev->supply_name | s32min,(-10),(-1),1-s32max |
| CAPPED_DATA | 0 | rdev->desc->enable_val | 1 |
| DATA_SOURCE | 0 | rdev | $0 |
| DATA_SOURCE | 1 | min_uA | $1 |
| DATA_SOURCE | 2 | max_uA | $2 |
| STR_LEN | 0 | rdev | (-1),2-11,21 |
| STR_LEN | 0 | rdev | (-1),2-11,21 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | min_uA | s32min-s32max[c] |
| USER_DATA | 2 | max_uA | s32min-(-1),1-s32max[c] |
| NO_OVERFLOW_SIMPLE | 1 | min_uA | |
| NO_OVERFLOW_SIMPLE | 2 | max_uA |
drivers/regulator/da9063-regulator.c da9063_buck_set_current_limit() -> regulator_set_current_limit_regmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->constraints | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->id | s32min-(-1),3-5,7-s32max |
| PARAM_VALUE | 0 | rdev->desc->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->ops->set_current_limit | 1-u64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->force_bounce | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->nslabs | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->phys_limit | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->acquire_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->is_wait_die | 0-1 |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->mutex_name | 0,4096-ptr_max |
| BUF_SIZE | 0 | rdev->constraints | (-1),224 |
| BUF_SIZE | 0 | rdev->dev.class | (-1),96 |
| BUF_SIZE | 0 | rdev->dev.of_node | (-1)-0,392 |
| BUF_SIZE | 0 | rdev->reg_data | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rdev->supply_name | s32min,(-10),(-1),1-s32max |
| DATA_SOURCE | 0 | rdev | $0 |
| DATA_SOURCE | 1 | min_uA | $1 |
| DATA_SOURCE | 2 | max_uA | $2 |
| STR_LEN | 0 | rdev | (-1),2-11,21 |
| STR_LEN | 0 | rdev | (-1),2-11,21 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | min_uA | s32min-s32max[c] |
| USER_DATA | 2 | max_uA | s32min-(-1),1-s32max[c] |
| NO_OVERFLOW_SIMPLE | 1 | min_uA | |
| NO_OVERFLOW_SIMPLE | 2 | max_uA |
drivers/regulator/da9063-regulator.c da9063_buck_set_limit_clear_overdrive() -> regulator_set_current_limit_regmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->constraints | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->curr_table | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->id | 0-2,6 |
| PARAM_VALUE | 0 | rdev->desc->n_current_limits | 1-u32max |
| PARAM_VALUE | 0 | rdev->desc->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->ops->set_current_limit | 1-u64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->force_bounce | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->nslabs | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->phys_limit | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->acquire_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->is_wait_die | 0-1 |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->mutex_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rdev->regmap | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->regmap->lock | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->regmap->unlock | 4096-ptr_max |
| PARAM_VALUE | 0 | *rdev->regmap->cache->data | 0-4294967295 |
| BUF_SIZE | 0 | rdev->constraints | (-1),224 |
| BUF_SIZE | 0 | rdev->dev.class | (-1),96 |
| BUF_SIZE | 0 | rdev->dev.of_node | (-1)-0,392 |
| BUF_SIZE | 0 | rdev->reg_data | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rdev->supply_name | s32min,(-10),(-1),1-s32max |
| CAPPED_DATA | 2 | max_uA | 1 |
| DATA_SOURCE | 0 | rdev | $0 |
| DATA_SOURCE | 1 | min_uA | $1 |
| DATA_SOURCE | 2 | max_uA | $2 |
| STR_LEN | 0 | rdev | (-1),2-11,21,31 |
| STR_LEN | 0 | rdev | (-1),2-11,21,31 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | min_uA | s32min-s32max[c] |
| USER_DATA | 2 | max_uA | 1-s32max[c] |
| NO_OVERFLOW_SIMPLE | 1 | min_uA | |
| NO_OVERFLOW_SIMPLE | 2 | max_uA |
drivers/regulator/da9063-regulator.c da9063_buck_set_limit_set_overdrive() -> regulator_set_current_limit_regmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->constraints | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->curr_table | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->id | 0-2,6 |
| PARAM_VALUE | 0 | rdev->desc->n_current_limits | 1-u32max |
| PARAM_VALUE | 0 | rdev->desc->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->ops->set_current_limit | 1-u64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->force_bounce | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->nslabs | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->phys_limit | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->acquire_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->is_wait_die | 0-1 |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->mutex_name | 0,4096-ptr_max |
| PARAM_VALUE | 2 | max_uA | (-1073741824)-1073741823 |
| BUF_SIZE | 0 | rdev->constraints | (-1),224 |
| BUF_SIZE | 0 | rdev->dev.class | (-1),96 |
| BUF_SIZE | 0 | rdev->dev.of_node | (-1)-0,392 |
| BUF_SIZE | 0 | rdev->reg_data | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rdev->supply_name | s32min,(-10),(-1),1-s32max |
| DATA_SOURCE | 0 | rdev | $0 |
| STR_LEN | 0 | rdev | (-1),2-11,21,31 |
| STR_LEN | 0 | rdev | (-1),2-11,21,31 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | max_uA | (-1073741824)-1073741823[c] |
drivers/regulator/core.c machine_constraints_current() -> (struct regulator_ops)->set_current_limit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->constraints | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->constraints->max_uV | 1-s32max |
| PARAM_VALUE | 0 | rdev->constraints->min_uV | 1-s32max |
| PARAM_VALUE | 0 | rdev->desc | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->ops->get_current_limit | 1-u64max |
| PARAM_VALUE | 0 | rdev->desc->ops->set_current_limit | 1-u64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->force_bounce | 0-1 |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->nslabs | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.dma_io_tlb_mem->phys_limit | 0-s64max |
| PARAM_VALUE | 0 | rdev->dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->acquire_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->is_wait_die | 0-1 |
| PARAM_VALUE | 0 | rdev->mutex.ww_class->mutex_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_op->d_automount | 0,2908707185815040000,3401111987815645184,6746145930460459008,7190988915944083456,7386785427940065280,8018779550845526016 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_op->d_init | 0,2385819921126617088,7057831443282669568,7824184004865302528 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_op->d_iput | 0,170374395438985216,837750826476904448,5086081384299388928,8216155483032948736 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_op->d_manage | 0,1859587847549206528 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_op->d_prune | 0,2225594340392566784,7225953709177749504 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_op->d_real | 0,4509355519306412032 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_op->d_unalias_trylock | 0,6635409759016140800 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_op->d_unalias_unlock | 0,6336447517789900800 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_op->d_weak_revalidate | 0,1549882712720502784,5632434648052031488,5669063523602272256,7231033168839651328 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_parent->d_sb->__s_d_op->d_init | 0,2385819921126617088,7057831443282669568,7824184004865302528 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_parent->d_sb->__s_d_op->d_iput | 0,170374395438985216,837750826476904448,5086081384299388928,8216155483032948736 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_parent->d_sb->__s_d_op->d_manage | 0,1859587847549206528 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_parent->d_sb->__s_d_op->d_prune | 0,2225594340392566784,7225953709177749504 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_parent->d_sb->__s_d_op->d_real | 0,4509355519306412032 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_sb->__s_d_op->d_automount | 0,2908707185815040000,3401111987815645184,6746145930460459008,7190988915944083456,7386785427940065280,8018779550845526016 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_sb->__s_d_op->d_init | 0,2385819921126617088,7057831443282669568,7824184004865302528 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_sb->__s_d_op->d_iput | 0,170374395438985216,837750826476904448,5086081384299388928,8216155483032948736 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_sb->__s_d_op->d_manage | 0,1859587847549206528 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_sb->__s_d_op->d_prune | 0,2225594340392566784,7225953709177749504 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_sb->__s_d_op->d_real | 0,4509355519306412032 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_sb->__s_d_op->d_unalias_trylock | 0,6635409759016140800 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_sb->__s_d_op->d_unalias_unlock | 0,6336447517789900800 |
| PARAM_VALUE | 0 | rdev->supply->debugfs->d_sb->__s_d_op->d_weak_revalidate | 0,1549882712720502784,5632434648052031488,5669063523602272256,7231033168839651328 |
| BUF_SIZE | 0 | rdev | (-1),4040 |
| BUF_SIZE | 0 | rdev | (-1),4040 |
| BUF_SIZE | 0 | rdev->constraints | (-1),224 |
| BUF_SIZE | 0 | rdev->dev.class | (-1),96 |
| BUF_SIZE | 0 | rdev->dev.of_node | (-1)-0,392 |
| BUF_SIZE | 0 | rdev->reg_data | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rdev->supply_name | s32min,(-10),(-1),1-s32max |
| CAPPED_DATA | 0 | rdev | 1 |
| CAPPED_DATA | 1 | min_uA | 1 |
| DATA_SOURCE | 0 | rdev | $0 |
| STR_LEN | 0 | rdev | (-1),2-11,21,31 |
| STR_LEN | 0 | rdev | (-1),2-11,21,31 |
| PARAM_COMPARE | 1 | min_uA | <= $2 |
| PARAM_COMPARE | 2 | max_uA | >= $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/regulator/core.c regulator_set_current_limit() -> (struct regulator_ops)->set_current_limit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->constraints | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->constraints->valid_ops_mask | 2-u32max |
| PARAM_VALUE | 0 | rdev->desc | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->desc->ops->set_current_limit | 1-u64max |
| CAPPED_DATA | 0 | rdev->constraints->min_uA | 1 |
| DATA_SOURCE | 1 | min_uA | $1 [m] |
| DATA_SOURCE | 2 | max_uA | $2 [m] |
| CONTAINER | 0 | -48-72-0+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | min_uA | s32min-s32max[c] |
| USER_DATA | 2 | max_uA | s32min-(-1),1-s32max[c] |
| HALF_LOCKED2 | &data->lock | ||
| HALF_LOCKED2 | &of->mutex |