Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/usb/host/
H A Dxhci-hub.c197 __u8 port_removable[(USB_MAXCHILDREN + 1 + 7) / 8]; in xhci_usb2_hub_descriptor() local
213 memset(port_removable, 0, sizeof(port_removable)); in xhci_usb2_hub_descriptor()
223 port_removable[(i + 1) / 8] |= 1 << ((i + 1) % 8); in xhci_usb2_hub_descriptor()
242 memset(&desc->u.hs.DeviceRemovable[i], port_removable[i], in xhci_usb2_hub_descriptor()
251 u16 port_removable; in xhci_usb3_hub_descriptor() local
269 port_removable = 0; in xhci_usb3_hub_descriptor()
274 port_removable |= 1 << (i + 1); in xhci_usb3_hub_descriptor()
277 desc->u.ss.DeviceRemovable = cpu_to_le16(port_removable); in xhci_usb3_hub_descriptor()
/kernel/linux/linux-6.6/drivers/usb/host/
H A 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()
/kernel/linux/linux-5.10/drivers/usb/core/
H A Dhub.c6340 u16 port_removable = le16_to_cpu(desc->u.ss.DeviceRemovable); in usb_hub_adjust_deviceremovable() local
6349 if (!(port_removable & mask)) { in usb_hub_adjust_deviceremovable()
6351 port_removable |= mask; in usb_hub_adjust_deviceremovable()
6356 desc->u.ss.DeviceRemovable = cpu_to_le16(port_removable); in usb_hub_adjust_deviceremovable()
/kernel/linux/linux-6.6/drivers/usb/core/
H A Dhub.c6380 u16 port_removable = le16_to_cpu(desc->u.ss.DeviceRemovable); in usb_hub_adjust_deviceremovable() local
6389 if (!(port_removable & mask)) { in usb_hub_adjust_deviceremovable()
6391 port_removable |= mask; in usb_hub_adjust_deviceremovable()
6396 desc->u.ss.DeviceRemovable = cpu_to_le16(port_removable); in usb_hub_adjust_deviceremovable()

Completed in 20 milliseconds