Lines Matching refs:port
481 unsigned int port)
485 u32 pmask = (1 << (port + 1));
486 if (vhub->ports[port].change)
494 unsigned int port,
499 struct ast_vhub_port *p = &vhub->ports[port];
502 /* Update port status */
505 DDBG(&p->dev, "port %d status %04x -> %04x (C=%d)\n",
506 port + 1, prev, p->status, set_c);
522 * the port as per USB spec, otherwise MacOS gets upset
528 ast_vhub_update_hub_ep1(vhub, port);
541 unsigned int port, bool on)
544 ast_vhub_change_port_stat(vhub, port, 0,
547 ast_vhub_change_port_stat(vhub, port,
569 * Wake all sleeping ports. If a port is suspended by
598 static void ast_vhub_port_reset(struct ast_vhub *vhub, u8 port)
600 struct ast_vhub_port *p = &vhub->ports[port];
604 ast_vhub_change_port_stat(vhub, port,
614 * This will either "start" the port or reset the
648 ast_vhub_change_port_stat(vhub, port, clr, set, true);
652 u8 port, u16 feat)
657 if (port == 0 || port > vhub->max_ports)
659 port--;
660 p = &vhub->ports[port];
666 ast_vhub_change_port_stat(vhub, port,
673 ast_vhub_port_reset(vhub, port);
683 ast_vhub_update_hub_ep1(vhub, port);
695 u8 port, u16 feat)
700 if (port == 0 || port > vhub->max_ports)
702 port--;
703 p = &vhub->ports[port];
707 ast_vhub_change_port_stat(vhub, port,
716 ast_vhub_change_port_stat(vhub, port,
734 ast_vhub_update_hub_ep1(vhub, port);
741 u8 port)
746 if (port == 0 || port > vhub->max_ports)
748 port--;
750 stat = vhub->ports[port].status;
751 chg = vhub->ports[port].change;
756 EPDBG(ep, " port status=%04x change=%04x\n", stat, chg);
881 * Clear all port status, disable gadgets and "suspend"
882 * them. They will be woken up by a port reset.