Home
last modified time | relevance | path

Searched refs:regulator_dev (Results 1 – 25 of 207) sorted by relevance

123456789

/linux-6.1.9/include/linux/regulator/
Ddriver.h23 struct regulator_dev;
162 int (*list_voltage) (struct regulator_dev *, unsigned selector);
165 int (*set_voltage) (struct regulator_dev *, int min_uV, int max_uV,
167 int (*map_voltage)(struct regulator_dev *, int min_uV, int max_uV);
168 int (*set_voltage_sel) (struct regulator_dev *, unsigned selector);
169 int (*get_voltage) (struct regulator_dev *);
170 int (*get_voltage_sel) (struct regulator_dev *);
173 int (*set_current_limit) (struct regulator_dev *,
175 int (*get_current_limit) (struct regulator_dev *);
177 int (*set_input_current_limit) (struct regulator_dev *, int lim_uA);
[all …]
Dcoupler.h15 struct regulator_dev;
45 struct regulator_dev *rdev);
47 struct regulator_dev *rdev);
49 struct regulator_dev *rdev,
55 int regulator_check_consumers(struct regulator_dev *rdev,
58 int regulator_check_voltage(struct regulator_dev *rdev,
60 int regulator_get_voltage_rdev(struct regulator_dev *rdev);
61 int regulator_set_voltage_rdev(struct regulator_dev *rdev,
64 int regulator_do_balance_voltage(struct regulator_dev *rdev,
71 static inline int regulator_check_consumers(struct regulator_dev *rdev, in regulator_check_consumers()
[all …]
/linux-6.1.9/drivers/regulator/
Dinternal.h57 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 …]
Dcore.c56 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 …]
Dhelpers.c27 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 …]
Dmax8925-regulator.c42 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()
Dmax8660.c98 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 …]
Dstm32-vrefbuf.c41 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()
Dmcp16502.c178 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 …]
Dtwl6030-regulator.c107 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 …]
Dlp3971.c106 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 …]
Danatop-regulator.c34 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()
Dcros-ec-regulator.c16 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()
Dpwm-regulator.c54 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()
Drt6160-regulator.c52 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()
Daat2870-regulator.c32 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()
Dtwl-regulator.c98 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 …]
Dlp3972.c221 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 …]
Dirq_helpers.c35 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()
Dmt6360-regulator.c52 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()
Dmc13xxx-regulator-core.c27 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()
Dab8500-ext.c111 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()
/linux-6.1.9/drivers/soc/tegra/
Dregulators-tegra20.c26 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 …]
Dregulators-tegra30.c26 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()
/linux-6.1.9/drivers/soc/samsung/
Dexynos-regulator-coupler.c19 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()

123456789