Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c805 void *query_ctx; in mlx5_esw_vport_caps_get() local
812 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_esw_vport_caps_get()
813 if (!query_ctx) in mlx5_esw_vport_caps_get()
816 err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx, in mlx5_esw_vport_caps_get()
821 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_vport_caps_get()
828 memset(query_ctx, 0, query_out_sz); in mlx5_esw_vport_caps_get()
829 err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx, in mlx5_esw_vport_caps_get()
834 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_vport_caps_get()
839 kfree(query_ctx); in mlx5_esw_vport_caps_get()
1834 void *query_ctx; in mlx5_esw_sf_max_hpf_functions() local
[all …]
H A Deswitch_offloads.c4581 void *query_ctx; in mlx5_devlink_port_fn_migratable_set() local
4602 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_devlink_port_fn_migratable_set()
4603 if (!query_ctx) { in mlx5_devlink_port_fn_migratable_set()
4608 err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx, in mlx5_devlink_port_fn_migratable_set()
4615 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_devlink_port_fn_migratable_set()
4628 kfree(query_ctx); in mlx5_devlink_port_fn_migratable_set()
4658 void *query_ctx; in mlx5_devlink_port_fn_roce_set() local
4674 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_devlink_port_fn_roce_set()
4675 if (!query_ctx) { in mlx5_devlink_port_fn_roce_set()
4680 err = mlx5_vport_get_other_func_cap(esw->dev, vport_num, query_ctx, in mlx5_devlink_port_fn_roce_set()
[all …]
H A Dvport.c1331 void *query_ctx; in mlx5_vport_get_vhca_id() local
1339 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_vport_get_vhca_id()
1340 if (!query_ctx) in mlx5_vport_get_vhca_id()
1343 err = mlx5_vport_get_other_func_general_cap(dev, vport, query_ctx); in mlx5_vport_get_vhca_id()
1347 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_vport_get_vhca_id()
1351 kfree(query_ctx); in mlx5_vport_get_vhca_id()