Home
last modified time | relevance | path

Searched refs:serdev (Results 1 – 25 of 47) sorted by relevance

12

/linux/drivers/tty/serdev/
A Dcore.c61 kfree(serdev); in serdev_device_release()
108 dev_set_name(&serdev->dev, "%s-%d", dev_name(parent), serdev->nr); in serdev_device_add()
111 if (ctrl->serdev) { in serdev_device_add()
115 ctrl->serdev = serdev; in serdev_device_add()
129 ctrl->serdev = NULL; in serdev_device_add()
208 *dr = serdev; in devm_serdev_device_open()
451 serdev = kzalloc(sizeof(*serdev), GFP_KERNEL); in serdev_device_alloc()
452 if (!serdev) in serdev_device_alloc()
462 return serdev; in serdev_device_alloc()
534 if (!serdev) in of_serdev_register_devices()
[all …]
A D.built-in.a.cmd1serdev/built-in.a := echo >/dev/null; rm -f drivers/tty/serdev/built-in.a; /usr/bin/ccache /home/t…
A DMakefile2 serdev-objs := core.o
4 obj-$(CONFIG_SERIAL_DEV_BUS) += serdev.o
6 obj-$(CONFIG_SERIAL_DEV_CTRL_TTYPORT) += serdev-ttyport.o
/linux/drivers/gnss/
A Dserial.c25 struct serdev_device *serdev = gserial->serdev; in gnss_serial_open() local
28 ret = serdev_device_open(serdev); 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()
63 struct serdev_device *serdev = gserial->serdev; in gnss_serial_write_raw() local
143 gserial->serdev = serdev; in gnss_serial_allocate()
173 struct serdev_device *serdev = gserial->serdev; in gnss_serial_register() local
177 pm_runtime_enable(&serdev->dev); in gnss_serial_register()
[all …]
A Dsirf.c40 struct serdev_device *serdev; member
84 serdev_device_close(data->serdev); in sirf_serdev_close()
91 struct serdev_device *serdev = data->serdev; in sirf_open() local
109 pm_runtime_put_noidle(&serdev->dev); in sirf_open()
128 struct serdev_device *serdev = data->serdev; in sirf_close() local
132 pm_runtime_put(&serdev->dev); in sirf_close()
143 struct serdev_device *serdev = data->serdev; in sirf_write_raw() local
397 struct device *dev = &serdev->dev; in sirf_probe()
414 data->serdev = serdev; in sirf_probe()
424 ret = sirf_parse_dt(serdev); in sirf_probe()
[all …]
A Dmtk.c66 static int mtk_probe(struct serdev_device *serdev) in mtk_probe() argument
72 gserial = gnss_serial_allocate(serdev, sizeof(*data)); in mtk_probe()
84 data->vcc = devm_regulator_get(&serdev->dev, "vcc"); in mtk_probe()
90 data->vbackup = devm_regulator_get_optional(&serdev->dev, "vbackup"); in mtk_probe()
120 static void mtk_remove(struct serdev_device *serdev) in mtk_remove() argument
122 struct gnss_serial *gserial = serdev_device_get_drvdata(serdev); in mtk_remove()
A Dubx.c66 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()
/linux/include/linux/
A Dserdev.h106 struct serdev_device *serdev; member
122 dev_set_drvdata(&serdev->dev, data); in serdev_device_set_drvdata()
131 if (serdev) in serdev_device_put()
132 put_device(&serdev->dev); in serdev_device_put()
138 serdev->ops = ops; in serdev_device_set_client_ops()
173 struct serdev_device *serdev = ctrl->serdev; in serdev_controller_write_wakeup() local
175 if (!serdev || !serdev->ops->write_wakeup) in serdev_controller_write_wakeup()
178 serdev->ops->write_wakeup(serdev); in serdev_controller_write_wakeup()
185 struct serdev_device *serdev = ctrl->serdev; in serdev_controller_receive_buf() local
187 if (!serdev || !serdev->ops->receive_buf) in serdev_controller_receive_buf()
[all …]
/linux/drivers/nfc/pn533/
A Duart.c29 struct serdev_device *serdev; member
60 err = serdev_device_write(pn532->serdev, in pn532_uart_send_frame()
108 ret = serdev_device_open(pn532->serdev); in pn532_dev_up()
120 serdev_device_close(pn532->serdev); in pn532_dev_down()
253 pn532->serdev = serdev; in pn532_uart_probe()
254 serdev_device_set_drvdata(serdev, pn532); in pn532_uart_probe()
256 err = serdev_device_open(serdev); in pn532_uart_probe()
274 &pn532->serdev->dev); in pn532_uart_probe()
285 serdev_device_close(serdev); in pn532_uart_probe()
297 serdev_device_close(serdev); in pn532_uart_probe()
[all …]
/linux/drivers/nfc/s3fwrn5/
A Duart.c54 static int s3fwrn82_uart_read(struct serdev_device *serdev, in s3fwrn82_uart_read() argument
95 struct device_node *np = serdev->dev.of_node; in s3fwrn82_uart_parse_dt()
127 phy->ser_dev = serdev; in s3fwrn82_uart_probe()
128 serdev_device_set_drvdata(serdev, phy); in s3fwrn82_uart_probe()
130 ret = serdev_device_open(serdev); in s3fwrn82_uart_probe()
132 dev_err(&serdev->dev, "Unable to open device\n"); in s3fwrn82_uart_probe()
136 ret = serdev_device_set_baudrate(serdev, 115200); in s3fwrn82_uart_probe()
142 serdev_device_set_flow_control(serdev, false); in s3fwrn82_uart_probe()
144 ret = s3fwrn82_uart_parse_dt(serdev); in s3fwrn82_uart_probe()
167 serdev_device_close(serdev); in s3fwrn82_uart_probe()
[all …]
/linux/drivers/net/ethernet/qualcomm/
A Dqca_uart.c53 struct serdev_device *serdev; member
66 struct qcauart *qca = serdev_device_get_drvdata(serdev); in qca_tty_receive()
333 SET_NETDEV_DEV(qcauart_dev, &serdev->dev); in qca_uart_probe()
342 qca->serdev = serdev; in qca_uart_probe()
358 serdev_device_set_drvdata(serdev, qca); in qca_uart_probe()
361 ret = serdev_device_open(serdev); in qca_uart_probe()
363 dev_err(&serdev->dev, "Unable to open device %s\n", in qca_uart_probe()
368 speed = serdev_device_set_baudrate(serdev, speed); in qca_uart_probe()
371 serdev_device_set_flow_control(serdev, false); in qca_uart_probe()
377 serdev_device_close(serdev); in qca_uart_probe()
[all …]
/linux/drivers/bluetooth/
A Dhci_nokia.c126 struct serdev_device *serdev; member
154 serdev_device_set_rts(serdev, true); 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()
216 nokia_flow_control(btdev->serdev, true); in nokia_reset()
407 pm_runtime_put(&btdev->serdev->dev); in nokia_setup()
467 struct device *dev = &hu->serdev->dev; in nokia_open()
685 struct device *dev = &serdev->dev; in nokia_bluetooth_serdev_probe()
694 btdev->hu.serdev = btdev->serdev = serdev; in nokia_bluetooth_serdev_probe()
766 nokia_flow_control(serdev, false); in nokia_bluetooth_runtime_suspend()
[all …]
A Dhci_serdev.c60 struct serdev_device *serdev = hu->serdev; in hci_uart_write_work() local
73 len = serdev_device_write_buf(serdev, in hci_uart_write_work()
105 serdev_device_write_flush(hu->serdev); in hci_uart_flush()
126 err = serdev_device_open(hu->serdev); in hci_uart_open()
157 serdev_device_close(hu->serdev); in hci_uart_close()
246 if (!hu || serdev != hu->serdev) { in hci_uart_write_wakeup()
270 if (!hu || serdev != hu->serdev) { in hci_uart_receive_buf()
304 err = serdev_device_open(hu->serdev); in hci_uart_register_device()
344 SET_HCIDEV_DEV(hdev, &hu->serdev->dev); in hci_uart_register_device()
379 serdev_device_close(hu->serdev); in hci_uart_register_device()
[all …]
A Dbtmtkuart.c117 struct serdev_device *serdev; member
375 struct serdev_device *serdev = bdev->serdev; in btmtkuart_tx_work() local
559 dev_name(&bdev->serdev->dev)); in btmtkuart_open()
573 dev_name(&bdev->serdev->dev)); in btmtkuart_open()
583 dev = &bdev->serdev->dev; in btmtkuart_open()
602 serdev_device_close(bdev->serdev); in btmtkuart_open()
617 serdev_device_close(bdev->serdev); in btmtkuart_close()
939 dev_err(&serdev->dev, in btmtkuart_parse_dt()
980 bdev->serdev = serdev; in btmtkuart_probe()
985 err = btmtkuart_parse_dt(serdev); in btmtkuart_probe()
[all …]
A Dhci_ll.c67 struct serdev_device *serdev; member
129 if (hu->serdev) { in ll_open()
164 if (hu->serdev) { in ll_close()
612 struct serdev_device *serdev = hu->serdev; in ll_setup() local
615 if (!serdev) in ll_setup()
618 lldev = serdev_device_get_drvdata(serdev); in ll_setup()
622 serdev_device_set_flow_control(serdev, true); in ll_setup()
676 serdev_device_set_baudrate(serdev, speed); in ll_setup()
697 serdev_device_set_drvdata(serdev, lldev); in hci_ti_probe()
698 lldev->serdev = hu->serdev = serdev; in hci_ti_probe()
[all …]
A Dhci_qca.c240 if (hu->serdev) { in qca_soc_type()
253 if (hu->serdev) { in qca_get_firmware_name()
605 if (hu->serdev) { in qca_open()
1308 if (hu->serdev) in qca_set_baudrate()
1324 if (hu->serdev) in host_set_baudrate()
1606 serdev_device_close(hu->serdev); in qca_regulator_init()
1651 serdev_device_close(hu->serdev); in qca_regulator_init()
1674 if (!hu->serdev) in qca_power_on()
1786 if (hu->serdev) { in qca_setup()
1898 if (!hu->serdev) in qca_power_shutdown()
[all …]
A Dhci_h5.c219 if (hu->serdev) { in h5_open()
220 h5 = serdev_device_get_drvdata(hu->serdev); in h5_open()
268 if (!hu->serdev) in h5_close()
590 if (hu->serdev) { in h5_recv()
591 pm_runtime_get(&hu->serdev->dev); in h5_recv()
632 pm_runtime_get_sync(&hu->serdev->dev); in h5_enqueue()
816 struct device *dev = &serdev->dev; in h5_serdev_probe()
825 h5->serdev_hu.serdev = serdev; in h5_serdev_probe()
826 serdev_device_set_drvdata(serdev, h5); in h5_serdev_probe()
966 pm_runtime_enable(&h5->hu->serdev->dev); in h5_btrtl_open()
[all …]
A Dhci_mrvl.c76 if (hu->serdev) { in mrvl_open()
77 ret = serdev_device_open(hu->serdev); in mrvl_open()
95 if (hu->serdev) in mrvl_close()
96 serdev_device_close(hu->serdev); in mrvl_close()
369 if (hu->serdev) in mrvl_setup()
370 serdev_device_set_baudrate(hu->serdev, 3000000); in mrvl_setup()
396 static int mrvl_serdev_probe(struct serdev_device *serdev) in mrvl_serdev_probe() argument
404 mrvldev->hu.serdev = serdev; in mrvl_serdev_probe()
405 serdev_device_set_drvdata(serdev, mrvldev); in mrvl_serdev_probe()
410 static void mrvl_serdev_remove(struct serdev_device *serdev) in mrvl_serdev_remove() argument
[all …]
A Dhci_bcm.c159 if (hu->serdev) in host_set_baudrate()
160 serdev_device_set_baudrate(hu->serdev, speed); in host_set_baudrate()
221 if (device && device->hu && device->hu->serdev) in bcm_device_exists()
448 if (hu->serdev) { in bcm_open()
499 if (!hu->serdev) in bcm_open()
519 if (hu->serdev) { in bcm_close()
1449 bcmdev->dev = &serdev->dev; in bcm_serdev_probe()
1453 bcmdev->serdev_hu.serdev = serdev; in bcm_serdev_probe()
1454 serdev_device_set_drvdata(serdev, bcmdev); in bcm_serdev_probe()
1459 if (has_acpi_companion(&serdev->dev)) in bcm_serdev_probe()
[all …]
/linux/drivers/platform/surface/aggregator/
A Dcore.c303 struct serdev_device *serdev = ctx; in ssam_serdev_setup_via_acpi_crs() local
352 struct serdev_device *serdev) in ssam_serdev_setup_via_acpi() argument
355 ssam_serdev_setup_via_acpi_crs, serdev); in ssam_serdev_setup_via_acpi()
622 if (gpiod_count(&serdev->dev, NULL) < 0) in ssam_serial_hub_probe()
635 status = ssam_controller_init(ctrl, serdev); in ssam_serial_hub_probe()
642 serdev_device_set_drvdata(serdev, ctrl); in ssam_serial_hub_probe()
644 status = serdev_device_open(serdev); in ssam_serial_hub_probe()
701 device_set_wakeup_capable(&serdev->dev, true); in ssam_serial_hub_probe()
714 serdev_device_close(serdev); in ssam_serial_hub_probe()
757 serdev_device_wait_until_sent(serdev, 0); in ssam_serial_hub_remove()
[all …]
A Dssh_packet_layer.h78 struct serdev_device *serdev; member
130 #define ptl_dbg(p, fmt, ...) dev_dbg(&(p)->serdev->dev, fmt, ##__VA_ARGS__)
131 #define ptl_info(p, fmt, ...) dev_info(&(p)->serdev->dev, fmt, ##__VA_ARGS__)
132 #define ptl_warn(p, fmt, ...) dev_warn(&(p)->serdev->dev, fmt, ##__VA_ARGS__)
133 #define ptl_err(p, fmt, ...) dev_err(&(p)->serdev->dev, fmt, ##__VA_ARGS__)
139 int ssh_ptl_init(struct ssh_ptl *ptl, struct serdev_device *serdev,
153 return ptl->serdev ? &ptl->serdev->dev : NULL; in ssh_ptl_get_device()
/linux/drivers/iio/chemical/
A Dpms7003.c72 struct serdev_device *serdev; member
270 static int pms7003_probe(struct serdev_device *serdev) in pms7003_probe() argument
281 serdev_device_set_drvdata(serdev, indio_dev); in pms7003_probe()
282 state->serdev = serdev; in pms7003_probe()
293 serdev_device_set_client_ops(serdev, &pms7003_serdev_ops); in pms7003_probe()
294 ret = devm_serdev_device_open(&serdev->dev, serdev); in pms7003_probe()
298 serdev_device_set_baudrate(serdev, 9600); in pms7003_probe()
299 serdev_device_set_flow_control(serdev, false); in pms7003_probe()
307 dev_err(&serdev->dev, "failed to wakeup sensor\n"); in pms7003_probe()
313 dev_err(&serdev->dev, "failed to enter passive mode\n"); in pms7003_probe()
[all …]
A Dscd30_serial.c58 struct serdev_device *serdev = to_serdev_device(state->dev); in scd30_serdev_xfer() local
66 ret = serdev_device_write(serdev, txbuf, txsize, SCD30_SERDEV_TIMEOUT); in scd30_serdev_xfer()
177 static int scd30_serdev_receive_buf(struct serdev_device *serdev, in scd30_serdev_receive_buf() argument
180 struct iio_dev *indio_dev = serdev_device_get_drvdata(serdev); in scd30_serdev_receive_buf()
216 static int scd30_serdev_probe(struct serdev_device *serdev) in scd30_serdev_probe() argument
218 struct device *dev = &serdev->dev; in scd30_serdev_probe()
227 serdev_device_set_client_ops(serdev, &scd30_serdev_ops); in scd30_serdev_probe()
229 ret = devm_serdev_device_open(dev, serdev); in scd30_serdev_probe()
233 serdev_device_set_baudrate(serdev, 19200); in scd30_serdev_probe()
234 serdev_device_set_flow_control(serdev, false); in scd30_serdev_probe()
[all …]
A Dsps30_serial.c53 struct serdev_device *serdev = to_serdev_device(state->dev); in sps30_serial_xfer() local
61 ret = serdev_device_write(serdev, buf, size, SPS30_SERIAL_TIMEOUT); in sps30_serial_xfer()
213 static int sps30_serial_receive_buf(struct serdev_device *serdev, in sps30_serial_receive_buf() argument
216 struct iio_dev *indio_dev = dev_get_drvdata(&serdev->dev); in sps30_serial_receive_buf()
387 static int sps30_serial_probe(struct serdev_device *serdev) in sps30_serial_probe() argument
389 struct device *dev = &serdev->dev; in sps30_serial_probe()
398 serdev_device_set_client_ops(serdev, &sps30_serial_device_ops); in sps30_serial_probe()
400 ret = devm_serdev_device_open(dev, serdev); in sps30_serial_probe()
404 serdev_device_set_baudrate(serdev, 115200); in sps30_serial_probe()
405 serdev_device_set_flow_control(serdev, false); in sps30_serial_probe()
[all …]
/linux/drivers/mfd/
A Drave-sp.c189 struct serdev_device *serdev; member
375 dev_err(&sp->serdev->dev, "Command timeout\n"); in rave_sp_exec()
406 struct device *dev = &sp->serdev->dev; in rave_sp_receive_reply()
444 struct device *dev = &sp->serdev->dev; in rave_sp_receive_frame()
477 struct device *dev = &serdev->dev; in rave_sp_receive_buf()
696 struct device *dev = &sp->serdev->dev; in rave_sp_get_status()
770 struct device *dev = &serdev->dev; in rave_sp_probe()
786 sp->serdev = serdev; in rave_sp_probe()
798 ret = devm_serdev_device_open(dev, serdev); in rave_sp_probe()
802 serdev_device_set_baudrate(serdev, baud); in rave_sp_probe()
[all …]

Completed in 43 milliseconds

12