Lines Matching refs:serdev

135 	struct serdev_device *serdev;  member
160 static void nokia_flow_control(struct serdev_device *serdev, bool enable) in nokia_flow_control() argument
163 serdev_device_set_rts(serdev, true); in nokia_flow_control()
164 serdev_device_set_flow_control(serdev, true); in nokia_flow_control()
166 serdev_device_set_flow_control(serdev, false); in nokia_flow_control()
167 serdev_device_set_rts(serdev, false); in nokia_flow_control()
174 struct device *dev = &btdev->serdev->dev; in wakeup_handler()
193 struct device *dev = &btdev->serdev->dev; in nokia_reset()
210 serdev_device_write_flush(btdev->serdev); in nokia_reset()
213 nokia_flow_control(btdev->serdev, false); in nokia_reset()
214 serdev_device_set_baudrate(btdev->serdev, INIT_BAUD_RATE); in nokia_reset()
219 err = serdev_device_wait_for_cts(btdev->serdev, true, 200); in nokia_reset()
225 nokia_flow_control(btdev->serdev, true); in nokia_reset()
233 struct device *dev = &btdev->serdev->dev; in nokia_send_alive_packet()
273 struct device *dev = &btdev->serdev->dev; in nokia_send_negotiation()
319 nokia_flow_control(btdev->serdev, false); in nokia_send_negotiation()
320 serdev_device_set_baudrate(btdev->serdev, SETUP_BAUD_RATE); in nokia_send_negotiation()
321 err = serdev_device_wait_for_cts(btdev->serdev, true, 200); in nokia_send_negotiation()
326 nokia_flow_control(btdev->serdev, true); in nokia_send_negotiation()
336 struct device *dev = &btdev->serdev->dev; in nokia_setup_fw()
405 struct device *dev = &btdev->serdev->dev; in nokia_setup()
410 nokia_flow_control(btdev->serdev, false); in nokia_setup()
416 pm_runtime_put(&btdev->serdev->dev); in nokia_setup()
450 nokia_flow_control(btdev->serdev, false); in nokia_setup()
451 serdev_device_set_baudrate(btdev->serdev, MAX_BAUD_RATE); in nokia_setup()
452 nokia_flow_control(btdev->serdev, true); in nokia_setup()
476 struct device *dev = &hu->serdev->dev; in nokia_open()
489 dev_dbg(&btdev->serdev->dev, "flush device"); in nokia_flush()
499 struct device *dev = &btdev->serdev->dev; in nokia_close()
513 pm_runtime_disable(&btdev->serdev->dev); in nokia_close()
545 struct device *dev = &btdev->serdev->dev; in nokia_recv_negotiation_packet()
582 struct device *dev = &btdev->serdev->dev; in nokia_recv_alive_packet()
635 struct device *dev = &btdev->serdev->dev; in nokia_recv()
656 struct device *dev = &btdev->serdev->dev; in nokia_dequeue()
669 serdev_device_wait_until_sent(btdev->serdev, 0); in nokia_dequeue()
692 static int nokia_bluetooth_serdev_probe(struct serdev_device *serdev) in nokia_bluetooth_serdev_probe() argument
694 struct device *dev = &serdev->dev; in nokia_bluetooth_serdev_probe()
703 btdev->hu.serdev = btdev->serdev = serdev; in nokia_bluetooth_serdev_probe()
704 serdev_device_set_drvdata(serdev, btdev); in nokia_bluetooth_serdev_probe()
768 static void nokia_bluetooth_serdev_remove(struct serdev_device *serdev) in nokia_bluetooth_serdev_remove() argument
770 struct nokia_bt_dev *btdev = serdev_device_get_drvdata(serdev); in nokia_bluetooth_serdev_remove()
777 struct serdev_device *serdev = to_serdev_device(dev); in nokia_bluetooth_runtime_suspend() local
779 nokia_flow_control(serdev, false); in nokia_bluetooth_runtime_suspend()
785 struct serdev_device *serdev = to_serdev_device(dev); in nokia_bluetooth_runtime_resume() local
787 nokia_flow_control(serdev, true); in nokia_bluetooth_runtime_resume()