Lines Matching refs:port

456 				    unsigned int port)
460 u32 pmask = (1 << (port + 1));
461 if (vhub->ports[port].change)
469 unsigned int port,
474 struct ast_vhub_port *p = &vhub->ports[port];
477 /* Update port status */
480 DDBG(&p->dev, "port %d status %04x -> %04x (C=%d)\n",
481 port + 1, prev, p->status, set_c);
497 * the port as per USB spec, otherwise MacOS gets upset
503 ast_vhub_update_hub_ep1(vhub, port);
516 unsigned int port, bool on)
519 ast_vhub_change_port_stat(vhub, port, 0,
522 ast_vhub_change_port_stat(vhub, port,
544 * Wake all sleeping ports. If a port is suspended by
573 static void ast_vhub_port_reset(struct ast_vhub *vhub, u8 port)
575 struct ast_vhub_port *p = &vhub->ports[port];
579 ast_vhub_change_port_stat(vhub, port,
589 * This will either "start" the port or reset the
623 ast_vhub_change_port_stat(vhub, port, clr, set, true);
627 u8 port, u16 feat)
632 if (port == 0 || port > vhub->max_ports)
634 port--;
635 p = &vhub->ports[port];
641 ast_vhub_change_port_stat(vhub, port,
648 ast_vhub_port_reset(vhub, port);
658 ast_vhub_update_hub_ep1(vhub, port);
670 u8 port, u16 feat)
675 if (port == 0 || port > vhub->max_ports)
677 port--;
678 p = &vhub->ports[port];
682 ast_vhub_change_port_stat(vhub, port,
691 ast_vhub_change_port_stat(vhub, port,
709 ast_vhub_update_hub_ep1(vhub, port);
716 u8 port)
721 if (port == 0 || port > vhub->max_ports)
723 port--;
725 stat = vhub->ports[port].status;
726 chg = vhub->ports[port].change;
731 EPDBG(ep, " port status=%04x change=%04x\n", stat, chg);
856 * Clear all port status, disable gadgets and "suspend"
857 * them. They will be woken up by a port reset.