Lines Matching refs:mlx5_vdpa_virtqueue

104 struct mlx5_vdpa_virtqueue {  struct
163 static int resume_vq(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq); argument
374 struct mlx5_vdpa_virtqueue *mvq, u32 num_ent) in qp_prepare()
419 static int qp_create(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq, in qp_create()
511 static void mlx5_vdpa_handle_completions(struct mlx5_vdpa_virtqueue *mvq, int num) in mlx5_vdpa_handle_completions()
530 struct mlx5_vdpa_virtqueue *mvq = container_of(mcq, struct mlx5_vdpa_virtqueue, cq.mcq); in mlx5_vdpa_cq_comp()
557 struct mlx5_vdpa_virtqueue *mvq = &ndev->vqs[idx]; in cq_create()
634 struct mlx5_vdpa_virtqueue *mvq = &ndev->vqs[idx]; in cq_destroy()
686 static void set_umem_size(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq, int num, in set_umem_size()
718 static int create_umem(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq, int num) in create_umem()
768 static void umem_destroy(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq, int num) in umem_destroy()
794 static int umems_create(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq) in umems_create()
813 static void umems_destroy(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq) in umems_destroy()
879 struct mlx5_vdpa_virtqueue *mvq, in create_virtqueue()
1003 static void destroy_virtqueue(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq) in destroy_virtqueue()
1028 static u32 get_rqpn(struct mlx5_vdpa_virtqueue *mvq, bool fw) in get_rqpn()
1033 static u32 get_qpn(struct mlx5_vdpa_virtqueue *mvq, bool fw) in get_qpn()
1133 static int modify_qp(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq, bool fw, int cmd) in modify_qp()
1150 static int connect_qps(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq) in connect_qps()
1198 struct mlx5_vdpa_virtqueue *mvq, in fill_query_virtqueue_cmd()
1296 static bool modifiable_virtqueue_fields(struct mlx5_vdpa_virtqueue *mvq) in modifiable_virtqueue_fields()
1307 struct mlx5_vdpa_virtqueue *mvq, in fill_modify_virtqueue_cmd()
1378 struct mlx5_vdpa_virtqueue *mvq, in modify_virtqueue_end()
1407 static int counter_set_alloc(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq) in counter_set_alloc()
1432 static void counter_set_dealloc(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq) in counter_set_dealloc()
1459 struct mlx5_vdpa_virtqueue *mvq) in alloc_vector()
1485 struct mlx5_vdpa_virtqueue *mvq) in dealloc_vector()
1499 struct mlx5_vdpa_virtqueue *mvq, in setup_vq()
1576 struct mlx5_vdpa_virtqueue *mvq; in modify_virtqueues()
1611 struct mlx5_vdpa_virtqueue *mvq; in modify_virtqueues()
1635 struct mlx5_vdpa_virtqueue *mvq; in suspend_vqs()
1673 static int suspend_vq(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq) in suspend_vq()
1680 struct mlx5_vdpa_virtqueue *mvq; in resume_vqs()
1719 static int resume_vq(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq) in resume_vq()
1724 static void teardown_vq(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq) in teardown_vq()
2432 struct mlx5_vdpa_virtqueue *mvq; in mlx5_vdpa_kick_vq()
2457 struct mlx5_vdpa_virtqueue *mvq; in mlx5_vdpa_set_vq_address()
2481 struct mlx5_vdpa_virtqueue *mvq; in mlx5_vdpa_set_vq_num()
2533 struct mlx5_vdpa_virtqueue *mvq; in mlx5_vdpa_set_vq_ready()
2576 struct mlx5_vdpa_virtqueue *mvq; in mlx5_vdpa_set_vq_state()
2603 struct mlx5_vdpa_virtqueue *mvq; in mlx5_vdpa_get_vq_state()
2922 struct mlx5_vdpa_virtqueue *mvq = &ndev->vqs[i]; in mlx5_vdpa_set_driver_features()
2976 static int save_channel_info(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq) in save_channel_info()
3016 memset(&ndev->vqs[i], 0, offsetof(struct mlx5_vdpa_virtqueue, ri)); in mlx5_clear_vqs()
3021 struct mlx5_vdpa_virtqueue *mvq; in restore_channels_info()
3244 struct mlx5_vdpa_virtqueue *mvq = &ndev->vqs[0]; in needs_vqs_reset()
3478 struct mlx5_vdpa_virtqueue *mvq; in mlx5_get_vq_irq()
3500 static int counter_set_query(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq, in counter_set_query()
3538 struct mlx5_vdpa_virtqueue *mvq; in mlx5_vdpa_get_vendor_vq_stats()
3747 struct mlx5_vdpa_virtqueue *mvq; in mvqs_set_defaults()
3752 memset(mvq, 0, offsetof(struct mlx5_vdpa_virtqueue, ri)); in mvqs_set_defaults()