Lines Matching refs:status
178 dbg_status_buf(char *buf, unsigned len, const char *label, u32 status)
181 label, label[0] ? " " : "", status,
182 (status & STS_ASS) ? " Async" : "",
183 (status & STS_PSS) ? " Periodic" : "",
184 (status & STS_RECL) ? " Recl" : "",
185 (status & STS_HALT) ? " Halt" : "",
186 (status & STS_IAA) ? " IAA" : "",
187 (status & STS_FATAL) ? " FATAL" : "",
188 (status & STS_FLR) ? " FLR" : "",
189 (status & STS_PCD) ? " PCD" : "",
190 (status & STS_ERR) ? " ERR" : "",
191 (status & STS_INT) ? " INT" : "");
227 u32 status)
232 switch (status & (3 << 10)) {
247 scnprintf(buf, len, "%s%sport:%d status %06x %d sig=%s%s%s%s%s%s%s%s",
248 label, label[0] ? " " : "", port, status,
249 status >> 25, /*device address */
251 (status & PORT_RESET) ? " RESET" : "",
252 (status & PORT_SUSPEND) ? " SUSPEND" : "",
253 (status & PORT_RESUME) ? " RESUME" : "",
254 (status & PORT_PEC) ? " PEC" : "",
255 (status & PORT_PE) ? " PE" : "",
256 (status & PORT_CSC) ? " CSC" : "",
257 (status & PORT_CONNECT) ? " CONNECT" : "");
263 #define dbg_status(fotg210, label, status) { \
265 dbg_status_buf(_buf, sizeof(_buf), label, status); \
275 #define dbg_port(fotg210, label, port, status) { \
278 dbg_port_buf(_buf, sizeof(_buf), label, port, status));\
692 fotg210_readl(fotg210, &fotg210->regs->status));
919 return handshake(fotg210, &fotg210->regs->status,
968 handshake(fotg210, &fotg210->regs->status, STS_ASS | STS_PSS, temp,
978 handshake(fotg210, &fotg210->regs->status, STS_ASS | STS_PSS, 0,
1067 /* Poll the STS_ASS status bit; see when it agrees with CMD_ASE */
1077 actual = fotg210_readl(fotg210, &fotg210->regs->status) & STS_ASS;
1087 fotg210_dbg(fotg210, "Waited too long for the async schedule status (%x/%x), giving up\n",
1092 /* The status is up-to-date; restart or stop the schedule as needed */
1115 /* Poll the STS_PSS status bit; see when it agrees with CMD_PSE */
1125 actual = fotg210_readl(fotg210, &fotg210->regs->status) & STS_PSS;
1135 fotg210_dbg(fotg210, "Waited too long for the periodic schedule status (%x/%x), giving up\n",
1140 /* The status is up-to-date; restart or stop the schedule as needed */
1163 /* Poll the STS_HALT status bit; see when a dead controller stops */
1166 if (!(fotg210_readl(fotg210, &fotg210->regs->status) & STS_HALT)) {
1266 u32 cmd, status;
1283 status = fotg210_readl(fotg210, &fotg210->regs->status);
1284 if ((status & STS_IAA) || !(cmd & CMD_IAAD)) {
1287 &fotg210->regs->status);
1290 fotg210_dbg(fotg210, "IAA watchdog: status %x cmd %x\n",
1291 status, cmd);
1387 /* build "status change" packet (one or two bytes) from HC registers */
1392 u32 temp, status;
1397 /* init status to no-changes */
1401 * a non-zero value even if there are no status changes.
1403 status = fotg210->resuming_ports;
1416 * Return status information even for ports with OWNER set.
1426 status = STS_PCD;
1430 return status ? retval : 0;
1462 u32 temp, temp1, status;
1480 /* no hub-wide feature/status flags */
1496 * the port-change status bits (especially
1543 /* no hub-wide feature/status flags */
1551 status = 0;
1556 status |= USB_PORT_STAT_C_CONNECTION << 16;
1558 status |= USB_PORT_STAT_C_ENABLE << 16;
1562 status |= USB_PORT_STAT_C_OVERCURRENT << 16;
1605 status |= USB_PORT_STAT_C_RESET << 16;
1655 status |= USB_PORT_STAT_CONNECTION;
1656 status |= fotg210_port_speed(fotg210, temp);
1659 status |= USB_PORT_STAT_ENABLE;
1663 status |= USB_PORT_STAT_SUSPEND;
1674 status |= USB_PORT_STAT_OVERCURRENT;
1676 status |= USB_PORT_STAT_RESET;
1678 status |= USB_PORT_STAT_C_SUSPEND << 16;
1680 if (status & ~0xffff) /* only if wPortChange is interesting */
1682 put_unaligned_le32(status, buf);
1688 /* no hub-wide feature/status flags */
1720 /* line status bits may report this as low speed,
2135 int status = -EINPROGRESS;
2143 return status;
2147 status = -EREMOTEIO;
2153 status = -EOVERFLOW;
2156 status = -EPIPE;
2164 status = -EPROTO;
2166 status = (QTD_PID(token) == 1) /* IN ? */
2175 status = -EPROTO;
2177 status = -EPROTO;
2181 "dev%d ep%d%s qtd token %08x --> status %d\n",
2185 token, status);
2188 return status;
2192 int status)
2210 /* report non-error and short read status as zero */
2211 if (status == -EINPROGRESS || status == -EREMOTEIO)
2212 status = 0;
2218 "%s %s urb %p ep%d%s status %d len %d/%d\n",
2222 status,
2229 usb_hcd_giveback_urb(fotg210_to_hcd(fotg210), urb, status);
2355 * control transfers (status stage handles that) or
2400 /* unless we already know the urb's status, collect qtd status
2599 * and may serve as a control status ack
2649 * control requests may need a terminating data "status" ack;
3752 int status;
3765 status = check_intr_schedule(fotg210, frame, --uframe,
3770 status = -ENOSPC;
3776 if (status) {
3781 for (i = qh->period; status && i > 0; --i) {
3784 status = check_intr_schedule(fotg210,
3787 if (status == 0)
3795 status = check_intr_schedule(fotg210, 0, 0, qh,
3798 if (status)
3814 return status;
3823 int status;
3832 status = -ESHUTDOWN;
3835 status = usb_hcd_link_urb_to_ep(fotg210_to_hcd(fotg210), urb);
3836 if (unlikely(status))
3843 status = -ENOMEM;
3847 status = qh_schedule(fotg210, qh);
3848 if (status)
3860 if (unlikely(status))
3864 if (status)
3867 return status;
4162 int status;
4171 status = -EFBIG;
4209 status = -EFBIG;
4246 status = -ENOSPC;
4257 status = -EFBIG;
4276 return status;
4445 /* report transfer status */
4449 desc->status = usb_pipein(urb->pipe)
4453 desc->status = -EOVERFLOW;
4455 desc->status = -EPROTO;
4463 desc->status = 0;
4468 desc->status = -EXDEV;
4518 int status = -EINVAL;
4548 status = itd_urb_transaction(stream, fotg210, urb, mem_flags);
4549 if (unlikely(status < 0)) {
4557 status = -ESHUTDOWN;
4560 status = usb_hcd_link_urb_to_ep(fotg210_to_hcd(fotg210), urb);
4561 if (unlikely(status))
4563 status = iso_stream_schedule(fotg210, urb, stream);
4564 if (likely(status == 0))
4571 return status;
4890 fotg210_readl(fotg210, &fotg210->regs->status));
5114 u32 status, masked_status, pcd_status = 0, cmd;
5119 status = fotg210_readl(fotg210, &fotg210->regs->status);
5122 if (status == ~(u32) 0) {
5129 * remain on, so mask it out along with the other status bits.
5131 masked_status = status & (INTR_MASK | STS_FLR);
5141 fotg210_writel(fotg210, masked_status, &fotg210->regs->status);
5146 dbg_status(fotg210, "irq", status);
5151 if (likely((status & (STS_INT|STS_ERR)) != 0)) {
5152 if (likely((status & STS_ERR) == 0))
5160 if (status & STS_IAA) {
5187 if (status & STS_PCD) {
5192 pcd_status = status;
5219 if (unlikely((status & STS_FATAL) != 0)) {
5222 dbg_status(fotg210, "fatal", status);
5294 static int fotg210_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
5302 rc = usb_hcd_check_unlink_urb(hcd, urb, status);