Lines Matching +full:linear +full:- +full:mapping +full:- +full:mode
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * driver.h -- SoC Regulator driver support.
53 * struct regulator_ops - regulator operations.
66 * return -ENOTRECOVERABLE if regulator can't be read at
69 * regulator; return -ENOTRECOVERABLE if regulator can't
76 * @set_current_limit: Configure a limit for a current-limited regulator.
78 * @get_current_limit: Get the configured limit for a current-limited regulator.
86 * @set_mode: Set the configured operating mode for the regulator.
87 * @get_mode: Get the configured operating mode for the regulator.
89 * @get_status: Return actual (not as-configured) status of regulator, as a
91 * @get_optimum_mode: Get the most efficient operating mode for the regulator
95 * @set_bypass: Set the regulator in bypass mode.
96 * @get_bypass: Get the regulator bypass mode state.
118 * @set_suspend_mode: Set the operating mode for the regulator when the
154 /* get/set regulator operating mode (defined in consumer.h) */
155 int (*set_mode) (struct regulator_dev *, unsigned int mode);
179 /* get most efficient regulator operating mode for load */
185 /* control and report on bypass mode */
199 /* set regulator suspend operating mode (defined in consumer.h) */
200 int (*set_suspend_mode) (struct regulator_dev *, unsigned int mode);
216 * struct regulator_desc - Static regulator descriptor
220 * structure contains the non-varying parts of the regulator
247 * @min_uV: Voltage given by the lowest selector (if linear mapping)
248 * @uV_step: Voltage increase with each selector (if linear mapping)
249 * @linear_min_sel: Minimal selector for starting linear mapping
259 * @volt_table: Voltage mapping table (if table based mapping)
260 * @curr_table: Current limit mapping table (if table based mapping)
306 * @off_on_delay: guard time (in uS), before re-enabling a regulator
311 * @of_map_mode: Maps a hardware mode defined in a DeviceTree to a standard mode
380 unsigned int (*of_map_mode)(unsigned int mode);
384 * struct regulator_config - Dynamic regulator descriptor