Defined in 1 files as a function:
Referenced in 9 files:
- drivers/mmc/core/sdio_uart.c, line 120
- drivers/staging/greybus/uart.c, line 352
- drivers/tty/hvc/hvc_console.c, line 100
- drivers/tty/hvc/hvcs.c, line 1046
- drivers/tty/n_gsm.c, line 2706
- drivers/tty/rpmsg_tty.c, line 57
- drivers/tty/vt/vt.c, line 3760
- drivers/usb/class/cdc-acm.c, line 77
- net/bluetooth/rfcomm/tty.c
Smatch caller information:
drivers/tty/n_gsm.c dlci_get() -> tty_port_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &gsm->mutex | ||
| LOCK2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &spk_mutex | ||
| HALF_LOCKED2 | global &tty_mutex | ||
| TYPE_LOCK | (struct gsm_mux)->mutex | ||
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |
drivers/staging/greybus/uart.c get_gb_by_minor() -> tty_port_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &gb_tty->mutex | ||
| LOCK2 | &tty->legacy_mutex | ||
| LOCK2 | global &table_lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &spk_mutex | ||
| HALF_LOCKED2 | global &tty_mutex | ||
| TYPE_LOCK | (struct gb_tty)->mutex | ||
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |
drivers/tty/hvc/hvc_console.c hvc_get_by_index() -> tty_port_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &hp->lock | ||
| LOCK2 | flags | ||
| LOCK2 | global &hvc_structs_mutex | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| TYPE_LOCK | (struct hvc_struct)->lock |
drivers/tty/rpmsg_tty.c rpmsg_tty_install() -> tty_port_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &spk_mutex | ||
| HALF_LOCKED2 | global &tty_mutex | ||
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |
drivers/tty/vt/vt.c con_install() -> tty_port_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->tty | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &tty->legacy_mutex | ||
| LOCK2 | global &console_sem | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &spk_mutex | ||
| HALF_LOCKED2 | global &tty_mutex | ||
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |
net/bluetooth/rfcomm/tty.c rfcomm_dev_get() -> tty_port_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &rfcomm_dev_lock | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | global &rfcomm_ioctl_mutex |
net/bluetooth/rfcomm/tty.c rfcomm_get_dev_list() -> tty_port_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| LOCK2 | global &rfcomm_dev_lock | ||
| HALF_LOCKED2 | &smc->sk |
net/bluetooth/rfcomm/tty.c rfcomm_set_owner_w() -> tty_port_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ap->xmit_lock | ||
| HALF_LOCKED2 | &component->io_mutex | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &elm->lock | ||
| HALF_LOCKED2 | &gsm->tx_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &sl->lock | ||
| HALF_LOCKED2 | &tty->atomic_write_lock | ||
| HALF_LOCKED2 | &tty->ldisc_sem | ||
| HALF_LOCKED2 | &tty->termios_rwsem | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | global &spk_mutex |
drivers/usb/class/cdc-acm.c acm_get_by_minor() -> tty_port_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &acm->mutex | ||
| LOCK2 | &tty->legacy_mutex | ||
| LOCK2 | global &acm_minors_lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &spk_mutex | ||
| HALF_LOCKED2 | global &tty_mutex | ||
| TYPE_LOCK | (struct acm)->mutex | ||
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |
drivers/mmc/core/sdio_uart.c sdio_uart_port_get() -> tty_port_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 1-u64max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &sdio_uart_table_lock | ||
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | &tty->legacy_mutex |