Lines Matching refs:vdev_id
87 int vdev_id; member
276 vring->vdev_id = tm_vdev->vdev.id.device; in mlxbf_tmfifo_alloc_vrings()
421 if (desc && is_rx && vring->vdev_id == VIRTIO_ID_NET) in mlxbf_tmfifo_get_next_pkt()
512 static int mlxbf_tmfifo_get_tx_avail(struct mlxbf_tmfifo *fifo, int vdev_id) in mlxbf_tmfifo_get_tx_avail() argument
519 if (vdev_id == VIRTIO_ID_NET) in mlxbf_tmfifo_get_tx_avail()
654 int vdev_id, hdr_len; in mlxbf_tmfifo_rxtx_header() local
668 vdev_id = VIRTIO_ID_NET; in mlxbf_tmfifo_rxtx_header()
670 config = &fifo->vdev[vdev_id]->config.net; in mlxbf_tmfifo_rxtx_header()
678 vdev_id = VIRTIO_ID_CONSOLE; in mlxbf_tmfifo_rxtx_header()
686 if (vdev_id != vring->vdev_id) { in mlxbf_tmfifo_rxtx_header()
687 struct mlxbf_tmfifo_vdev *tm_dev2 = fifo->vdev[vdev_id]; in mlxbf_tmfifo_rxtx_header()
707 hdr_len = (vring->vdev_id == VIRTIO_ID_NET) ? in mlxbf_tmfifo_rxtx_header()
710 hdr.type = (vring->vdev_id == VIRTIO_ID_NET) ? in mlxbf_tmfifo_rxtx_header()
737 vdev = &fifo->vdev[vring->vdev_id]->vdev; in mlxbf_tmfifo_rxtx_one_desc()
825 int avail = 0, devid = vring->vdev_id; in mlxbf_tmfifo_rxtx()
930 if (vring->vdev_id == VIRTIO_ID_CONSOLE) { in mlxbf_tmfifo_virtio_notify()
1123 int vdev_id, u64 features, in mlxbf_tmfifo_create_vdev() argument
1131 tm_vdev = fifo->vdev[vdev_id]; in mlxbf_tmfifo_create_vdev()
1133 dev_err(dev, "vdev %d already exists\n", vdev_id); in mlxbf_tmfifo_create_vdev()
1144 tm_vdev->vdev.id.device = vdev_id; in mlxbf_tmfifo_create_vdev()
1159 if (vdev_id == VIRTIO_ID_CONSOLE) in mlxbf_tmfifo_create_vdev()
1163 fifo->vdev[vdev_id] = tm_vdev; in mlxbf_tmfifo_create_vdev()
1178 fifo->vdev[vdev_id] = NULL; in mlxbf_tmfifo_create_vdev()
1189 static int mlxbf_tmfifo_delete_vdev(struct mlxbf_tmfifo *fifo, int vdev_id) in mlxbf_tmfifo_delete_vdev() argument
1196 tm_vdev = fifo->vdev[vdev_id]; in mlxbf_tmfifo_delete_vdev()
1200 fifo->vdev[vdev_id] = NULL; in mlxbf_tmfifo_delete_vdev()