Home
last modified time | relevance | path

Searched refs:tty_dev (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/drivers/staging/gdm724x/
Dgdm_tty.h26 struct tty_dev *tty_dev; member
32 struct tty_dev { struct
44 struct tty_dev *tty_dev, argument
56 int register_lte_tty_device(struct tty_dev *tty_dev, struct device *dev); argument
57 void unregister_lte_tty_device(struct tty_dev *tty_dev);
Dgdm_tty.c26 return gdm && gdm->tty_dev && gdm->port.count; in gdm_tty_ready()
114 struct tty_dev *tty_dev, in gdm_tty_recv_complete() argument
117 struct gdm *gdm = tty_dev->gdm[index]; in gdm_tty_recv_complete()
121 gdm->tty_dev->recv_func(gdm->tty_dev->priv_dev, in gdm_tty_recv_complete()
136 gdm->tty_dev->recv_func(gdm->tty_dev->priv_dev, in gdm_tty_recv_complete()
163 gdm->tty_dev->send_func(gdm->tty_dev->priv_dev, in gdm_tty_write()
186 int register_lte_tty_device(struct tty_dev *tty_dev, struct device *device) in register_lte_tty_device() argument
212 tty_dev->gdm[i] = gdm; in register_lte_tty_device()
218 gdm->tty_dev = tty_dev; in register_lte_tty_device()
225 gdm->tty_dev->recv_func(gdm->tty_dev->priv_dev, in register_lte_tty_device()
[all …]
Dgdm_mux.c182 mux_dev->tty_dev, in up_to_host()
195 mux_dev->tty_dev, in up_to_host()
272 struct tty_dev *tty_dev, int complete)) in gdm_mux_recv() argument
497 struct tty_dev *tty_dev; in gdm_mux_probe() local
518 tty_dev = kzalloc(sizeof(*tty_dev), GFP_KERNEL); in gdm_mux_probe()
519 if (!tty_dev) { in gdm_mux_probe()
531 tty_dev->priv_dev = (void *)mux_dev; in gdm_mux_probe()
532 tty_dev->send_func = gdm_mux_send; in gdm_mux_probe()
533 tty_dev->recv_func = gdm_mux_recv; in gdm_mux_probe()
534 tty_dev->send_control = gdm_mux_send_control; in gdm_mux_probe()
[all …]
Dgdm_mux.h55 struct tty_dev *tty_dev,
79 struct tty_dev *tty_dev,
82 struct tty_dev *tty_dev; member
/linux-6.6.21/drivers/usb/serial/
Dbus.c36 struct device *tty_dev; in usb_serial_device_probe() local
53 tty_dev = tty_port_register_device(&port->port, usb_serial_tty_driver, in usb_serial_device_probe()
55 if (IS_ERR(tty_dev)) { in usb_serial_device_probe()
56 retval = PTR_ERR(tty_dev); in usb_serial_device_probe()
/linux-6.6.21/net/bluetooth/rfcomm/
Dtty.c64 struct device *tty_dev; member
95 if (dev->tty_dev) in rfcomm_dev_destruct()
134 if (dev->tty_dev->parent) in rfcomm_dev_shutdown()
135 device_move(dev->tty_dev, NULL, DPM_ORDER_DEV_LAST); in rfcomm_dev_shutdown()
194 device_move(dev->tty_dev, &conn->dev, DPM_ORDER_DEV_AFTER_PARENT); in rfcomm_reparent_device()
200 static ssize_t address_show(struct device *tty_dev, in address_show() argument
203 struct rfcomm_dev *dev = dev_get_drvdata(tty_dev); in address_show()
207 static ssize_t channel_show(struct device *tty_dev, in channel_show() argument
210 struct rfcomm_dev *dev = dev_get_drvdata(tty_dev); in channel_show()
338 dev->tty_dev = tty; in rfcomm_dev_add()
[all …]
/linux-6.6.21/drivers/tty/
Drpmsg_tty.c175 struct device *tty_dev; in rpmsg_tty_probe() local
185 tty_dev = tty_port_register_device(&cport->port, rpmsg_tty_driver, in rpmsg_tty_probe()
187 if (IS_ERR(tty_dev)) { in rpmsg_tty_probe()
188 ret = dev_err_probe(dev, PTR_ERR(tty_dev), "Failed to register tty port\n"); in rpmsg_tty_probe()
Dmxser.c1793 struct device *tty_dev; in mxser_probe() local
1848 tty_dev = tty_port_register_device(&brd->ports[i].port, in mxser_probe()
1850 if (IS_ERR(tty_dev)) { in mxser_probe()
1851 retval = PTR_ERR(tty_dev); in mxser_probe()
Dnozomi.c1400 struct device *tty_dev; in nozomi_card_init() local
1405 tty_dev = tty_port_register_device(&port->port, ntty_driver, in nozomi_card_init()
1408 if (IS_ERR(tty_dev)) { in nozomi_card_init()
1409 ret = PTR_ERR(tty_dev); in nozomi_card_init()
/linux-6.6.21/drivers/misc/bcm-vk/
Dbcm_vk_tty.c266 struct device *tty_dev; in bcm_vk_tty_init() local
269 tty_dev = tty_port_register_device_attr(&vk->tty[i].port, in bcm_vk_tty_init()
272 if (IS_ERR(tty_dev)) { in bcm_vk_tty_init()
273 err = PTR_ERR(tty_dev); in bcm_vk_tty_init()
/linux-6.6.21/drivers/usb/host/
Dxhci-dbgtty.c410 struct device *tty_dev; in xhci_dbc_tty_register_device() local
441 tty_dev = tty_port_register_device(&port->port, in xhci_dbc_tty_register_device()
443 if (IS_ERR(tty_dev)) { in xhci_dbc_tty_register_device()
444 ret = PTR_ERR(tty_dev); in xhci_dbc_tty_register_device()
/linux-6.6.21/drivers/tty/serial/
Dserial_core.c2369 struct device *tty_dev; in uart_suspend_port() local
2374 tty_dev = device_find_child(uport->dev, &match, serial_match_port); in uart_suspend_port()
2375 if (tty_dev && device_may_wakeup(tty_dev)) { in uart_suspend_port()
2377 put_device(tty_dev); in uart_suspend_port()
2381 put_device(tty_dev); in uart_suspend_port()
2449 struct device *tty_dev; in uart_resume_port() local
2455 tty_dev = device_find_child(uport->dev, &match, serial_match_port); in uart_resume_port()
2456 if (!uport->suspended && device_may_wakeup(tty_dev)) { in uart_resume_port()
2459 put_device(tty_dev); in uart_resume_port()
2463 put_device(tty_dev); in uart_resume_port()
[all …]
Dfsl_lpuart.c3034 struct device *tty_dev; in lpuart_uport_is_active() local
3039 tty_dev = tty->dev; in lpuart_uport_is_active()
3040 may_wake = tty_dev && device_may_wakeup(tty_dev); in lpuart_uport_is_active()
/linux-6.6.21/drivers/staging/greybus/
Duart.c808 struct device *tty_dev; in gb_uart_probe() local
893 tty_dev = tty_port_register_device(&gb_tty->port, gb_tty_driver, minor, in gb_uart_probe()
895 if (IS_ERR(tty_dev)) { in gb_uart_probe()
896 retval = PTR_ERR(tty_dev); in gb_uart_probe()
/linux-6.6.21/drivers/usb/gadget/function/
Du_serial.c1230 struct device *tty_dev; in gserial_alloc_line_no_console() local
1253 tty_dev = tty_port_register_device(&port->port, in gserial_alloc_line_no_console()
1255 if (IS_ERR(tty_dev)) { in gserial_alloc_line_no_console()
1257 __func__, port_num, PTR_ERR(tty_dev)); in gserial_alloc_line_no_console()
1259 ret = PTR_ERR(tty_dev); in gserial_alloc_line_no_console()
/linux-6.6.21/drivers/ipack/devices/
Dipoctal.c396 struct device *tty_dev; in ipoctal_inst_slot() local
410 tty_dev = tty_port_register_device_attr(&channel->tty_port, drv, in ipoctal_inst_slot()
412 if (IS_ERR(tty_dev)) { in ipoctal_inst_slot()
/linux-6.6.21/drivers/usb/class/
Dcdc-acm.c1193 struct device *tty_dev; in acm_probe() local
1510 tty_dev = tty_port_register_device(&acm->port, acm_tty_driver, minor, in acm_probe()
1512 if (IS_ERR(tty_dev)) { in acm_probe()
1513 rv = PTR_ERR(tty_dev); in acm_probe()