/linux/drivers/staging/gdm724x/ |
A D | gdm_tty.c | 117 struct tty_dev *tty_dev, in gdm_tty_recv_complete() argument 120 struct gdm *gdm = tty_dev->gdm[index]; in gdm_tty_recv_complete() 124 gdm->tty_dev->recv_func(gdm->tty_dev->priv_dev, in gdm_tty_recv_complete() 139 gdm->tty_dev->recv_func(gdm->tty_dev->priv_dev, in gdm_tty_recv_complete() 171 gdm->tty_dev->send_func(gdm->tty_dev->priv_dev, in gdm_tty_write() 196 int register_lte_tty_device(struct tty_dev *tty_dev, struct device *device) in register_lte_tty_device() argument 222 tty_dev->gdm[i] = gdm; in register_lte_tty_device() 228 gdm->tty_dev = tty_dev; in register_lte_tty_device() 235 gdm->tty_dev->recv_func(gdm->tty_dev->priv_dev, in register_lte_tty_device() 241 void unregister_lte_tty_device(struct tty_dev *tty_dev) in unregister_lte_tty_device() argument [all …]
|
A D | gdm_tty.h | 26 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);
|
A D | gdm_mux.c | 182 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() 541 mux_dev->tty_dev = tty_dev; in gdm_mux_probe() 555 kfree(tty_dev); in gdm_mux_probe() 564 struct tty_dev *tty_dev; in gdm_mux_disconnect() local 576 kfree(tty_dev); in gdm_mux_disconnect() 583 struct tty_dev *tty_dev; in gdm_mux_suspend() local [all …]
|
A D | gdm_mux.h | 55 struct tty_dev *tty_dev, 79 struct tty_dev *tty_dev, 82 struct tty_dev *tty_dev; member
|
/linux/drivers/usb/serial/ |
A D | bus.c | 36 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/net/bluetooth/rfcomm/ |
A D | tty.c | 65 struct device *tty_dev; member 96 if (dev->tty_dev) in rfcomm_dev_destruct() 135 if (dev->tty_dev->parent) in rfcomm_dev_shutdown() 136 device_move(dev->tty_dev, NULL, DPM_ORDER_DEV_LAST); in rfcomm_dev_shutdown() 201 static ssize_t address_show(struct device *tty_dev, in address_show() argument 204 struct rfcomm_dev *dev = dev_get_drvdata(tty_dev); in address_show() 208 static ssize_t channel_show(struct device *tty_dev, in channel_show() argument 211 struct rfcomm_dev *dev = dev_get_drvdata(tty_dev); in channel_show() 339 dev->tty_dev = tty; in rfcomm_dev_add() 341 dev_set_drvdata(dev->tty_dev, dev); in rfcomm_dev_add() [all …]
|
/linux/drivers/tty/ |
A D | rpmsg_tty.c | 155 struct device *tty_dev; in rpmsg_tty_probe() local 165 tty_dev = tty_port_register_device(&cport->port, rpmsg_tty_driver, in rpmsg_tty_probe() 167 if (IS_ERR(tty_dev)) { in rpmsg_tty_probe() 168 ret = dev_err_probe(dev, PTR_ERR(tty_dev), "Failed to register tty port\n"); in rpmsg_tty_probe()
|
A D | nozomi.c | 1400 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()
|
A D | mxser.c | 1866 struct device *tty_dev; in mxser_probe() local 1921 tty_dev = tty_port_register_device(&brd->ports[i].port, in mxser_probe() 1923 if (IS_ERR(tty_dev)) { in mxser_probe() 1924 retval = PTR_ERR(tty_dev); in mxser_probe()
|
/linux/drivers/misc/bcm-vk/ |
A D | bcm_vk_tty.c | 267 struct device *tty_dev; in bcm_vk_tty_init() local 270 tty_dev = tty_port_register_device_attr(&vk->tty[i].port, in bcm_vk_tty_init() 273 if (IS_ERR(tty_dev)) { in bcm_vk_tty_init() 274 err = PTR_ERR(tty_dev); in bcm_vk_tty_init()
|
/linux/drivers/usb/host/ |
A D | xhci-dbgtty.c | 404 struct device *tty_dev; in xhci_dbc_tty_register_device() local 426 tty_dev = tty_port_register_device(&port->port, in xhci_dbc_tty_register_device() 428 if (IS_ERR(tty_dev)) { in xhci_dbc_tty_register_device() 429 ret = PTR_ERR(tty_dev); in xhci_dbc_tty_register_device()
|
/linux/drivers/tty/serial/ |
A D | serial_core.c | 2170 struct device *tty_dev; in uart_suspend_port() local 2176 if (tty_dev && device_may_wakeup(tty_dev)) { in uart_suspend_port() 2178 put_device(tty_dev); in uart_suspend_port() 2182 put_device(tty_dev); in uart_suspend_port() 2232 struct device *tty_dev; in uart_resume_port() local 2239 if (!uport->suspended && device_may_wakeup(tty_dev)) { in uart_resume_port() 2242 put_device(tty_dev); in uart_resume_port() 2246 put_device(tty_dev); in uart_resume_port() 2877 struct device *tty_dev; in uart_add_one_port() local 2944 if (!IS_ERR(tty_dev)) { in uart_add_one_port() [all …]
|
/linux/drivers/usb/gadget/function/ |
A D | u_serial.c | 1219 struct device *tty_dev; in gserial_alloc_line_no_console() local 1242 tty_dev = tty_port_register_device(&port->port, in gserial_alloc_line_no_console() 1244 if (IS_ERR(tty_dev)) { in gserial_alloc_line_no_console() 1246 __func__, port_num, PTR_ERR(tty_dev)); in gserial_alloc_line_no_console() 1248 ret = PTR_ERR(tty_dev); in gserial_alloc_line_no_console()
|
/linux/drivers/staging/greybus/ |
A D | uart.c | 809 struct device *tty_dev; in gb_uart_probe() local 894 tty_dev = tty_port_register_device(&gb_tty->port, gb_tty_driver, minor, in gb_uart_probe() 896 if (IS_ERR(tty_dev)) { in gb_uart_probe() 897 retval = PTR_ERR(tty_dev); in gb_uart_probe()
|
/linux/drivers/ipack/devices/ |
A D | ipoctal.c | 396 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/drivers/usb/class/ |
A D | cdc-acm.c | 1170 struct device *tty_dev; in acm_probe() local 1487 tty_dev = tty_port_register_device(&acm->port, acm_tty_driver, minor, in acm_probe() 1489 if (IS_ERR(tty_dev)) { in acm_probe() 1490 rv = PTR_ERR(tty_dev); in acm_probe()
|
/linux/drivers/staging/fwserial/ |
A D | fwserial.c | 2144 struct device *tty_dev; in fwserial_create() local 2204 tty_dev = tty_port_register_device(&serial->ports[j]->port, in fwserial_create() 2208 if (IS_ERR(tty_dev)) { in fwserial_create() 2209 err = PTR_ERR(tty_dev); in fwserial_create() 2215 serial->ports[j]->device = tty_dev; in fwserial_create()
|
/linux/drivers/char/pcmcia/ |
A D | synclink_cs.c | 2672 struct device *tty_dev; in mgslpc_add_device() local 2709 tty_dev = tty_port_register_device(&info->port, serial_driver, info->line, in mgslpc_add_device() 2711 if (IS_ERR(tty_dev)) { in mgslpc_add_device() 2712 ret = PTR_ERR(tty_dev); in mgslpc_add_device()
|