Lines Matching refs:serdev

126 	struct serdev_device *serdev;  member
151 static void nokia_flow_control(struct serdev_device *serdev, bool enable) in nokia_flow_control() argument
154 serdev_device_set_rts(serdev, true); in nokia_flow_control()
155 serdev_device_set_flow_control(serdev, true); in nokia_flow_control()
157 serdev_device_set_flow_control(serdev, false); in nokia_flow_control()
158 serdev_device_set_rts(serdev, false); in nokia_flow_control()
165 struct device *dev = &btdev->serdev->dev; in wakeup_handler()
184 struct device *dev = &btdev->serdev->dev; in nokia_reset()
201 serdev_device_write_flush(btdev->serdev); in nokia_reset()
204 nokia_flow_control(btdev->serdev, false); in nokia_reset()
205 serdev_device_set_baudrate(btdev->serdev, INIT_BAUD_RATE); in nokia_reset()
210 err = serdev_device_wait_for_cts(btdev->serdev, true, 200); in nokia_reset()
216 nokia_flow_control(btdev->serdev, true); in nokia_reset()
224 struct device *dev = &btdev->serdev->dev; in nokia_send_alive_packet()
264 struct device *dev = &btdev->serdev->dev; in nokia_send_negotiation()
310 nokia_flow_control(btdev->serdev, false); in nokia_send_negotiation()
311 serdev_device_set_baudrate(btdev->serdev, SETUP_BAUD_RATE); in nokia_send_negotiation()
312 err = serdev_device_wait_for_cts(btdev->serdev, true, 200); in nokia_send_negotiation()
317 nokia_flow_control(btdev->serdev, true); in nokia_send_negotiation()
327 struct device *dev = &btdev->serdev->dev; in nokia_setup_fw()
396 struct device *dev = &btdev->serdev->dev; in nokia_setup()
401 nokia_flow_control(btdev->serdev, false); in nokia_setup()
407 pm_runtime_put(&btdev->serdev->dev); in nokia_setup()
441 nokia_flow_control(btdev->serdev, false); in nokia_setup()
442 serdev_device_set_baudrate(btdev->serdev, MAX_BAUD_RATE); in nokia_setup()
443 nokia_flow_control(btdev->serdev, true); in nokia_setup()
467 struct device *dev = &hu->serdev->dev; in nokia_open()
480 dev_dbg(&btdev->serdev->dev, "flush device"); in nokia_flush()
490 struct device *dev = &btdev->serdev->dev; in nokia_close()
504 pm_runtime_disable(&btdev->serdev->dev); in nokia_close()
536 struct device *dev = &btdev->serdev->dev; in nokia_recv_negotiation_packet()
573 struct device *dev = &btdev->serdev->dev; in nokia_recv_alive_packet()
626 struct device *dev = &btdev->serdev->dev; in nokia_recv()
647 struct device *dev = &btdev->serdev->dev; in nokia_dequeue()
660 serdev_device_wait_until_sent(btdev->serdev, 0); in nokia_dequeue()
683 static int nokia_bluetooth_serdev_probe(struct serdev_device *serdev) in nokia_bluetooth_serdev_probe() argument
685 struct device *dev = &serdev->dev; in nokia_bluetooth_serdev_probe()
694 btdev->hu.serdev = btdev->serdev = serdev; in nokia_bluetooth_serdev_probe()
695 serdev_device_set_drvdata(serdev, btdev); in nokia_bluetooth_serdev_probe()
755 static void nokia_bluetooth_serdev_remove(struct serdev_device *serdev) in nokia_bluetooth_serdev_remove() argument
757 struct nokia_bt_dev *btdev = serdev_device_get_drvdata(serdev); in nokia_bluetooth_serdev_remove()
764 struct serdev_device *serdev = to_serdev_device(dev); in nokia_bluetooth_runtime_suspend() local
766 nokia_flow_control(serdev, false); in nokia_bluetooth_runtime_suspend()
772 struct serdev_device *serdev = to_serdev_device(dev); in nokia_bluetooth_runtime_resume() local
774 nokia_flow_control(serdev, true); in nokia_bluetooth_runtime_resume()