Lines Matching defs:port

102 #define HCS_DEBUG_PORT(p)	(((p)>>20)&0xf)	/* bits 23:20, debug port? */
103 #define HCS_INDICATOR(p) ((p)&(1 << 16)) /* true: has port indicators */
106 #define HCS_PORTROUTED(p) ((p)&(1 << 7)) /* true: port routing */
107 #define HCS_PPC(p) ((p)&(1 << 4)) /* true: port power control */
147 #define STS_PCD (1<<2) /* port change detect */
177 /* 19:16 for port testing */
182 #define PORT_OWNER (1<<13) /* true: companion hc owns this port */
187 #define PORT_RESET (1<<8) /* reset port */
188 #define PORT_SUSPEND (1<<7) /* suspend port */
192 #define PORT_PEC (1<<3) /* port enable change */
193 #define PORT_PE (1<<2) /* port enable */
199 /* Appendix C, Debug port ... intended for use with special "debug devices"
438 /* per root hub port */
440 /* bit vectors (one bit per port) */
573 int port, u32 status)
595 label, label[0] ? " " : "", port, status,
626 dbg_port_buf(char *buf, unsigned len, const char *label, int port, u32 status)
644 #define dbg_port(oxu, label, port, status) { \
646 dbg_port_buf(_buf, sizeof _buf, label, port, status); \
857 oxu_dbg(oxu, "Failed to enable port %d on root hub TT\n",
861 oxu_dbg(oxu, "port %d high speed\n", index + 1);
884 temp = HUB_CHAR_INDV_PORT_OCPM; /* per-port overcurrent reporting */
886 temp |= HUB_CHAR_INDV_PORT_LPSM; /* per-port power control */
1314 /* FIXME "must" disable babbling device's port too */
2771 int port = HCS_N_PORTS(oxu->hcs_params);
2773 while (port--)
2774 writel(PORT_RWC_BITS, &oxu->regs->port_status[port]);
2779 unsigned port;
2785 for (port = HCS_N_PORTS(oxu->hcs_params); port > 0; ) {
2788 USB_PORT_FEAT_POWER, port--, NULL, 0);
2791 USB_PORT_FEAT_POWER, port--, NULL, 0);
2920 * port, and make hub_wq collect PORT_STAT_C_SUSPEND to
2925 oxu_dbg(oxu, "port %d remote wakeup\n", i + 1);
3177 /* Turn off port power on all root hub ports. */
3520 /* port N changes (bit N)? */
3548 /* Returns the speed of a device attached to a port on the root hub. */
3601 * Even if OWNER is set, so the port is owned by the
3603 * the port-change status bits (especially
3680 /* check the port again */
3699 "port %d resume error %d\n",
3723 oxu_err(oxu, "port %d reset error %d\n",
3739 oxu_dbg(oxu, "port %d --> companion\n", wIndex + 1);
3812 oxu_vdbg(oxu, "port %d reset\n", wIndex + 1);
3825 /* For downstream facing ports (these): one hub port is put
3860 int port;
3868 port = HCS_N_PORTS(oxu->hcs_params);
3887 while (port--) {
3888 u32 __iomem *reg = &oxu->regs->port_status[port];
3896 set_bit(port, &oxu->bus_suspended);
3906 oxu_vdbg(oxu, "port %d, %08x -> %08x\n",
3907 port + 1, t1, t2);
3942 /* Ideally and we've got a real resume here, and no port's power
3965 * they set up the port statuses. See Bugzilla #8190. */
3987 oxu_vdbg(oxu, "resumed port %d\n", i + 1);