Lines Matching defs:mvdev
147 static bool is_index_valid(struct mlx5_vdpa_dev *mvdev, u16 idx) in is_index_valid()
180 static inline bool mlx5_vdpa_is_little_endian(struct mlx5_vdpa_dev *mvdev) in mlx5_vdpa_is_little_endian()
186 static u16 mlx5vdpa16_to_cpu(struct mlx5_vdpa_dev *mvdev, __virtio16 val) in mlx5vdpa16_to_cpu()
191 static __virtio16 cpu_to_mlx5vdpa16(struct mlx5_vdpa_dev *mvdev, u16 val) in cpu_to_mlx5vdpa16()
196 static u16 ctrl_vq_idx(struct mlx5_vdpa_dev *mvdev) in ctrl_vq_idx()
204 static bool is_ctrl_vq_idx(struct mlx5_vdpa_dev *mvdev, u16 idx) in is_ctrl_vq_idx()
209 static void print_status(struct mlx5_vdpa_dev *mvdev, u8 status, bool set) in print_status()
232 static void print_features(struct mlx5_vdpa_dev *mvdev, u64 features, bool set) in print_features()
283 struct mlx5_vdpa_dev *mvdev = &ndev->mvdev; in create_tis() local
863 static bool counters_supported(const struct mlx5_vdpa_dev *mvdev) in counters_supported()
869 static bool msix_mode_supported(struct mlx5_vdpa_dev *mvdev) in msix_mode_supported()
882 struct mlx5_vdpa_dev *mvdev = &ndev->mvdev; in create_virtqueue() local
1224 struct mlx5_vdpa_dev *mvdev = &ndev->mvdev; in query_virtqueues() local
1309 struct mlx5_vdpa_dev *mvdev = &ndev->mvdev; in fill_modify_virtqueue_cmd() local
1379 struct mlx5_vdpa_dev *mvdev = &ndev->mvdev; in modify_virtqueue_end() local
1557 struct mlx5_vdpa_dev *mvdev = &ndev->mvdev; in modify_virtqueues() local
2128 static virtio_net_ctrl_ack handle_ctrl_mac(struct mlx5_vdpa_dev *mvdev, u8 cmd) in handle_ctrl_mac()
2217 static int change_num_qps(struct mlx5_vdpa_dev *mvdev, int newqps) in change_num_qps()
2266 static virtio_net_ctrl_ack handle_ctrl_mq(struct mlx5_vdpa_dev *mvdev, u8 cmd) in handle_ctrl_mq()
2314 static virtio_net_ctrl_ack handle_ctrl_vlan(struct mlx5_vdpa_dev *mvdev, u8 cmd) in handle_ctrl_vlan()
2359 struct mlx5_vdpa_dev *mvdev; in mlx5_cvq_kick_handler() local
2428 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_kick_vq() local
2453 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_set_vq_address() local
2477 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_set_vq_num() local
2498 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_set_vq_cb() local
2516 static void set_cvq_ready(struct mlx5_vdpa_dev *mvdev, bool ready) in set_cvq_ready()
2529 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_set_vq_ready() local
2557 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_get_vq_ready() local
2572 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_set_vq_state() local
2599 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_get_vq_state() local
2643 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_get_vq_group() local
2653 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_get_vq_desc_group() local
2710 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_get_device_features() local
2717 static int verify_driver_features(struct mlx5_vdpa_dev *mvdev, u64 features) in verify_driver_features()
2739 static int setup_virtqueues(struct mlx5_vdpa_dev *mvdev, bool filled) in setup_virtqueues()
2768 static void update_cvq_info(struct mlx5_vdpa_dev *mvdev) in update_cvq_info()
2805 static bool get_link_state(struct mlx5_vdpa_dev *mvdev) in get_link_state()
2817 struct mlx5_vdpa_dev *mvdev; in update_carrier() local
2903 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_set_driver_features() local
2943 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_set_config_cb() local
2967 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_get_status() local
3042 static int mlx5_vdpa_change_map(struct mlx5_vdpa_dev *mvdev, in mlx5_vdpa_change_map()
3083 struct mlx5_vdpa_dev *mvdev = &ndev->mvdev; in setup_vq_resources() local
3156 static int setup_cvq_vring(struct mlx5_vdpa_dev *mvdev) in setup_cvq_vring()
3178 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_set_status() local
3230 static void init_group_to_asid_map(struct mlx5_vdpa_dev *mvdev) in init_group_to_asid_map()
3239 static bool needs_vqs_reset(const struct mlx5_vdpa_dev *mvdev) in needs_vqs_reset()
3260 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_compat_reset() local
3313 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_get_config() local
3328 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_get_generation() local
3333 static int set_map_data(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in set_map_data()
3374 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_set_map() local
3386 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_reset_map() local
3398 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_get_vq_map() local
3430 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_free() local
3455 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_get_vq_notification() local
3479 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_get_vq_irq() local
3498 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_get_driver_features() local
3539 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_get_vendor_vq_stats() local
3590 static void mlx5_vdpa_cvq_suspend(struct mlx5_vdpa_dev *mvdev) in mlx5_vdpa_cvq_suspend()
3603 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_suspend() local
3620 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_vdpa_resume() local
3640 struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); in mlx5_set_group_asid() local
3827 struct mlx5_vdpa_dev *mvdev; in mlx5_vdpa_dev_add() local
4027 struct mlx5_vdpa_dev *mvdev = to_mvdev(dev); in mlx5_vdpa_dev_del() local
4049 struct mlx5_vdpa_dev *mvdev; in mlx5_vdpa_set_attr() local