Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 30 files:

Smatch caller information:

drivers/leds/leds-regulator.c regulator_led_probe() -> regulator_is_enabled()

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
RX_PATH
TASK_NOT_RUNNING

drivers/usb/mtu3/mtu3_debugfs.c ssusb_vbus_show() -> regulator_is_enabled()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &sf->lock
TYPE_LOCK (struct seq_file)->lock

drivers/video/fbdev/imxfb.c imxfb_lcd_get_power() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 0-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &lcddev->ops_lock
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct lcd_device)->ops_lock

drivers/net/pse-pd/pse_regulator.c pse_reg_pi_get_pw_status() -> regulator_is_enabled()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &pcdev->lock
TYPE_LOCK (struct pse_controller_dev)->lock

drivers/net/pse-pd/pse_regulator.c pse_reg_probe() -> regulator_is_enabled()

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 r devm_regulator_get_exclusive
RX_PATH
TASK_NOT_RUNNING

drivers/hwmon/chipcap2.c cc2_disable() -> regulator_is_enabled()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/hwmon/chipcap2.c cc2_enable() -> regulator_is_enabled()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pool->lock

drivers/mmc/host/omap_hsmmc.c omap_hsmmc_disable_boot_regulator() -> regulator_is_enabled()

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/input/touchscreen/stmfts.c stmfts_brightness_get() -> regulator_is_enabled()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &led_cdev->led_access
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/video/backlight/pwm_bl.c pwm_backlight_initial_power_state() -> regulator_is_enabled()

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
RX_PATH
TASK_NOT_RUNNING

drivers/usb/typec/hd3ss3220.c hd3ss3220_regulator_control() -> regulator_is_enabled()

Type Parameter Key Value
BUF_SIZE 0 regulator (-1)-0,160
BUF_SIZE 0 regulator (-1)-0,160
RX_PATH
TASK_NOT_RUNNING

drivers/usb/typec/tcpm/tcpci_mt6370.c mt6370_tcpc_set_vbus() -> regulator_is_enabled()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/clk/clk-gpio.c clk_gated_fixed_is_prepared() -> regulator_is_enabled()

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

drivers/usb/common/usb-conn-gpio.c usb_conn_detect_cable() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 1-u64max
HALF_LOCKED2 &pool->lock

drivers/net/pse-pd/pse_core.c pse_ethtool_c33_set_config() -> regulator_is_enabled()

Type Parameter Key Value
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/reset/regulator-poweroff.c regulator_poweroff_do_poweroff() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 1-u64max
UNITS 0 regulator unit_byte

drivers/usb/host/ohci-da8xx.c ohci_da8xx_get_power() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 1-u64max

drivers/gpu/drm/mcde/mcde_clk_div.c mcde_clk_div_recalc_rate() -> regulator_is_enabled()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 clk

drivers/mfd/stmpe.c stmpe_remove() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 0-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
TYPE_LOCK (struct device)->mutex

drivers/mfd/stmpe.c stmpe_remove() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 0-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
TYPE_LOCK (struct device)->mutex

drivers/usb/typec/tcpm/tcpci_maxim_core.c max_tcpci_set_vbus() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 1-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/usb/typec/tcpm/tcpci_maxim_core.c max_tcpci_set_vbus() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 1-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/iio/proximity/d3323aa.c d3323aa_disable_regulator() -> regulator_is_enabled()

Type Parameter Key Value

drivers/iio/proximity/d3323aa.c d3323aa_reset() -> regulator_is_enabled()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/usb/dwc3/dwc3-omap.c dwc3_omap_set_mailbox() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 1-u64max
BUF_SIZE 0 regulator s32min,(-1)-s32max
BUF_SIZE 0 regulator s32min,(-1)-s32max
RX_PATH
TASK_NOT_RUNNING

drivers/regulator/userspace-consumer.c regulator_userspace_consumer_probe() -> regulator_is_enabled()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/power/supply/charger-manager.c charger_state_show() -> regulator_is_enabled()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/power/supply/charger-manager.c try_charger_enable() -> regulator_is_enabled()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &_dev->mutex
HALF_LOCKED2 &of->mutex

drivers/devfreq/mtk-cci-devfreq.c mtk_ccifreq_probe() -> regulator_is_enabled()

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->ena_gpio_state 1
PARAM_VALUE 0 regulator->rdev->ena_pin->enable_count 0-4294967295
PARAM_VALUE 0 regulator->rdev->notifier.head->priority 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
BUF_SIZE 0 regulator s32min,(-1)-s32max
BUF_SIZE 0 regulator s32min,(-1)-s32max
CAPPED_DATA 0 regulator->rdev 1
CAPPED_DATA 0 regulator->rdev->coupling_desc.n_coupled 1
DATA_SOURCE 0 regulator r devm_regulator_get_optional
RX_PATH
TASK_NOT_RUNNING

drivers/devfreq/mtk-cci-devfreq.c mtk_ccifreq_probe() -> regulator_is_enabled()

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->ena_gpio_state 1
PARAM_VALUE 0 regulator->rdev->ena_pin->enable_count 0-4294967295
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->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_dirty 0-1
PARAM_VALUE 0 regulator->rdev->supply->enable_count 0-4294967295
BUF_SIZE 0 regulator s32min,(-1)-s32max
BUF_SIZE 0 regulator s32min,(-1)-s32max
CAPPED_DATA 0 regulator->rdev 1
DATA_SOURCE 0 regulator r devm_regulator_get_optional
RX_PATH
TASK_NOT_RUNNING

drivers/leds/leds-wm8350.c wm8350_led_probe() -> regulator_is_enabled()

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 r devm_regulator_get
RX_PATH
TASK_NOT_RUNNING

drivers/staging/greybus/arche-apb-ctrl.c poweroff_seq() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 0,4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &_dev->mutex
HALF_LOCKED2 &of->mutex

drivers/staging/greybus/arche-apb-ctrl.c poweroff_seq() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 0,4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &_dev->mutex
HALF_LOCKED2 &of->mutex

drivers/video/fbdev/clps711x-fb.c clps711x_lcd_get_power() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 1-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &lcddev->ops_lock
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct lcd_device)->ops_lock

drivers/video/fbdev/clps711x-fb.c clps711x_lcd_set_power() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 1-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &lcddev->ops_lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &console_sem

drivers/video/fbdev/clps711x-fb.c clps711x_lcd_set_power() -> regulator_is_enabled()

Type Parameter Key Value
PARAM_VALUE 0 regulator 1-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &lcddev->ops_lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &console_sem