Lines Matching refs:start_vq

1222 			    int start_vq,  in query_virtqueues()  argument
1231 WARN(start_vq + num_vqs > mvdev->max_vqs, "query vq range invalid [%d, %d), max_vqs: %u\n", in query_virtqueues()
1232 start_vq, start_vq + num_vqs, mvdev->max_vqs); in query_virtqueues()
1246 fill_query_virtqueue_cmd(ndev, &ndev->vqs[start_vq + i], &cmd_mem[i]); in query_virtqueues()
1252 start_vq, start_vq + num_vqs, err); in query_virtqueues()
1258 int vq_idx = start_vq + i; in query_virtqueues()
1557 static int modify_virtqueues(struct mlx5_vdpa_net *ndev, int start_vq, int num_vqs, int state) in modify_virtqueues() argument
1564 WARN(start_vq + num_vqs > mvdev->max_vqs, "modify vq range invalid [%d, %d), max_vqs: %u\n", in modify_virtqueues()
1565 start_vq, start_vq + num_vqs, mvdev->max_vqs); in modify_virtqueues()
1577 int vq_idx = start_vq + i; in modify_virtqueues()
1605 start_vq, start_vq + num_vqs); in modify_virtqueues()
1612 int vq_idx = start_vq + i; in modify_virtqueues()
1633 static int suspend_vqs(struct mlx5_vdpa_net *ndev, int start_vq, int num_vqs) in suspend_vqs() argument
1640 if (start_vq >= ndev->cur_num_vqs) in suspend_vqs()
1643 mvq = &ndev->vqs[start_vq]; in suspend_vqs()
1650 err = modify_virtqueues(ndev, start_vq, num_vqs, MLX5_VIRTIO_NET_Q_OBJECT_STATE_SUSPEND); in suspend_vqs()
1658 err = query_virtqueues(ndev, start_vq, num_vqs, attrs); in suspend_vqs()
1662 for (i = 0, vq_idx = start_vq; i < num_vqs; i++, vq_idx++) { in suspend_vqs()
1678 static int resume_vqs(struct mlx5_vdpa_net *ndev, int start_vq, int num_vqs) in resume_vqs() argument
1683 if (start_vq >= ndev->mvdev.max_vqs) in resume_vqs()
1686 mvq = &ndev->vqs[start_vq]; in resume_vqs()
1698 err = modify_virtqueues(ndev, start_vq, num_vqs, mvq->fw_state); in resume_vqs()
1716 return modify_virtqueues(ndev, start_vq, num_vqs, MLX5_VIRTIO_NET_Q_OBJECT_STATE_RDY); in resume_vqs()