Searched refs:port_removable (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/usb/host/
H A Dxhci-hub.c82 __u8 port_removable[(USB_MAXCHILDREN + 1 + 7) / 8]; xhci_usb2_hub_descriptor() local
96 memset(port_removable, 0, sizeof(port_removable)); xhci_usb2_hub_descriptor()
106 port_removable[(i + 1) / 8] |= 1 << ((i + 1) % 8); xhci_usb2_hub_descriptor()
125 memset(&desc->u.hs.DeviceRemovable[i], port_removable[i], xhci_usb2_hub_descriptor()
134 u16 port_removable; xhci_usb3_hub_descriptor() local
149 port_removable = 0; xhci_usb3_hub_descriptor()
154 port_removable |= 1 << (i + 1); xhci_usb3_hub_descriptor()
157 desc->u.ss.DeviceRemovable = cpu_to_le16(port_removable); xhci_usb3_hub_descriptor()
/linux-4.1.27/drivers/usb/core/
H A Dhub.c5654 u16 port_removable = le16_to_cpu(desc->u.ss.DeviceRemovable); usb_hub_adjust_deviceremovable() local
5663 if (!(port_removable & mask)) { usb_hub_adjust_deviceremovable()
5665 port_removable |= mask; usb_hub_adjust_deviceremovable()
5670 desc->u.ss.DeviceRemovable = cpu_to_le16(port_removable); usb_hub_adjust_deviceremovable()

Completed in 148 milliseconds