Home
last modified time | relevance | path

Searched refs:nvfs (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.h535 #define mlx5_esw_for_each_vf_vport(esw, i, vport, nvfs) \ argument
538 (i) <= (nvfs); (i)++)
540 #define mlx5_esw_for_each_vf_vport_reverse(esw, i, vport, nvfs) \ argument
541 for ((i) = (nvfs); \
553 #define mlx5_esw_for_each_vf_rep(esw, i, rep, nvfs) \ argument
556 (i) <= (nvfs); (i)++)
558 #define mlx5_esw_for_each_vf_rep_reverse(esw, i, rep, nvfs) \ argument
559 for ((i) = (nvfs); \
563 #define mlx5_esw_for_each_vf_vport_num(esw, vport, nvfs) \ argument
564 for ((vport) = MLX5_VPORT_FIRST_VF; (vport) <= (nvfs); (vport)++)
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Dmain.c1373 int nvfs; in mlx4_mf_bond() local
1393 nvfs = bitmap_weight(slaves_port1.slaves, dev->persist->num_vfs + 1) + in mlx4_mf_bond()
1397 if (nvfs > MAX_MF_BOND_ALLOWED_SLAVES) { in mlx4_mf_bond()
1399 nvfs, MAX_MF_BOND_ALLOWED_SLAVES); in mlx4_mf_bond()
3274 int *nvfs) in mlx4_check_dev_cap() argument
3276 int requested_vfs = nvfs[0] + nvfs[1] + nvfs[2]; in mlx4_check_dev_cap()
3316 int total_vfs, int *nvfs, struct mlx4_priv *priv, in mlx4_load_one() argument
3437 if (mlx4_check_dev_cap(dev, dev_cap, nvfs)) in mlx4_load_one()
3472 if (mlx4_check_dev_cap(dev, dev_cap, nvfs)) in mlx4_load_one()
3543 memcpy(dev->persist->nvfs, nvfs, sizeof(dev->persist->nvfs)); in mlx4_load_one()
[all …]
/Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/
Drvu.c356 int pf, vf, nvfs; in is_pf_func_valid() local
369 nvfs = (cfg >> 12) & 0xFF; in is_pf_func_valid()
370 if (vf >= nvfs) in is_pf_func_valid()
/Linux-v5.4/include/linux/mlx4/
Ddevice.h870 int nvfs[MLX4_MAX_PORTS + 1]; member
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c2763 unsigned int i, vf, nvfs; in cxgb4_mgmt_fill_vf_station_mac_addr() local
2790 for (vf = 0, nvfs = pci_sriov_get_totalvfs(adap->pdev); in cxgb4_mgmt_fill_vf_station_mac_addr()
2791 vf < nvfs; vf++) { in cxgb4_mgmt_fill_vf_station_mac_addr()
2792 macaddr[5] = adap->pf * nvfs + vf; in cxgb4_mgmt_fill_vf_station_mac_addr()