Lines Matching refs:serdev

77 	struct serdev_device *serdev;  member
84 static int cros_ec_uart_rx_bytes(struct serdev_device *serdev, in cros_ec_uart_rx_bytes() argument
89 struct cros_ec_device *ec_dev = serdev_device_get_drvdata(serdev); in cros_ec_uart_rx_bytes()
134 struct serdev_device *serdev = ec_uart->serdev; in cros_ec_uart_pkt_xfer() local
151 ret = serdev_device_write_buf(serdev, ec_dev->dout, len); in cros_ec_uart_pkt_xfer()
216 dev_dbg(&ec_uart->serdev->dev, "Baudrate %d\n", ec_uart->baudrate); in cros_ec_uart_resource()
219 dev_dbg(&ec_uart->serdev->dev, "Flow control %d\n", ec_uart->flowcontrol); in cros_ec_uart_resource()
229 struct acpi_device *adev = ACPI_COMPANION(&ec_uart->serdev->dev); 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()
252 static int cros_ec_uart_probe(struct serdev_device *serdev) in cros_ec_uart_probe() argument
254 struct device *dev = &serdev->dev; in cros_ec_uart_probe()
267 ret = devm_serdev_device_open(dev, serdev); in cros_ec_uart_probe()
273 serdev_device_set_drvdata(serdev, ec_dev); in cros_ec_uart_probe()
276 ec_uart->serdev = serdev; in cros_ec_uart_probe()
284 ret = serdev_device_set_baudrate(serdev, ec_uart->baudrate); in cros_ec_uart_probe()
290 serdev_device_set_flow_control(serdev, ec_uart->flowcontrol); in cros_ec_uart_probe()
303 serdev_device_set_client_ops(serdev, &cros_ec_uart_client_ops); in cros_ec_uart_probe()
308 static void cros_ec_uart_remove(struct serdev_device *serdev) in cros_ec_uart_remove() argument
310 struct cros_ec_device *ec_dev = serdev_device_get_drvdata(serdev); in cros_ec_uart_remove()