Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 7 files:

Smatch caller information:

drivers/leds/leds-regulator.c led_regulator_get_max_brightness() -> regulator_count_voltages()

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->mutex_owner 0
PARAM_VALUE 0 regulator->rdev->ref_cnt s32min-s32max
BUF_SIZE 0 regulator s32min,(-1)-s32max
BUF_SIZE 0 regulator s32min,(-1)-s32max
CAPPED_DATA 0 regulator->rdev 1
DATA_SOURCE 0 regulator $0
RX_PATH
TASK_NOT_RUNNING

drivers/mmc/core/regulator.c mmc_regulator_get_ocrmask() -> regulator_count_voltages()

Type Parameter Key Value
PARAM_VALUE 0 regulator 4096-ptr_max
BUF_SIZE 0 regulator s32min,(-1)-s32max
BUF_SIZE 0 regulator s32min,(-1)-s32max
DATA_SOURCE 0 regulator $0
RX_PATH
TASK_NOT_RUNNING

drivers/ufs/core/ufshcd.c ufshcd_config_vreg() -> regulator_count_voltages()

Type Parameter Key Value
PARAM_VALUE 0 regulator 0,4096-u64max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

drivers/regulator/core.c regulator_count_voltages() -> regulator_count_voltages()

Type Parameter Key Value
PARAM_VALUE 0 regulator 1-u64max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &policy->rwsem

drivers/regulator/core.c regulator_is_supported_voltage() -> regulator_count_voltages()

Type Parameter Key Value
PARAM_VALUE 0 regulator 4096-ptr_max
PARAM_VALUE 0 regulator->rdev 4096-ptr_max
PARAM_VALUE 0 regulator->rdev->constraints 4096-ptr_max
PARAM_VALUE 0 regulator->rdev->constraints->valid_ops_mask 1-u32max
PARAM_VALUE 0 regulator->rdev->desc 4096-ptr_max
BUF_SIZE 0 regulator s32min,(-1)-s32max
BUF_SIZE 0 regulator s32min,(-1)-s32max
DATA_SOURCE 0 regulator $0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 regulator->rdev->mutex.ctx->deadlock_inject_countdown
NO_OVERFLOW_SIMPLE 0 regulator->rdev->mutex.ctx->deadlock_inject_interval
HALF_LOCKED2 _T->lock

drivers/regulator/vctrl-regulator.c vctrl_init_vtable() -> regulator_count_voltages()

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->n_voltages 0-4294967273,4294967275-u32max
BUF_SIZE 0 regulator s32min,(-1)-s32max
BUF_SIZE 0 regulator s32min,(-1)-s32max
DATA_SOURCE 0 regulator $1
RX_PATH
TASK_NOT_RUNNING

drivers/regulator/vctrl-regulator.c vctrl_probe() -> regulator_count_voltages()

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
BUF_SIZE 0 regulator s32min,(-1)-s32max
BUF_SIZE 0 regulator s32min,(-1)-s32max
DATA_SOURCE 0 regulator r devm_regulator_get
RX_PATH
TASK_NOT_RUNNING

drivers/cpufreq/s3c64xx-cpufreq.c s3c64xx_cpufreq_config_regulator() -> regulator_count_voltages()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &policy->rwsem
HALF_LOCKED2 &sp->mutex
TYPE_LOCK (struct cpufreq_policy)->rwsem