Searched refs:query_ctx (Results 1 – 2 of 2) sorted by relevance
1406 void *query_ctx; in mlx5_esw_sf_max_hpf_functions() local1415 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_esw_sf_max_hpf_functions()1416 if (!query_ctx) in mlx5_esw_sf_max_hpf_functions()1419 err = mlx5_query_hca_cap_host_pf(dev, query_ctx); in mlx5_esw_sf_max_hpf_functions()1423 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_sf_max_hpf_functions()1428 kfree(query_ctx); in mlx5_esw_sf_max_hpf_functions()
3783 void *query_ctx; in mlx5_esw_query_vport_vhca_id() local3792 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_esw_query_vport_vhca_id()3793 if (!query_ctx) in mlx5_esw_query_vport_vhca_id()3796 err = mlx5_vport_get_other_func_cap(esw->dev, vport_num, query_ctx); in mlx5_esw_query_vport_vhca_id()3800 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_query_vport_vhca_id()3804 kfree(query_ctx); in mlx5_esw_query_vport_vhca_id()
Completed in 14 milliseconds