Lines Matching refs:level

53  *	level. The lowest possible power level for the driver is equal to the
54 * highest power level among its children. The PM busy condition is
59 * possible power level is less than the driver's current power level.
73 * possible power level. If the lowest possible power level is less than
74 * the current power level and pwr_hold is zero, then it marks itself
75 * idle. The lowest power level is equal or greater than the highest level
76 * among the children. It keeps track of children's power level by
107 pcie_power(dev_info_t *dip, int component, int level)
119 ASSERT(level != PM_LEVEL_UNKNOWN);
120 /* PM should not asking for a level, which is unsupported */
121 ASSERT(level == PM_LEVEL_D0 || level == PM_LEVEL_D3 ||
122 (level == PM_LEVEL_D1 && (pmcaps & PCIE_SUPPORTS_D1)) ||
123 (level == PM_LEVEL_D2 && (pmcaps & PCIE_SUPPORTS_D2)));
128 level);
129 if (pwr_p->pwr_func_lvl == level) {
131 ddi_driver_name(dip), ddi_get_instance(dip), level);
136 if (level < pwr_p->pwr_func_lvl) {
144 ddi_get_instance(dip), level);
151 * Reject the request if level reqested is lower than the level
156 if (level < pwr_level_allowed(pwr_p)) {
157 PCIE_DBG("%s(%d): pcie_power: rejecting level %d as"
159 ddi_driver_name(dip), ddi_get_instance(dip), level,
165 if (pcie_pwr_change(dip, pwr_p, level) != DDI_SUCCESS) {
168 level);
171 pwr_p->pwr_func_lvl = level;
172 PCIE_DBG("%s(%d): pcie_power: level changed to %d \n",
173 ddi_driver_name(dip), ddi_get_instance(dip), level);
186 * new - new level
261 * PM framework related to child's power level change. It marks itself
262 * idle or busy based on the children's power level.
414 * is equal or greater to the current level.
426 * If our lowest possible level is less than our current
427 * level mark idle. Mark idle only if it is not already done.
471 * Returns the lowest possible power level allowed for nexus
472 * based on children's power level. Lowest possible level is
473 * equal to the highest level among the children. It also checks
474 * for the supported level
486 * find the highest level among the children. If that
487 * level is supported, return that level. If not,
488 * find the next higher supported level and return that
489 * level. For example, if the D1 is the highest among
491 * lowest possible level. We don't need to look at D3
492 * as that is the default lowest level and it is always
500 * i is the highest level among children. If this is
505 /* find the next higher supported level */
518 * all components are assumed to be at UNKNOWN level.
531 PCIE_DBG("%s(%d): pcie_add_comps: unknown level counter incremented "
616 /* Initialize the power level and default level support */
733 int level;
742 level = pwr_level_allowed(pwr_p);
743 if (pwr_p->pwr_hold == 0 && level < pwr_p->pwr_func_lvl) {
754 * assumed to be at unknown level. It also releases the power hold
822 * possible level is less than the current level. Mark idle
950 * Mark all children to be unknown and bring our power level
973 * components are considered to be at unknown level. Use the
974 * fact that counters for unknown level are at the end.