Searched refs:query_ctx (Results 1 – 2 of 2) sorted by relevance
1398 void *query_ctx; in mlx5_esw_sf_max_hpf_functions() local1407 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()
3736 void *query_ctx; in mlx5_esw_query_vport_vhca_id() local3745 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()