Home
last modified time | relevance | path

Searched refs:hca_caps (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c799 void *hca_caps; in mlx5_esw_vport_caps_get() local
814 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_vport_caps_get()
815 vport->info.roce_enabled = MLX5_GET(cmd_hca_cap, hca_caps, roce); in mlx5_esw_vport_caps_get()
816 vport->vhca_id = MLX5_GET(cmd_hca_cap, hca_caps, vhca_id); in mlx5_esw_vport_caps_get()
827 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_vport_caps_get()
828 vport->info.mig_enabled = MLX5_GET(cmd_hca_cap_2, hca_caps, migratable); in mlx5_esw_vport_caps_get()
2075 void *hca_caps; in mlx5_esw_sf_max_pf_functions() local
2086 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_sf_max_pf_functions()
2087 *max_sfs = MLX5_GET(cmd_hca_cap, hca_caps, max_num_sf); in mlx5_esw_sf_max_pf_functions()
2088 *sf_base_id = MLX5_GET(cmd_hca_cap, hca_caps, sf_base_id); in mlx5_esw_sf_max_pf_functions()
H A Dmain.c303 void *out, *hca_caps; in mlx5_core_get_caps_mode() local
326 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, out, capability); in mlx5_core_get_caps_mode()
330 memcpy(dev->caps.hca[cap_type]->max, hca_caps, in mlx5_core_get_caps_mode()
334 memcpy(dev->caps.hca[cap_type]->cur, hca_caps, in mlx5_core_get_caps_mode()