Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/tty/serial/sh-sci.c sci_set_termios() -> sci_set_mctrl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->dev->cma_area->available_count | 0-s64max |
| PARAM_VALUE | 0 | port->dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | port->dev->dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | port->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | port->flags | 1048576-u64max |
| PARAM_VALUE | 0 | port->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops->poll_get_char | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->ops->poll_init | 0,542853678643802112,853403963737563136,1231480850374565888,1236650878105227264,3206955665515188224,5661098704952168448,7022633692052856832 |
| PARAM_VALUE | 0 | port->ops->poll_put_char | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->ops->start_rx | 0,4096-ptr_max |
| BUF_SIZE | 0 | port | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | port | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | port->uartclk | (-1),9 |
| DATA_SOURCE | 0 | port | $0 |
| STR_LEN | 0 | port | (-1),7 |
| STR_LEN | 0 | port | (-1),7 |
| STR_LEN | 0 | port->cons | (-1) |
| NOSPEC | 0 | port->cons->index | |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | port->cons->cflag | s32min-0,16-s32max |
| HOST_DATA | 0 | port->cons->dropped | 0 |
| HOST_DATA | 0 | port->cons->irq_work.node.a_flags.counter | 0-s32max |
| HOST_DATA | 0 | port->cons->irq_work.node.dst | 0-u16max |
| HOST_DATA | 0 | port->cons->irq_work.node.src | 0-u16max |
| HOST_DATA | 0 | port->cons->irq_work.node.u_flags | 0-s32max |
| HOST_DATA | 0 | port->cons->ispeed | 0-s32max |
| HOST_DATA | 0 | port->cons->nbcon_device_ctxt.allow_unsafe_takeover | 0 |
| HOST_DATA | 0 | port->cons->nbcon_device_ctxt.backlog | 0 |
| HOST_DATA | 0 | port->cons->nbcon_device_ctxt.prio | 0 |
| HOST_DATA | 0 | port->cons->nbcon_device_ctxt.seq | 0 |
| HOST_DATA | 0 | port->cons->nbcon_device_ctxt.spinwait_max_us | 0 |
| HOST_DATA | 0 | port->cons->nbcon_prev_seq.counter | (-1)-0 |
| HOST_DATA | 0 | port->cons->nbcon_seq.counter | s64min-s64max |
| HOST_DATA | 0 | port->cons->nbcon_state.counter | 0 |
| HOST_DATA | 0 | port->cons->ospeed | 0-u32max |
| HOST_DATA | 0 | port->cons->seq | 0-u64max |
| HOST_DATA | 0 | port->frame_time | 1-8,23-u32max[c] |
| USER_DATA | 0 | port->cons->index | 0-3[c] |
| USER_DATA | 0 | port->frame_time | 1-u32max[c] |
| LOCK2 | flags | ||
| LOCK2 | 0 | &port->lock | |
| HALF_LOCKED2 | &port->mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &console_mutex | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/serial_core.c uart_configure_port() -> (struct uart_ops)->set_mctrl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->cons->index | s16min-(-2),0-s16max |
| PARAM_VALUE | 0 | port->cons->node.pprev | 1-u64max |
| PARAM_VALUE | 0 | port->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->dev->dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | port->flags | 0,1073741824-u64max |
| PARAM_VALUE | 0 | port->iotype | s32min-4,6-s32max |
| PARAM_VALUE | 0 | port->line | 0-4294967294 |
| PARAM_VALUE | 0 | port->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->mctrl | 0,2-6 |
| PARAM_VALUE | 0 | port->name | 1-u64max |
| PARAM_VALUE | 0 | port->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops->type | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->port_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->port_dev->port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->port_id | 0-s32max |
| PARAM_VALUE | 0 | port->state | 4096-ptr_max |
| PARAM_VALUE | 0 | port->state->refcount.counter | 1 |
| PARAM_VALUE | 0 | port->state->remove_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->state->remove_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->state->uart_port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->tty_groups | 4096-ptr_max |
| PARAM_VALUE | 0 | port->type | 1-u32max |
| PARAM_VALUE | 1 | mctrl | 0,2-6 |
| BUF_SIZE | 0 | port->name | 0-s32max |
| BUF_SIZE | 0 | port->ops | (-1),216 |
| BUF_SIZE | 0 | port->private_data | (-1),1-s32max |
| BUF_SIZE | 0 | port->tty_groups | 24 |
| CAPPED_DATA | 0 | port->cons->index | 1 |
| CAPPED_DATA | 0 | port->line | 1 |
| CAPPED_DATA | 0 | port->name | 1 |
| DATA_SOURCE | 0 | port | $2 |
| CONTAINER | 0 | -8-392+0 | $(-1) |
| CONTAINER | 1 | *(-8-392+376) | $(-1) |
| CONSTRAINT | 0 | port | <474 |
| BIT_INFO | 0 | port->flags | 0x40000000,0xffffffffffffffff |
| BIT_INFO | 0 | port->mctrl | 0x0,0x6 |
| BIT_INFO | 0 | port->rs485.flags | 0x0,0xfffffffe |
| BIT_INFO | 1 | mctrl | 0x0,0x6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | port->iobase | |
| NO_OVERFLOW_SIMPLE | 0 | port->mapbase | |
| NO_OVERFLOW_SIMPLE | 0 | port->port_id | |
| LOCK2 | &_T->lock->lock | ||
| LOCK2 | _T->flags | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | global &console_sem | ||
| HALF_LOCKED2 | global &max3100s_lock |
drivers/tty/serial/serial_core.c uart_resume_port() -> (struct uart_ops)->set_mctrl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops->start_rx | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->suspended | 0 |
| PARAM_VALUE | 1 | mctrl | 0 |
| BUF_SIZE | 0 | port | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | port | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | port->cons | 1 |
| DATA_SOURCE | 0 | port | $1 |
| BIT_INFO | 0 | port->rs485.flags | 0x0,0xfffffffe |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | _T->lock | ||
| LOCK2 | irq | ||
| LOCK2 | 0 | &port->lock | |
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/serial_core.c uart_resume_port() -> (struct uart_ops)->set_mctrl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->ops->start_rx | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->suspended | 0 |
| BUF_SIZE | 0 | port | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | port | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | port->cons | 1 |
| DATA_SOURCE | 0 | port | $1 |
| BIT_INFO | 0 | port->rs485.flags | 0x0,0xfffffffe |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | _T->lock | ||
| LOCK2 | irq | ||
| LOCK2 | 0 | &port->lock | |
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/serial_core.c uart_set_rs485_config() -> (struct uart_ops)->set_mctrl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 4096-ptr_max |
| DATA_SOURCE | 0 | port | $1 |
| CONTAINER | 0 | -8-392+0 | $(-1) |
| CONTAINER | 1 | *(-8-392+376) | $(-1) |
| BIT_INFO | 0 | port->rs485_supported.flags | 0x1,0xffffffffffffffff |
| NOCHECK_CALL | |||
| USER_DATA | 0 | port->rs485.addr_dest | 0-255 |
| USER_DATA | 0 | port->rs485.addr_recv | 0-255 |
| USER_DATA | 0 | port->rs485.delay_rts_after_send | 0-u32max |
| USER_DATA | 0 | port->rs485.delay_rts_before_send | 0-u32max |
| USER_DATA | 0 | port->rs485.flags | 0-u32max[c] |
| LOCK2 | &_T->lock->lock | ||
| LOCK2 | &tty->termios_rwsem | ||
| LOCK2 | _T->flags | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct tty_struct)->termios_rwsem |
drivers/tty/serial/serial_core.c uart_suspend_port() -> (struct uart_ops)->set_mctrl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | port->suspended | 1 |
| PARAM_VALUE | 1 | mctrl | 0 |
| BUF_SIZE | 0 | port | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | port | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | port | $1 |
| BIT_INFO | 0 | port->rs485.flags | 0x0,0xfffffffe |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | _T->lock | ||
| LOCK2 | irq | ||
| LOCK2 | 0 | &port->lock | |
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/serial_core.c uart_update_mctrl() -> (struct uart_ops)->set_mctrl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->dev->cma_area->available_count | 0-s64max |
| PARAM_VALUE | 0 | port->dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | port->dev->dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | port->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | port->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | port->port_dev->dev.power.wakeirq->status | 0-4294967295 |
| DATA_SOURCE | 0 | port | $0 |
| CONTAINER | 0 | -8-392+0 | $(-1) |
| CONTAINER | 1 | *(-8-392+376) | $(-1) |
| BIT_INFO | 0 | port->rs485.flags | 0x0,0xfffffffe |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | port->mctrl | 0-u32max[c] |
| USER_DATA | 1 | mctrl | 0-u32max[c] |
| LOCK2 | &_T->lock->lock | ||
| LOCK2 | _T->flags | ||
| HALF_LOCKED2 | &tty->termios_rwsem | ||
| HALF_LOCKED2 | _T->lock |
drivers/tty/serial/8250/8250_bcm7271.c brcmuart_resume() -> (struct uart_ops)->set_mctrl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->mctrl | 0,4-u32max |
| PARAM_VALUE | 0 | port->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops->start_rx | 0,4096-ptr_max |
| PARAM_VALUE | 1 | mctrl | 0,4-u32max |
| BUF_SIZE | 0 | port | 616 |
| CONTAINER | 0 | -8-392+0 | $(-1) |
| CONTAINER | 1 | *(-8-392+376) | $(-1) |
| BIT_INFO | 0 | port->mctrl | 0x4,0xffffffff |
| BIT_INFO | 1 | mctrl | 0x4,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &port->lock | |
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/8250/8250_pci1xxxx.c pci1xxxx_port_resume() -> (struct uart_ops)->set_mctrl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->mctrl | 0,16384-u32max |
| PARAM_VALUE | 0 | port->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | port->state->port.mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->state->port.mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->state->port.mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | port->state->port.mutex.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | port->state->port.mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | port->state->port.mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->state->port.mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | port->state->port.mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | port->suspended | 0 |
| PARAM_VALUE | 1 | mctrl | 0,16384-u32max |
| BUF_SIZE | 0 | port | 616 |
| CONTAINER | 0 | -8-392+0 | $(-1) |
| CONTAINER | 1 | *(-8-392+376) | $(-1) |
| BIT_INFO | 0 | port->mctrl | 0x4000,0xffffffff |
| BIT_INFO | 1 | mctrl | 0x4000,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &tport->mutex | ||
| LOCK2 | flags | ||
| LOCK2 | 0 | &port->lock | |
| HALF_LOCKED2 | &fsm->lock | ||
| TYPE_LOCK | (struct tty_port)->mutex | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/8250/8250_pci1xxxx.c pci1xxxx_port_suspend() -> (struct uart_ops)->set_mctrl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->dev | 1-u64max |
| PARAM_VALUE | 0 | port->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | port->state->port.mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->state->port.mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->state->port.mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | port->state->port.mutex.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | port->state->port.mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | port->state->port.mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->state->port.mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | port->state->port.mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | port->suspended | 0 |
| BUF_SIZE | 0 | port | 616 |
| CONTAINER | 0 | -8-392+0 | $(-1) |
| CONTAINER | 1 | *(-8-392+376) | $(-1) |
| BIT_INFO | 0 | port->mctrl | 0x0,0xffffbfff |
| BIT_INFO | 1 | mctrl | 0x0,0xffffbfff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &tport->mutex | ||
| LOCK2 | flags | ||
| LOCK2 | 0 | &port->lock | |
| HALF_LOCKED2 | &fsm->lock | ||
| TYPE_LOCK | (struct tty_port)->mutex | ||
| TYPE_LOCK | (struct uart_port)->lock |