/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_vfr.c | 27 static int hwrm_cfa_vfr_alloc(struct bnxt *bp, u16 vf_idx, in hwrm_cfa_vfr_alloc() argument 35 req.vf_id = cpu_to_le16(vf_idx); in hwrm_cfa_vfr_alloc() 36 sprintf(req.vfr_name, "vfr%d", vf_idx); in hwrm_cfa_vfr_alloc() 53 static int hwrm_cfa_vfr_free(struct bnxt *bp, u16 vf_idx) in hwrm_cfa_vfr_free() argument 59 sprintf(req.vfr_name, "vfr%d", vf_idx); in hwrm_cfa_vfr_free() 76 req.fid = cpu_to_le16(bp->pf.vf[vf_rep->vf_idx].fw_fid); in bnxt_hwrm_vfr_qcfg() 150 int vf_fid = bp->pf.vf[vf_rep->vf_idx].fw_fid; in bnxt_vf_rep_setup_tc_block_cb() 184 u16 vf_idx; in bnxt_get_vf_rep() local 187 vf_idx = bp->cfa_code_map[cfa_code]; in bnxt_get_vf_rep() 188 if (vf_idx != VF_IDX_INVALID) in bnxt_get_vf_rep() [all …]
|
D | bnxt_vfr.h | 28 return bp->pf.vf[vf_rep->vf_idx].fw_fid; in bnxt_vf_rep_get_fid()
|
D | bnxt.h | 1421 u16 vf_idx; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_iov.c | 16 **results & FM10K_TLV_ID_MASK, vf_info->vf_idx); in fm10k_iov_msg_error() 388 u16 vf_idx = (glort - hw->mac.dglort_map) & FM10K_DGLORTMAP_NONE; in fm10k_iov_update_pvid() local 395 if (vf_idx >= iov_data->num_vfs) in fm10k_iov_update_pvid() 399 vf_info = &iov_data->vf_info[vf_idx]; in fm10k_iov_update_pvid() 459 vf_info->vf_idx = i; in fm10k_iov_alloc_data() 561 hw->iov.ops.set_lport(hw, vf_info, vf_info->vf_idx, in fm10k_reset_vf_info() 567 int fm10k_ndo_set_vf_mac(struct net_device *netdev, int vf_idx, u8 *mac) in fm10k_ndo_set_vf_mac() argument 574 if (!iov_data || vf_idx >= iov_data->num_vfs) in fm10k_ndo_set_vf_mac() 582 vf_info = &iov_data->vf_info[vf_idx]; in fm10k_ndo_set_vf_mac() 590 int fm10k_ndo_set_vf_vlan(struct net_device *netdev, int vf_idx, u16 vid, in fm10k_ndo_set_vf_vlan() argument [all …]
|
D | fm10k_pf.c | 583 u16 fm10k_vf_queue_index(struct fm10k_hw *hw, u16 vf_idx) in fm10k_vf_queue_index() argument 588 vf_q_idx -= fm10k_queues_per_pool(hw) * (num_vfs - vf_idx); in fm10k_vf_queue_index() 601 static u16 fm10k_vf_vector_index(struct fm10k_hw *hw, u16 vf_idx) in fm10k_vf_vector_index() argument 605 vf_v_idx += fm10k_vectors_per_pool(hw) * vf_idx; in fm10k_vf_vector_index() 734 static s32 fm10k_iov_configure_tc_pf(struct fm10k_hw *hw, u16 vf_idx, int rate) in fm10k_iov_configure_tc_pf() argument 741 if (vf_idx >= hw->iov.num_vfs) in fm10k_iov_configure_tc_pf() 779 fm10k_write_reg(hw, FM10K_TC_RATE(vf_idx), tc_rate | interval); in fm10k_iov_configure_tc_pf() 780 fm10k_write_reg(hw, FM10K_TC_MAXCREDIT(vf_idx), FM10K_TC_MAXCREDIT_64K); in fm10k_iov_configure_tc_pf() 781 fm10k_write_reg(hw, FM10K_TC_CREDIT(vf_idx), FM10K_TC_MAXCREDIT_64K); in fm10k_iov_configure_tc_pf() 794 static s32 fm10k_iov_assign_int_moderator_pf(struct fm10k_hw *hw, u16 vf_idx) in fm10k_iov_assign_int_moderator_pf() argument [all …]
|
D | fm10k.h | 532 int fm10k_ndo_set_vf_mac(struct net_device *netdev, int vf_idx, u8 *mac); 534 int vf_idx, u16 vid, u8 qos, __be16 vlan_proto); 535 int fm10k_ndo_set_vf_bw(struct net_device *netdev, int vf_idx, 538 int vf_idx, struct ifla_vf_info *ivi); 540 int vf_idx, struct ifla_vf_stats *stats);
|
D | fm10k_pf.h | 12 u16 fm10k_vf_queue_index(struct fm10k_hw *hw, u16 vf_idx);
|
D | fm10k_type.h | 591 u8 vf_idx; /* which VF this is */ member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.c | 1306 int vf_idx; in bnx2x_iov_remove_one() local 1315 for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) { in bnx2x_iov_remove_one() 1319 vf_idx)); in bnx2x_iov_remove_one() 1321 bp->vfdb->sriov.first_vf_in_pf + vf_idx); in bnx2x_iov_remove_one() 2456 int vf_idx, sb_idx, vfq_idx, qcount, first_vf; in bnx2x_enable_sriov() local 2470 for (vf_idx = 0; vf_idx < req_vfs; vf_idx++) { in bnx2x_enable_sriov() 2471 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); in bnx2x_enable_sriov() 2474 vf_sb_count(BP_VF(bp, vf_idx)) = 0; in bnx2x_enable_sriov() 2481 for (vf_idx = first_vf; vf_idx < first_vf + req_vfs; vf_idx++) { in bnx2x_enable_sriov() 2483 igu_entry = vf_idx << IGU_REG_MAPPING_MEMORY_FID_SHIFT | in bnx2x_enable_sriov() [all …]
|
D | bnx2x_vfpf.c | 2193 u8 vf_idx; in bnx2x_vf_mbx_schedule() local 2208 vf_idx = bnx2x_vf_idx_by_abs_fid(bp, vfpf_event->vf_id); in bnx2x_vf_mbx_schedule() 2212 BP_VF_MBX(bp, vf_idx)->vf_addr_hi = in bnx2x_vf_mbx_schedule() 2214 BP_VF_MBX(bp, vf_idx)->vf_addr_lo = in bnx2x_vf_mbx_schedule() 2216 BP_VFDB(bp)->event_occur |= (1ULL << vf_idx); in bnx2x_vf_mbx_schedule() 2227 u8 vf_idx; in bnx2x_vf_mbx() local 2238 for_each_vf(bp, vf_idx) { in bnx2x_vf_mbx() 2239 struct bnx2x_vf_mbx *mbx = BP_VF_MBX(bp, vf_idx); in bnx2x_vf_mbx() 2240 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); in bnx2x_vf_mbx() 2243 if (!(events & (1ULL << vf_idx))) in bnx2x_vf_mbx() [all …]
|
D | bnx2x_main.c | 10004 int vf_idx; in bnx2x_parity_recover() local 10006 for (vf_idx = 0; vf_idx < bp->requested_nr_virtfn; vf_idx++) { in bnx2x_parity_recover() 10007 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); in bnx2x_parity_recover()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_pf.c | 453 int offset, vf_idx, id, err; in otx2_pfvf_mbox_handler() local 462 vf_idx = vf_mbox - pf->mbox_pfvf; in otx2_pfvf_mbox_handler() 465 mdev = &mbox->dev[vf_idx]; in otx2_pfvf_mbox_handler() 479 msg->pcifunc |= (vf_idx + 1) & RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler() 482 err = otx2_forward_vf_mbox_msgs(pf, mbox, MBOX_DIR_PFAF, vf_idx, in otx2_pfvf_mbox_handler() 489 otx2_reply_invalid_msg(mbox, vf_idx, 0, msg->id); in otx2_pfvf_mbox_handler() 490 otx2_mbox_msg_send(mbox, vf_idx); in otx2_pfvf_mbox_handler() 498 int offset, id, vf_idx = 0; in otx2_pfvf_mbox_up_handler() local 503 vf_idx = vf_mbox - pf->mbox_pfvf; in otx2_pfvf_mbox_up_handler() 505 mdev = &mbox->dev[vf_idx]; in otx2_pfvf_mbox_up_handler() [all …]
|
/kernel/linux/linux-5.10/include/linux/mlx4/ |
D | cmd.h | 308 int mlx4_get_vf_stats(struct mlx4_dev *dev, int port, int vf_idx,
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/ |
D | lio_main.c | 4013 int i, notice, vf_idx; in octeon_recv_vf_drv_notice() local 4023 vf_idx = (int)vf_num - 1; in octeon_recv_vf_drv_notice() 4028 if (!(oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx))) { in octeon_recv_vf_drv_notice() 4029 oct->sriov_info.vf_drv_loaded_mask |= BIT_ULL(vf_idx); in octeon_recv_vf_drv_notice() 4031 "driver for VF%d was loaded\n", vf_idx); in octeon_recv_vf_drv_notice() 4036 if (oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx)) { in octeon_recv_vf_drv_notice() 4037 oct->sriov_info.vf_drv_loaded_mask &= ~BIT_ULL(vf_idx); in octeon_recv_vf_drv_notice() 4039 "driver for VF%d was removed\n", vf_idx); in octeon_recv_vf_drv_notice() 4046 oct->sriov_info.vf_macaddr[vf_idx] = data[1]; in octeon_recv_vf_drv_notice() 4049 vf_idx, b + 2); in octeon_recv_vf_drv_notice()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
D | ice_virtchnl_pf.c | 2321 int vf_idx; in ice_is_any_vf_in_promisc() local 2323 ice_for_each_vf(pf, vf_idx) { in ice_is_any_vf_in_promisc() 2324 struct ice_vf *vf = &pf->vf[vf_idx]; in ice_is_any_vf_in_promisc()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_dev.c | 1886 u16 vf_idx, num_vfs = qed_init_qm_get_num_vfs(p_hwfn); in qed_init_qm_vf_pqs() local 1893 for (vf_idx = 0; vf_idx < num_vfs; vf_idx++) in qed_init_qm_vf_pqs()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
D | cmd.c | 3344 int mlx4_get_vf_stats(struct mlx4_dev *dev, int port, int vf_idx, in mlx4_get_vf_stats() argument 3357 slave = mlx4_get_slave_indx(dev, vf_idx); in mlx4_get_vf_stats()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 8115 static bool hclge_check_vf_mac_exist(struct hclge_vport *vport, int vf_idx, in hclge_check_vf_mac_exist() argument 8136 vf_idx += HCLGE_VF_VPORT_START_NUM; in hclge_check_vf_mac_exist() 8138 if (i != vf_idx && in hclge_check_vf_mac_exist()
|