Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c1435 void *query_ctx; in mlx5_esw_sf_max_hpf_functions() local
1444 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_esw_sf_max_hpf_functions()
1445 if (!query_ctx) in mlx5_esw_sf_max_hpf_functions()
1448 err = mlx5_query_hca_cap_host_pf(dev, query_ctx); in mlx5_esw_sf_max_hpf_functions()
1452 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_sf_max_hpf_functions()
1457 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()