• Home
  • Raw
  • Download

Lines Matching refs:temp

108 	u32		temp;  in tegra_ehci_internal_port_reset()  local
125 temp = ehci_readl(ehci, portsc_reg); in tegra_ehci_internal_port_reset()
126 temp |= PORT_RESET; in tegra_ehci_internal_port_reset()
127 ehci_writel(ehci, temp, portsc_reg); in tegra_ehci_internal_port_reset()
129 temp &= ~PORT_RESET; in tegra_ehci_internal_port_reset()
130 ehci_writel(ehci, temp, portsc_reg); in tegra_ehci_internal_port_reset()
141 temp = ehci_readl(ehci, portsc_reg); in tegra_ehci_internal_port_reset()
142 } while (!(temp & PORT_PE) && tries--); in tegra_ehci_internal_port_reset()
143 if (temp & PORT_PE) in tegra_ehci_internal_port_reset()
153 if (temp & PORT_CSC) in tegra_ehci_internal_port_reset()
160 temp = ehci_readl(ehci, &ehci->regs->status); in tegra_ehci_internal_port_reset()
161 ehci_writel(ehci, temp, &ehci->regs->status); in tegra_ehci_internal_port_reset()
180 u32 temp; in tegra_ehci_hub_control() local
189 temp = ehci_readl(ehci, status_reg); in tegra_ehci_hub_control()
190 if (tegra->port_resuming && !(temp & PORT_SUSPEND)) { in tegra_ehci_hub_control()
198 temp = ehci_readl(ehci, status_reg); in tegra_ehci_hub_control()
199 if ((temp & PORT_PE) == 0 || (temp & PORT_RESET) != 0) { in tegra_ehci_hub_control()
204 temp &= ~(PORT_RWC_BITS | PORT_WKCONN_E); in tegra_ehci_hub_control()
205 temp |= PORT_WKDISC_E | PORT_WKOC_E; in tegra_ehci_hub_control()
206 ehci_writel(ehci, temp | PORT_SUSPEND, status_reg); in tegra_ehci_hub_control()
236 temp = ehci_readl(ehci, status_reg); in tegra_ehci_hub_control()
237 if ((temp & PORT_RESET) || !(temp & PORT_PE)) { in tegra_ehci_hub_control()
242 if (!(temp & PORT_SUSPEND)) in tegra_ehci_hub_control()
250 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS); in tegra_ehci_hub_control()
252 ehci_writel(ehci, temp | PORT_RESUME, status_reg); in tegra_ehci_hub_control()
290 struct dma_aligned_buffer *temp; in free_dma_aligned_buffer() local
296 temp = container_of(urb->transfer_buffer, in free_dma_aligned_buffer()
305 memcpy(temp->old_xfer_buffer, temp->data, length); in free_dma_aligned_buffer()
307 urb->transfer_buffer = temp->old_xfer_buffer; in free_dma_aligned_buffer()
308 kfree(temp->kmalloc_ptr); in free_dma_aligned_buffer()
315 struct dma_aligned_buffer *temp, *kmalloc_ptr; in alloc_dma_aligned_buffer() local
332 temp = PTR_ALIGN(kmalloc_ptr + 1, TEGRA_USB_DMA_ALIGN) - 1; in alloc_dma_aligned_buffer()
333 temp->kmalloc_ptr = kmalloc_ptr; in alloc_dma_aligned_buffer()
334 temp->old_xfer_buffer = urb->transfer_buffer; in alloc_dma_aligned_buffer()
336 memcpy(temp->data, urb->transfer_buffer, in alloc_dma_aligned_buffer()
338 urb->transfer_buffer = temp->data; in alloc_dma_aligned_buffer()