• Home
  • Raw
  • Download

Lines Matching full:temp

60 	u32 temp;  in xhci_create_usb3_bos_desc()  local
99 temp = readl(&xhci->cap_regs->hcc_params); in xhci_create_usb3_bos_desc()
100 if (HCC_LTC(temp)) in xhci_create_usb3_bos_desc()
105 temp = readl(&xhci->cap_regs->hcs_params3); in xhci_create_usb3_bos_desc()
106 buf[12] = HCS_U1_LATENCY(temp); in xhci_create_usb3_bos_desc()
107 put_unaligned_le16(HCS_U2_LATENCY(temp), &buf[13]); in xhci_create_usb3_bos_desc()
172 u16 temp; in xhci_common_hub_descriptor() local
177 temp = 0; in xhci_common_hub_descriptor()
180 temp |= HUB_CHAR_INDV_PORT_LPSM; in xhci_common_hub_descriptor()
182 temp |= HUB_CHAR_NO_LPSM; in xhci_common_hub_descriptor()
185 temp |= HUB_CHAR_INDV_PORT_OCPM; in xhci_common_hub_descriptor()
188 desc->wHubCharacteristics = cpu_to_le16(temp); in xhci_common_hub_descriptor()
196 u16 temp; in xhci_usb2_hub_descriptor() local
206 temp = 1 + (ports / 8); in xhci_usb2_hub_descriptor()
207 desc->bDescLength = USB_DT_HUB_NONVAR_SIZE + 2 * temp; in xhci_usb2_hub_descriptor()
575 u32 temp; in xhci_set_port_power() local
579 temp = readl(port->addr); in xhci_set_port_power()
582 hcd->self.busnum, index + 1, on ? "ON" : "OFF", temp); in xhci_set_port_power()
584 temp = xhci_port_state_to_neutral(temp); in xhci_set_port_power()
588 writel(temp | PORT_POWER, port->addr); in xhci_set_port_power()
592 writel(temp & ~PORT_POWER, port->addr); in xhci_set_port_power()
596 temp = usb_acpi_power_manageable(hcd->self.root_hub, in xhci_set_port_power()
598 if (temp) in xhci_set_port_power()
607 u32 temp; in xhci_port_set_test_mode() local
612 temp = readl(port->addr + PORTPMSC); in xhci_port_set_test_mode()
613 temp |= test_mode << PORT_TEST_MODE_SHIFT; in xhci_port_set_test_mode()
614 writel(temp, port->addr + PORTPMSC); in xhci_port_set_test_mode()
685 u32 temp; in xhci_set_link_state() local
689 temp = xhci_port_state_to_neutral(portsc); in xhci_set_link_state()
690 temp &= ~PORT_PLS_MASK; in xhci_set_link_state()
691 temp |= PORT_LINK_STROBE | link_state; in xhci_set_link_state()
692 writel(temp, port->addr); in xhci_set_link_state()
696 portsc, temp); in xhci_set_link_state()
702 u32 temp; in xhci_set_remote_wake_mask() local
704 temp = readl(port->addr); in xhci_set_remote_wake_mask()
705 temp = xhci_port_state_to_neutral(temp); in xhci_set_remote_wake_mask()
708 temp |= PORT_WKCONN_E; in xhci_set_remote_wake_mask()
710 temp &= ~PORT_WKCONN_E; in xhci_set_remote_wake_mask()
713 temp |= PORT_WKDISC_E; in xhci_set_remote_wake_mask()
715 temp &= ~PORT_WKDISC_E; in xhci_set_remote_wake_mask()
718 temp |= PORT_WKOC_E; in xhci_set_remote_wake_mask()
720 temp &= ~PORT_WKOC_E; in xhci_set_remote_wake_mask()
722 writel(temp, port->addr); in xhci_set_remote_wake_mask()
729 u32 temp; in xhci_test_and_clear_bit() local
731 temp = readl(port->addr); in xhci_test_and_clear_bit()
732 if (temp & port_bit) { in xhci_test_and_clear_bit()
733 temp = xhci_port_state_to_neutral(temp); in xhci_test_and_clear_bit()
734 temp |= port_bit; in xhci_test_and_clear_bit()
735 writel(temp, port->addr); in xhci_test_and_clear_bit()
1101 u32 temp, status; in xhci_hub_control() local
1152 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1153 if (temp == ~(u32)0) { in xhci_hub_control()
1158 trace_xhci_get_port_status(wIndex, temp); in xhci_hub_control()
1159 status = xhci_get_port_status(hcd, bus_state, wIndex, temp, in xhci_hub_control()
1165 hcd->self.busnum, wIndex + 1, temp, status); in xhci_hub_control()
1178 status = xhci_get_ext_port_status(temp, port_li); in xhci_hub_control()
1195 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1196 if (temp == ~(u32)0) { in xhci_hub_control()
1201 temp = xhci_port_state_to_neutral(temp); in xhci_hub_control()
1205 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1206 if ((temp & PORT_PLS_MASK) != XDEV_U0) { in xhci_hub_control()
1218 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1219 if ((temp & PORT_PE) == 0 || (temp & PORT_RESET) in xhci_hub_control()
1220 || (temp & PORT_PLS_MASK) >= XDEV_U3) { in xhci_hub_control()
1243 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1247 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1252 temp = xhci_port_state_to_neutral(temp); in xhci_hub_control()
1257 temp |= PORT_CSC | PORT_PEC | PORT_WRC | in xhci_hub_control()
1260 writel(temp | PORT_PE, ports[wIndex]->addr); in xhci_hub_control()
1261 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1271 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1295 if ((temp & PORT_CONNECT)) { in xhci_hub_control()
1305 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1309 if (!(temp & PORT_PE)) { in xhci_hub_control()
1329 u32 pls = temp & PORT_PLS_MASK; in xhci_hub_control()
1355 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1375 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1376 if ((temp & PORT_PLS_MASK) == XDEV_U3) in xhci_hub_control()
1380 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1394 temp = (temp | PORT_RESET); in xhci_hub_control()
1395 writel(temp, ports[wIndex]->addr); in xhci_hub_control()
1397 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1399 hcd->self.busnum, wIndex + 1, temp); in xhci_hub_control()
1404 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1406 hcd->self.busnum, wIndex + 1, temp); in xhci_hub_control()
1409 temp |= PORT_WR; in xhci_hub_control()
1410 writel(temp, ports[wIndex]->addr); in xhci_hub_control()
1411 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1416 temp = readl(ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1417 temp &= ~PORT_U1_TIMEOUT_MASK; in xhci_hub_control()
1418 temp |= PORT_U1_TIMEOUT(timeout); in xhci_hub_control()
1419 writel(temp, ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1424 temp = readl(ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1425 temp &= ~PORT_U2_TIMEOUT_MASK; in xhci_hub_control()
1426 temp |= PORT_U2_TIMEOUT(timeout); in xhci_hub_control()
1427 writel(temp, ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1443 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1449 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1450 if (temp == ~(u32)0) { in xhci_hub_control()
1456 temp = xhci_port_state_to_neutral(temp); in xhci_hub_control()
1459 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1461 xhci_dbg(xhci, "PORTSC %04x\n", temp); in xhci_hub_control()
1462 if (temp & PORT_RESET) in xhci_hub_control()
1464 if ((temp & PORT_PLS_MASK) == XDEV_U3) { in xhci_hub_control()
1465 if ((temp & PORT_PE) == 0) in xhci_hub_control()
1501 ports[wIndex]->addr, temp); in xhci_hub_control()
1505 ports[wIndex]->addr, temp); in xhci_hub_control()
1537 u32 temp, status; in xhci_hub_status_data() local
1579 temp = readl(ports[i]->addr); in xhci_hub_status_data()
1580 if (temp == ~(u32)0) { in xhci_hub_status_data()
1585 trace_xhci_hub_status_data(i, temp); in xhci_hub_status_data()
1587 if ((temp & mask) != 0 || in xhci_hub_status_data()
1594 if ((temp & PORT_RC)) in xhci_hub_status_data()
1596 if (temp & PORT_OC) in xhci_hub_status_data()
1776 u32 temp, portsc; in xhci_bus_resume() local
1795 temp = readl(&xhci->op_regs->command); in xhci_bus_resume()
1796 temp &= ~CMD_EIE; in xhci_bus_resume()
1797 writel(temp, &xhci->op_regs->command); in xhci_bus_resume()
1874 temp = readl(&xhci->op_regs->command); in xhci_bus_resume()
1875 temp |= CMD_EIE; in xhci_bus_resume()
1876 writel(temp, &xhci->op_regs->command); in xhci_bus_resume()
1877 temp = readl(&xhci->op_regs->command); in xhci_bus_resume()