Lines Matching refs:temp
370 unsigned temp; in qh_lines() local
391 temp = scnprintf(next, size, in qh_lines()
401 size -= temp; in qh_lines()
402 next += temp; in qh_lines()
418 temp = snprintf(next, size, in qh_lines()
438 if (size < temp) in qh_lines()
439 temp = size; in qh_lines()
440 size -= temp; in qh_lines()
441 next += temp; in qh_lines()
442 if (temp == size) in qh_lines()
446 temp = snprintf(next, size, "\n"); in qh_lines()
447 if (size < temp) in qh_lines()
448 temp = size; in qh_lines()
450 size -= temp; in qh_lines()
451 next += temp; in qh_lines()
463 unsigned temp, size; in fill_async_buffer() local
483 temp = scnprintf(next, size, "\nunlink =\n"); in fill_async_buffer()
484 size -= temp; in fill_async_buffer()
485 next += temp; in fill_async_buffer()
503 unsigned temp = 0; in output_buf_tds_dir() local
507 temp++; in output_buf_tds_dir()
521 qh->c_usecs, temp, (scratch >> 16) & 0x7ff); in output_buf_tds_dir()
531 unsigned temp, size, seen_count; in fill_periodic_buffer() local
547 temp = scnprintf(next, size, "size = %d\n", fotg210->periodic_size); in fill_periodic_buffer()
548 size -= temp; in fill_periodic_buffer()
549 next += temp; in fill_periodic_buffer()
562 temp = scnprintf(next, size, "%4d: ", i); in fill_periodic_buffer()
563 size -= temp; in fill_periodic_buffer()
564 next += temp; in fill_periodic_buffer()
572 temp = scnprintf(next, size, " qh%d-%04x/%p", in fill_periodic_buffer()
579 size -= temp; in fill_periodic_buffer()
580 next += temp; in fill_periodic_buffer()
582 for (temp = 0; temp < seen_count; temp++) { in fill_periodic_buffer()
583 if (seen[temp].ptr != p.ptr) in fill_periodic_buffer()
586 temp = scnprintf(next, size, in fill_periodic_buffer()
588 size -= temp; in fill_periodic_buffer()
589 next += temp; in fill_periodic_buffer()
594 if (temp == seen_count) { in fill_periodic_buffer()
595 temp = output_buf_tds_dir(next, in fill_periodic_buffer()
602 temp = 0; in fill_periodic_buffer()
607 temp = scnprintf(next, size, in fill_periodic_buffer()
614 temp = scnprintf(next, size, in fill_periodic_buffer()
620 size -= temp; in fill_periodic_buffer()
621 next += temp; in fill_periodic_buffer()
624 temp = scnprintf(next, size, "\n"); in fill_periodic_buffer()
625 size -= temp; in fill_periodic_buffer()
626 next += temp; in fill_periodic_buffer()
655 unsigned temp, size, i; in fill_registers_buffer() local
681 temp = scnprintf(next, size, in fill_registers_buffer()
689 size -= temp; in fill_registers_buffer()
690 next += temp; in fill_registers_buffer()
694 temp = scnprintf(next, size, "structural params 0x%08x\n", i); in fill_registers_buffer()
695 size -= temp; in fill_registers_buffer()
696 next += temp; in fill_registers_buffer()
699 temp = scnprintf(next, size, "capability params 0x%08x\n", i); in fill_registers_buffer()
700 size -= temp; in fill_registers_buffer()
701 next += temp; in fill_registers_buffer()
704 temp = dbg_status_buf(scratch, sizeof(scratch), label, in fill_registers_buffer()
706 temp = scnprintf(next, size, fmt, temp, scratch); in fill_registers_buffer()
707 size -= temp; in fill_registers_buffer()
708 next += temp; in fill_registers_buffer()
710 temp = dbg_command_buf(scratch, sizeof(scratch), label, in fill_registers_buffer()
712 temp = scnprintf(next, size, fmt, temp, scratch); in fill_registers_buffer()
713 size -= temp; in fill_registers_buffer()
714 next += temp; in fill_registers_buffer()
716 temp = dbg_intr_buf(scratch, sizeof(scratch), label, in fill_registers_buffer()
718 temp = scnprintf(next, size, fmt, temp, scratch); in fill_registers_buffer()
719 size -= temp; in fill_registers_buffer()
720 next += temp; in fill_registers_buffer()
722 temp = scnprintf(next, size, "uframe %04x\n", in fill_registers_buffer()
724 size -= temp; in fill_registers_buffer()
725 next += temp; in fill_registers_buffer()
728 temp = scnprintf(next, size, "async unlink qh %p\n", in fill_registers_buffer()
730 size -= temp; in fill_registers_buffer()
731 next += temp; in fill_registers_buffer()
735 temp = scnprintf(next, size, in fill_registers_buffer()
739 size -= temp; in fill_registers_buffer()
740 next += temp; in fill_registers_buffer()
742 temp = scnprintf(next, size, "complete %ld unlink %ld\n", in fill_registers_buffer()
744 size -= temp; in fill_registers_buffer()
745 next += temp; in fill_registers_buffer()
928 u32 temp; in fotg210_halt() local
940 temp = fotg210_readl(fotg210, &fotg210->regs->command); in fotg210_halt()
941 temp &= ~(CMD_RUN | CMD_IAAD); in fotg210_halt()
942 fotg210_writel(fotg210, temp, &fotg210->regs->command); in fotg210_halt()
989 u32 temp; in fotg210_quiesce() local
995 temp = (fotg210->command << 10) & (STS_ASS | STS_PSS); in fotg210_quiesce()
996 handshake(fotg210, &fotg210->regs->status, STS_ASS | STS_PSS, temp, in fotg210_quiesce()
1421 u32 temp, status; in fotg210_hub_status_data() local
1442 temp = fotg210_readl(fotg210, &fotg210->regs->port_status); in fotg210_hub_status_data()
1451 if ((temp & mask) != 0 || test_bit(0, &fotg210->port_c_suspend) || in fotg210_hub_status_data()
1466 u16 temp; in fotg210_hub_descriptor() local
1473 temp = 1 + (ports / 8); in fotg210_hub_descriptor()
1474 desc->bDescLength = 7 + 2 * temp; in fotg210_hub_descriptor()
1477 memset(&desc->u.hs.DeviceRemovable[0], 0, temp); in fotg210_hub_descriptor()
1478 memset(&desc->u.hs.DeviceRemovable[temp], 0xff, temp); in fotg210_hub_descriptor()
1480 temp = HUB_CHAR_INDV_PORT_OCPM; /* per-port overcurrent reporting */ in fotg210_hub_descriptor()
1481 temp |= HUB_CHAR_NO_LPSM; /* no power switching */ in fotg210_hub_descriptor()
1482 desc->wHubCharacteristics = cpu_to_le16(temp); in fotg210_hub_descriptor()
1491 u32 temp, temp1, status; in fotg210_hub_control() local
1519 temp = fotg210_readl(fotg210, status_reg); in fotg210_hub_control()
1520 temp &= ~PORT_RWC_BITS; in fotg210_hub_control()
1531 fotg210_writel(fotg210, temp & ~PORT_PE, status_reg); in fotg210_hub_control()
1534 fotg210_writel(fotg210, temp | PORT_PEC, status_reg); in fotg210_hub_control()
1537 if (temp & PORT_RESET) in fotg210_hub_control()
1539 if (!(temp & PORT_SUSPEND)) in fotg210_hub_control()
1541 if ((temp & PORT_PE) == 0) in fotg210_hub_control()
1545 fotg210_writel(fotg210, temp | PORT_RESUME, status_reg); in fotg210_hub_control()
1553 fotg210_writel(fotg210, temp | PORT_CSC, status_reg); in fotg210_hub_control()
1556 fotg210_writel(fotg210, temp | OTGISR_OVC, in fotg210_hub_control()
1581 temp = fotg210_readl(fotg210, status_reg); in fotg210_hub_control()
1584 if (temp & PORT_CSC) in fotg210_hub_control()
1586 if (temp & PORT_PEC) in fotg210_hub_control()
1594 if (temp & PORT_RESUME) { in fotg210_hub_control()
1614 temp = fotg210_readl(fotg210, status_reg); in fotg210_hub_control()
1615 fotg210_writel(fotg210, temp & in fotg210_hub_control()
1627 temp &= ~(PORT_SUSPEND|PORT_RESUME|(3<<10)); in fotg210_hub_control()
1632 if ((temp & PORT_RESET) && time_after_eq(jiffies, in fotg210_hub_control()
1640 temp & ~(PORT_RWC_BITS | PORT_RESET), in fotg210_hub_control()
1654 temp = check_reset_complete(fotg210, wIndex, status_reg, in fotg210_hub_control()
1658 if (!(temp & (PORT_RESUME|PORT_RESET))) { in fotg210_hub_control()
1664 if ((temp & PORT_CONNECT) && in fotg210_hub_control()
1666 temp &= ~PORT_RWC_BITS; in fotg210_hub_control()
1667 fotg210_writel(fotg210, temp, status_reg); in fotg210_hub_control()
1670 temp = fotg210_readl(fotg210, status_reg); in fotg210_hub_control()
1679 if (temp & PORT_CONNECT) { in fotg210_hub_control()
1681 status |= fotg210_port_speed(fotg210, temp); in fotg210_hub_control()
1683 if (temp & PORT_PE) in fotg210_hub_control()
1687 if (temp & (PORT_SUSPEND|PORT_RESUME)) { in fotg210_hub_control()
1693 if (temp & PORT_PE) in fotg210_hub_control()
1700 if (temp & PORT_RESET) in fotg210_hub_control()
1706 dbg_port(fotg210, "GetStatus", wIndex + 1, temp); in fotg210_hub_control()
1726 temp = fotg210_readl(fotg210, status_reg); in fotg210_hub_control()
1727 temp &= ~PORT_RWC_BITS; in fotg210_hub_control()
1730 if ((temp & PORT_PE) == 0 in fotg210_hub_control()
1731 || (temp & PORT_RESET) != 0) in fotg210_hub_control()
1738 fotg210_writel(fotg210, temp | PORT_SUSPEND, in fotg210_hub_control()
1743 if (temp & PORT_RESUME) in fotg210_hub_control()
1750 temp |= PORT_RESET; in fotg210_hub_control()
1751 temp &= ~PORT_PE; in fotg210_hub_control()
1759 fotg210_writel(fotg210, temp, status_reg); in fotg210_hub_control()
1776 temp = fotg210_readl(fotg210, status_reg) & in fotg210_hub_control()
1778 if (temp & PORT_PE) in fotg210_hub_control()
1779 fotg210_writel(fotg210, temp | PORT_SUSPEND, in fotg210_hub_control()
1786 temp = fotg210_readl(fotg210, status_reg); in fotg210_hub_control()
1787 temp |= selector << 16; in fotg210_hub_control()
1788 fotg210_writel(fotg210, temp, status_reg); in fotg210_hub_control()
2549 struct list_head *entry, *temp; in qtd_list_free() local
2551 list_for_each_safe(entry, temp, qtd_list) { in qtd_list_free()
3256 int temp; in scan_async() local
3265 temp = qh_completions(fotg210, qh); in scan_async()
3272 } else if (temp != 0) in scan_async()
3914 int temp; in scan_intr() local
3923 temp = qh_completions(fotg210, qh); in scan_intr()
3928 else if (temp != 0) in scan_intr()
4940 u32 temp; in hcd_fotg210_init() local
5014 temp = 1 << (16 + log2_irq_thresh); in hcd_fotg210_init()
5025 temp |= CMD_PARK; in hcd_fotg210_init()
5026 temp |= park << 8; in hcd_fotg210_init()
5032 temp &= ~(3 << 2); in hcd_fotg210_init()
5033 temp |= (FOTG210_TUNE_FLS << 2); in hcd_fotg210_init()
5035 fotg210->command = temp; in hcd_fotg210_init()
5047 u32 temp; in fotg210_run() local
5104 temp = HC_VERSION(fotg210, in fotg210_run()
5109 temp >> 8, temp & 0xff); in fotg210_run()