• Home
  • Raw
  • Download

Lines Matching refs:port

32     USBPort port;  member
170 USBHubPort *port = &s->ports[port1->index]; in usb_hub_attach() local
173 if (port->port.dev) in usb_hub_attach()
176 port->wPortStatus |= PORT_STAT_CONNECTION; in usb_hub_attach()
177 port->wPortChange |= PORT_STAT_C_CONNECTION; in usb_hub_attach()
179 port->wPortStatus |= PORT_STAT_LOW_SPEED; in usb_hub_attach()
181 port->wPortStatus &= ~PORT_STAT_LOW_SPEED; in usb_hub_attach()
182 port->port.dev = dev; in usb_hub_attach()
186 dev = port->port.dev; in usb_hub_attach()
188 port->wPortStatus &= ~PORT_STAT_CONNECTION; in usb_hub_attach()
189 port->wPortChange |= PORT_STAT_C_CONNECTION; in usb_hub_attach()
190 if (port->wPortStatus & PORT_STAT_ENABLE) { in usb_hub_attach()
191 port->wPortStatus &= ~PORT_STAT_ENABLE; in usb_hub_attach()
192 port->wPortChange |= PORT_STAT_C_ENABLE; in usb_hub_attach()
196 port->port.dev = NULL; in usb_hub_attach()
317 USBHubPort *port; in usb_hub_handle_control() local
320 port = &s->ports[n]; in usb_hub_handle_control()
321 data[0] = port->wPortStatus; in usb_hub_handle_control()
322 data[1] = port->wPortStatus >> 8; in usb_hub_handle_control()
323 data[2] = port->wPortChange; in usb_hub_handle_control()
324 data[3] = port->wPortChange >> 8; in usb_hub_handle_control()
339 USBHubPort *port; in usb_hub_handle_control() local
343 port = &s->ports[n]; in usb_hub_handle_control()
344 dev = port->port.dev; in usb_hub_handle_control()
347 port->wPortStatus |= PORT_STAT_SUSPEND; in usb_hub_handle_control()
352 port->wPortChange |= PORT_STAT_C_RESET; in usb_hub_handle_control()
354 port->wPortStatus |= PORT_STAT_ENABLE; in usb_hub_handle_control()
368 USBHubPort *port; in usb_hub_handle_control() local
372 port = &s->ports[n]; in usb_hub_handle_control()
373 dev = port->port.dev; in usb_hub_handle_control()
376 port->wPortStatus &= ~PORT_STAT_ENABLE; in usb_hub_handle_control()
379 port->wPortChange &= ~PORT_STAT_C_ENABLE; in usb_hub_handle_control()
382 port->wPortStatus &= ~PORT_STAT_SUSPEND; in usb_hub_handle_control()
385 port->wPortChange &= ~PORT_STAT_C_SUSPEND; in usb_hub_handle_control()
388 port->wPortChange &= ~PORT_STAT_C_CONNECTION; in usb_hub_handle_control()
391 port->wPortChange &= ~PORT_STAT_C_OVERCURRENT; in usb_hub_handle_control()
394 port->wPortChange &= ~PORT_STAT_C_RESET; in usb_hub_handle_control()
443 USBHubPort *port; in usb_hub_handle_data() local
454 port = &s->ports[i]; in usb_hub_handle_data()
455 if (port->wPortChange) in usb_hub_handle_data()
481 USBHubPort *port; in usb_hub_broadcast_packet() local
486 port = &s->ports[i]; in usb_hub_broadcast_packet()
487 dev = port->port.dev; in usb_hub_broadcast_packet()
488 if (dev && (port->wPortStatus & PORT_STAT_ENABLE)) { in usb_hub_broadcast_packet()
527 USBHubPort *port; in usb_hub_init() local
546 port = &s->ports[i]; in usb_hub_init()
547 qemu_register_usb_port(&port->port, s, i, usb_hub_attach); in usb_hub_init()
548 port->wPortStatus = PORT_STAT_POWER; in usb_hub_init()
549 port->wPortChange = 0; in usb_hub_init()