Lines Matching defs:device

478 	struct device *dev = sport->port.dev;
498 ret = dma_map_sg(chan->device->dev, sgl, sport->dma_tx_nents,
509 dma_unmap_sg(chan->device->dev, sgl, sport->dma_tx_nents,
541 dma_unmap_sg(chan->device->dev, sgl, sport->dma_tx_nents,
611 dma_unmap_sg(chan->device->dev, &sport->tx_sgl[0],
1183 dma_sync_sg_for_cpu(chan->device->dev, &sport->rx_sgl, 1,
1244 dma_sync_sg_for_device(chan->device->dev, &sport->rx_sgl, 1,
1381 nent = dma_map_sg(chan->device->dev, &sport->rx_sgl, 1,
1445 dma_unmap_sg(chan->device->dev, &sport->rx_sgl, 1, DMA_FROM_DEVICE);
2670 .device = uart_console_device,
2680 .device = uart_console_device,
2701 static int __init lpuart_early_console_setup(struct earlycon_device *device,
2704 if (!device->port.membase)
2707 device->con->write = lpuart_early_write;
2711 static int __init lpuart32_early_console_setup(struct earlycon_device *device,
2714 if (!device->port.membase)
2717 if (device->port.iotype != UPIO_MEM32)
2718 device->port.iotype = UPIO_MEM32BE;
2720 device->con->write = lpuart32_early_write;
2724 static int __init ls1028a_early_console_setup(struct earlycon_device *device,
2729 if (!device->port.membase)
2732 device->port.iotype = UPIO_MEM32;
2733 device->con->write = lpuart32_early_write;
2736 if (device->port.uartclk && device->baud)
2737 __lpuart32_serial_setbrg(&device->port, device->baud,
2741 cr = lpuart32_read(&device->port, UARTCTRL);
2743 lpuart32_write(&device->port, cr, UARTCTRL);
2748 static int __init lpuart32_imx_early_console_setup(struct earlycon_device *device,
2751 if (!device->port.membase)
2754 device->port.iotype = UPIO_MEM32;
2755 device->port.membase += IMX_REG_OFF;
2756 device->con->write = lpuart32_early_write;
2982 static int lpuart_runtime_suspend(struct device *dev)
2992 static int lpuart_runtime_resume(struct device *dev)
3034 struct device *tty_dev;
3051 static int lpuart_suspend_noirq(struct device *dev)
3064 static int lpuart_resume_noirq(struct device *dev)
3084 static int lpuart_suspend(struct device *dev)
3179 static int lpuart_resume(struct device *dev)