Lines Matching refs:temp

124 	u32		temp;  in tegra_ehci_internal_port_reset()  local
141 temp = ehci_readl(ehci, portsc_reg); in tegra_ehci_internal_port_reset()
142 temp |= PORT_RESET; in tegra_ehci_internal_port_reset()
143 ehci_writel(ehci, temp, portsc_reg); in tegra_ehci_internal_port_reset()
145 temp &= ~PORT_RESET; in tegra_ehci_internal_port_reset()
146 ehci_writel(ehci, temp, portsc_reg); in tegra_ehci_internal_port_reset()
157 temp = ehci_readl(ehci, portsc_reg); in tegra_ehci_internal_port_reset()
158 } while (!(temp & PORT_PE) && tries--); in tegra_ehci_internal_port_reset()
159 if (temp & PORT_PE) in tegra_ehci_internal_port_reset()
169 if (temp & PORT_CSC) in tegra_ehci_internal_port_reset()
176 temp = ehci_readl(ehci, &ehci->regs->status); in tegra_ehci_internal_port_reset()
177 ehci_writel(ehci, temp, &ehci->regs->status); in tegra_ehci_internal_port_reset()
196 u32 temp; in tegra_ehci_hub_control() local
205 temp = ehci_readl(ehci, status_reg); in tegra_ehci_hub_control()
206 if (tegra->port_resuming && !(temp & PORT_SUSPEND)) { in tegra_ehci_hub_control()
214 temp = ehci_readl(ehci, status_reg); in tegra_ehci_hub_control()
215 if ((temp & PORT_PE) == 0 || (temp & PORT_RESET) != 0) { in tegra_ehci_hub_control()
220 temp &= ~(PORT_RWC_BITS | PORT_WKCONN_E); in tegra_ehci_hub_control()
221 temp |= PORT_WKDISC_E | PORT_WKOC_E; in tegra_ehci_hub_control()
222 ehci_writel(ehci, temp | PORT_SUSPEND, status_reg); in tegra_ehci_hub_control()
252 temp = ehci_readl(ehci, status_reg); in tegra_ehci_hub_control()
253 if ((temp & PORT_RESET) || !(temp & PORT_PE)) { in tegra_ehci_hub_control()
258 if (!(temp & PORT_SUSPEND)) in tegra_ehci_hub_control()
266 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS); in tegra_ehci_hub_control()
268 ehci_writel(ehci, temp | PORT_RESUME, status_reg); in tegra_ehci_hub_control()
306 struct dma_aligned_buffer *temp; in free_dma_aligned_buffer() local
311 temp = container_of(urb->transfer_buffer, in free_dma_aligned_buffer()
315 memcpy(temp->old_xfer_buffer, temp->data, in free_dma_aligned_buffer()
317 urb->transfer_buffer = temp->old_xfer_buffer; in free_dma_aligned_buffer()
318 kfree(temp->kmalloc_ptr); in free_dma_aligned_buffer()
325 struct dma_aligned_buffer *temp, *kmalloc_ptr; in alloc_dma_aligned_buffer() local
342 temp = PTR_ALIGN(kmalloc_ptr + 1, TEGRA_USB_DMA_ALIGN) - 1; in alloc_dma_aligned_buffer()
343 temp->kmalloc_ptr = kmalloc_ptr; in alloc_dma_aligned_buffer()
344 temp->old_xfer_buffer = urb->transfer_buffer; in alloc_dma_aligned_buffer()
346 memcpy(temp->data, urb->transfer_buffer, in alloc_dma_aligned_buffer()
348 urb->transfer_buffer = temp->data; in alloc_dma_aligned_buffer()