Lines Matching defs:power

663  * track power level changes for children of this instance
666 hubd_set_child_pwrlvl(hubd_t *hubd, usb_port_t port, uint8_t power)
673 "hubd_set_child_pwrlvl: port=%d power=%d",
674 port, power);
684 /* assign the port power */
686 hubd->h_hubpm->hubp_child_pwrstate[port] = power;
687 new_power = old_power - pwr + power;
694 /* we have the first child coming out of low power */
697 /* we have the last child going to low power */
727 * if the hub can be put into low power mode, return success
728 * NOTE: suspend here means going to lower power, not CPR suspend.
745 * Don't go to lower power if haven't been at full power for enough
946 * and go to low power mode, which is valid
1039 * Check if the child created wants to be power managed.
1040 * If yes, the childs power level gets automatically tracked
1042 * If no, we set power of the new child by default
1074 * We set power of the detached child
1092 * After the child's power entry point has been called
1093 * we record its power level in our local struct.
1107 /* record this power in our local struct */
1121 /* record old power in our local struct */
1128 * power off state, suspend the port again
1198 * because child went to low power state, and
1515 /* go to full power if we are powered down */
1525 * raise power only if we have created the components
1526 * and are currently in low power
1551 /* indicate that child is changing power level */
1558 * this child is transitioning from power off
1559 * to power on state - resume port
1620 * functions to handle power transition for OS levels 0 -> 3
1627 /* We can't power down if hotplug thread is running */
1724 /* we are already in full power */
1730 * PM framework tries to put you in full power
1747 /* power entry point */
1766 /* check if we are transitioning to a legal power level */
1769 "usba_hubdi_power: illegal power level=%d "
1804 /* power entry point for the root hub */
1955 /* now create components to power manage this device */
1994 "hub-ignore-power-budget") == 1) {
1999 /* initialize hub power budget variables */
2491 * - power cycle all the ports
2517 /* First bring the device to full power */
2540 /* First turn off all port power */
2545 "turning off port power failed");
2553 /* enable power on all ports so we can see connects */
2556 "hubd_restore_device_state: turn on port power failed");
2856 /* restore the old dev state so that device can be put into low power */
2865 * Bring the hub to full power before
2990 * - enable power on all ports
3006 * First turn off all port power
3025 * enable power on all ports so we can see connects
3681 * if our bus power entry point is active, process the change
3709 /* mark the root hub as full power */
3754 * handle loss of local power here
3769 * when local power is removed
3906 * Don't raise power on detaching child
3954 * Try to enable port power, but
4001 /* now raise power on the children that have woken up */
4011 /* Get the device to full power */
4118 * process and for power at the device to become stable.
4446 /* check if local power status changed. */
4450 * local power has been lost, check the maximum
4451 * power consumption of current configuration.
4460 * not draw any power from USB bus.
4465 "local power has been lost, "
4474 "local power has been lost,"
4476 " mA power from the USB bus.",
4524 * The driver would try to recover port power
4528 * The port power is automatically disabled,
4561 * Try to recover all port power if they are turned off.
4570 * Only check the power status of the 1st port
4571 * since all port power status should be the same.
5022 "port%d power on", port);
5027 "port%d power off", port);
5229 * According to section 11.11 of USB, for hubs with no power
5231 * arbitrary time to enable power to become stable.
5233 * If an hub supports port power switching, we need to wait
5249 * Enable power per port. we ignore gang power and power mask
5255 * Disconnected state by supplying power to the port.
5259 "hubd_enable_all_port_power: power port=%d", port);
5271 /* Check each port power status for a given usb hub */
5296 /* Print warning message if port has no power */
5300 "hubd_enable_all_port_power: port %d power-on "
5311 * enable individual port power
5337 "set port power failed (%d 0x%x %d)",
5365 * disable power per port, ignore gang power and power mask
5377 * disable individual port power
5402 "clearing port%d power failed (%d 0x%x %d)",
6309 * Normally power budget should be checked
6311 * power budget checking will stop the device
6317 * A now works in config B after power budget
6319 * power budget checking is moved here and will
6321 * A exceeds the power available.
6986 /* bring the device to full power */
7242 * create the pm components required for power management
7262 /* alloc memory to save power states of children */
7291 /* bring the device to full power */
7478 /* go full power */
8203 * According to section 11.11 of USB, for hubs with no power
8205 * arbitrary time to enable power to become stable.
8207 * If an hub supports port power swicthing, we need to wait
8242 /* Print warning message if port has no power */
8246 "hubd_toggle_port: port %d power-on failed, "
8258 * Init power budget variables in hubd structure. According
8259 * to USB spec, the power budget rules are:
8264 * maximum, and the power consumed by all downstream
8265 * ports and the hub itself cannot exceed the max power
8320 "hub is capable of local power");
8378 * Subtract the power consumed by the hub itself
8379 * and get the power that can be supplied to
8400 * Check if the hub has enough power budget to allow a
8437 "available power is %dmA", pwr_limit * USB_CFG_DESCR_PWR_UNIT);
8461 "exceeds power available for this port, please "
8463 "has enough power",
8478 * Increase the hub power budget value when a child device
8523 "available power is %dmA, increased by %dmA",
8537 * Decrease the hub power budget value when a child device
8590 "available power is %dmA, decreased by %dmA",
8666 /* if our bus power entry point is active, quit the reset */
8669 "%s%d is under bus power management, cannot be reset. "
8693 /* mark the root hub as full power */
8999 /* go full power */