Lines Matching refs:temp
110 u32 temp; in tegra_ehci_internal_port_reset() local
127 temp = ehci_readl(ehci, portsc_reg); in tegra_ehci_internal_port_reset()
128 temp |= PORT_RESET; in tegra_ehci_internal_port_reset()
129 ehci_writel(ehci, temp, portsc_reg); in tegra_ehci_internal_port_reset()
131 temp &= ~PORT_RESET; in tegra_ehci_internal_port_reset()
132 ehci_writel(ehci, temp, portsc_reg); in tegra_ehci_internal_port_reset()
143 temp = ehci_readl(ehci, portsc_reg); in tegra_ehci_internal_port_reset()
144 } while (!(temp & PORT_PE) && tries--); in tegra_ehci_internal_port_reset()
145 if (temp & PORT_PE) in tegra_ehci_internal_port_reset()
155 if (temp & PORT_CSC) in tegra_ehci_internal_port_reset()
162 temp = ehci_readl(ehci, &ehci->regs->status); in tegra_ehci_internal_port_reset()
163 ehci_writel(ehci, temp, &ehci->regs->status); in tegra_ehci_internal_port_reset()
182 u32 temp; in tegra_ehci_hub_control() local
191 temp = ehci_readl(ehci, status_reg); in tegra_ehci_hub_control()
192 if (tegra->port_resuming && !(temp & PORT_SUSPEND)) { in tegra_ehci_hub_control()
200 temp = ehci_readl(ehci, status_reg); in tegra_ehci_hub_control()
201 if ((temp & PORT_PE) == 0 || (temp & PORT_RESET) != 0) { in tegra_ehci_hub_control()
206 temp &= ~(PORT_RWC_BITS | PORT_WKCONN_E); in tegra_ehci_hub_control()
207 temp |= PORT_WKDISC_E | PORT_WKOC_E; in tegra_ehci_hub_control()
208 ehci_writel(ehci, temp | PORT_SUSPEND, status_reg); in tegra_ehci_hub_control()
238 temp = ehci_readl(ehci, status_reg); in tegra_ehci_hub_control()
239 if ((temp & PORT_RESET) || !(temp & PORT_PE)) { in tegra_ehci_hub_control()
244 if (!(temp & PORT_SUSPEND)) in tegra_ehci_hub_control()
252 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS); in tegra_ehci_hub_control()
254 ehci_writel(ehci, temp | PORT_RESUME, status_reg); in tegra_ehci_hub_control()
292 struct dma_aligned_buffer *temp; in free_dma_aligned_buffer() local
298 temp = container_of(urb->transfer_buffer, in free_dma_aligned_buffer()
307 memcpy(temp->old_xfer_buffer, temp->data, length); in free_dma_aligned_buffer()
309 urb->transfer_buffer = temp->old_xfer_buffer; in free_dma_aligned_buffer()
310 kfree(temp->kmalloc_ptr); in free_dma_aligned_buffer()
317 struct dma_aligned_buffer *temp, *kmalloc_ptr; in alloc_dma_aligned_buffer() local
334 temp = PTR_ALIGN(kmalloc_ptr + 1, TEGRA_USB_DMA_ALIGN) - 1; in alloc_dma_aligned_buffer()
335 temp->kmalloc_ptr = kmalloc_ptr; in alloc_dma_aligned_buffer()
336 temp->old_xfer_buffer = urb->transfer_buffer; in alloc_dma_aligned_buffer()
338 memcpy(temp->data, urb->transfer_buffer, in alloc_dma_aligned_buffer()
340 urb->transfer_buffer = temp->data; in alloc_dma_aligned_buffer()