Lines Matching defs:components

33  *	Assumes: all backwards compat. device components wake up on &
38 * Each device may have 0 or more components. If a device has no components,
47 * They are recognized by the pm code by the lack of a pm-components property
59 * For non-bc devices, the driver describes the components by exporting a
60 * pm-components(9P) property that tells how many components there are,
63 * Devices which export pm-components(9P) are automatically power managed
70 * devices, all components are considered independent of each other, and it is
87 * -turn down idle components based on thresholds (if autopm or cpupm is
91 * all components that are idle or become idle over the next (10 sec)
99 * -allow a process to directly control the power levels of device components
104 * -provide "backwards compatible" behavior for devices without pm-components
129 * has any component that is at a non-zero power level, all components of the
215 * Protects count of components that are not at their lowest
232 * Protects the count of how many components of the console
273 * a candidate for power management (e.g. has pm components)
1113 int components = PM_NUMCMPTS(dip);
1116 ASSERT(components > 0);
1118 for (i = 0; i < components; i++) {
1184 * It attempts to power off the indicated device's components if they have
1338 * if components are already at lowest level, timeleft is left 0
1685 * simpler. Unless all components are off, then wekeeps must be on.
1791 /* process components of pathname */
2105 * that either all components of power-managed devices are at their
2312 * Others we check all components. BC node that has already
2317 PMD(PMD_KEEPS, ("%s: %s@%s(%s#%d) has %d components\n", pmf,
2358 int components = PM_NUMCMPTS(dip);
2363 if (components <= 0) {
2364 cmn_err(CE_NOTE, "!pm: %s@%s(%s#%d) has no components, "
2368 size = components * sizeof (int);
2370 for (i = 0; i < components; i++) {
2384 int components;
2389 components = PM_NUMCMPTS(dip);
2390 ASSERT(components > 0);
2392 for (i = 0; i < components; i++) {
2936 * A driver is reporting that the power of one of its device's components
3055 * we will increment the "components off" count of the fb device.
3077 * Adjust the count of console frame buffer components < full power.
3427 * Called from functions that require components to exist already to allow
3428 * for their creation by parsing the pm-components property.
3453 * Look up pm-components property and create components accordingly
3465 * If they don't have the pm-components property, then we
3468 * we need to flesh out dummy components
3502 * creates components with no descriptions (or known levels)
3592 * We only get components destroyed while no power management is
3698 * Bring all components of device to normal power
3736 * Returns true if all components of device are at normal power
3856 static const char pmcompstr[] = "pm-components";
4003 * Internal routine for destroying components
4039 * Read the pm-components property (if there is one) and use it to set up
4040 * components. Returns a pointer to an array of component structures if
4041 * pm-components found and successfully parsed, else returns NULL.
4052 int i, j, level, components = 0;
4125 components++;
4159 * Now we have a list of components--we have to return instead an
4163 (void) e_pm_create_components(dip, components);
4164 for (i = 0; i < components; i++)
4167 ret = kmem_zalloc(components * sizeof (pm_comp_t), KM_SLEEP);
4168 for (i = 0, p = phead; i < components; i++) {
4261 kmem_free(ret, components * sizeof (pm_comp_t));
4267 * Set threshold values for a devices components by dividing the target
4270 * all components are idle and even if there are dependencies among components.
4361 * Compute the total number of transitions for all components
4527 * Old obsolete exported interface for drivers to create components.
4528 * This is now handled by exporting the pm-components property.
4555 * Obsolete interface previously called by drivers to destroy their components
4570 cmn_err(CE_WARN, "!driver exporting pm-components property "
4605 * Forget we ever knew anything about the components of this device
4677 * We'll only get components destroyed while no power management is
4687 "(driver exporting pm-components property) ignored",
6129 * (that is, the number of components and transitions are the same)
6147 * components there are in advance). This is always a valid
7339 * brought up all components)
8069 * fb too, we process components in descending order
8393 * Return true if all components of the console frame buffer are at