Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

struct_regulation_constraints(9) [suse man page]

STRUCT 
REGULATION_CO(9) API reference STRUCT REGULATION_CO(9) NAME
struct_regulation_constraints - regulator operating constraints. SYNOPSIS
struct regulation_constraints { char * name; int min_uV; int max_uV; int min_uA; int max_uA; unsigned int valid_modes_mask; unsigned int valid_ops_mask; int input_uV; struct regulator_state state_disk; struct regulator_state state_mem; struct regulator_state state_standby; suspend_state_t initial_state; unsigned int initial_mode; unsigned always_on:1; unsigned boot_on:1; unsigned apply_uV:1; }; MEMBERS
name Descriptive name for the constraints, used for display purposes. min_uV Smallest voltage consumers may set. max_uV Largest voltage consumers may set. min_uA Smallest consumers consumers may set. max_uA Largest current consumers may set. valid_modes_mask Mask of modes which may be configured by consumers. valid_ops_mask Operations which may be performed by consumers. input_uV Input voltage for regulator when supplied by another regulator. state_disk State for regulator when system is suspended in disk mode. state_mem State for regulator when system is suspended in mem mode. state_standby State for regulator when system is suspended in standby mode. initial_state Suspend state to set by default. initial_mode Mode to set at startup. always_on Set if the regulator should never be disabled. boot_on Set if the regulator is enabled when the system is initially started. If the regulator is not enabled by the hardware or bootloader then it will be enabled when the constraints are applied. apply_uV Apply the voltage constraint when initialising. DESCRIPTION
This struct describes regulator and board/machine specific constraints. AUTHORS
Liam Girdwood <lrg@slimlogic.co.uk> Author. Mark Brown <broonie@opensource.wolfsonmicro.com> Wolfson Microelectronics, Author. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 STRUCT REGULATION_CO(9)

Check Out this Related Man Page

REGULATOR_SET_OPTIMU(9) 					   API reference					   REGULATOR_SET_OPTIMU(9)

NAME
regulator_set_optimum_mode - set regulator optimum operating mode SYNOPSIS
int regulator_set_optimum_mode(struct regulator * regulator, int uA_load); ARGUMENTS
regulator regulator source uA_load load current DESCRIPTION
Notifies the regulator core of a new device load. This is then used by DRMS (if enabled by constraints) to set the most efficient regulator operating mode for the new regulator loading. Consumer devices notify their supply regulator of the maximum power they will require (can be taken from device datasheet in the power consumption tables) when they change operational status and hence power state. Examples of operational state changes that can affect power CONSUMPTION ARE
- o Device is opened / closed. o Device I/O is about to begin or has just finished. o Device is idling in between work. This information is also exported via sysfs to userspace. DRMS will sum the total requested load on the regulator and change to the most efficient operating mode if platform constraints allow. Returns the new regulator mode or error. AUTHORS
Liam Girdwood <lrg@slimlogic.co.uk> Author. Mark Brown <broonie@opensource.wolfsonmicro.com> Wolfson Microelectronics, Author. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 REGULATOR_SET_OPTIMU(9)
Man Page