Lines Matching refs:temp

386 	unsigned		temp;  in qh_lines()  local
407 temp = scnprintf(next, size, in qh_lines()
417 size -= temp; in qh_lines()
418 next += temp; in qh_lines()
434 temp = snprintf(next, size, in qh_lines()
454 if (size < temp) in qh_lines()
455 temp = size; in qh_lines()
456 size -= temp; in qh_lines()
457 next += temp; in qh_lines()
458 if (temp == size) in qh_lines()
462 temp = snprintf(next, size, "\n"); in qh_lines()
463 if (size < temp) in qh_lines()
464 temp = size; in qh_lines()
465 size -= temp; in qh_lines()
466 next += temp; in qh_lines()
478 unsigned temp, size; in fill_async_buffer() local
498 temp = scnprintf(next, size, "\nunlink =\n"); in fill_async_buffer()
499 size -= temp; in fill_async_buffer()
500 next += temp; in fill_async_buffer()
518 unsigned temp, size, seen_count; in fill_periodic_buffer() local
533 temp = scnprintf(next, size, "size = %d\n", fotg210->periodic_size); in fill_periodic_buffer()
534 size -= temp; in fill_periodic_buffer()
535 next += temp; in fill_periodic_buffer()
547 temp = scnprintf(next, size, "%4d: ", i); in fill_periodic_buffer()
548 size -= temp; in fill_periodic_buffer()
549 next += temp; in fill_periodic_buffer()
557 temp = scnprintf(next, size, " qh%d-%04x/%p", in fill_periodic_buffer()
564 size -= temp; in fill_periodic_buffer()
565 next += temp; in fill_periodic_buffer()
567 for (temp = 0; temp < seen_count; temp++) { in fill_periodic_buffer()
568 if (seen[temp].ptr != p.ptr) in fill_periodic_buffer()
571 temp = scnprintf(next, size, in fill_periodic_buffer()
573 size -= temp; in fill_periodic_buffer()
574 next += temp; in fill_periodic_buffer()
579 if (temp == seen_count) { in fill_periodic_buffer()
586 temp = 0; in fill_periodic_buffer()
590 temp++; in fill_periodic_buffer()
603 temp = scnprintf(next, size, in fill_periodic_buffer()
610 temp, in fill_periodic_buffer()
616 temp = 0; in fill_periodic_buffer()
621 temp = scnprintf(next, size, in fill_periodic_buffer()
628 temp = scnprintf(next, size, in fill_periodic_buffer()
634 size -= temp; in fill_periodic_buffer()
635 next += temp; in fill_periodic_buffer()
638 temp = scnprintf(next, size, "\n"); in fill_periodic_buffer()
639 size -= temp; in fill_periodic_buffer()
640 next += temp; in fill_periodic_buffer()
669 unsigned temp, size, i; in fill_registers_buffer() local
695 temp = scnprintf(next, size, in fill_registers_buffer()
703 size -= temp; in fill_registers_buffer()
704 next += temp; in fill_registers_buffer()
708 temp = scnprintf(next, size, "structural params 0x%08x\n", i); in fill_registers_buffer()
709 size -= temp; in fill_registers_buffer()
710 next += temp; in fill_registers_buffer()
713 temp = scnprintf(next, size, "capability params 0x%08x\n", i); in fill_registers_buffer()
714 size -= temp; in fill_registers_buffer()
715 next += temp; in fill_registers_buffer()
718 temp = dbg_status_buf(scratch, sizeof(scratch), label, in fill_registers_buffer()
720 temp = scnprintf(next, size, fmt, temp, scratch); in fill_registers_buffer()
721 size -= temp; in fill_registers_buffer()
722 next += temp; in fill_registers_buffer()
724 temp = dbg_command_buf(scratch, sizeof(scratch), label, in fill_registers_buffer()
726 temp = scnprintf(next, size, fmt, temp, scratch); in fill_registers_buffer()
727 size -= temp; in fill_registers_buffer()
728 next += temp; in fill_registers_buffer()
730 temp = dbg_intr_buf(scratch, sizeof(scratch), label, in fill_registers_buffer()
732 temp = scnprintf(next, size, fmt, temp, scratch); in fill_registers_buffer()
733 size -= temp; in fill_registers_buffer()
734 next += temp; in fill_registers_buffer()
736 temp = scnprintf(next, size, "uframe %04x\n", in fill_registers_buffer()
738 size -= temp; in fill_registers_buffer()
739 next += temp; in fill_registers_buffer()
742 temp = scnprintf(next, size, "async unlink qh %p\n", in fill_registers_buffer()
744 size -= temp; in fill_registers_buffer()
745 next += temp; in fill_registers_buffer()
749 temp = scnprintf(next, size, in fill_registers_buffer()
753 size -= temp; in fill_registers_buffer()
754 next += temp; in fill_registers_buffer()
756 temp = scnprintf(next, size, "complete %ld unlink %ld\n", in fill_registers_buffer()
758 size -= temp; in fill_registers_buffer()
759 next += temp; in fill_registers_buffer()
945 u32 temp; in fotg210_halt() local
957 temp = fotg210_readl(fotg210, &fotg210->regs->command); in fotg210_halt()
958 temp &= ~(CMD_RUN | CMD_IAAD); in fotg210_halt()
959 fotg210_writel(fotg210, temp, &fotg210->regs->command); in fotg210_halt()
1007 u32 temp; in fotg210_quiesce() local
1013 temp = (fotg210->command << 10) & (STS_ASS | STS_PSS); in fotg210_quiesce()
1014 handshake(fotg210, &fotg210->regs->status, STS_ASS | STS_PSS, temp, in fotg210_quiesce()
1461 u32 temp, status; in fotg210_hub_status_data() local
1482 temp = fotg210_readl(fotg210, &fotg210->regs->port_status); in fotg210_hub_status_data()
1491 if ((temp & mask) != 0 || test_bit(0, &fotg210->port_c_suspend) in fotg210_hub_status_data()
1510 u16 temp; in fotg210_hub_descriptor() local
1517 temp = 1 + (ports / 8); in fotg210_hub_descriptor()
1518 desc->bDescLength = 7 + 2 * temp; in fotg210_hub_descriptor()
1521 memset(&desc->u.hs.DeviceRemovable[0], 0, temp); in fotg210_hub_descriptor()
1522 memset(&desc->u.hs.DeviceRemovable[temp], 0xff, temp); in fotg210_hub_descriptor()
1524 temp = HUB_CHAR_INDV_PORT_OCPM; /* per-port overcurrent reporting */ in fotg210_hub_descriptor()
1525 temp |= HUB_CHAR_NO_LPSM; /* no power switching */ in fotg210_hub_descriptor()
1526 desc->wHubCharacteristics = cpu_to_le16(temp); in fotg210_hub_descriptor()
1542 u32 temp, temp1, status; in fotg210_hub_control() local
1570 temp = fotg210_readl(fotg210, status_reg); in fotg210_hub_control()
1571 temp &= ~PORT_RWC_BITS; in fotg210_hub_control()
1582 fotg210_writel(fotg210, temp & ~PORT_PE, status_reg); in fotg210_hub_control()
1585 fotg210_writel(fotg210, temp | PORT_PEC, status_reg); in fotg210_hub_control()
1588 if (temp & PORT_RESET) in fotg210_hub_control()
1590 if (!(temp & PORT_SUSPEND)) in fotg210_hub_control()
1592 if ((temp & PORT_PE) == 0) in fotg210_hub_control()
1596 fotg210_writel(fotg210, temp | PORT_RESUME, status_reg); in fotg210_hub_control()
1604 fotg210_writel(fotg210, temp | PORT_CSC, status_reg); in fotg210_hub_control()
1607 fotg210_writel(fotg210, temp | OTGISR_OVC, in fotg210_hub_control()
1632 temp = fotg210_readl(fotg210, status_reg); in fotg210_hub_control()
1635 if (temp & PORT_CSC) in fotg210_hub_control()
1637 if (temp & PORT_PEC) in fotg210_hub_control()
1645 if (temp & PORT_RESUME) { in fotg210_hub_control()
1665 temp = fotg210_readl(fotg210, status_reg); in fotg210_hub_control()
1667 temp & ~(PORT_RWC_BITS | PORT_RESUME), in fotg210_hub_control()
1678 temp &= ~(PORT_SUSPEND|PORT_RESUME|(3<<10)); in fotg210_hub_control()
1683 if ((temp & PORT_RESET) in fotg210_hub_control()
1692 temp & ~(PORT_RWC_BITS | PORT_RESET), in fotg210_hub_control()
1706 temp = check_reset_complete(fotg210, wIndex, status_reg, in fotg210_hub_control()
1710 if (!(temp & (PORT_RESUME|PORT_RESET))) { in fotg210_hub_control()
1716 if ((temp & PORT_CONNECT) && in fotg210_hub_control()
1718 temp &= ~PORT_RWC_BITS; in fotg210_hub_control()
1719 fotg210_writel(fotg210, temp, status_reg); in fotg210_hub_control()
1722 temp = fotg210_readl(fotg210, status_reg); in fotg210_hub_control()
1731 if (temp & PORT_CONNECT) { in fotg210_hub_control()
1733 status |= fotg210_port_speed(fotg210, temp); in fotg210_hub_control()
1735 if (temp & PORT_PE) in fotg210_hub_control()
1739 if (temp & (PORT_SUSPEND|PORT_RESUME)) { in fotg210_hub_control()
1745 if (temp & PORT_PE) in fotg210_hub_control()
1752 if (temp & PORT_RESET) in fotg210_hub_control()
1758 dbg_port(fotg210, "GetStatus", wIndex + 1, temp); in fotg210_hub_control()
1778 temp = fotg210_readl(fotg210, status_reg); in fotg210_hub_control()
1779 temp &= ~PORT_RWC_BITS; in fotg210_hub_control()
1782 if ((temp & PORT_PE) == 0 in fotg210_hub_control()
1783 || (temp & PORT_RESET) != 0) in fotg210_hub_control()
1790 fotg210_writel(fotg210, temp | PORT_SUSPEND, in fotg210_hub_control()
1795 if (temp & PORT_RESUME) in fotg210_hub_control()
1802 temp |= PORT_RESET; in fotg210_hub_control()
1803 temp &= ~PORT_PE; in fotg210_hub_control()
1811 fotg210_writel(fotg210, temp, status_reg); in fotg210_hub_control()
1828 temp = fotg210_readl(fotg210, status_reg) & in fotg210_hub_control()
1830 if (temp & PORT_PE) in fotg210_hub_control()
1831 fotg210_writel(fotg210, temp | PORT_SUSPEND, in fotg210_hub_control()
1838 temp = fotg210_readl(fotg210, status_reg); in fotg210_hub_control()
1839 temp |= selector << 16; in fotg210_hub_control()
1840 fotg210_writel(fotg210, temp, status_reg); in fotg210_hub_control()
2634 struct list_head *entry, *temp; in qtd_list_free() local
2636 list_for_each_safe(entry, temp, qtd_list) { in qtd_list_free()
3369 int temp; in scan_async() local
3378 temp = qh_completions(fotg210, qh); in scan_async()
3385 } else if (temp != 0) in scan_async()
4060 int temp; in scan_intr() local
4069 temp = qh_completions(fotg210, qh); in scan_intr()
4074 else if (temp != 0) in scan_intr()
5135 u32 temp; in hcd_fotg210_init() local
5209 temp = 1 << (16 + log2_irq_thresh); in hcd_fotg210_init()
5220 temp |= CMD_PARK; in hcd_fotg210_init()
5221 temp |= park << 8; in hcd_fotg210_init()
5227 temp &= ~(3 << 2); in hcd_fotg210_init()
5228 temp |= (FOTG210_TUNE_FLS << 2); in hcd_fotg210_init()
5230 fotg210->command = temp; in hcd_fotg210_init()
5242 u32 temp; in fotg210_run() local
5299 temp = HC_VERSION(fotg210, in fotg210_run()
5304 temp >> 8, temp & 0xff); in fotg210_run()