Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/bus/mhi/host/main.c mhi_gen_tre() -> mhi_add_ring_element()

Type Parameter Key Value
PARAM_VALUE 0 mhi_cntrl 4096-ptr_max
PARAM_VALUE 1 ring 4096-ptr_max
PARAM_VALUE 1 ring->wp 4096-ptr_max
BUF_SIZE 1 ring 96
DATA_SOURCE 0 mhi_cntrl $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 mhi_cntrl unit_byte
LOCK2 &mhi_chan->lock
LOCK2 bh
TYPE_LOCK (struct mhi_chan)->lock

drivers/bus/mhi/host/main.c mhi_gen_tre() -> mhi_add_ring_element()

Type Parameter Key Value
PARAM_VALUE 0 mhi_cntrl 4096-ptr_max
PARAM_VALUE 1 ring 4096-ptr_max
PARAM_VALUE 1 ring->wp 4096-ptr_max
BUF_SIZE 1 ring 96
DATA_SOURCE 0 mhi_cntrl $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 mhi_cntrl unit_byte
LOCK2 &mhi_chan->lock
LOCK2 bh
TYPE_LOCK (struct mhi_chan)->lock

drivers/bus/mhi/host/main.c mhi_send_cmd() -> mhi_add_ring_element()

Type Parameter Key Value
PARAM_VALUE 0 mhi_cntrl 4096-ptr_max
PARAM_VALUE 1 ring 4096-ptr_max
BUF_SIZE 1 ring 96
CAPPED_DATA 1 ring->rp 1
DATA_SOURCE 0 mhi_cntrl $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 mhi_cntrl unit_byte
LOCK2 &mhi_chan->mutex
LOCK2 &mhi_cmd->lock
LOCK2 bh
HALF_LOCKED2 &port->ops_lock
TYPE_LOCK (struct mhi_chan)->mutex
TYPE_LOCK (struct mhi_cmd)->lock