Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 15 files:
- arch/um/drivers/line.c, line 401
- drivers/mmc/core/sdio_uart.c, line 1081
- drivers/staging/greybus/uart.c, line 899
- drivers/tty/ehv_bytechan.c, line 711
- drivers/tty/goldfish.c, line 381
- drivers/tty/moxa.c, line 1008
- drivers/tty/mxser.c, line 1790
- drivers/tty/nozomi.c, line 1386
- drivers/tty/rpmsg_tty.c, line 185
- drivers/tty/tty_port.c, line 156
- drivers/usb/class/cdc-acm.c, line 1556
- drivers/usb/gadget/function/u_serial.c, line 1311
- drivers/usb/host/xhci-dbgtty.c, line 521
- drivers/usb/serial/bus.c, line 53
- net/bluetooth/rfcomm/tty.c, line 328
Smatch caller information:
drivers/tty/nozomi.c nozomi_card_init() -> tty_port_register_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.flip_wq | 0 |
| PARAM_VALUE | 0 | port->buf.head | 256 |
| PARAM_VALUE | 0 | port->buf.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.mem_limit | 655360 |
| PARAM_VALUE | 0 | port->buf.sentinel.flags | 1 |
| PARAM_VALUE | 0 | port->buf.tail | 256 |
| PARAM_VALUE | 0 | port->buf_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->client_ops | 6331571049099714560 |
| PARAM_VALUE | 0 | port->close_delay | 125 |
| PARAM_VALUE | 0 | port->closing_wait | 7500 |
| PARAM_VALUE | 0 | port->console | 0 |
| PARAM_VALUE | 0 | port->count | 0 |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->flags | 0 |
| PARAM_VALUE | 0 | port->iflags | 0 |
| PARAM_VALUE | 0 | port->itty | 0 |
| PARAM_VALUE | 0 | port->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->open_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->open_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 3612652778795294720 |
| PARAM_VALUE | 0 | port->tty | 0 |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| PARAM_VALUE | 1 | driver | 0,4096-ptr_max,(-22),(-12) |
| PARAM_VALUE | 2 | index | 0-255 |
| PARAM_VALUE | 3 | device | 4096-ptr_max |
| PARAM_VALUE | 3 | device->bus | 0,4096-ptr_max |
| PARAM_VALUE | 3 | device->class | 0,4096-ptr_max |
| PARAM_VALUE | 3 | device->driver_data | 4096-ptr_max |
| MEM_ZERO | 0 | port | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/staging/greybus/uart.c gb_uart_probe() -> tty_port_register_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.flip_wq | 0 |
| PARAM_VALUE | 0 | port->buf.head | 256 |
| PARAM_VALUE | 0 | port->buf.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.mem_limit | 655360 |
| PARAM_VALUE | 0 | port->buf.sentinel.flags | 1 |
| PARAM_VALUE | 0 | port->buf.tail | 256 |
| PARAM_VALUE | 0 | port->buf_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->client_ops | 6331571049099714560 |
| PARAM_VALUE | 0 | port->close_delay | 125 |
| PARAM_VALUE | 0 | port->closing_wait | 7500 |
| PARAM_VALUE | 0 | port->console | 0 |
| PARAM_VALUE | 0 | port->count | 0 |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->flags | 0 |
| PARAM_VALUE | 0 | port->iflags | 0 |
| PARAM_VALUE | 0 | port->itty | 0 |
| PARAM_VALUE | 0 | port->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->open_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->open_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 5883381809575297024 |
| PARAM_VALUE | 0 | port->tty | 0 |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| PARAM_VALUE | 2 | index | 0-s32max |
| PARAM_VALUE | 3 | device | 4096-ptr_max |
| PARAM_VALUE | 3 | device->driver_data | 4096-ptr_max |
| DATA_SOURCE | 2 | index | r alloc_minor |
| MEM_ZERO | 0 | port | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/tty/goldfish.c goldfish_tty_probe() -> tty_port_register_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.flip_wq | 0 |
| PARAM_VALUE | 0 | port->buf.head | 256 |
| PARAM_VALUE | 0 | port->buf.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.mem_limit | 655360 |
| PARAM_VALUE | 0 | port->buf.sentinel.flags | 1 |
| PARAM_VALUE | 0 | port->buf.tail | 256 |
| PARAM_VALUE | 0 | port->buf_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->client_ops | 6331571049099714560 |
| PARAM_VALUE | 0 | port->close_delay | 125 |
| PARAM_VALUE | 0 | port->closing_wait | 7500 |
| PARAM_VALUE | 0 | port->console | 0 |
| PARAM_VALUE | 0 | port->count | 0 |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->flags | 0 |
| PARAM_VALUE | 0 | port->iflags | 0 |
| PARAM_VALUE | 0 | port->itty | 0 |
| PARAM_VALUE | 0 | port->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->open_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->open_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 5739540654816034816 |
| PARAM_VALUE | 0 | port->tty | 0 |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| PARAM_VALUE | 2 | index | 0-7 |
| PARAM_VALUE | 3 | device | 4096-ptr_max |
| CONSTRAINT | 2 | index | <3305 |
| MEM_ZERO | 0 | port | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->blocked_open | 0 |
| HOST_DATA | 0 | port->buf.lock.osq.tail.counter | 0 |
| HOST_DATA | 0 | port->buf.lock.owner.counter | 0 |
| HOST_DATA | 0 | port->buf.mem_limit | 655360 |
| HOST_DATA | 0 | port->buf.mem_used.counter | 0 |
| HOST_DATA | 0 | port->buf.priority.counter | 0 |
| HOST_DATA | 0 | port->buf.sentinel.commit | 0 |
| HOST_DATA | 0 | port->buf.sentinel.flags | 1 |
| HOST_DATA | 0 | port->buf.sentinel.lookahead | 0 |
| HOST_DATA | 0 | port->buf.sentinel.read | 0 |
| HOST_DATA | 0 | port->buf.sentinel.size | 0 |
| HOST_DATA | 0 | port->buf.sentinel.used | 0 |
| HOST_DATA | 0 | port->buf.work.data.counter | 0 |
| HOST_DATA | 0 | port->buf_mutex.osq.tail.counter | 0 |
| HOST_DATA | 0 | port->buf_mutex.owner.counter | 0 |
| HOST_DATA | 0 | port->close_delay | 125 |
| HOST_DATA | 0 | port->closing_wait | 7500 |
| HOST_DATA | 0 | port->console | 0 |
| HOST_DATA | 0 | port->count | 0 |
| HOST_DATA | 0 | port->drain_delay | 0 |
| HOST_DATA | 0 | port->flags | 0 |
| HOST_DATA | 0 | port->iflags | 0 |
| HOST_DATA | 0 | port->kref.refcount.refs.counter | 1 |
| HOST_DATA | 0 | port->xmit_fifo.kfifo.esize | 0 |
| HOST_DATA | 0 | port->xmit_fifo.kfifo.in | 0 |
| HOST_DATA | 0 | port->xmit_fifo.kfifo.mask | 0 |
| HOST_DATA | 0 | port->xmit_fifo.kfifo.out | 0 |
| UNITS | 2 | index | unit_array_size |
| LOCK2 | global &goldfish_tty_lock |
drivers/usb/host/xhci-dbgtty.c xhci_dbc_tty_register_device() -> tty_port_register_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.flip_wq | 0 |
| PARAM_VALUE | 0 | port->buf.head | 256 |
| PARAM_VALUE | 0 | port->buf.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.mem_limit | 655360 |
| PARAM_VALUE | 0 | port->buf.sentinel.flags | 1 |
| PARAM_VALUE | 0 | port->buf.tail | 256 |
| PARAM_VALUE | 0 | port->buf_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->client_ops | 6331571049099714560 |
| PARAM_VALUE | 0 | port->close_delay | 125 |
| PARAM_VALUE | 0 | port->closing_wait | 7500 |
| PARAM_VALUE | 0 | port->console | 0 |
| PARAM_VALUE | 0 | port->count | 0 |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->flags | 0 |
| PARAM_VALUE | 0 | port->iflags | 0 |
| PARAM_VALUE | 0 | port->itty | 0 |
| PARAM_VALUE | 0 | port->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->open_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->open_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 7759209000735367168 |
| PARAM_VALUE | 0 | port->tty | 0 |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| PARAM_VALUE | 2 | index | 0-s32max |
| PARAM_VALUE | 3 | device | 0 |
| DATA_SOURCE | 2 | index | r idr_alloc |
| MEM_ZERO | 0 | port | |
| HALF_LOCKED2 | &pool->lock |
drivers/tty/rpmsg_tty.c rpmsg_tty_probe() -> tty_port_register_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.flip_wq | 0 |
| PARAM_VALUE | 0 | port->buf.head | 256 |
| PARAM_VALUE | 0 | port->buf.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.mem_limit | 655360 |
| PARAM_VALUE | 0 | port->buf.sentinel.flags | 1 |
| PARAM_VALUE | 0 | port->buf.tail | 256 |
| PARAM_VALUE | 0 | port->buf_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->client_ops | 6331571049099714560 |
| PARAM_VALUE | 0 | port->close_delay | 125 |
| PARAM_VALUE | 0 | port->closing_wait | 7500 |
| PARAM_VALUE | 0 | port->console | 0 |
| PARAM_VALUE | 0 | port->count | 0 |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->flags | 0 |
| PARAM_VALUE | 0 | port->iflags | 0 |
| PARAM_VALUE | 0 | port->itty | 0 |
| PARAM_VALUE | 0 | port->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->open_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->open_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 5068979051638902784 |
| PARAM_VALUE | 0 | port->tty | 0 |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| PARAM_VALUE | 2 | index | 0-s32max |
| PARAM_VALUE | 3 | device | 4096-ptr_max |
| BUF_SIZE | 3 | device | 1616 |
| MEM_ZERO | 0 | port | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/tty/moxa.c moxa_init_board() -> tty_port_register_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | driver | 0,4096-ptr_max,(-22),(-12) |
| PARAM_VALUE | 3 | device | 4096-ptr_max |
| PARAM_VALUE | 3 | device->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 3 | device->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 3 | device->devres_head.prev->next->next | 4096-ptr_max |
| DATA_SOURCE | 3 | device | $1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | _T->lock |
drivers/usb/serial/bus.c usb_serial_device_probe() -> tty_port_register_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 3 | device | 4096-ptr_max |
| PARAM_VALUE | 3 | device->driver | 4096-ptr_max |
| PARAM_VALUE | 3 | device->kobj.parent->sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 3 | device->kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| BUF_SIZE | 3 | device | (-1)-0,4,16,24,56,64,120,168-s32max |
| BUF_SIZE | 3 | device | (-1)-0,4,16,24,56,64,120,168-s32max |
| CAPPED_DATA | 3 | device | 1 |
| DATA_SOURCE | 3 | device | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | 3 | &device->mutex |
net/bluetooth/rfcomm/tty.c rfcomm_dev_add() -> tty_port_register_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.flip_wq | 0 |
| PARAM_VALUE | 0 | port->buf.head | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.mem_limit | 655360 |
| PARAM_VALUE | 0 | port->buf.sentinel.flags | 1 |
| PARAM_VALUE | 0 | port->buf.tail | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->client_ops | 6331571049099714560 |
| PARAM_VALUE | 0 | port->close_delay | 125 |
| PARAM_VALUE | 0 | port->closing_wait | 7500 |
| PARAM_VALUE | 0 | port->console | 0 |
| PARAM_VALUE | 0 | port->count | 0 |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->flags | 0 |
| PARAM_VALUE | 0 | port->iflags | 0 |
| PARAM_VALUE | 0 | port->itty | 0 |
| PARAM_VALUE | 0 | port->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->open_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->open_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 5055247438337708032 |
| PARAM_VALUE | 0 | port->tty | 0 |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| PARAM_VALUE | 2 | index | 0-255 |
| PARAM_VALUE | 3 | device | 0 |
| USER_DATA | 2 | index | 0-255[c] |
| UNITS | 2 | index | unit_array_size |
| LOCK2 | global &rfcomm_ioctl_mutex | ||
| HALF_LOCKED2 | &smc->sk |
drivers/usb/gadget/function/u_serial.c gserial_alloc_line_no_console() -> tty_port_register_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | index | 0-7 |
| PARAM_VALUE | 3 | device | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &func_lock |
drivers/tty/mxser.c mxser_probe() -> tty_port_register_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 1 | driver | 0,4096-ptr_max,(-22),(-12) |
| PARAM_VALUE | 2 | index | 0-278 |
| PARAM_VALUE | 3 | device | 4096-ptr_max |
| PARAM_VALUE | 3 | device->devres_head.prev | 4096-ptr_max |
| CAPPED_DATA | 2 | index | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/mmc/core/sdio_uart.c sdio_uart_probe() -> tty_port_register_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.flip_wq | 0 |
| PARAM_VALUE | 0 | port->buf.head | 256 |
| PARAM_VALUE | 0 | port->buf.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.mem_limit | 655360 |
| PARAM_VALUE | 0 | port->buf.sentinel.flags | 1 |
| PARAM_VALUE | 0 | port->buf.tail | 256 |
| PARAM_VALUE | 0 | port->buf_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->client_ops | 6331571049099714560 |
| PARAM_VALUE | 0 | port->close_delay | 125 |
| PARAM_VALUE | 0 | port->closing_wait | 7500 |
| PARAM_VALUE | 0 | port->console | 0 |
| PARAM_VALUE | 0 | port->count | 0 |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->flags | 0 |
| PARAM_VALUE | 0 | port->iflags | 0 |
| PARAM_VALUE | 0 | port->itty | 0 |
| PARAM_VALUE | 0 | port->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->open_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->open_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 6389395399883091968 |
| PARAM_VALUE | 0 | port->tty | 0 |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| PARAM_VALUE | 2 | index | 0 |
| PARAM_VALUE | 3 | device | 4096-ptr_max |
| PARAM_VALUE | 3 | device->driver_data | 4096-ptr_max |
| MEM_ZERO | 0 | port | |
| RX_PATH | |||
| TASK_NOT_RUNNING |