Defined in 2 files as a function:
- include/linux/serial_core.h, line 1226 (as a function)
- include/linux/serial_core.h, line 1286 (as a function)
Referenced in 18 files:
- drivers/tty/serial/8250/8250_port.c, line 1664
- drivers/tty/serial/amba-pl011.c, line 418
- drivers/tty/serial/ar933x_uart.c, line 381
- drivers/tty/serial/bcm63xx_uart.c, line 288
- drivers/tty/serial/fsl_lpuart.c
- drivers/tty/serial/lpc32xx_hs.c, line 265
- drivers/tty/serial/meson_uart.c, line 221
- drivers/tty/serial/msm_serial.c
- drivers/tty/serial/omap-serial.c, line 511
- drivers/tty/serial/owl-uart.c, line 221
- drivers/tty/serial/pch_uart.c, line 567
- drivers/tty/serial/pxa.c, line 154
- drivers/tty/serial/qcom_geni_serial.c, line 706
- drivers/tty/serial/rda-uart.c, line 392
- drivers/tty/serial/sifive.c, line 417
- drivers/tty/serial/stm32-usart.c, line 439
- drivers/tty/serial/sunplus-uart.c, line 265
- drivers/tty/serial/xilinx_uartps.c, line 286
Smatch caller information:
drivers/tty/serial/sunplus-uart.c receive_chars() -> uart_prepare_sysrq_char()
| 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 |
| DATA_SOURCE | 0 | port | $0 |
| DATA_SOURCE | 1 | ch | r readl |
| BIT_INFO | 0 | port->ignore_status_mask | 0x0,0xfffeffff |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255 |
| HOST_DATA | 1 | ch | 0-255 |
| LOCK2 | 0 | &port->lock | |
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/meson_uart.c meson_receive_chars() -> uart_prepare_sysrq_char()
| 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 |
| DATA_SOURCE | 0 | port | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255[c] |
| HOST_DATA | 1 | ch | 0-255[c] |
| LOCK2 | 0 | &port->lock | |
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/stm32-usart.c stm32_usart_receive_chars_pio() -> uart_prepare_sysrq_char()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 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 |
| DATA_SOURCE | 0 | port | $0 |
| DATA_SOURCE | 1 | ch | r stm32_usart_get_char_pio |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255[c] |
| HOST_DATA | 1 | ch | 0-255[c] |
| UNITS | 0 | port | unit_byte |
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | 0 | &port->lock |
drivers/tty/serial/pch_uart.c pch_uart_hal_read() -> uart_prepare_sysrq_char()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| BUF_SIZE | 0 | port | 616 |
| DATA_SOURCE | 1 | ch | r ioread8 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255 |
| HOST_DATA | 1 | ch | 0-255 |
| LOCK2 | &priv->port.lock | ||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/lpc32xx_hs.c __serial_lpc32xx_rx() -> uart_prepare_sysrq_char()
| 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 |
| DATA_SOURCE | 0 | port | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255 |
| HOST_DATA | 1 | ch | 0-255 |
| LOCK2 | 0 | &port->lock | |
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/8250/8250_port.c serial8250_read_char() -> uart_prepare_sysrq_char()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| BUF_SIZE | 0 | port | 616 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255 |
| HOST_DATA | 1 | ch | 0-255 |
| HALF_LOCKED2 | &port->lock | ||
| HALF_LOCKED2 | flags |
drivers/tty/serial/xilinx_uartps.c cdns_uart_handle_rx() -> uart_prepare_sysrq_char()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->private_data | 4096-ptr_max |
| DATA_SOURCE | 0 | port | $0 |
| DATA_SOURCE | 1 | ch | r readl |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255 |
| HOST_DATA | 1 | ch | 0-255 |
| LOCK2 | &port->lock | ||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/sifive.c __ssp_receive_chars() -> uart_prepare_sysrq_char()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| DATA_SOURCE | 1 | ch | r __ssp_receive_char |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ssp->port.lock | ||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/bcm63xx_uart.c bcm_uart_do_rx() -> uart_prepare_sysrq_char()
| 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 |
| DATA_SOURCE | 0 | port | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255[c] |
| HOST_DATA | 1 | ch | 0-255[c] |
| LOCK2 | 0 | &port->lock | |
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/qcom_geni_serial.c handle_rx_console() -> uart_prepare_sysrq_char()
| 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->ops->poll_get_char | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->ops->poll_init | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->ops->poll_put_char | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->ops->start_rx | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->ops->stop_tx | 0,4096-ptr_max |
| BUF_SIZE | 0 | port | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | port | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | port | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | 0 | &port->lock |
drivers/tty/serial/fsl_lpuart.c lpuart32_rxint() -> uart_prepare_sysrq_char()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255[c] |
| HOST_DATA | 1 | ch | 0-255[c] |
| LOCK2 | &sport->port.lock | ||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/fsl_lpuart.c lpuart_rxint() -> uart_prepare_sysrq_char()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| DATA_SOURCE | 1 | ch | r readb |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255 |
| HOST_DATA | 1 | ch | 0-255 |
| LOCK2 | &sport->port.lock | ||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/rda-uart.c rda_uart_receive_chars() -> uart_prepare_sysrq_char()
| 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 |
| DATA_SOURCE | 0 | port | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255[c] |
| HOST_DATA | 1 | ch | 0-255[c] |
| LOCK2 | 0 | &port->lock | |
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/owl-uart.c owl_uart_receive_chars() -> uart_prepare_sysrq_char()
| 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 |
| DATA_SOURCE | 0 | port | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255[c] |
| HOST_DATA | 1 | ch | 0-255[c] |
| LOCK2 | 0 | &port->lock | |
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/msm_serial.c msm_complete_rx_dma() -> uart_prepare_sysrq_char()
| 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->dma_io_tlb_lock.rlock.dep_map->name | 0-255 |
| BUF_SIZE | 0 | port | 616 |
| BIT_INFO | 0 | port->read_status_mask | 0x0,0xffffffff |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &port->lock | |
| HALF_LOCKED2 | &bdma_chan->lock | ||
| HALF_LOCKED2 | &ioat_chan->cleanup_lock | ||
| HALF_LOCKED2 | &mv_chan->lock | ||
| HALF_LOCKED2 | &pd_chan->lock | ||
| HALF_LOCKED2 | &plxdev->ring_lock | ||
| HALF_LOCKED2 | &swdma_chan->complete_lock | ||
| HALF_LOCKED2 | &td_chan->lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/msm_serial.c msm_handle_rx() -> uart_prepare_sysrq_char()
| 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 |
| DATA_SOURCE | 0 | port | $0 |
| DATA_SOURCE | 1 | ch | r msm_read |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255 |
| HOST_DATA | 1 | ch | 0-255 |
| LOCK2 | 0 | &port->lock | |
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/msm_serial.c msm_handle_rx_dm() -> uart_prepare_sysrq_char()
| 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 |
| DATA_SOURCE | 0 | port | $0 |
| BIT_INFO | 0 | port->read_status_mask | 0x0,0xffffffff |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &port->lock | |
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |
drivers/tty/serial/omap-serial.c serial_omap_rdi() -> uart_prepare_sysrq_char()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cons | 0,4096-ptr_max |
| DATA_SOURCE | 1 | ch | r serial_in |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | port->sysrq_ch | 1-255 |
| HOST_DATA | 1 | ch | 0-255 |
| LOCK2 | &up->port.lock | ||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct uart_port)->lock |