Lines Matching refs:serdev

121 	struct serdev_device *serdev;  member
146 static void nokia_flow_control(struct serdev_device *serdev, bool enable) in nokia_flow_control() argument
149 serdev_device_set_rts(serdev, true); in nokia_flow_control()
150 serdev_device_set_flow_control(serdev, true); in nokia_flow_control()
152 serdev_device_set_flow_control(serdev, false); in nokia_flow_control()
153 serdev_device_set_rts(serdev, false); in nokia_flow_control()
160 struct device *dev = &btdev->serdev->dev; in wakeup_handler()
179 struct device *dev = &btdev->serdev->dev; in nokia_reset()
196 serdev_device_write_flush(btdev->serdev); in nokia_reset()
199 nokia_flow_control(btdev->serdev, false); in nokia_reset()
200 serdev_device_set_baudrate(btdev->serdev, INIT_BAUD_RATE); in nokia_reset()
205 err = serdev_device_wait_for_cts(btdev->serdev, true, 200); in nokia_reset()
211 nokia_flow_control(btdev->serdev, true); in nokia_reset()
219 struct device *dev = &btdev->serdev->dev; in nokia_send_alive_packet()
259 struct device *dev = &btdev->serdev->dev; in nokia_send_negotiation()
305 nokia_flow_control(btdev->serdev, false); in nokia_send_negotiation()
306 serdev_device_set_baudrate(btdev->serdev, SETUP_BAUD_RATE); in nokia_send_negotiation()
307 err = serdev_device_wait_for_cts(btdev->serdev, true, 200); in nokia_send_negotiation()
312 nokia_flow_control(btdev->serdev, true); in nokia_send_negotiation()
322 struct device *dev = &btdev->serdev->dev; in nokia_setup_fw()
391 struct device *dev = &btdev->serdev->dev; in nokia_setup()
396 nokia_flow_control(btdev->serdev, false); in nokia_setup()
402 pm_runtime_put(&btdev->serdev->dev); in nokia_setup()
436 nokia_flow_control(btdev->serdev, false); in nokia_setup()
437 serdev_device_set_baudrate(btdev->serdev, MAX_BAUD_RATE); in nokia_setup()
438 nokia_flow_control(btdev->serdev, true); in nokia_setup()
462 struct device *dev = &hu->serdev->dev; in nokia_open()
475 dev_dbg(&btdev->serdev->dev, "flush device"); in nokia_flush()
485 struct device *dev = &btdev->serdev->dev; in nokia_close()
499 pm_runtime_disable(&btdev->serdev->dev); in nokia_close()
531 struct device *dev = &btdev->serdev->dev; in nokia_recv_negotiation_packet()
568 struct device *dev = &btdev->serdev->dev; in nokia_recv_alive_packet()
621 struct device *dev = &btdev->serdev->dev; in nokia_recv()
642 struct device *dev = &btdev->serdev->dev; in nokia_dequeue()
655 serdev_device_wait_until_sent(btdev->serdev, 0); in nokia_dequeue()
678 static int nokia_bluetooth_serdev_probe(struct serdev_device *serdev) in nokia_bluetooth_serdev_probe() argument
680 struct device *dev = &serdev->dev; in nokia_bluetooth_serdev_probe()
689 btdev->hu.serdev = btdev->serdev = serdev; in nokia_bluetooth_serdev_probe()
690 serdev_device_set_drvdata(serdev, btdev); in nokia_bluetooth_serdev_probe()
754 static void nokia_bluetooth_serdev_remove(struct serdev_device *serdev) in nokia_bluetooth_serdev_remove() argument
756 struct nokia_bt_dev *btdev = serdev_device_get_drvdata(serdev); in nokia_bluetooth_serdev_remove()
763 struct serdev_device *serdev = to_serdev_device(dev); in nokia_bluetooth_runtime_suspend() local
765 nokia_flow_control(serdev, false); in nokia_bluetooth_runtime_suspend()
771 struct serdev_device *serdev = to_serdev_device(dev); in nokia_bluetooth_runtime_resume() local
773 nokia_flow_control(serdev, true); in nokia_bluetooth_runtime_resume()