/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu.c | 1975 int vfs = rvu->vfs; in rvu_mbox_intr_handler() local 1990 if (vfs > 64) { in rvu_mbox_intr_handler() 1994 rvu_queue_work(&rvu->afvf_wq_info, 64, vfs, intr); in rvu_mbox_intr_handler() 1995 vfs -= 64; in rvu_mbox_intr_handler() 2003 rvu_queue_work(&rvu->afvf_wq_info, 0, vfs, intr); in rvu_mbox_intr_handler() 2164 if (rvu->vfs > 64) in rvu_flr_intr_handler() 2165 rvu_afvf_queue_flr_work(rvu, 64, rvu->vfs - 64); in rvu_flr_intr_handler() 2499 int vfs = rvu->vfs; in rvu_disable_afvf_intr() local 2501 rvupf_write64(rvu, RVU_PF_VFPF_MBOX_INT_ENA_W1CX(0), INTR_MASK(vfs)); in rvu_disable_afvf_intr() 2502 rvupf_write64(rvu, RVU_PF_VFFLR_INT_ENA_W1CX(0), INTR_MASK(vfs)); in rvu_disable_afvf_intr() [all …]
|
D | rvu.h | 321 int vfs; /* Number of VFs attached to RVU */ member
|
/drivers/net/ethernet/pensando/ionic/ |
D | ionic_bus_pci.c | 116 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()
|
D | ionic_lif.c | 1924 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_config() 1928 ivf->vlan = le16_to_cpu(ionic->vfs[vf].vlanid); in ionic_get_vf_config() 1930 ivf->spoofchk = ionic->vfs[vf].spoofchk; in ionic_get_vf_config() 1931 ivf->linkstate = ionic->vfs[vf].linkstate; in ionic_get_vf_config() 1932 ivf->max_tx_rate = le32_to_cpu(ionic->vfs[vf].maxrate); in ionic_get_vf_config() 1933 ivf->trusted = ionic->vfs[vf].trusted; in ionic_get_vf_config() 1934 ether_addr_copy(ivf->mac, ionic->vfs[vf].macaddr); in ionic_get_vf_config() 1954 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_stats() 1958 vs = &ionic->vfs[vf].stats; in ionic_get_vf_stats() 1992 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_mac() [all …]
|
D | ionic.h | 55 struct ionic_vf *vfs; member
|
/drivers/crypto/qat/qat_common/ |
D | adf_dev_mgr.c | 353 int vfs = 0; in adf_get_num_dettached_vfs() local 360 vfs++; in adf_get_num_dettached_vfs() 363 return vfs; in adf_get_num_dettached_vfs()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.h | 320 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)
|
D | bnx2x_sriov.c | 1109 kfree(bp->vfdb->vfs); in __bnx2x_iov_free_vfdb() 1251 bp->vfdb->vfs = kcalloc(BNX2X_NR_VIRTFN(bp), in bnx2x_iov_init_one() 1254 if (!bp->vfdb->vfs) { in bnx2x_iov_init_one()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_pf.c | 69 int irq, vfs = pf->total_vfs; in otx2_disable_flr_me_intr() local 72 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1CX(0), INTR_MASK(vfs)); in otx2_disable_flr_me_intr() 77 otx2_write64(pf, RVU_PF_VFFLR_INT_ENA_W1CX(0), INTR_MASK(vfs)); in otx2_disable_flr_me_intr() 81 if (vfs <= 64) in otx2_disable_flr_me_intr() 84 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1CX(1), INTR_MASK(vfs - 64)); in otx2_disable_flr_me_intr() 88 otx2_write64(pf, RVU_PF_VFFLR_INT_ENA_W1CX(1), INTR_MASK(vfs - 64)); in otx2_disable_flr_me_intr() 548 int vfs = pf->total_vfs; in otx2_pfvf_mbox_intr_handler() local 554 if (vfs > 64) { in otx2_pfvf_mbox_intr_handler() 557 otx2_queue_work(mbox, pf->mbox_pfvf_wq, 64, vfs, intr, in otx2_pfvf_mbox_intr_handler() 561 vfs = 64; in otx2_pfvf_mbox_intr_handler() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | port.c | 1094 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/qlogic/qed/ |
D | qed_int.c | 2039 u16 vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_int_igu_reset_cam() local 2041 if (vfs != p_info->usage.iov_cnt) in qed_int_igu_reset_cam() 2045 p_info->usage.iov_cnt, vfs); in qed_int_igu_reset_cam() 2051 if (vfs > p_info->usage.free_cnt + in qed_int_igu_reset_cam() 2057 p_info->usage.cnt, vfs); in qed_int_igu_reset_cam() 2064 p_info->usage.iov_cnt = vfs; in qed_int_igu_reset_cam()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.c | 1770 struct i40e_vf *vfs; in i40e_alloc_vfs() local 1786 vfs = kcalloc(num_alloc_vfs, sizeof(struct i40e_vf), GFP_KERNEL); in i40e_alloc_vfs() 1787 if (!vfs) { in i40e_alloc_vfs() 1791 pf->vf = vfs; in i40e_alloc_vfs() 1795 vfs[i].pf = pf; in i40e_alloc_vfs() 1796 vfs[i].parent_type = I40E_SWITCH_ELEMENT_TYPE_VEB; in i40e_alloc_vfs() 1797 vfs[i].vf_id = i; in i40e_alloc_vfs() 1800 set_bit(I40E_VIRTCHNL_VF_CAP_L2, &vfs[i].vf_caps); in i40e_alloc_vfs() 1801 vfs[i].spoofchk = true; in i40e_alloc_vfs() 1803 set_bit(I40E_VF_STATE_PRE_ENABLE, &vfs[i].vf_states); in i40e_alloc_vfs()
|
D | i40e_ethtool.c | 2555 struct i40e_vf *vfs = pf->vf; in i40e_active_vfs() local 2559 if (test_bit(I40E_VF_STATE_ACTIVE, &vfs[i].vf_states)) in i40e_active_vfs()
|
/drivers/net/ethernet/cavium/thunder/ |
D | nic_main.c | 103 #define INTR_MASK(vfs) ((vfs < 64) ? (BIT_ULL(vfs) - 1) : (~0ull)) in nic_enable_mbx_intr() argument
|
/drivers/net/ethernet/intel/ice/ |
D | ice_virtchnl_pf.c | 1545 struct ice_vf *vfs; in ice_alloc_vfs() local 1547 vfs = devm_kcalloc(ice_pf_to_dev(pf), num_vfs, sizeof(*vfs), in ice_alloc_vfs() 1549 if (!vfs) in ice_alloc_vfs() 1552 pf->vf = vfs; in ice_alloc_vfs()
|