Home
last modified time | relevance | path

Searched refs:vf_idx (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_iov.c16 **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, u1 argument
627 fm10k_ndo_set_vf_bw(struct net_device * netdev,int vf_idx,int __always_unused min_rate,int max_rate) fm10k_ndo_set_vf_bw() argument
653 fm10k_ndo_get_vf_config(struct net_device * netdev,int vf_idx,struct ifla_vf_info * ivi) fm10k_ndo_get_vf_config() argument
676 fm10k_ndo_get_vf_stats(struct net_device * netdev,int vf_idx,struct ifla_vf_stats * stats) fm10k_ndo_get_vf_stats() argument
[all...]
H A Dfm10k_pf.c584 u16 fm10k_vf_queue_index(struct fm10k_hw *hw, u16 vf_idx) in fm10k_vf_queue_index() argument
589 vf_q_idx -= fm10k_queues_per_pool(hw) * (num_vfs - vf_idx); in fm10k_vf_queue_index()
602 static u16 fm10k_vf_vector_index(struct fm10k_hw *hw, u16 vf_idx) in fm10k_vf_vector_index() argument
606 vf_v_idx += fm10k_vectors_per_pool(hw) * vf_idx; in fm10k_vf_vector_index()
729 * @vf_idx: index of VF receiving GLORT
735 static s32 fm10k_iov_configure_tc_pf(struct fm10k_hw *hw, u16 vf_idx, int rate) in fm10k_iov_configure_tc_pf() argument
742 if (vf_idx >= hw->iov.num_vfs) in fm10k_iov_configure_tc_pf()
780 fm10k_write_reg(hw, FM10K_TC_RATE(vf_idx), tc_rate | interval); in fm10k_iov_configure_tc_pf()
781 fm10k_write_reg(hw, FM10K_TC_MAXCREDIT(vf_idx), FM10K_TC_MAXCREDIT_64K); in fm10k_iov_configure_tc_pf()
782 fm10k_write_reg(hw, FM10K_TC_CREDIT(vf_idx), FM10K_TC_MAXCREDIT_64 in fm10k_iov_configure_tc_pf()
795 fm10k_iov_assign_int_moderator_pf(struct fm10k_hw * hw,u16 vf_idx) fm10k_iov_assign_int_moderator_pf() argument
835 u16 vf_idx, vf_vid; fm10k_iov_assign_default_mac_vlan_pf() local
949 u8 vf_idx = vf_info->vf_idx; fm10k_iov_reset_resources_pf() local
1135 fm10k_iov_update_stats_pf(struct fm10k_hw * hw,struct fm10k_hw_stats_q * q,u16 vf_idx) fm10k_iov_update_stats_pf() argument
1159 u8 vf_idx = vf_info->vf_idx; fm10k_iov_msg_msix_pf() local
[all...]
H A Dfm10k.h533 int fm10k_ndo_set_vf_mac(struct net_device *netdev, int vf_idx, u8 *mac);
535 int vf_idx, u16 vid, u8 qos, __be16 vlan_proto);
536 int fm10k_ndo_set_vf_bw(struct net_device *netdev, int vf_idx,
539 int vf_idx, struct ifla_vf_info *ivi);
541 int vf_idx, struct ifla_vf_stats *stats);
H A Dfm10k_pf.h12 u16 fm10k_vf_queue_index(struct fm10k_hw *hw, u16 vf_idx);
H A Dfm10k_type.h591 u8 vf_idx; /* which VF this is */ member
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_vfr.c28 static int hwrm_cfa_vfr_alloc(struct bnxt *bp, u16 vf_idx, in hwrm_cfa_vfr_alloc() argument
37 req->vf_id = cpu_to_le16(vf_idx); in hwrm_cfa_vfr_alloc()
38 sprintf(req->vfr_name, "vfr%d", vf_idx); in hwrm_cfa_vfr_alloc()
55 static int hwrm_cfa_vfr_free(struct bnxt *bp, u16 vf_idx) in hwrm_cfa_vfr_free() argument
62 sprintf(req->vfr_name, "vfr%d", vf_idx); in hwrm_cfa_vfr_free()
82 req->fid = cpu_to_le16(bp->pf.vf[vf_rep->vf_idx].fw_fid); in bnxt_hwrm_vfr_qcfg()
154 int vf_fid = bp->pf.vf[vf_rep->vf_idx].fw_fid; in bnxt_vf_rep_setup_tc_block_cb()
188 u16 vf_idx; in bnxt_get_vf_rep() local
191 vf_idx = bp->cfa_code_map[cfa_code]; in bnxt_get_vf_rep()
192 if (vf_idx ! in bnxt_get_vf_rep()
451 bnxt_vf_rep_eth_addr_gen(u8 * src_mac,u16 vf_idx,u8 * mac) bnxt_vf_rep_eth_addr_gen() argument
[all...]
H A Dbnxt_vfr.h31 return bp->pf.vf[vf_rep->vf_idx].fw_fid; in bnxt_vf_rep_get_fid()
H A Dbnxt.h1429 u16 vf_idx; member
1856 u16 vf_idx; member
2720 u16 *cfa_code_map; /* cfa_code -> vf_idx map */
H A Dbnxt_ethtool.c1132 fs->ring_cookie = (u64)(fltr_base->vf_idx + 1) << in bnxt_grxclsrule()
1300 fltr->base.vf_idx = vf; in bnxt_add_l2_cls_rule()
H A Dbnxt.c6092 static u16 bnxt_vf_target_id(struct bnxt_pf_info *pf, u16 vf_idx) in bnxt_vf_target_id() argument
6095 struct bnxt_vf_info *vf = &pf->vf[vf_idx]; in bnxt_vf_target_id()
6112 if (fltr->base.vf_idx >= pf->active_vfs) in bnxt_hwrm_l2_filter_free()
6115 target_id = bnxt_vf_target_id(pf, fltr->base.vf_idx); in bnxt_hwrm_l2_filter_free()
6139 if (fltr->base.vf_idx >= pf->active_vfs) in bnxt_hwrm_l2_filter_alloc()
6142 target_id = bnxt_vf_target_id(pf, fltr->base.vf_idx); in bnxt_hwrm_l2_filter_alloc()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sriov.c1305 int vf_idx; in bnx2x_iov_remove_one() local
1314 for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) { in bnx2x_iov_remove_one()
1318 vf_idx)); in bnx2x_iov_remove_one()
1320 bp->vfdb->sriov.first_vf_in_pf + vf_idx); in bnx2x_iov_remove_one()
2449 int vf_idx, sb_idx, vfq_idx, qcount, first_vf; in bnx2x_enable_sriov() local
2463 for (vf_idx = 0; vf_idx < req_vfs; vf_idx in bnx2x_enable_sriov()
3160 int vf_idx; bnx2x_iov_channel_down() local
[all...]
H A Dbnx2x_vfpf.c2195 u8 vf_idx; in bnx2x_vf_mbx_schedule() local
2210 vf_idx = bnx2x_vf_idx_by_abs_fid(bp, vfpf_event->vf_id); in bnx2x_vf_mbx_schedule()
2214 BP_VF_MBX(bp, vf_idx)->vf_addr_hi = in bnx2x_vf_mbx_schedule()
2216 BP_VF_MBX(bp, vf_idx)->vf_addr_lo = in bnx2x_vf_mbx_schedule()
2218 BP_VFDB(bp)->event_occur |= (1ULL << vf_idx); in bnx2x_vf_mbx_schedule()
2229 u8 vf_idx; in bnx2x_vf_mbx() local
2240 for_each_vf(bp, vf_idx) { in bnx2x_vf_mbx()
2241 struct bnx2x_vf_mbx *mbx = BP_VF_MBX(bp, vf_idx); in bnx2x_vf_mbx()
2242 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); in bnx2x_vf_mbx()
2245 if (!(events & (1ULL << vf_idx))) in bnx2x_vf_mbx()
[all...]
H A Dbnx2x_main.c10005 int vf_idx; in bnx2x_parity_recover() local
10007 for (vf_idx = 0; vf_idx < bp->requested_nr_virtfn; vf_idx++) { in bnx2x_parity_recover()
10008 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); in bnx2x_parity_recover()
/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptpf_mbox.c345 int i, vf_idx; in otx2_cptpf_vfpf_mbox_intr() local
357 for (vf_idx = i * 64; vf_idx < cptpf->enabled_vfs; vf_idx++) { in otx2_cptpf_vfpf_mbox_intr()
358 vf = &cptpf->vf[vf_idx]; in otx2_cptpf_vfpf_mbox_intr()
/linux/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_ctrl_mbox.h79 /* vf_idx is valid if 1 */
82 u16 vf_idx; member
H A Doctep_ctrl_net.c55 msg->hdr.s.vf_idx = vfid; in init_send_req()
H A Doctep_pfvf_mbox.c404 octep_send_notification(oct, msg->hdr.s.vf_idx, notif); in octep_pfvf_notify()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_pf.c455 int offset, vf_idx, id, err; in otx2_pfvf_mbox_handler() local
463 vf_idx = vf_mbox - pf->mbox_pfvf; in otx2_pfvf_mbox_handler()
466 mdev = &mbox->dev[vf_idx]; in otx2_pfvf_mbox_handler()
482 msg->pcifunc |= (vf_idx + 1) & RVU_PFVF_FUNC_MASK; in otx2_pfvf_mbox_handler()
485 err = otx2_forward_vf_mbox_msgs(pf, mbox, MBOX_DIR_PFAF, vf_idx, in otx2_pfvf_mbox_handler()
492 otx2_reply_invalid_msg(mbox, vf_idx, 0, msg->id); in otx2_pfvf_mbox_handler()
493 otx2_mbox_msg_send(mbox, vf_idx); in otx2_pfvf_mbox_handler()
501 int offset, id, vf_idx = 0; in otx2_pfvf_mbox_up_handler() local
505 vf_idx = vf_mbox - pf->mbox_pfvf; in otx2_pfvf_mbox_up_handler()
507 mdev = &mbox->dev[vf_idx]; in otx2_pfvf_mbox_up_handler()
3354 int vf_idx; otx2_vf_link_event_task() local
[all...]
/linux/drivers/net/ethernet/sfc/
H A Defx_devlink.c53 PCIE_FUNCTION_VF, mport_desc->vf_idx, in efx_devlink_port_addr_get()
101 PCIE_FUNCTION_VF, mport_desc->vf_idx, in efx_devlink_port_addr_set()
150 if (mport->vf_idx != MAE_MPORT_DESC_VF_IDX_NULL) in efx_devlink_add_port()
152 mport->vf_idx, in efx_devlink_add_port()
/linux/include/linux/mlx4/
H A Dcmd.h308 int mlx4_get_vf_stats(struct mlx4_dev *dev, int port, int vf_idx,
/linux/drivers/net/ethernet/cavium/liquidio/
H A Dlio_main.c3993 int i, notice, vf_idx; in octeon_recv_vf_drv_notice() local
4003 vf_idx = (int)vf_num - 1; in octeon_recv_vf_drv_notice()
4008 if (!(oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx))) { in octeon_recv_vf_drv_notice()
4009 oct->sriov_info.vf_drv_loaded_mask |= BIT_ULL(vf_idx); in octeon_recv_vf_drv_notice()
4011 "driver for VF%d was loaded\n", vf_idx); in octeon_recv_vf_drv_notice()
4016 if (oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx)) { in octeon_recv_vf_drv_notice()
4017 oct->sriov_info.vf_drv_loaded_mask &= ~BIT_ULL(vf_idx); in octeon_recv_vf_drv_notice()
4019 "driver for VF%d was removed\n", vf_idx); in octeon_recv_vf_drv_notice()
4026 oct->sriov_info.vf_macaddr[vf_idx] = data[1]; in octeon_recv_vf_drv_notice()
4029 vf_idx, in octeon_recv_vf_drv_notice()
[all...]
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_dev.c1880 u16 vf_idx, num_vfs = qed_init_qm_get_num_vfs(p_hwfn); in qed_init_qm_vf_pqs() local
1887 for (vf_idx = 0; vf_idx < num_vfs; vf_idx++) in qed_init_qm_vf_pqs()