Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
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()
827 memset(query_ctx, 0, query_out_sz); in mlx5_esw_vport_caps_get()
828 err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx, in mlx5_esw_vport_caps_get()
833 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_vport_caps_get()
838 kfree(query_ctx); in mlx5_esw_vport_caps_get()
1665 void *query_ctx; in mlx5_esw_sf_max_hpf_functions() local
[all …]
Deswitch_offloads.c4147 void *query_ctx; in mlx5_esw_query_vport_vhca_id() local
4153 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_esw_query_vport_vhca_id()
4154 if (!query_ctx) in mlx5_esw_query_vport_vhca_id()
4157 err = mlx5_vport_get_other_func_general_cap(esw->dev, vport_num, query_ctx); in mlx5_esw_query_vport_vhca_id()
4161 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_query_vport_vhca_id()
4165 kfree(query_ctx); in mlx5_esw_query_vport_vhca_id()
4284 void *query_ctx; in mlx5_devlink_port_fn_migratable_set() local
4305 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_devlink_port_fn_migratable_set()
4306 if (!query_ctx) { in mlx5_devlink_port_fn_migratable_set()
4311 err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx, in mlx5_devlink_port_fn_migratable_set()
[all …]