/kernel/linux/linux-5.10/include/linux/regulator/ |
D | driver.h | 23 struct regulator_dev; 130 int (*list_voltage) (struct regulator_dev *, unsigned selector); 133 int (*set_voltage) (struct regulator_dev *, int min_uV, int max_uV, 135 int (*map_voltage)(struct regulator_dev *, int min_uV, int max_uV); 136 int (*set_voltage_sel) (struct regulator_dev *, unsigned selector); 137 int (*get_voltage) (struct regulator_dev *); 138 int (*get_voltage_sel) (struct regulator_dev *); 141 int (*set_current_limit) (struct regulator_dev *, 143 int (*get_current_limit) (struct regulator_dev *); 145 int (*set_input_current_limit) (struct regulator_dev *, int lim_uA); [all …]
|
D | coupler.h | 15 struct regulator_dev; 45 struct regulator_dev *rdev); 47 struct regulator_dev *rdev); 49 struct regulator_dev *rdev, 55 const char *rdev_get_name(struct regulator_dev *rdev); 56 int regulator_check_consumers(struct regulator_dev *rdev, 59 int regulator_check_voltage(struct regulator_dev *rdev, 61 int regulator_get_voltage_rdev(struct regulator_dev *rdev); 62 int regulator_set_voltage_rdev(struct regulator_dev *rdev, 65 int regulator_do_balance_voltage(struct regulator_dev *rdev, [all …]
|
/kernel/linux/linux-5.10/drivers/regulator/ |
D | internal.h | 46 struct regulator_dev *rdev; 52 static inline struct regulator_dev *dev_to_rdev(struct device *dev) in dev_to_rdev() 54 return container_of(dev, struct regulator_dev, dev); in dev_to_rdev() 58 struct regulator_dev *of_find_regulator_by_node(struct device_node *np); 64 struct regulator_dev *of_parse_coupled_regulator(struct regulator_dev *rdev, 67 int of_get_n_coupled(struct regulator_dev *rdev); 69 bool of_check_coupling_data(struct regulator_dev *rdev); 72 static inline struct regulator_dev * 87 static inline struct regulator_dev * 88 of_parse_coupled_regulator(struct regulator_dev *rdev, in of_parse_coupled_regulator() [all …]
|
D | core.c | 67 struct regulator_dev *regulator; 95 static int _regulator_is_enabled(struct regulator_dev *rdev); 97 static int _regulator_get_current_limit(struct regulator_dev *rdev); 98 static unsigned int _regulator_get_mode(struct regulator_dev *rdev); 99 static int _notifier_call_chain(struct regulator_dev *rdev, 101 static int _regulator_do_set_voltage(struct regulator_dev *rdev, 103 static int regulator_balance_voltage(struct regulator_dev *rdev, 105 static struct regulator *create_regulator(struct regulator_dev *rdev, 111 const char *rdev_get_name(struct regulator_dev *rdev) in rdev_get_name() 126 static bool regulator_ops_is_valid(struct regulator_dev *rdev, int ops) in regulator_ops_is_valid() [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 | mcp16502.c | 151 static int mcp16502_get_reg(struct regulator_dev *rdev, int opmode) in mcp16502_get_reg() 176 static unsigned int mcp16502_get_mode(struct regulator_dev *rdev) in mcp16502_get_mode() 206 static int _mcp16502_set_mode(struct regulator_dev *rdev, unsigned int mode, in _mcp16502_set_mode() 234 static int mcp16502_set_mode(struct regulator_dev *rdev, unsigned int mode) in mcp16502_set_mode() 242 static int mcp16502_get_status(struct regulator_dev *rdev) in mcp16502_get_status() 267 static int mcp16502_suspend_get_target_reg(struct regulator_dev *rdev) in mcp16502_suspend_get_target_reg() 286 static int mcp16502_set_suspend_voltage(struct regulator_dev *rdev, int uV) in mcp16502_set_suspend_voltage() 303 static int mcp16502_set_suspend_mode(struct regulator_dev *rdev, in mcp16502_set_suspend_mode() 323 static int mcp16502_set_suspend_enable(struct regulator_dev *rdev) in mcp16502_set_suspend_enable() 336 static int mcp16502_set_suspend_disable(struct regulator_dev *rdev) in mcp16502_set_suspend_disable() [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 | 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() 78 static int stm32_vrefbuf_disable(struct regulator_dev *rdev) in stm32_vrefbuf_disable() 100 static int stm32_vrefbuf_is_enabled(struct regulator_dev *rdev) in stm32_vrefbuf_is_enabled() 119 static int stm32_vrefbuf_set_voltage_sel(struct regulator_dev *rdev, in stm32_vrefbuf_set_voltage_sel() 142 static int stm32_vrefbuf_get_voltage_sel(struct regulator_dev *rdev) in stm32_vrefbuf_get_voltage_sel() 187 struct regulator_dev *rdev; in stm32_vrefbuf_probe() 248 struct regulator_dev *rdev = platform_get_drvdata(pdev); in stm32_vrefbuf_remove() 263 struct regulator_dev *rdev = dev_get_drvdata(dev); in stm32_vrefbuf_runtime_suspend() 273 struct regulator_dev *rdev = dev_get_drvdata(dev); in stm32_vrefbuf_runtime_resume()
|
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 | 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 | 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() 180 static int pwm_regulator_set_voltage(struct regulator_dev *rdev, in pwm_regulator_set_voltage() 320 struct regulator_dev *regulator; in pwm_regulator_probe()
|
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 | 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() 212 static int twl4030reg_disable(struct regulator_dev *rdev) in twl4030reg_disable() 229 static int twl4030reg_get_status(struct regulator_dev *rdev) in twl4030reg_get_status() 245 static int twl4030reg_set_mode(struct regulator_dev *rdev, unsigned mode) in twl4030reg_set_mode() 373 static int twl4030ldo_list_voltage(struct regulator_dev *rdev, unsigned index) in twl4030ldo_list_voltage() 382 twl4030ldo_set_voltage_sel(struct regulator_dev *rdev, unsigned selector) in twl4030ldo_set_voltage_sel() 390 static int twl4030ldo_get_voltage_sel(struct regulator_dev *rdev) in twl4030ldo_get_voltage_sel() 418 twl4030smps_set_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, in twl4030smps_set_voltage() [all …]
|
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 | cros-ec-regulator.c | 16 struct regulator_dev *dev; 55 static int cros_ec_regulator_enable(struct regulator_dev *dev) in cros_ec_regulator_enable() 67 static int cros_ec_regulator_disable(struct regulator_dev *dev) in cros_ec_regulator_disable() 79 static int cros_ec_regulator_is_enabled(struct regulator_dev *dev) in cros_ec_regulator_is_enabled() 95 static int cros_ec_regulator_list_voltage(struct regulator_dev *dev, in cros_ec_regulator_list_voltage() 106 static int cros_ec_regulator_get_voltage(struct regulator_dev *dev) in cros_ec_regulator_get_voltage() 122 static int cros_ec_regulator_set_voltage(struct regulator_dev *dev, int min_uV, in cros_ec_regulator_set_voltage()
|
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() 423 struct regulator_dev *rdev; in mt6360_regulator_probe()
|
D | rt4801-regulator.c | 37 static int rt4801_set_voltage_sel(struct regulator_dev *rdev, unsigned int selector) in rt4801_set_voltage_sel() 52 static int rt4801_get_voltage_sel(struct regulator_dev *rdev) in rt4801_get_voltage_sel() 63 static int rt4801_enable(struct regulator_dev *rdev) in rt4801_enable() 85 static int rt4801_disable(struct regulator_dev *rdev) in rt4801_disable() 103 static int rt4801_is_enabled(struct regulator_dev *rdev) in rt4801_is_enabled() 185 struct regulator_dev *rdev; in rt4801_probe()
|
D | mc13xxx-regulator-core.c | 27 static int mc13xxx_regulator_enable(struct regulator_dev *rdev) in mc13xxx_regulator_enable() 40 static int mc13xxx_regulator_disable(struct regulator_dev *rdev) in mc13xxx_regulator_disable() 52 static int mc13xxx_regulator_is_enabled(struct regulator_dev *rdev) in mc13xxx_regulator_is_enabled() 66 static int mc13xxx_regulator_set_voltage_sel(struct regulator_dev *rdev, in mc13xxx_regulator_set_voltage_sel() 78 static int mc13xxx_regulator_get_voltage(struct regulator_dev *rdev) in mc13xxx_regulator_get_voltage() 112 int mc13xxx_fixed_regulator_set_voltage(struct regulator_dev *rdev, int min_uV, in mc13xxx_fixed_regulator_set_voltage()
|
D | tps65218-regulator.c | 74 static int tps65218_pmic_set_voltage_sel(struct regulator_dev *dev, in tps65218_pmic_set_voltage_sel() 99 static int tps65218_pmic_enable(struct regulator_dev *dev) in tps65218_pmic_enable() 113 static int tps65218_pmic_disable(struct regulator_dev *dev) in tps65218_pmic_disable() 126 static int tps65218_pmic_set_suspend_enable(struct regulator_dev *dev) in tps65218_pmic_set_suspend_enable() 139 static int tps65218_pmic_set_suspend_disable(struct regulator_dev *dev) in tps65218_pmic_set_suspend_disable() 196 static int tps65218_pmic_set_input_current_lim(struct regulator_dev *dev, in tps65218_pmic_set_input_current_lim() 214 static int tps65218_pmic_set_current_limit(struct regulator_dev *dev, in tps65218_pmic_set_current_limit() 315 struct regulator_dev *rdev; in tps65218_regulator_probe()
|
/kernel/linux/linux-5.10/drivers/soc/tegra/ |
D | regulators-tegra20.c | 21 struct regulator_dev *core_rdev; 22 struct regulator_dev *cpu_rdev; 23 struct regulator_dev *rtc_rdev; 34 struct regulator_dev *core_rdev) in tegra20_core_limit() 66 static int tegra20_core_rtc_max_spread(struct regulator_dev *core_rdev, in tegra20_core_rtc_max_spread() 67 struct regulator_dev *rtc_rdev) in tegra20_core_rtc_max_spread() 70 struct regulator_dev *rdev; in tegra20_core_rtc_max_spread() 88 struct regulator_dev *core_rdev, in tegra20_core_rtc_update() 89 struct regulator_dev *rtc_rdev, in tegra20_core_rtc_update() 202 struct regulator_dev *cpu_rdev, in tegra20_core_voltage_update() [all …]
|
D | regulators-tegra30.c | 23 struct regulator_dev *core_rdev; 24 struct regulator_dev *cpu_rdev; 35 struct regulator_dev *core_rdev) in tegra30_core_limit() 97 struct regulator_dev *cpu_rdev, in tegra30_voltage_update() 98 struct regulator_dev *core_rdev) in tegra30_voltage_update() 254 struct regulator_dev *rdev, in tegra30_regulator_balance_voltage() 258 struct regulator_dev *core_rdev = tegra->core_rdev; in tegra30_regulator_balance_voltage() 259 struct regulator_dev *cpu_rdev = tegra->cpu_rdev; in tegra30_regulator_balance_voltage() 270 struct regulator_dev *rdev) in tegra30_regulator_attach() 291 struct regulator_dev *rdev) in tegra30_regulator_detach()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/staging/hikey9xx/ |
D | hi6421v600-regulator.c | 56 static int hi6421_spmi_regulator_is_enabled(struct regulator_dev *rdev) in hi6421_spmi_regulator_is_enabled() 72 static int hi6421_spmi_regulator_enable(struct regulator_dev *rdev) in hi6421_spmi_regulator_enable() 97 static int hi6421_spmi_regulator_disable(struct regulator_dev *rdev) in hi6421_spmi_regulator_disable() 112 static int hi6421_spmi_regulator_get_voltage_sel(struct regulator_dev *rdev) in hi6421_spmi_regulator_get_voltage_sel() 131 static int hi6421_spmi_regulator_set_voltage_sel(struct regulator_dev *rdev, in hi6421_spmi_regulator_set_voltage_sel() 155 static unsigned int hi6421_spmi_regulator_get_mode(struct regulator_dev *rdev) in hi6421_spmi_regulator_get_mode() 177 static int hi6421_spmi_regulator_set_mode(struct regulator_dev *rdev, in hi6421_spmi_regulator_set_mode() 206 hi6421_spmi_regulator_get_optimum_mode(struct regulator_dev *rdev, in hi6421_spmi_regulator_get_optimum_mode() 334 struct regulator_dev *rdev; in hi6421_spmi_regulator_probe_ldo() 447 struct regulator_dev *rdev = dev_get_drvdata(&pdev->dev); in hi6421_spmi_regulator_remove()
|