Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c1398 void *query_ctx; in mlx5_esw_sf_max_hpf_functions() local
1407 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_esw_sf_max_hpf_functions()
1408 if (!query_ctx) in mlx5_esw_sf_max_hpf_functions()
1411 err = mlx5_query_hca_cap_host_pf(dev, query_ctx); in mlx5_esw_sf_max_hpf_functions()
1415 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_sf_max_hpf_functions()
1420 kfree(query_ctx); in mlx5_esw_sf_max_hpf_functions()
Deswitch_offloads.c3736 void *query_ctx; in mlx5_esw_query_vport_vhca_id() local
3745 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_esw_query_vport_vhca_id()
3746 if (!query_ctx) in mlx5_esw_query_vport_vhca_id()
3749 err = mlx5_vport_get_other_func_cap(esw->dev, vport_num, query_ctx); in mlx5_esw_query_vport_vhca_id()
3753 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_query_vport_vhca_id()
3757 kfree(query_ctx); in mlx5_esw_query_vport_vhca_id()