/drivers/regulator/ |
D | internal.h | 57 struct regulator_dev *rdev; 63 static inline struct regulator_dev *dev_to_rdev(struct device *dev) in dev_to_rdev() 65 return container_of(dev, struct regulator_dev, dev); in dev_to_rdev() 69 struct regulator_dev *of_find_regulator_by_node(struct device_node *np); 75 struct regulator_dev *of_parse_coupled_regulator(struct regulator_dev *rdev, 78 int of_get_n_coupled(struct regulator_dev *rdev); 80 bool of_check_coupling_data(struct regulator_dev *rdev); 83 static inline struct regulator_dev * 98 static inline struct regulator_dev * 99 of_parse_coupled_regulator(struct regulator_dev *rdev, in of_parse_coupled_regulator() [all …]
|
D | core.c | 56 struct regulator_dev *regulator; 84 static int _regulator_is_enabled(struct regulator_dev *rdev); 86 static int _regulator_get_error_flags(struct regulator_dev *rdev, unsigned int *flags); 87 static int _regulator_get_current_limit(struct regulator_dev *rdev); 88 static unsigned int _regulator_get_mode(struct regulator_dev *rdev); 89 static int _notifier_call_chain(struct regulator_dev *rdev, 91 static int _regulator_do_set_voltage(struct regulator_dev *rdev, 93 static int regulator_balance_voltage(struct regulator_dev *rdev, 95 static struct regulator *create_regulator(struct regulator_dev *rdev, 101 const char *rdev_get_name(struct regulator_dev *rdev) in rdev_get_name() [all …]
|
D | helpers.c | 27 int regulator_is_enabled_regmap(struct regulator_dev *rdev) in regulator_is_enabled_regmap() 59 int regulator_enable_regmap(struct regulator_dev *rdev) in regulator_enable_regmap() 85 int regulator_disable_regmap(struct regulator_dev *rdev) in regulator_disable_regmap() 102 static int regulator_range_selector_to_index(struct regulator_dev *rdev, in regulator_range_selector_to_index() 129 int regulator_get_voltage_sel_pickable_regmap(struct regulator_dev *rdev) in regulator_get_voltage_sel_pickable_regmap() 173 int regulator_set_voltage_sel_pickable_regmap(struct regulator_dev *rdev, in regulator_set_voltage_sel_pickable_regmap() 235 int regulator_get_voltage_sel_regmap(struct regulator_dev *rdev) in regulator_get_voltage_sel_regmap() 261 int regulator_set_voltage_sel_regmap(struct regulator_dev *rdev, unsigned sel) in regulator_set_voltage_sel_regmap() 292 int regulator_map_voltage_iterate(struct regulator_dev *rdev, in regulator_map_voltage_iterate() 330 int regulator_map_voltage_ascend(struct regulator_dev *rdev, in regulator_map_voltage_ascend() [all …]
|
D | max8925-regulator.c | 42 static int max8925_set_voltage_sel(struct regulator_dev *rdev, in max8925_set_voltage_sel() 51 static int max8925_get_voltage_sel(struct regulator_dev *rdev) in max8925_get_voltage_sel() 66 static int max8925_enable(struct regulator_dev *rdev) in max8925_enable() 77 static int max8925_disable(struct regulator_dev *rdev) in max8925_disable() 87 static int max8925_is_enabled(struct regulator_dev *rdev) in max8925_is_enabled() 102 static int max8925_set_dvm_voltage(struct regulator_dev *rdev, int uV) in max8925_set_dvm_voltage() 117 static int max8925_set_dvm_enable(struct regulator_dev *rdev) in max8925_set_dvm_enable() 125 static int max8925_set_dvm_disable(struct regulator_dev *rdev) in max8925_set_dvm_disable() 225 struct regulator_dev *rdev; in max8925_regulator_probe()
|
D | max8660.c | 98 static int max8660_dcdc_is_enabled(struct regulator_dev *rdev) in max8660_dcdc_is_enabled() 107 static int max8660_dcdc_enable(struct regulator_dev *rdev) in max8660_dcdc_enable() 115 static int max8660_dcdc_disable(struct regulator_dev *rdev) in max8660_dcdc_disable() 123 static int max8660_dcdc_get_voltage_sel(struct regulator_dev *rdev) in max8660_dcdc_get_voltage_sel() 132 static int max8660_dcdc_set_voltage_sel(struct regulator_dev *rdev, in max8660_dcdc_set_voltage_sel() 162 static int max8660_ldo5_get_voltage_sel(struct regulator_dev *rdev) in max8660_ldo5_get_voltage_sel() 170 static int max8660_ldo5_set_voltage_sel(struct regulator_dev *rdev, in max8660_ldo5_set_voltage_sel() 196 static int max8660_ldo67_is_enabled(struct regulator_dev *rdev) in max8660_ldo67_is_enabled() 205 static int max8660_ldo67_enable(struct regulator_dev *rdev) in max8660_ldo67_enable() 213 static int max8660_ldo67_disable(struct regulator_dev *rdev) in max8660_ldo67_disable() [all …]
|
D | mcp16502.c | 178 static int mcp16502_get_state_reg(struct regulator_dev *rdev, int opmode) in mcp16502_get_state_reg() 201 static unsigned int mcp16502_get_mode(struct regulator_dev *rdev) in mcp16502_get_mode() 231 static int _mcp16502_set_mode(struct regulator_dev *rdev, unsigned int mode, in _mcp16502_set_mode() 259 static int mcp16502_set_mode(struct regulator_dev *rdev, unsigned int mode) in mcp16502_set_mode() 267 static int mcp16502_get_status(struct regulator_dev *rdev) in mcp16502_get_status() 287 static int mcp16502_set_voltage_time_sel(struct regulator_dev *rdev, in mcp16502_set_voltage_time_sel() 330 static int mcp16502_suspend_get_target_reg(struct regulator_dev *rdev) in mcp16502_suspend_get_target_reg() 349 static int mcp16502_set_suspend_voltage(struct regulator_dev *rdev, int uV) in mcp16502_set_suspend_voltage() 366 static int mcp16502_set_suspend_mode(struct regulator_dev *rdev, in mcp16502_set_suspend_mode() 386 static int mcp16502_set_suspend_enable(struct regulator_dev *rdev) in mcp16502_set_suspend_enable() [all …]
|
D | twl6030-regulator.c | 107 static int twlreg_grp(struct regulator_dev *rdev) in twlreg_grp() 122 static int twl6030reg_is_enabled(struct regulator_dev *rdev) in twl6030reg_is_enabled() 147 static int twl6030reg_enable(struct regulator_dev *rdev) in twl6030reg_enable() 164 static int twl6030reg_disable(struct regulator_dev *rdev) in twl6030reg_disable() 181 static int twl6030reg_get_status(struct regulator_dev *rdev) in twl6030reg_get_status() 213 static int twl6030reg_set_mode(struct regulator_dev *rdev, unsigned mode) in twl6030reg_set_mode() 243 static int twl6030coresmps_set_voltage(struct regulator_dev *rdev, int min_uV, in twl6030coresmps_set_voltage() 249 static int twl6030coresmps_get_voltage(struct regulator_dev *rdev) in twl6030coresmps_get_voltage() 260 twl6030ldo_set_voltage_sel(struct regulator_dev *rdev, unsigned selector) in twl6030ldo_set_voltage_sel() 271 static int twl6030ldo_get_voltage_sel(struct regulator_dev *rdev) in twl6030ldo_get_voltage_sel() [all …]
|
D | stm32-vrefbuf.c | 41 static int stm32_vrefbuf_enable(struct regulator_dev *rdev) in stm32_vrefbuf_enable() 76 static int stm32_vrefbuf_disable(struct regulator_dev *rdev) in stm32_vrefbuf_disable() 96 static int stm32_vrefbuf_is_enabled(struct regulator_dev *rdev) in stm32_vrefbuf_is_enabled() 113 static int stm32_vrefbuf_set_voltage_sel(struct regulator_dev *rdev, in stm32_vrefbuf_set_voltage_sel() 134 static int stm32_vrefbuf_get_voltage_sel(struct regulator_dev *rdev) in stm32_vrefbuf_get_voltage_sel() 177 struct regulator_dev *rdev; in stm32_vrefbuf_probe() 238 struct regulator_dev *rdev = platform_get_drvdata(pdev); in stm32_vrefbuf_remove() 253 struct regulator_dev *rdev = dev_get_drvdata(dev); in stm32_vrefbuf_runtime_suspend() 263 struct regulator_dev *rdev = dev_get_drvdata(dev); in stm32_vrefbuf_runtime_resume()
|
D | lp3971.c | 106 static int lp3971_ldo_is_enabled(struct regulator_dev *dev) in lp3971_ldo_is_enabled() 117 static int lp3971_ldo_enable(struct regulator_dev *dev) in lp3971_ldo_enable() 126 static int lp3971_ldo_disable(struct regulator_dev *dev) in lp3971_ldo_disable() 135 static int lp3971_ldo_get_voltage_sel(struct regulator_dev *dev) in lp3971_ldo_get_voltage_sel() 147 static int lp3971_ldo_set_voltage_sel(struct regulator_dev *dev, in lp3971_ldo_set_voltage_sel() 168 static int lp3971_dcdc_is_enabled(struct regulator_dev *dev) in lp3971_dcdc_is_enabled() 179 static int lp3971_dcdc_enable(struct regulator_dev *dev) in lp3971_dcdc_enable() 188 static int lp3971_dcdc_disable(struct regulator_dev *dev) in lp3971_dcdc_disable() 197 static int lp3971_dcdc_get_voltage_sel(struct regulator_dev *dev) in lp3971_dcdc_get_voltage_sel() 209 static int lp3971_dcdc_set_voltage_sel(struct regulator_dev *dev, in lp3971_dcdc_set_voltage_sel() [all …]
|
D | anatop-regulator.c | 34 static int anatop_regmap_set_voltage_time_sel(struct regulator_dev *reg, in anatop_regmap_set_voltage_time_sel() 60 static int anatop_regmap_enable(struct regulator_dev *reg) in anatop_regmap_enable() 69 static int anatop_regmap_disable(struct regulator_dev *reg) in anatop_regmap_disable() 74 static int anatop_regmap_is_enabled(struct regulator_dev *reg) in anatop_regmap_is_enabled() 79 static int anatop_regmap_core_set_voltage_sel(struct regulator_dev *reg, in anatop_regmap_core_set_voltage_sel() 96 static int anatop_regmap_core_get_voltage_sel(struct regulator_dev *reg) in anatop_regmap_core_get_voltage_sel() 106 static int anatop_regmap_get_bypass(struct regulator_dev *reg, bool *enable) in anatop_regmap_get_bypass() 121 static int anatop_regmap_set_bypass(struct regulator_dev *reg, bool enable) in anatop_regmap_set_bypass() 161 struct regulator_dev *rdev; in anatop_regulator_probe()
|
D | pwm-regulator.c | 54 static void pwm_regulator_init_state(struct regulator_dev *rdev) in pwm_regulator_init_state() 72 static int pwm_regulator_get_voltage_sel(struct regulator_dev *rdev) in pwm_regulator_get_voltage_sel() 82 static int pwm_regulator_set_voltage_sel(struct regulator_dev *rdev, in pwm_regulator_set_voltage_sel() 104 static int pwm_regulator_list_voltage(struct regulator_dev *rdev, in pwm_regulator_list_voltage() 115 static int pwm_regulator_enable(struct regulator_dev *dev) in pwm_regulator_enable() 124 static int pwm_regulator_disable(struct regulator_dev *dev) in pwm_regulator_disable() 135 static int pwm_regulator_is_enabled(struct regulator_dev *dev) in pwm_regulator_is_enabled() 145 static int pwm_regulator_get_voltage(struct regulator_dev *rdev) in pwm_regulator_get_voltage() 183 static int pwm_regulator_set_voltage(struct regulator_dev *rdev, in pwm_regulator_set_voltage() 323 struct regulator_dev *regulator; in pwm_regulator_probe()
|
D | twl-regulator.c | 98 static int twlreg_grp(struct regulator_dev *rdev) in twlreg_grp() 117 static int twl4030reg_is_enabled(struct regulator_dev *rdev) in twl4030reg_is_enabled() 195 static int twl4030reg_enable(struct regulator_dev *rdev) in twl4030reg_enable() 209 static int twl4030reg_disable(struct regulator_dev *rdev) in twl4030reg_disable() 223 static int twl4030reg_get_status(struct regulator_dev *rdev) in twl4030reg_get_status() 239 static int twl4030reg_set_mode(struct regulator_dev *rdev, unsigned mode) in twl4030reg_set_mode() 367 static int twl4030ldo_list_voltage(struct regulator_dev *rdev, unsigned index) in twl4030ldo_list_voltage() 376 twl4030ldo_set_voltage_sel(struct regulator_dev *rdev, unsigned selector) in twl4030ldo_set_voltage_sel() 384 static int twl4030ldo_get_voltage_sel(struct regulator_dev *rdev) in twl4030ldo_get_voltage_sel() 412 twl4030smps_set_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, in twl4030smps_set_voltage() [all …]
|
D | cros-ec-regulator.c | 16 struct regulator_dev *dev; 25 static int cros_ec_regulator_enable(struct regulator_dev *dev) in cros_ec_regulator_enable() 37 static int cros_ec_regulator_disable(struct regulator_dev *dev) in cros_ec_regulator_disable() 49 static int cros_ec_regulator_is_enabled(struct regulator_dev *dev) in cros_ec_regulator_is_enabled() 65 static int cros_ec_regulator_list_voltage(struct regulator_dev *dev, in cros_ec_regulator_list_voltage() 76 static int cros_ec_regulator_get_voltage(struct regulator_dev *dev) in cros_ec_regulator_get_voltage() 92 static int cros_ec_regulator_set_voltage(struct regulator_dev *dev, int min_uV, in cros_ec_regulator_set_voltage()
|
D | rt6160-regulator.c | 52 static int rt6160_enable(struct regulator_dev *rdev) in rt6160_enable() 68 static int rt6160_disable(struct regulator_dev *rdev) in rt6160_disable() 85 static int rt6160_is_enabled(struct regulator_dev *rdev) in rt6160_is_enabled() 92 static int rt6160_set_mode(struct regulator_dev *rdev, unsigned int mode) in rt6160_set_mode() 112 static unsigned int rt6160_get_mode(struct regulator_dev *rdev) in rt6160_get_mode() 128 static int rt6160_set_suspend_voltage(struct regulator_dev *rdev, int uV) in rt6160_set_suspend_voltage() 147 static int rt6160_get_error_flags(struct regulator_dev *rdev, unsigned int *flags) in rt6160_get_error_flags() 231 struct regulator_dev *rdev; in rt6160_probe()
|
D | lp3972.c | 221 static int lp3972_ldo_is_enabled(struct regulator_dev *dev) in lp3972_ldo_is_enabled() 232 static int lp3972_ldo_enable(struct regulator_dev *dev) in lp3972_ldo_enable() 242 static int lp3972_ldo_disable(struct regulator_dev *dev) in lp3972_ldo_disable() 252 static int lp3972_ldo_get_voltage_sel(struct regulator_dev *dev) in lp3972_ldo_get_voltage_sel() 265 static int lp3972_ldo_set_voltage_sel(struct regulator_dev *dev, in lp3972_ldo_set_voltage_sel() 314 static int lp3972_dcdc_is_enabled(struct regulator_dev *dev) in lp3972_dcdc_is_enabled() 325 static int lp3972_dcdc_enable(struct regulator_dev *dev) in lp3972_dcdc_enable() 337 static int lp3972_dcdc_disable(struct regulator_dev *dev) in lp3972_dcdc_disable() 349 static int lp3972_dcdc_get_voltage_sel(struct regulator_dev *dev) in lp3972_dcdc_get_voltage_sel() 361 static int lp3972_dcdc_set_voltage_sel(struct regulator_dev *dev, in lp3972_dcdc_set_voltage_sel() [all …]
|
D | aat2870-regulator.c | 32 static int aat2870_ldo_set_voltage_sel(struct regulator_dev *rdev, in aat2870_ldo_set_voltage_sel() 42 static int aat2870_ldo_get_voltage_sel(struct regulator_dev *rdev) in aat2870_ldo_get_voltage_sel() 56 static int aat2870_ldo_enable(struct regulator_dev *rdev) in aat2870_ldo_enable() 65 static int aat2870_ldo_disable(struct regulator_dev *rdev) in aat2870_ldo_disable() 73 static int aat2870_ldo_is_enabled(struct regulator_dev *rdev) in aat2870_ldo_is_enabled() 154 struct regulator_dev *rdev; in aat2870_regulator_probe()
|
D | mt6360-regulator.c | 52 struct regulator_dev *rdev = data; in mt6360_pgb_event_handler() 60 struct regulator_dev *rdev = data; in mt6360_oc_event_handler() 68 struct regulator_dev *rdev = data; in mt6360_ov_event_handler() 76 struct regulator_dev *rdev = data; in mt6360_uv_event_handler() 220 static int mt6360_regulator_set_mode(struct regulator_dev *rdev, in mt6360_regulator_set_mode() 252 static unsigned int mt6360_regulator_get_mode(struct regulator_dev *rdev) in mt6360_regulator_get_mode() 279 static int mt6360_regulator_get_status(struct regulator_dev *rdev) in mt6360_regulator_get_status() 373 struct regulator_dev *rdev, in mt6360_regulator_irq_register() 421 struct regulator_dev *rdev; in mt6360_regulator_probe()
|
D | da9063-regulator.c | 143 struct regulator_dev *rdev; 206 static int da9063_buck_set_mode(struct regulator_dev *rdev, unsigned int mode) in da9063_buck_set_mode() 234 static unsigned int da9063_buck_get_mode(struct regulator_dev *rdev) in da9063_buck_get_mode() 272 static int da9063_ldo_set_mode(struct regulator_dev *rdev, unsigned int mode) in da9063_ldo_set_mode() 291 static unsigned int da9063_ldo_get_mode(struct regulator_dev *rdev) in da9063_ldo_get_mode() 306 static int da9063_buck_get_status(struct regulator_dev *rdev) in da9063_buck_get_status() 323 static int da9063_ldo_get_status(struct regulator_dev *rdev) in da9063_ldo_get_status() 340 static int da9063_set_suspend_voltage(struct regulator_dev *rdev, int uV) in da9063_set_suspend_voltage() 358 static int da9063_suspend_enable(struct regulator_dev *rdev) in da9063_suspend_enable() 365 static int da9063_suspend_disable(struct regulator_dev *rdev) in da9063_suspend_disable() [all …]
|
D | irq_helpers.c | 35 static void rdev_flag_err(struct regulator_dev *rdev, int err) in rdev_flag_err() 42 static void rdev_clear_err(struct regulator_dev *rdev, int err) in rdev_clear_err() 105 struct regulator_dev *rdev; in regulator_notifier_isr_work() 130 struct regulator_dev *rdev; in regulator_notifier_isr_work() 211 struct regulator_dev *rdev; in regulator_notifier_isr() 238 struct regulator_dev *rdev; in regulator_notifier_isr() 281 struct regulator_dev **rdev, int common_err, in init_rdev_state() 341 struct regulator_dev **rdev, int rdev_amount) in regulator_irq_helper()
|
D | wm8350-regulator.c | 94 static int wm8350_isink_enable(struct regulator_dev *rdev) in wm8350_isink_enable() 138 static int wm8350_isink_disable(struct regulator_dev *rdev) in wm8350_isink_disable() 178 static int wm8350_isink_is_enabled(struct regulator_dev *rdev) in wm8350_isink_is_enabled() 194 static int wm8350_isink_enable_time(struct regulator_dev *rdev) in wm8350_isink_enable_time() 263 static int wm8350_dcdc_set_suspend_voltage(struct regulator_dev *rdev, int uV) in wm8350_dcdc_set_suspend_voltage() 300 static int wm8350_dcdc_set_suspend_enable(struct regulator_dev *rdev) in wm8350_dcdc_set_suspend_enable() 340 static int wm8350_dcdc_set_suspend_disable(struct regulator_dev *rdev) in wm8350_dcdc_set_suspend_disable() 380 static int wm8350_dcdc25_set_suspend_enable(struct regulator_dev *rdev) in wm8350_dcdc25_set_suspend_enable() 405 static int wm8350_dcdc25_set_suspend_disable(struct regulator_dev *rdev) in wm8350_dcdc25_set_suspend_disable() 430 static int wm8350_dcdc_set_suspend_mode(struct regulator_dev *rdev, in wm8350_dcdc_set_suspend_mode() [all …]
|
D | ab8500-ext.c | 111 static int ab8500_ext_regulator_enable(struct regulator_dev *rdev) in ab8500_ext_regulator_enable() 148 static int ab8500_ext_regulator_disable(struct regulator_dev *rdev) in ab8500_ext_regulator_disable() 184 static int ab8500_ext_regulator_is_enabled(struct regulator_dev *rdev) in ab8500_ext_regulator_is_enabled() 215 static int ab8500_ext_regulator_set_mode(struct regulator_dev *rdev, in ab8500_ext_regulator_set_mode() 266 static unsigned int ab8500_ext_regulator_get_mode(struct regulator_dev *rdev) in ab8500_ext_regulator_get_mode() 286 static int ab8500_ext_set_voltage(struct regulator_dev *rdev, int min_uV, in ab8500_ext_set_voltage() 308 static int ab8500_ext_list_voltage(struct regulator_dev *rdev, in ab8500_ext_list_voltage() 397 struct regulator_dev *rdev; in ab8500_ext_regulator_probe()
|
D | tps65218-regulator.c | 66 static int tps65218_pmic_set_voltage_sel(struct regulator_dev *dev, in tps65218_pmic_set_voltage_sel() 91 static int tps65218_pmic_enable(struct regulator_dev *dev) in tps65218_pmic_enable() 105 static int tps65218_pmic_disable(struct regulator_dev *dev) in tps65218_pmic_disable() 118 static int tps65218_pmic_set_suspend_enable(struct regulator_dev *dev) in tps65218_pmic_set_suspend_enable() 131 static int tps65218_pmic_set_suspend_disable(struct regulator_dev *dev) in tps65218_pmic_set_suspend_disable() 188 static int tps65218_pmic_set_input_current_lim(struct regulator_dev *dev, in tps65218_pmic_set_input_current_lim() 206 static int tps65218_pmic_set_current_limit(struct regulator_dev *dev, in tps65218_pmic_set_current_limit() 307 struct regulator_dev *rdev; in tps65218_regulator_probe()
|
/drivers/soc/tegra/ |
D | regulators-tegra20.c | 26 struct regulator_dev *core_rdev; 27 struct regulator_dev *cpu_rdev; 28 struct regulator_dev *rtc_rdev; 45 struct regulator_dev *core_rdev) in tegra20_core_limit() 92 static int tegra20_core_rtc_max_spread(struct regulator_dev *core_rdev, in tegra20_core_rtc_max_spread() 93 struct regulator_dev *rtc_rdev) in tegra20_core_rtc_max_spread() 96 struct regulator_dev *rdev; in tegra20_core_rtc_max_spread() 136 struct regulator_dev *core_rdev, in tegra20_core_rtc_update() 137 struct regulator_dev *rtc_rdev, in tegra20_core_rtc_update() 255 struct regulator_dev *cpu_rdev, in tegra20_core_voltage_update() [all …]
|
D | regulators-tegra30.c | 26 struct regulator_dev *core_rdev; 27 struct regulator_dev *cpu_rdev; 44 struct regulator_dev *core_rdev) in tegra30_core_limit() 167 struct regulator_dev *cpu_rdev, in tegra30_voltage_update() 168 struct regulator_dev *core_rdev) in tegra30_voltage_update() 342 struct regulator_dev *rdev, in tegra30_regulator_balance_voltage() 346 struct regulator_dev *core_rdev = tegra->core_rdev; in tegra30_regulator_balance_voltage() 347 struct regulator_dev *cpu_rdev = tegra->cpu_rdev; in tegra30_regulator_balance_voltage() 463 struct regulator_dev *rdev) in tegra30_regulator_attach() 484 struct regulator_dev *rdev) in tegra30_regulator_detach()
|
/drivers/soc/samsung/ |
D | exynos-regulator-coupler.c | 19 static int regulator_get_optimal_voltage(struct regulator_dev *rdev, in regulator_get_optimal_voltage() 25 struct regulator_dev **c_rdevs = c_desc->coupled_rdevs; in regulator_get_optimal_voltage() 120 struct regulator_dev *rdev, in exynos_coupler_balance_voltage() 123 struct regulator_dev **c_rdevs; in exynos_coupler_balance_voltage() 124 struct regulator_dev *best_rdev; in exynos_coupler_balance_voltage() 204 struct regulator_dev *rdev) in exynos_coupler_attach()
|