Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c1445 void *query_ctx; in mlx5_esw_sf_max_hpf_functions() local
1454 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_esw_sf_max_hpf_functions()
1455 if (!query_ctx) in mlx5_esw_sf_max_hpf_functions()
1458 err = mlx5_query_hca_cap_host_pf(dev, query_ctx); in mlx5_esw_sf_max_hpf_functions()
1462 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_sf_max_hpf_functions()
1467 kfree(query_ctx); in mlx5_esw_sf_max_hpf_functions()
Deswitch_offloads.c3876 void *query_ctx; in mlx5_esw_query_vport_vhca_id() local
3885 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_esw_query_vport_vhca_id()
3886 if (!query_ctx) in mlx5_esw_query_vport_vhca_id()
3889 err = mlx5_vport_get_other_func_cap(esw->dev, vport_num, query_ctx); in mlx5_esw_query_vport_vhca_id()
3893 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_query_vport_vhca_id()
3897 kfree(query_ctx); in mlx5_esw_query_vport_vhca_id()