Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/tty/serial/serial_core.c console_show() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | &of->mutex | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/tty/serial/serial_core.c console_store() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | &of->mutex | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/tty/serial/serial_core.c serial_core_remove_one_port() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | global &max3100s_lock |
drivers/tty/serial/serial_core.c uart_break_ctl() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &tty->atomic_write_lock |
drivers/tty/serial/serial_core.c uart_change_line_settings() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->uart_port->dev->cma_area->available_count | 0-s64max |
| PARAM_VALUE | 0 | state->uart_port->dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | state->uart_port->dev->dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | state->uart_port->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->port_dev->dev.power.wakeirq->status | 0-4294967295 |
| BUF_SIZE | 0 | state | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | state | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &tty->termios_rwsem | ||
| HALF_LOCKED2 | &uport->lock |
drivers/tty/serial/serial_core.c uart_change_pm() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->uart_port->dev->cma_area->available_count | 0-s64max |
| PARAM_VALUE | 0 | state->uart_port->dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | state->uart_port->dev->dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | state->uart_port->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->port_dev->dev.power.wakeirq->status | 0-4294967295 |
| BUF_SIZE | 0 | state | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | state | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | state->uart_port->iobase | |
| NO_OVERFLOW_SIMPLE | 0 | state->uart_port->mapbase | |
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &_T->lock->lock | ||
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | &uport->lock | ||
| HALF_LOCKED2 | _T->flags |
drivers/tty/serial/serial_core.c uart_do_autoconfig() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | state | $1 |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock |
drivers/tty/serial/serial_core.c uart_get_info() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->mutex |
drivers/tty/serial/serial_core.c uart_get_lsr_info() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | state | $1 |
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &tty->termios_rwsem |
drivers/tty/serial/serial_core.c uart_hangup() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | &tty->legacy_mutex | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &tty->driver_data->d_lockref.lock | ||
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |
drivers/tty/serial/serial_core.c uart_ioctl() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &tty->termios_rwsem |
drivers/tty/serial/serial_core.c uart_line_info() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| DATA_SOURCE | 0 | state | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/tty/serial/serial_core.c uart_poll_init() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | global &config_mutex |
drivers/tty/serial/serial_core.c uart_port_activate() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | global &spk_mutex |
drivers/tty/serial/serial_core.c uart_port_shutdown() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | &uport->lock |
drivers/tty/serial/serial_core.c uart_port_startup() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->uart_port->dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | state->uart_port->dev->dma_io_tlb_mem->for_alloc | 0-1 |
| BUF_SIZE | 0 | state | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | state | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &tty->legacy_mutex |
drivers/tty/serial/serial_core.c uart_set_info() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | state | $2 |
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock |
drivers/tty/serial/serial_core.c uart_set_ldisc() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | &tty->legacy_mutex | ||
| LOCK2 | &tty->termios_rwsem | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | global &speakup_tty_mutex | ||
| HALF_LOCKED2 | global &spk_mutex | ||
| TYPE_LOCK | (struct tty_struct)->legacy_mutex | ||
| TYPE_LOCK | (struct tty_struct)->termios_rwsem |
drivers/tty/serial/serial_core.c uart_set_termios() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | &tty->termios_rwsem | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &tty->ldisc_sem | ||
| TYPE_LOCK | (struct tty_struct)->termios_rwsem |
drivers/tty/serial/serial_core.c uart_shutdown() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->uart_port->dev->cma_area->available_count | 0-s64max |
| PARAM_VALUE | 0 | state->uart_port->dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | state->uart_port->dev->dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | state->uart_port->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->port_dev->dev.power.wakeirq->status | 0-4294967295 |
| BUF_SIZE | 0 | state | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | state | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | &uport->lock |
drivers/tty/serial/serial_core.c uart_startup() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->uart_port->dev->cma_area->available_count | 0-s64max |
| PARAM_VALUE | 0 | state->uart_port->dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | state->uart_port->dev->dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | state->uart_port->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->port_dev->dev.power.request | 0-4 |
| PARAM_VALUE | 0 | state->uart_port->port_dev->dev.power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | state->uart_port->port_dev->dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->private_data->atomic_write_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->dev->power.request | 0-4 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->dev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->enable_count | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->parent->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->parent->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->parent->dev->power.request | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->parent->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->parent->dev->power.runtime_error | s32min-s32max |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->parent->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->parent->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->parent->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->parent->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->parent->enable_count | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->parent->prepare_count | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->parent->protect_count | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->prepare_count | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->private_data->clk->core->protect_count | 0-4294967295 |
| PARAM_VALUE | 0 | state->uart_port->private_data->lock.rlock.dep_map->name | 0-255 |
| BUF_SIZE | 0 | state | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | state | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock |
drivers/tty/serial/serial_core.c uart_tiocmget() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &hdev->req_lock |
drivers/tty/serial/serial_core.c uart_tiocmset() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | state | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | state | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | global &spk_mutex |
drivers/tty/serial/serial_core.c uart_tty_port_shutdown() -> uart_port_check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |