Searched refs:query_ctx (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | vport.c | 330 void *query_ctx, *hca_caps; in mlx5_vport_max_mac_list_size() local 338 query_ctx = kzalloc(MLX5_ST_SZ_BYTES(query_hca_cap_out), GFP_KERNEL); in mlx5_vport_max_mac_list_size() 339 if (!query_ctx) in mlx5_vport_max_mac_list_size() 342 ret = mlx5_vport_get_other_func_general_cap(dev, vport, query_ctx); in mlx5_vport_max_mac_list_size() 346 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_vport_max_mac_list_size() 352 kfree(query_ctx); in mlx5_vport_max_mac_list_size() 1371 void *query_ctx; in mlx5_vport_get_vhca_id() local 1379 query_ctx = kvzalloc(query_out_sz, GFP_KERNEL); in mlx5_vport_get_vhca_id() 1380 if (!query_ctx) in mlx5_vport_get_vhca_id() 1383 err = mlx5_vport_get_other_func_general_cap(dev, vport, query_ctx); in mlx5_vport_get_vhca_id() [all …]
|
| H A D | eswitch.c | 798 void *query_ctx; in mlx5_esw_vport_caps_get() local 805 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_esw_vport_caps_get() 806 if (!query_ctx) in mlx5_esw_vport_caps_get() 809 err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx, in mlx5_esw_vport_caps_get() 814 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_vport_caps_get() 821 memset(query_ctx, 0, query_out_sz); in mlx5_esw_vport_caps_get() 822 err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx, in mlx5_esw_vport_caps_get() 827 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_esw_vport_caps_get() 832 kfree(query_ctx); in mlx5_esw_vport_caps_get() 2074 void *query_ctx; in mlx5_esw_sf_max_pf_functions() local [all …]
|
| H A D | eswitch_offloads.c | 5144 void *query_ctx; in mlx5_devlink_port_fn_migratable_set() local 5165 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_devlink_port_fn_migratable_set() 5166 if (!query_ctx) { in mlx5_devlink_port_fn_migratable_set() 5171 err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx, in mlx5_devlink_port_fn_migratable_set() 5178 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_devlink_port_fn_migratable_set() 5191 kfree(query_ctx); in mlx5_devlink_port_fn_migratable_set() 5222 void *query_ctx; in mlx5_devlink_port_fn_roce_set() local 5238 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_devlink_port_fn_roce_set() 5239 if (!query_ctx) { in mlx5_devlink_port_fn_roce_set() 5244 err = mlx5_vport_get_other_func_cap(esw->dev, vport_num, query_ctx, in mlx5_devlink_port_fn_roce_set() [all …]
|