Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 13 files:
- drivers/bluetooth/virtio_bt.c, line 103
- drivers/char/virtio_console.c
- drivers/misc/nsm.c, line 209
- drivers/net/virtio_net.c, line 564
- drivers/net/wireless/virtual/mac80211_hwsim_main.c, line 924
- drivers/rpmsg/virtio_rpmsg_bus.c, line 565
- drivers/virtio/virtio_balloon.c
- drivers/virtio/virtio_input.c, line 97
- drivers/virtio/virtio_ring.c, line 2903
- fs/fuse/virtio_fs.c, line 640
- tools/virtio/vhost_net_test.c, line 292
- tools/virtio/virtio_test.c, line 198
- tools/virtio/vringh_test.c
Smatch caller information:
drivers/misc/nsm.c nsm_sendrecv_msg_locked() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | num | 1 |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 1 | sg | 32 |
| BUF_SIZE | 3 | data | 4096 |
| LOCK2 | &nsm->lock | ||
| TYPE_LOCK | (struct nsm)->lock |
drivers/net/wireless/virtual/mac80211_hwsim_main.c hwsim_tx_virtio() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sg | 6088468083190935552 |
| PARAM_VALUE | 1 | sg->dma_address | 0 |
| PARAM_VALUE | 1 | sg->dma_flags | 0 |
| PARAM_VALUE | 1 | sg->dma_length | 0 |
| PARAM_VALUE | 1 | sg->offset | 0-4095 |
| PARAM_VALUE | 2 | num | 1 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 2080 |
| BUF_SIZE | 1 | sg | 32 |
| BUF_SIZE | 3 | data | 0,4-s32max |
| DATA_SOURCE | 3 | data | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags | ||
| LOCK2 | global &hwsim_virtio_lock | ||
| HALF_LOCKED2 | &data->mutex |
drivers/virtio/virtio_balloon.c send_cmd_id_start() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | num | 1 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 1 | sg | 32 |
| BUF_SIZE | 3 | data | 4 |
| HALF_LOCKED2 | &pool->lock |
drivers/virtio/virtio_balloon.c send_cmd_id_stop() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | num | 1 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 1 | sg | 32 |
| BUF_SIZE | 3 | data | 4 |
| HALF_LOCKED2 | &pool->lock |
drivers/virtio/virtio_balloon.c setup_vqs() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | num | 1 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 1 | sg | 32 |
| BUF_SIZE | 3 | data | s32min-(-2),1-s32max |
| DATA_SOURCE | 3 | data | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 3 | data | unit_byte |
drivers/virtio/virtio_balloon.c stats_handle_request() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | num | 1 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 1 | sg | 32 |
| DATA_SOURCE | 3 | data | $0 |
| HALF_LOCKED2 | &pool->lock |
drivers/virtio/virtio_balloon.c tell_host() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | num | 1 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 1 | sg | 32 |
| BUF_SIZE | 3 | data | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | vq | $1 |
| DATA_SOURCE | 3 | data | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 3 | data | unit_byte |
| LOCK2 | &vb->balloon_lock | ||
| TYPE_LOCK | (struct virtio_balloon)->balloon_lock |
drivers/bluetooth/virtio_bt.c virtbt_send_frame() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sg | 5278161357304332288 |
| PARAM_VALUE | 1 | sg->dma_address | 0 |
| PARAM_VALUE | 1 | sg->dma_flags | 0 |
| PARAM_VALUE | 1 | sg->dma_length | 0 |
| PARAM_VALUE | 1 | sg->offset | 0-4095 |
| PARAM_VALUE | 2 | num | 1 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 1 | sg | 32 |
| BUF_SIZE | 3 | data | (-1)-s32max |
| DATA_SOURCE | 3 | data | $1 |
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &hdev->req_lock |
fs/fuse/virtio_fs.c send_forget_request() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | num | 1 |
| PARAM_VALUE | 3 | data | 0,4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 2080 |
| BUF_SIZE | 1 | sg | 32 |
| BUF_SIZE | 3 | data | (-1),64 |
| DATA_SOURCE | 3 | data | $1 |
| TASK_NOT_RUNNING | |||
| LOCK2 | &fsvq->lock | ||
| TYPE_LOCK | (struct virtio_fs_vq)->lock |
drivers/char/virtio_console.c __send_control_msg() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sg | 8522272040865472512 |
| PARAM_VALUE | 1 | sg->dma_address | 0 |
| PARAM_VALUE | 1 | sg->dma_flags | 0 |
| PARAM_VALUE | 1 | sg->dma_length | 0 |
| PARAM_VALUE | 1 | sg->offset | 0-4095 |
| PARAM_VALUE | 2 | num | 1 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 2080 |
| BUF_SIZE | 1 | sg | 32 |
| BUF_SIZE | 3 | data | 8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &portdev->c_ovq_lock | ||
| TYPE_LOCK | (struct ports_device)->c_ovq_lock |
drivers/char/virtio_console.c __send_to_port() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | num | 0-1 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 2080 |
| DATA_SOURCE | 1 | sg | $1 |
| DATA_SOURCE | 2 | num | $2 |
| DATA_SOURCE | 3 | data | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &port->outvq_lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct port)->outvq_lock |
drivers/rpmsg/virtio_rpmsg_bus.c rpmsg_send_offchannel_raw() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | num | 1 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 1 | sg | 32 |
| DATA_SOURCE | 3 | data | r get_a_tx_buf |
| TASK_NOT_RUNNING | |||
| LOCK2 | &vrp->tx_lock | ||
| HALF_LOCKED2 | &eptdev->ept_lock | ||
| TYPE_LOCK | (struct virtproc_info)->tx_lock |
drivers/net/virtio_net.c virtnet_add_outbuf() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sg->dma_address | 0 |
| PARAM_VALUE | 1 | sg->dma_flags | 0 |
| PARAM_VALUE | 1 | sg->dma_length | 0 |
| PARAM_VALUE | 1 | sg->length | 0-4294967295 |
| PARAM_VALUE | 1 | sg->offset | 0-4095 |
| PARAM_VALUE | 2 | num | 0-s32max |
| PARAM_VALUE | 4 | gfp | 2080 |
| BUF_SIZE | 1 | sg | 608 |
| CAPPED_DATA | 2 | num | 1 |
| DATA_SOURCE | 2 | num | $1 |
| MEM_ZERO | 1 | sg | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
drivers/virtio/virtio_input.c virtinput_send_status() -> virtqueue_add_outbuf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sg | 642136907690692608 |
| PARAM_VALUE | 1 | sg->dma_address | 0 |
| PARAM_VALUE | 1 | sg->dma_flags | 0 |
| PARAM_VALUE | 1 | sg->dma_length | 0 |
| PARAM_VALUE | 1 | sg->offset | 0-4095 |
| PARAM_VALUE | 2 | num | 1 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 2080 |
| BUF_SIZE | 1 | sg | 32 |
| BUF_SIZE | 3 | data | 8 |
| DATA_SOURCE | 3 | data | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &vi->lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &idev->event_lock | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct virtio_input)->lock |