Lines Matching refs:vdev_id

82 	int vdev_id;  member
245 vring->vdev_id = tm_vdev->vdev.id.device; in mlxbf_tmfifo_alloc_vrings()
389 if (desc && is_rx && vring->vdev_id == VIRTIO_ID_NET) in mlxbf_tmfifo_get_next_pkt()
480 static int mlxbf_tmfifo_get_tx_avail(struct mlxbf_tmfifo *fifo, int vdev_id) in mlxbf_tmfifo_get_tx_avail() argument
487 if (vdev_id == VIRTIO_ID_NET) in mlxbf_tmfifo_get_tx_avail()
615 int vdev_id, hdr_len; in mlxbf_tmfifo_rxtx_header() local
628 vdev_id = VIRTIO_ID_NET; in mlxbf_tmfifo_rxtx_header()
630 config = &fifo->vdev[vdev_id]->config.net; in mlxbf_tmfifo_rxtx_header()
638 vdev_id = VIRTIO_ID_CONSOLE; in mlxbf_tmfifo_rxtx_header()
646 if (vdev_id != vring->vdev_id) { in mlxbf_tmfifo_rxtx_header()
647 struct mlxbf_tmfifo_vdev *tm_dev2 = fifo->vdev[vdev_id]; in mlxbf_tmfifo_rxtx_header()
658 hdr_len = (vring->vdev_id == VIRTIO_ID_NET) ? in mlxbf_tmfifo_rxtx_header()
661 hdr.type = (vring->vdev_id == VIRTIO_ID_NET) ? in mlxbf_tmfifo_rxtx_header()
688 vdev = &fifo->vdev[vring->vdev_id]->vdev; in mlxbf_tmfifo_rxtx_one_desc()
761 int avail = 0, devid = vring->vdev_id; in mlxbf_tmfifo_rxtx()
866 if (vring->vdev_id == VIRTIO_ID_CONSOLE) { in mlxbf_tmfifo_virtio_notify()
1054 int vdev_id, u64 features, in mlxbf_tmfifo_create_vdev() argument
1062 tm_vdev = fifo->vdev[vdev_id]; in mlxbf_tmfifo_create_vdev()
1064 dev_err(dev, "vdev %d already exists\n", vdev_id); in mlxbf_tmfifo_create_vdev()
1075 tm_vdev->vdev.id.device = vdev_id; in mlxbf_tmfifo_create_vdev()
1090 if (vdev_id == VIRTIO_ID_CONSOLE) in mlxbf_tmfifo_create_vdev()
1094 fifo->vdev[vdev_id] = tm_vdev; in mlxbf_tmfifo_create_vdev()
1109 fifo->vdev[vdev_id] = NULL; in mlxbf_tmfifo_create_vdev()
1120 static int mlxbf_tmfifo_delete_vdev(struct mlxbf_tmfifo *fifo, int vdev_id) in mlxbf_tmfifo_delete_vdev() argument
1127 tm_vdev = fifo->vdev[vdev_id]; in mlxbf_tmfifo_delete_vdev()
1131 fifo->vdev[vdev_id] = NULL; in mlxbf_tmfifo_delete_vdev()