Lines Matching refs:ec_uart

90 	struct cros_ec_uart *ec_uart = ec_dev->priv;  in cros_ec_uart_rx_bytes()  local
91 struct response_info *resp = &ec_uart->response; in cros_ec_uart_rx_bytes()
133 struct cros_ec_uart *ec_uart = ec_dev->priv; in cros_ec_uart_pkt_xfer() local
134 struct serdev_device *serdev = ec_uart->serdev; in cros_ec_uart_pkt_xfer()
135 struct response_info *resp = &ec_uart->response; in cros_ec_uart_pkt_xfer()
210 struct cros_ec_uart *ec_uart = data; in cros_ec_uart_resource() local
215 ec_uart->baudrate = sb->default_baud_rate; in cros_ec_uart_resource()
216 dev_dbg(&ec_uart->serdev->dev, "Baudrate %d\n", ec_uart->baudrate); in cros_ec_uart_resource()
218 ec_uart->flowcontrol = sb->flow_control; in cros_ec_uart_resource()
219 dev_dbg(&ec_uart->serdev->dev, "Flow control %d\n", ec_uart->flowcontrol); in cros_ec_uart_resource()
225 static int cros_ec_uart_acpi_probe(struct cros_ec_uart *ec_uart) in cros_ec_uart_acpi_probe() argument
229 struct acpi_device *adev = ACPI_COMPANION(&ec_uart->serdev->dev); in cros_ec_uart_acpi_probe()
231 ret = acpi_dev_get_resources(adev, &resources, cros_ec_uart_resource, ec_uart); in cros_ec_uart_acpi_probe()
242 ec_uart->irq = ret; in cros_ec_uart_acpi_probe()
243 dev_dbg(&ec_uart->serdev->dev, "IRQ number %d\n", ec_uart->irq); in cros_ec_uart_acpi_probe()
256 struct cros_ec_uart *ec_uart; in cros_ec_uart_probe() local
259 ec_uart = devm_kzalloc(dev, sizeof(*ec_uart), GFP_KERNEL); in cros_ec_uart_probe()
260 if (!ec_uart) in cros_ec_uart_probe()
268 init_waitqueue_head(&ec_uart->response.wait_queue); in cros_ec_uart_probe()
270 ec_uart->serdev = serdev; in cros_ec_uart_probe()
272 ret = cros_ec_uart_acpi_probe(ec_uart); in cros_ec_uart_probe()
281 ec_dev->priv = ec_uart; in cros_ec_uart_probe()
282 ec_dev->irq = ec_uart->irq; in cros_ec_uart_probe()
297 ret = serdev_device_set_baudrate(serdev, ec_uart->baudrate); in cros_ec_uart_probe()
303 serdev_device_set_flow_control(serdev, ec_uart->flowcontrol); in cros_ec_uart_probe()