Searched refs:power_mode (Results 1 – 5 of 5) sorted by relevance
2547 return (uint8_t)(((udev->power_mode == USB_POWER_MODE_ON) && in usb_peer_should_wakeup()3002 usbd_set_power_mode(struct usb_device *udev, uint8_t power_mode) in usbd_set_power_mode() argument3005 if ((power_mode != USB_POWER_MODE_ON) && in usbd_set_power_mode()3006 (power_mode != USB_POWER_MODE_OFF)) in usbd_set_power_mode()3007 power_mode = USB_POWER_MODE_SAVE; in usbd_set_power_mode()3009 power_mode = usbd_filter_power_mode(udev, power_mode); in usbd_set_power_mode()3011 udev->power_mode = power_mode; /* update copy of power mode */ in usbd_set_power_mode()3026 usbd_filter_power_mode(struct usb_device *udev, uint8_t power_mode) in usbd_filter_power_mode() argument3038 return (power_mode); in usbd_filter_power_mode()
560 void usbd_set_power_mode(struct usb_device *udev, uint8_t power_mode);561 uint8_t usbd_filter_power_mode(struct usb_device *udev, uint8_t power_mode);
249 uint8_t power_mode; /* see USB_POWER_XXX */ member
804 di->udi_power_mode = udev->power_mode; in usb_gen_fill_deviceinfo()1787 old_mode = udev->power_mode; in ugen_set_power_mode()1868 return (udev->power_mode); in ugen_get_power_mode()
1555 udev->power_mode = usbd_filter_power_mode(udev, USB_POWER_MODE_ON); in usb_alloc_device()