Home
last modified time | relevance | path

Searched refs:vfs (Results 1 – 15 of 15) sorted by relevance

/drivers/net/ethernet/pensando/ionic/
Dionic_bus_pci.c116 if (!ionic->vfs) in ionic_vf_dealloc_locked()
120 v = &ionic->vfs[i]; in ionic_vf_dealloc_locked()
132 kfree(ionic->vfs); in ionic_vf_dealloc_locked()
133 ionic->vfs = NULL; in ionic_vf_dealloc_locked()
152 ionic->vfs = kcalloc(num_vfs, sizeof(struct ionic_vf), GFP_KERNEL); in ionic_vf_alloc()
153 if (!ionic->vfs) { in ionic_vf_alloc()
159 v = &ionic->vfs[i]; in ionic_vf_alloc()
Dionic_lif.c2399 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_config()
2403 ivf->vlan = le16_to_cpu(ionic->vfs[vf].vlanid); in ionic_get_vf_config()
2405 ivf->spoofchk = ionic->vfs[vf].spoofchk; in ionic_get_vf_config()
2406 ivf->linkstate = ionic->vfs[vf].linkstate; in ionic_get_vf_config()
2407 ivf->max_tx_rate = le32_to_cpu(ionic->vfs[vf].maxrate); in ionic_get_vf_config()
2408 ivf->trusted = ionic->vfs[vf].trusted; in ionic_get_vf_config()
2409 ether_addr_copy(ivf->mac, ionic->vfs[vf].macaddr); in ionic_get_vf_config()
2429 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_stats()
2433 vs = &ionic->vfs[vf].stats; in ionic_get_vf_stats()
2467 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_mac()
[all …]
Dionic.h59 struct ionic_vf *vfs; member
/drivers/net/ethernet/marvell/octeontx2/af/
Drvu.c2441 int vfs = rvu->vfs; in rvu_mbox_intr_handler() local
2456 if (vfs > 64) { in rvu_mbox_intr_handler()
2460 rvu_queue_work(&rvu->afvf_wq_info, 64, vfs, intr); in rvu_mbox_intr_handler()
2461 vfs -= 64; in rvu_mbox_intr_handler()
2469 rvu_queue_work(&rvu->afvf_wq_info, 0, vfs, intr); in rvu_mbox_intr_handler()
2643 if (rvu->vfs > 64) in rvu_flr_intr_handler()
2644 rvu_afvf_queue_flr_work(rvu, 64, rvu->vfs - 64); in rvu_flr_intr_handler()
2978 int vfs = rvu->vfs; in rvu_disable_afvf_intr() local
2980 rvupf_write64(rvu, RVU_PF_VFPF_MBOX_INT_ENA_W1CX(0), INTR_MASK(vfs)); in rvu_disable_afvf_intr()
2981 rvupf_write64(rvu, RVU_PF_VFFLR_INT_ENA_W1CX(0), INTR_MASK(vfs)); in rvu_disable_afvf_intr()
[all …]
Drvu.h444 int vfs; /* Number of VFs attached to RVU */ member
/drivers/crypto/qat/qat_common/
Dadf_dev_mgr.c354 int vfs = 0; in adf_get_num_dettached_vfs() local
361 vfs++; in adf_get_num_dettached_vfs()
364 return vfs; in adf_get_num_dettached_vfs()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.h320 struct bnx2x_virtf *vfs; member
321 #define BP_VF(bp, idx) ((BP_VFDB(bp) && (bp)->vfdb->vfs) ? \
322 &((bp)->vfdb->vfs[idx]) : NULL)
323 #define bnx2x_vf(bp, idx, var) ((bp)->vfdb->vfs[idx].var)
Dbnx2x_sriov.c1109 kfree(bp->vfdb->vfs); in __bnx2x_iov_free_vfdb()
1250 bp->vfdb->vfs = kcalloc(BNX2X_NR_VIRTFN(bp), in bnx2x_iov_init_one()
1253 if (!bp->vfdb->vfs) { in bnx2x_iov_init_one()
/drivers/net/ethernet/mellanox/mlx4/
Dport.c1094 int vfs; in mlx4_get_slave_num_gids() local
1122 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_slave_num_gids()
1123 if (slave_gid <= ((MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS) % vfs)) in mlx4_get_slave_num_gids()
1124 return ((MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS) / vfs) + 1; in mlx4_get_slave_num_gids()
1125 return (MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS) / vfs; in mlx4_get_slave_num_gids()
1133 int vfs; in mlx4_get_base_gid_ix() local
1160 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_base_gid_ix()
1161 if (slave_gid <= gids % vfs) in mlx4_get_base_gid_ix()
1162 return MLX4_ROCE_PF_GIDS + ((gids / vfs) + 1) * (slave_gid - 1); in mlx4_get_base_gid_ix()
1164 return MLX4_ROCE_PF_GIDS + (gids % vfs) + in mlx4_get_base_gid_ix()
[all …]
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_pf.c70 int irq, vfs = pf->total_vfs; in otx2_disable_flr_me_intr() local
73 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1CX(0), INTR_MASK(vfs)); in otx2_disable_flr_me_intr()
78 otx2_write64(pf, RVU_PF_VFFLR_INT_ENA_W1CX(0), INTR_MASK(vfs)); in otx2_disable_flr_me_intr()
82 if (vfs <= 64) in otx2_disable_flr_me_intr()
85 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1CX(1), INTR_MASK(vfs - 64)); in otx2_disable_flr_me_intr()
89 otx2_write64(pf, RVU_PF_VFFLR_INT_ENA_W1CX(1), INTR_MASK(vfs - 64)); in otx2_disable_flr_me_intr()
549 int vfs = pf->total_vfs; in otx2_pfvf_mbox_intr_handler() local
555 if (vfs > 64) { in otx2_pfvf_mbox_intr_handler()
558 otx2_queue_work(mbox, pf->mbox_pfvf_wq, 64, vfs, intr, in otx2_pfvf_mbox_intr_handler()
562 vfs = 64; in otx2_pfvf_mbox_intr_handler()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_int.c2059 u16 vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_int_igu_reset_cam() local
2061 if (vfs != p_info->usage.iov_cnt) in qed_int_igu_reset_cam()
2065 p_info->usage.iov_cnt, vfs); in qed_int_igu_reset_cam()
2071 if (vfs > p_info->usage.free_cnt + in qed_int_igu_reset_cam()
2077 p_info->usage.cnt, vfs); in qed_int_igu_reset_cam()
2084 p_info->usage.iov_cnt = vfs; in qed_int_igu_reset_cam()
/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c1823 struct i40e_vf *vfs; in i40e_alloc_vfs() local
1839 vfs = kcalloc(num_alloc_vfs, sizeof(struct i40e_vf), GFP_KERNEL); in i40e_alloc_vfs()
1840 if (!vfs) { in i40e_alloc_vfs()
1844 pf->vf = vfs; in i40e_alloc_vfs()
1848 vfs[i].pf = pf; in i40e_alloc_vfs()
1849 vfs[i].parent_type = I40E_SWITCH_ELEMENT_TYPE_VEB; in i40e_alloc_vfs()
1850 vfs[i].vf_id = i; in i40e_alloc_vfs()
1853 set_bit(I40E_VIRTCHNL_VF_CAP_L2, &vfs[i].vf_caps); in i40e_alloc_vfs()
1854 vfs[i].spoofchk = true; in i40e_alloc_vfs()
1856 set_bit(I40E_VF_STATE_PRE_ENABLE, &vfs[i].vf_states); in i40e_alloc_vfs()
Di40e_ethtool.c2551 struct i40e_vf *vfs = pf->vf; in i40e_active_vfs() local
2555 if (test_bit(I40E_VF_STATE_ACTIVE, &vfs[i].vf_states)) in i40e_active_vfs()
/drivers/net/ethernet/cavium/thunder/
Dnic_main.c103 #define INTR_MASK(vfs) ((vfs < 64) ? (BIT_ULL(vfs) - 1) : (~0ull)) in nic_enable_mbx_intr() argument
/drivers/net/ethernet/intel/ice/
Dice_virtchnl_pf.c1918 struct ice_vf *vfs; in ice_alloc_vfs() local
1920 vfs = devm_kcalloc(ice_pf_to_dev(pf), num_vfs, sizeof(*vfs), in ice_alloc_vfs()
1922 if (!vfs) in ice_alloc_vfs()
1925 pf->vf = vfs; in ice_alloc_vfs()