Searched refs:query_ctx (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | vport.c | 334 void *query_ctx, *hca_caps; in mlx5_modify_nic_vport_mtu() 342 query_ctx = kzalloc(MLX5_ST_SZ_BYTES(query_hca_cap_out), GFP_KERNEL); in mlx5_modify_nic_vport_mtu() 343 if (!query_ctx) in mlx5_modify_nic_vport_mtu() 346 ret = mlx5_vport_get_other_func_general_cap(dev, vport, query_ctx); in mlx5_modify_nic_vport_mtu() 350 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_modify_nic_vport_mtu() 356 kfree(query_ctx); in mlx5_vport_max_mac_list_size() 1375 void *query_ctx; in mlx5_vport_get_other_func_cap() 1383 query_ctx = kvzalloc(query_out_sz, GFP_KERNEL); in mlx5_vport_get_other_func_cap() 1384 if (!query_ctx) in mlx5_vport_get_other_func_cap() 1387 err = mlx5_vport_get_other_func_general_cap(dev, vport, query_ctx); in mlx5_vport_get_other_func_cap() 358 void *query_ctx, *hca_caps; mlx5_vport_max_mac_list_size() local 1399 void *query_ctx; mlx5_vport_get_vhca_id() local [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() 2080 void *query_ctx; in mlx5_esw_sf_max_pf_functions() local [all …]
|
| H A D | eswitch_offloads.c | 5148 void *query_ctx; in mlx5_devlink_port_fn_migratable_set() local 5169 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_devlink_port_fn_migratable_set() 5170 if (!query_ctx) { in mlx5_devlink_port_fn_migratable_set() 5175 err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx, in mlx5_devlink_port_fn_migratable_set() 5182 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability); in mlx5_devlink_port_fn_migratable_set() 5195 kfree(query_ctx); in mlx5_devlink_port_fn_migratable_set() 5226 void *query_ctx; in mlx5_devlink_port_fn_roce_set() local 5242 query_ctx = kzalloc(query_out_sz, GFP_KERNEL); in mlx5_devlink_port_fn_roce_set() 5243 if (!query_ctx) { in mlx5_devlink_port_fn_roce_set() 5248 err = mlx5_vport_get_other_func_cap(esw->dev, vport_num, query_ctx, in mlx5_devlink_port_fn_roce_set() [all …]
|