Home
last modified time | relevance | path

Searched refs:nvfs (Results 1 - 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.h575 #define mlx5_esw_for_each_vf_vport(esw, i, vport, nvfs) \
578 (i) <= (nvfs); (i)++)
580 #define mlx5_esw_for_each_vf_vport_reverse(esw, i, vport, nvfs) \
581 for ((i) = (nvfs); \
593 #define mlx5_esw_for_each_vf_rep(esw, i, rep, nvfs) \
596 (i) <= (nvfs); (i)++)
598 #define mlx5_esw_for_each_vf_rep_reverse(esw, i, rep, nvfs) \
599 for ((i) = (nvfs); \
603 #define mlx5_esw_for_each_vf_vport_num(esw, vport, nvfs) \
604 for ((vport) = MLX5_VPORT_FIRST_VF; (vport) <= (nvfs); (vpor
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A Dmain.c1374 int nvfs; in mlx4_mf_bond() local
1394 nvfs = bitmap_weight(slaves_port1.slaves, dev->persist->num_vfs + 1) + in mlx4_mf_bond()
1398 if (nvfs > MAX_MF_BOND_ALLOWED_SLAVES) { in mlx4_mf_bond()
1400 nvfs, MAX_MF_BOND_ALLOWED_SLAVES); in mlx4_mf_bond()
3291 int *nvfs) in mlx4_check_dev_cap()
3293 int requested_vfs = nvfs[0] + nvfs[1] + nvfs[2]; in mlx4_check_dev_cap()
3333 int total_vfs, int *nvfs, struct mlx4_priv *priv, in mlx4_load_one()
3454 if (mlx4_check_dev_cap(dev, dev_cap, nvfs)) in mlx4_load_one()
3290 mlx4_check_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap, int *nvfs) mlx4_check_dev_cap() argument
3332 mlx4_load_one(struct pci_dev *pdev, int pci_dev_data, int total_vfs, int *nvfs, struct mlx4_priv *priv, int reset_flow) mlx4_load_one() argument
3731 int nvfs[MLX4_MAX_PORTS + 1] = {0, 0, 0}; __mlx4_init_one() local
4223 int nvfs[MLX4_MAX_PORTS + 1] = {0, 0, 0}; mlx4_restart_one_up() local
4350 int nvfs[MLX4_MAX_PORTS + 1] = {0, 0, 0}; mlx4_pci_resume() local
4419 int nvfs[MLX4_MAX_PORTS + 1] = {0, 0, 0}; mlx4_resume() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Dmain.c1351 int nvfs; in mlx4_mf_bond() local
1368 nvfs = bitmap_weight(slaves_port1.slaves, dev->persist->num_vfs + 1) + in mlx4_mf_bond()
1372 if (nvfs > MAX_MF_BOND_ALLOWED_SLAVES) { in mlx4_mf_bond()
1374 nvfs, MAX_MF_BOND_ALLOWED_SLAVES); in mlx4_mf_bond()
3349 int *nvfs) in mlx4_check_dev_cap()
3351 int requested_vfs = nvfs[0] + nvfs[1] + nvfs[2]; in mlx4_check_dev_cap()
3391 int total_vfs, int *nvfs, struct mlx4_priv *priv, in mlx4_load_one()
3518 if (mlx4_check_dev_cap(dev, dev_cap, nvfs)) in mlx4_load_one()
3348 mlx4_check_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap, int *nvfs) mlx4_check_dev_cap() argument
3390 mlx4_load_one(struct pci_dev *pdev, int pci_dev_data, int total_vfs, int *nvfs, struct mlx4_priv *priv, int reset_flow) mlx4_load_one() argument
3796 int nvfs[MLX4_MAX_PORTS + 1] = {0, 0, 0}; __mlx4_init_one() local
4256 int nvfs[MLX4_MAX_PORTS + 1] = {0, 0, 0}; mlx4_restart_one_up() local
4388 int nvfs[MLX4_MAX_PORTS + 1] = {0, 0, 0}; mlx4_pci_resume() local
4468 int nvfs[MLX4_MAX_PORTS + 1] = {0, 0, 0}; mlx4_resume() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_main.c1961 static int funeth_sriov_configure(struct pci_dev *pdev, int nvfs) in funeth_sriov_configure() argument
1967 if (nvfs == 0) { in funeth_sriov_configure()
1981 rc = pci_enable_sriov(pdev, nvfs); in funeth_sriov_configure()
1986 rc = fun_init_vports(ed, nvfs); in funeth_sriov_configure()
1993 return nvfs; in funeth_sriov_configure()
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
H A Dmain.c178 u32 nvfs; in bnxt_re_limit_vf_res() local
186 nvfs = num_vf; in bnxt_re_limit_vf_res()
201 nvfs = num_vf; in bnxt_re_limit_vf_res()
205 vf_res->max_mrw_per_vf = (mrws / nvfs); in bnxt_re_limit_vf_res()
/kernel/linux/linux-6.6/drivers/infiniband/hw/bnxt_re/
H A Dmain.c229 u32 nvfs; in bnxt_re_limit_vf_res() local
237 nvfs = num_vf; in bnxt_re_limit_vf_res()
252 nvfs = num_vf; in bnxt_re_limit_vf_res()
256 vf_res->max_mrw_per_vf = (mrws / nvfs); in bnxt_re_limit_vf_res()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu.c395 int pf, vf, nvfs; in is_pf_func_valid() local
408 nvfs = (cfg >> 12) & 0xFF; in is_pf_func_valid()
409 if (vf >= nvfs) in is_pf_func_valid()
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu.c445 int pf, vf, nvfs; in is_pf_func_valid() local
458 nvfs = (cfg >> 12) & 0xFF; in is_pf_func_valid()
459 if (vf >= nvfs) in is_pf_func_valid()
/kernel/linux/linux-5.10/include/linux/mlx4/
H A Ddevice.h859 int nvfs[MLX4_MAX_PORTS + 1]; member
/kernel/linux/linux-6.6/include/linux/mlx4/
H A Ddevice.h859 int nvfs[MLX4_MAX_PORTS + 1]; member
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_main.c3202 unsigned int i, vf, nvfs; in cxgb4_mgmt_fill_vf_station_mac_addr() local
3229 for (vf = 0, nvfs = pci_sriov_get_totalvfs(adap->pdev); in cxgb4_mgmt_fill_vf_station_mac_addr()
3230 vf < nvfs; vf++) { in cxgb4_mgmt_fill_vf_station_mac_addr()
3231 macaddr[5] = adap->pf * nvfs + vf; in cxgb4_mgmt_fill_vf_station_mac_addr()
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_main.c3201 unsigned int i, vf, nvfs; in cxgb4_mgmt_fill_vf_station_mac_addr() local
3226 for (vf = 0, nvfs = pci_sriov_get_totalvfs(adap->pdev); in cxgb4_mgmt_fill_vf_station_mac_addr()
3227 vf < nvfs; vf++) { in cxgb4_mgmt_fill_vf_station_mac_addr()
3228 macaddr[5] = adap->pf * nvfs + vf; in cxgb4_mgmt_fill_vf_station_mac_addr()

Completed in 61 milliseconds