Defined in 1 files as a function:
Referenced in 14 files:
- drivers/mmc/core/sdio_uart.c, line 874
- drivers/net/usb/hso.c, line 2002
- drivers/tty/amiserial.c, line 1189
- drivers/tty/hvc/hvc_console.c, line 666
- drivers/tty/hvc/hvcs.c, line 570
- drivers/tty/hvc/hvsi.c, line 499
- drivers/tty/moxa.c, line 1433
- drivers/tty/nozomi.c, line 763
- drivers/tty/serial/serial_core.c, line 1687
- drivers/tty/tty_ioctl.c
- drivers/tty/vt/selection.c, line 422
- drivers/usb/gadget/function/u_serial.c
- drivers/usb/host/xhci-dbgtty.c
- drivers/usb/serial/digi_acceleport.c, line 669
Smatch caller information:
drivers/tty/serial/serial_core.c uart_set_termios() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| BUF_SIZE | 0 | tty | s32min,(-1),1-s32max |
| BUF_SIZE | 0 | tty | s32min,(-1),1-s32max |
| CAPPED_DATA | 0 | tty | 1 |
| DATA_SOURCE | 0 | tty | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | tty->termios.c_cflag | 2147483648-u32max[c] |
| USER_DATA | 0 | tty->termios.c_iflag | 0-u32max[c] |
| USER_DATA | 0 | tty->termios.c_ispeed | 0-u32max |
| USER_DATA | 0 | tty->termios.c_lflag | 0-u32max[c] |
| USER_DATA | 0 | tty->termios.c_line | 0-255 |
| USER_DATA | 0 | tty->termios.c_oflag | 0-u32max[c] |
| USER_DATA | 0 | tty->termios.c_ospeed | 0-u32max |
| LOCK2 | _T->lock | ||
| LOCK2 | 0 | &tty->termios_rwsem | |
| HALF_LOCKED2 | &tty->ldisc_sem | ||
| HALF_LOCKED2 | 0 | &tty->atomic_write_lock | |
| HALF_LOCKED2 | 0 | &tty->ldisc_sem | |
| HALF_LOCKED2 | 0 | &tty->legacy_mutex | |
| TYPE_LOCK | (struct tty_struct)->termios_rwsem |
drivers/tty/nozomi.c receive_data() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| BUF_SIZE | 0 | tty | (-1),1-s32max |
| BUF_SIZE | 0 | tty | (-1),1-s32max |
| DATA_SOURCE | 0 | tty | r tty_port_tty_get |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dc->spin_mutex | ||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct nozomi)->spin_mutex |
drivers/tty/hvc/hvc_console.c __hvc_poll() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| BUF_SIZE | 0 | tty | (-1),1-s32max |
| BUF_SIZE | 0 | tty | (-1),1-s32max |
| DATA_SOURCE | 0 | tty | r tty_port_tty_get |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &hp->lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | global &hvc_structs_mutex | ||
| TYPE_LOCK | (struct hvc_struct)->lock |
drivers/usb/host/xhci-dbgtty.c dbc_read_complete() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 1-u64max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dbc->lock | ||
| LOCK2 | &port->port_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct dbc_port)->port_lock |
drivers/usb/host/xhci-dbgtty.c dbc_rx_push() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 1-u64max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &port->port_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct dbc_port)->port_lock |
drivers/tty/moxa.c moxa_poll_port() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| BUF_SIZE | 0 | tty | (-1),1-s32max |
| BUF_SIZE | 0 | tty | (-1),1-s32max |
| DATA_SOURCE | 0 | tty | r tty_port_tty_get |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &moxa_lock |
drivers/tty/tty_ioctl.c tty_throttle_safe() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| CAPPED_DATA | 0 | tty | 1 |
| DATA_SOURCE | 0 | tty | $0 |
| USER_PTR | 0 | tty->disc_data->priv->rx_skb->data | |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &tty->ldisc_sem | ||
| HALF_LOCKED2 | 0 | &tty->ldisc_sem | |
| HALF_LOCKED2 | 0 | &tty->port->buf.lock |
drivers/tty/tty_ioctl.c tty_unthrottle_safe() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| CAPPED_DATA | 0 | tty | 1 |
| DATA_SOURCE | 0 | tty | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 0 | tty->disc_data->priv->rx_skb->data | |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | 0 | &tty->ldisc_sem | |
| HALF_LOCKED2 | 0 | &tty->port->buf.lock | |
| HALF_LOCKED2 | 0 | &tty->termios_rwsem |
drivers/usb/serial/digi_acceleport.c digi_set_termios() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| BUF_SIZE | 0 | tty | s32min,(-1),1-s32max |
| BUF_SIZE | 0 | tty | s32min,(-1),1-s32max |
| BUF_SIZE | 0 | tty->driver_data | (-1),1-s32max |
| BUF_SIZE | 0 | tty->ops | (-1),296 |
| DATA_SOURCE | 0 | tty | $0 |
| BIT_INFO | 0 | tty->termios.c_cflag | 0x80000000,0xffffffff |
| NOSPEC | 0 | tty->index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | tty->index | 0-s16max[c] |
| USER_DATA | 0 | tty->termios.c_cflag | 2147483648-u32max[c] |
| USER_DATA | 0 | tty->termios.c_iflag | 0-u32max[c] |
| USER_DATA | 0 | tty->termios.c_ispeed | 0-u32max |
| USER_DATA | 0 | tty->termios.c_lflag | 0-u32max[c] |
| USER_DATA | 0 | tty->termios.c_line | 0-255 |
| USER_DATA | 0 | tty->termios.c_oflag | 0-u32max[c] |
| USER_DATA | 0 | tty->termios.c_ospeed | 0-u32max |
| HALF_LOCKED2 | &serial->disc_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &console_mutex | ||
| HALF_LOCKED2 | 0 | &tty->atomic_write_lock | |
| HALF_LOCKED2 | 0 | &tty->ldisc_sem | |
| HALF_LOCKED2 | 0 | &tty->legacy_mutex | |
| HALF_LOCKED2 | 0 | &tty->termios_rwsem |
drivers/usb/gadget/function/u_serial.c gs_rx_push() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 1-u64max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| LOCK2 | &port->port_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct gs_port)->port_lock |
drivers/usb/gadget/function/u_serial.c gs_rx_push() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| LOCK2 | &port->port_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct gs_port)->port_lock |
drivers/tty/vt/selection.c paste_selection() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| DATA_SOURCE | 0 | tty | $0 |
| LOCK2 | &vc->port.buf.lock | ||
| LOCK2 | global &vc_sel.lock | ||
| LOCK2 | 0 | &tty->ldisc_sem | |
| TYPE_LOCK | (struct tty_bufhead)->lock | ||
| TYPE_LOCK | (struct tty_struct)->ldisc_sem | ||
| TYPE_LOCK | (struct vc_selection)->lock |
drivers/net/usb/hso.c put_rxbuf_data() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| BUF_SIZE | 0 | tty | (-1),1-s32max |
| BUF_SIZE | 0 | tty | (-1),1-s32max |
| DATA_SOURCE | 0 | tty | r tty_port_tty_get |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &serial->serial_lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct hso_serial)->serial_lock |
drivers/mmc/core/sdio_uart.c sdio_uart_set_termios() -> tty_throttled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| BUF_SIZE | 0 | tty | s32min,(-1),1-s32max |
| BUF_SIZE | 0 | tty | s32min,(-1),1-s32max |
| CAPPED_DATA | 0 | tty | 1 |
| DATA_SOURCE | 0 | tty | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | tty->termios.c_cflag | 0-u32max[c] |
| USER_DATA | 0 | tty->termios.c_iflag | 0-u32max[c] |
| USER_DATA | 0 | tty->termios.c_ispeed | 0-u32max |
| USER_DATA | 0 | tty->termios.c_lflag | 0-u32max[c] |
| USER_DATA | 0 | tty->termios.c_line | 0-255 |
| USER_DATA | 0 | tty->termios.c_oflag | 0-u32max[c] |
| USER_DATA | 0 | tty->termios.c_ospeed | 0-u32max |
| LOCK2 | 0 | &tty->termios_rwsem | |
| HALF_LOCKED2 | &tty->ldisc_sem | ||
| HALF_LOCKED2 | 0 | &tty->atomic_write_lock | |
| HALF_LOCKED2 | 0 | &tty->ldisc_sem | |
| HALF_LOCKED2 | 0 | &tty->legacy_mutex | |
| TYPE_LOCK | (struct tty_struct)->termios_rwsem |