Lines Matching defs:mdev

409 	struct mlx5_core_dev   *mdev;
560 struct mlx5_core_dev *mdev;
1038 void mlx5_core_uplink_netdev_set(struct mlx5_core_dev *mdev, struct net_device *netdev);
1039 void mlx5_core_uplink_netdev_event_replay(struct mlx5_core_dev *mdev);
1117 int mlx5_alloc_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg,
1119 void mlx5_free_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg);
1163 int mlx5_core_query_vendor_id(struct mlx5_core_dev *mdev, u32 *vendor_id);
1189 struct mlx5_uars_page *mlx5_get_uars_page(struct mlx5_core_dev *mdev);
1190 void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up);
1198 void mlx5_vf_put_core_dev(struct mlx5_core_dev *mdev);
1200 int mlx5_sriov_blocking_notifier_register(struct mlx5_core_dev *mdev,
1203 void mlx5_sriov_blocking_notifier_unregister(struct mlx5_core_dev *mdev,
1206 int mlx5_rdma_rn_get_params(struct mlx5_core_dev *mdev,
1330 static inline bool mlx5e_is_macsec_device(const struct mlx5_core_dev *mdev)
1332 if (!(MLX5_CAP_GEN_64(mdev, general_obj_types) &
1336 if (!MLX5_CAP_GEN(mdev, log_max_dek))
1339 if (!MLX5_CAP_MACSEC(mdev, log_max_macsec_offload))
1342 if (!MLX5_CAP_FLOWTABLE_NIC_RX(mdev, macsec_decrypt) ||
1343 !MLX5_CAP_FLOWTABLE_NIC_RX(mdev, reformat_remove_macsec))
1346 if (!MLX5_CAP_FLOWTABLE_NIC_TX(mdev, macsec_encrypt) ||
1347 !MLX5_CAP_FLOWTABLE_NIC_TX(mdev, reformat_add_macsec))
1350 if (!MLX5_CAP_MACSEC(mdev, macsec_crypto_esp_aes_gcm_128_encrypt) &&
1351 !MLX5_CAP_MACSEC(mdev, macsec_crypto_esp_aes_gcm_256_encrypt))
1354 if (!MLX5_CAP_MACSEC(mdev, macsec_crypto_esp_aes_gcm_128_decrypt) &&
1355 !MLX5_CAP_MACSEC(mdev, macsec_crypto_esp_aes_gcm_256_decrypt))
1363 static inline bool mlx5_is_macsec_roce_supported(struct mlx5_core_dev *mdev)
1365 if (((MLX5_CAP_GEN_2(mdev, flow_table_type_2_type) &
1367 !MLX5_CAP_FLOWTABLE_RDMA_TX(mdev, max_modify_header_actions) ||
1368 !mlx5e_is_macsec_device(mdev) || !mdev->macsec_fs)