Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/usb/host/
Dxhci-hub.c283 __u8 port_removable[(USB_MAXCHILDREN + 1 + 7) / 8]; in xhci_usb2_hub_descriptor() local
299 memset(port_removable, 0, sizeof(port_removable)); in xhci_usb2_hub_descriptor()
309 port_removable[(i + 1) / 8] |= 1 << ((i + 1) % 8); in xhci_usb2_hub_descriptor()
328 memset(&desc->u.hs.DeviceRemovable[i], port_removable[i], in xhci_usb2_hub_descriptor()
337 u16 port_removable; in xhci_usb3_hub_descriptor() local
355 port_removable = 0; in xhci_usb3_hub_descriptor()
360 port_removable |= 1 << (i + 1); in xhci_usb3_hub_descriptor()
363 desc->u.ss.DeviceRemovable = cpu_to_le16(port_removable); in xhci_usb3_hub_descriptor()
/linux-6.1.9/drivers/usb/core/
Dhub.c6250 u16 port_removable = le16_to_cpu(desc->u.ss.DeviceRemovable); in usb_hub_adjust_deviceremovable() local
6259 if (!(port_removable & mask)) { in usb_hub_adjust_deviceremovable()
6261 port_removable |= mask; in usb_hub_adjust_deviceremovable()
6266 desc->u.ss.DeviceRemovable = cpu_to_le16(port_removable); in usb_hub_adjust_deviceremovable()