Searched refs:usb_get_max_power (Results 1 – 5 of 5) sorted by relevance
116 if (usb_get_max_power(udev, c) > udev->bus_mA) { in usb_choose_configuration()
60 static inline unsigned usb_get_max_power(struct usb_device *udev, in usb_get_max_power() function
64 rc = sysfs_emit(buf, "%dmA\n", usb_get_max_power(udev, actconfig)); in bMaxPower_show()
2011 i = dev->bus_mA - usb_get_max_power(dev, cp); in usb_set_configuration()
5080 delta = usb_get_max_power(udev, udev->actconfig); in hub_power_remaining()