/linux-4.19.296/drivers/gnss/ |
D | serial.c | 25 struct serdev_device *serdev = gserial->serdev; in gnss_serial_open() local 28 ret = serdev_device_open(serdev); in gnss_serial_open() 32 serdev_device_set_baudrate(serdev, gserial->speed); in gnss_serial_open() 33 serdev_device_set_flow_control(serdev, false); in gnss_serial_open() 35 ret = pm_runtime_get_sync(&serdev->dev); in gnss_serial_open() 37 pm_runtime_put_noidle(&serdev->dev); in gnss_serial_open() 44 serdev_device_close(serdev); in gnss_serial_open() 52 struct serdev_device *serdev = gserial->serdev; in gnss_serial_close() local 54 serdev_device_close(serdev); in gnss_serial_close() 56 pm_runtime_put(&serdev->dev); in gnss_serial_close() [all …]
|
D | sirf.c | 31 struct serdev_device *serdev; member 44 struct serdev_device *serdev = data->serdev; in sirf_open() local 47 ret = serdev_device_open(serdev); in sirf_open() 51 serdev_device_set_baudrate(serdev, data->speed); in sirf_open() 52 serdev_device_set_flow_control(serdev, false); in sirf_open() 54 ret = pm_runtime_get_sync(&serdev->dev); in sirf_open() 57 pm_runtime_put_noidle(&serdev->dev); in sirf_open() 64 serdev_device_close(serdev); in sirf_open() 72 struct serdev_device *serdev = data->serdev; in sirf_close() local 74 serdev_device_close(serdev); in sirf_close() [all …]
|
D | ubx.c | 66 static int ubx_probe(struct serdev_device *serdev) in ubx_probe() argument 72 gserial = gnss_serial_allocate(serdev, sizeof(*data)); in ubx_probe() 84 data->vcc = devm_regulator_get(&serdev->dev, "vcc"); in ubx_probe() 90 data->v_bckp = devm_regulator_get_optional(&serdev->dev, "v-bckp"); in ubx_probe() 120 static void ubx_remove(struct serdev_device *serdev) in ubx_remove() argument 122 struct gnss_serial *gserial = serdev_device_get_drvdata(serdev); in ubx_remove()
|
D | serial.h | 15 struct serdev_device *serdev; member
|
/linux-4.19.296/include/linux/ |
D | serdev.h | 114 struct serdev_device *serdev; member 123 static inline void *serdev_device_get_drvdata(const struct serdev_device *serdev) in serdev_device_get_drvdata() argument 125 return dev_get_drvdata(&serdev->dev); in serdev_device_get_drvdata() 128 static inline void serdev_device_set_drvdata(struct serdev_device *serdev, void *data) in serdev_device_set_drvdata() argument 130 dev_set_drvdata(&serdev->dev, data); in serdev_device_set_drvdata() 137 static inline void serdev_device_put(struct serdev_device *serdev) in serdev_device_put() argument 139 if (serdev) in serdev_device_put() 140 put_device(&serdev->dev); in serdev_device_put() 143 static inline void serdev_device_set_client_ops(struct serdev_device *serdev, in serdev_device_set_client_ops() argument 146 serdev->ops = ops; in serdev_device_set_client_ops() [all …]
|
/linux-4.19.296/drivers/bluetooth/ |
D | hci_nokia.c | 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() [all …]
|
D | hci_serdev.c | 71 struct serdev_device *serdev = hu->serdev; in hci_uart_write_work() local 84 len = serdev_device_write_buf(serdev, in hci_uart_write_work() 109 BT_DBG("hdev %p serdev %p", hdev, hu->serdev); in hci_uart_flush() 116 serdev_device_write_flush(hu->serdev); in hci_uart_flush() 178 serdev_device_set_baudrate(hu->serdev, speed); in hci_uart_setup() 193 serdev_device_set_baudrate(hu->serdev, speed); in hci_uart_setup() 223 static void hci_uart_write_wakeup(struct serdev_device *serdev) in hci_uart_write_wakeup() argument 225 struct hci_uart *hu = serdev_device_get_drvdata(serdev); in hci_uart_write_wakeup() 229 if (!hu || serdev != hu->serdev) { in hci_uart_write_wakeup() 248 static int hci_uart_receive_buf(struct serdev_device *serdev, const u8 *data, in hci_uart_receive_buf() argument [all …]
|
D | btmtkuart.c | 63 struct serdev_device *serdev; member 221 struct serdev_device *serdev = bdev->serdev; in btmtkuart_tx_work() local 234 len = serdev_device_write_buf(serdev, skb->data, in btmtkuart_tx_work() 369 static int btmtkuart_receive_buf(struct serdev_device *serdev, const u8 *data, in btmtkuart_receive_buf() argument 372 struct btmtkuart_dev *bdev = serdev_device_get_drvdata(serdev); in btmtkuart_receive_buf() 384 static void btmtkuart_write_wakeup(struct serdev_device *serdev) in btmtkuart_write_wakeup() argument 386 struct btmtkuart_dev *bdev = serdev_device_get_drvdata(serdev); in btmtkuart_write_wakeup() 402 err = serdev_device_open(bdev->serdev); in btmtkuart_open() 405 dev_name(&bdev->serdev->dev)); in btmtkuart_open() 412 dev = &bdev->serdev->dev; in btmtkuart_open() [all …]
|
D | hci_ll.c | 80 struct serdev_device *serdev; member 142 if (hu->serdev) { in ll_open() 143 struct ll_device *lldev = serdev_device_get_drvdata(hu->serdev); in ll_open() 176 if (hu->serdev) { in ll_close() 177 struct ll_device *lldev = serdev_device_get_drvdata(hu->serdev); in ll_close() 519 err = request_firmware(&fw, bts_scr_name, &lldev->serdev->dev); in download_firmware() 605 struct serdev_device *serdev = hu->serdev; in ll_setup() local 608 if (!serdev) in ll_setup() 611 lldev = serdev_device_get_drvdata(serdev); in ll_setup() 615 serdev_device_set_flow_control(serdev, true); in ll_setup() [all …]
|
D | hci_qca.c | 504 if (hu->serdev) { in qca_open() 505 serdev_device_open(hu->serdev); in qca_open() 507 qcadev = serdev_device_get_drvdata(hu->serdev); in qca_open() 614 if (hu->serdev) { in qca_close() 615 qcadev = serdev_device_get_drvdata(hu->serdev); in qca_close() 621 serdev_device_close(hu->serdev); in qca_close() 972 qcadev = serdev_device_get_drvdata(hu->serdev); in qca_set_baudrate() 999 if (hu->serdev) in host_set_baudrate() 1000 serdev_device_set_baudrate(hu->serdev, speed); in host_set_baudrate() 1066 qcadev = serdev_device_get_drvdata(hu->serdev); in qca_check_speeds() [all …]
|
D | hci_bcm.c | 144 if (hu->serdev) in host_set_baudrate() 145 serdev_device_set_baudrate(hu->serdev, speed); in host_set_baudrate() 206 if (device && device->hu && device->hu->serdev) in bcm_device_exists() 394 if (hu->serdev) { in bcm_open() 395 bcm->dev = serdev_device_get_drvdata(hu->serdev); in bcm_open() 432 if (!hu->serdev) in bcm_open() 452 if (hu->serdev) { in bcm_close() 453 bdev = serdev_device_get_drvdata(hu->serdev); in bcm_close() 1305 static int bcm_serdev_probe(struct serdev_device *serdev) in bcm_serdev_probe() argument 1310 bcmdev = devm_kzalloc(&serdev->dev, sizeof(*bcmdev), GFP_KERNEL); in bcm_serdev_probe() [all …]
|
D | hci_h5.c | 217 if (hu->serdev) { in h5_open() 218 h5 = serdev_device_get_drvdata(hu->serdev); in h5_open() 266 if (!hu->serdev) in h5_close() 799 static int h5_serdev_probe(struct serdev_device *serdev) in h5_serdev_probe() argument 802 struct device *dev = &serdev->dev; in h5_serdev_probe() 812 h5->serdev_hu.serdev = serdev; in h5_serdev_probe() 813 serdev_device_set_drvdata(serdev, h5); in h5_serdev_probe() 840 static void h5_serdev_remove(struct serdev_device *serdev) in h5_serdev_remove() argument 842 struct h5 *h5 = serdev_device_get_drvdata(serdev); in h5_serdev_remove() 881 serdev_device_set_baudrate(h5->hu->serdev, controller_baudrate); in h5_btrtl_setup() [all …]
|
D | hci_ldisc.c | 306 if (hu->serdev) in hci_uart_has_flow_control() 324 if (hu->serdev) { in hci_uart_set_flow_control() 325 serdev_device_set_flow_control(hu->serdev, !enable); in hci_uart_set_flow_control() 326 serdev_device_set_rts(hu->serdev, !enable); in hci_uart_set_flow_control()
|
D | hci_uart.h | 81 struct serdev_device *serdev; member
|
/linux-4.19.296/drivers/char/ |
D | Kconfig | 52 source "drivers/tty/serdev/Kconfig"
|
/linux-4.19.296/ |
D | MAINTAINERS | 13108 F: drivers/tty/serdev/ 13109 F: include/linux/serdev.h
|