/linux-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt.c | 5649 static u16 bnxt_vf_target_id(struct bnxt_pf_info *pf, u16 vf_idx) argument 5652 struct bnxt_vf_info *vf = &pf->vf[vf_idx]; 5669 if (fltr->base.vf_idx >= pf->active_vfs) 5672 target_id = bnxt_vf_target_id(pf, fltr->base.vf_idx); 5696 if (fltr->base.vf_idx >= pf->active_vfs) 5699 target_id = bnxt_vf_target_id(pf, fltr->base.vf_idx);
|
H A D | bnxt_ethtool.c | 1117 fs->ring_cookie = (u64)(fltr_base->vf_idx + 1) << 1251 fltr->base.vf_idx = vf;
|
H A D | bnxt.h | 1366 u16 vf_idx; member in struct:bnxt_filter_base 1744 u16 vf_idx; member in struct:bnxt_vf_rep 2522 u16 *cfa_code_map; /* cfa_code -> vf_idx map */
|
H A D | bnxt_vfr.c | 28 static int hwrm_cfa_vfr_alloc(struct bnxt *bp, u16 vf_idx, argument 37 req->vf_id = cpu_to_le16(vf_idx); 38 sprintf(req->vfr_name, "vfr%d", vf_idx); 55 static int hwrm_cfa_vfr_free(struct bnxt *bp, u16 vf_idx) argument 62 sprintf(req->vfr_name, "vfr%d", vf_idx); 82 req->fid = cpu_to_le16(bp->pf.vf[vf_rep->vf_idx].fw_fid); 154 int vf_fid = bp->pf.vf[vf_rep->vf_idx].fw_fid; 188 u16 vf_idx; local 191 vf_idx = bp->cfa_code_map[cfa_code]; 192 if (vf_idx ! 453 bnxt_vf_rep_eth_addr_gen(u8 *src_mac, u16 vf_idx, u8 *mac) argument [all...] |
H A D | bnxt_vfr.h | 31 return bp->pf.vf[vf_rep->vf_idx].fw_fid;
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_pf.c | 451 int offset, vf_idx, id, err; local 460 vf_idx = vf_mbox - pf->mbox_pfvf; 463 mdev = &mbox->dev[vf_idx]; 477 msg->pcifunc |= (vf_idx + 1) & RVU_PFVF_FUNC_MASK; 480 err = otx2_forward_vf_mbox_msgs(pf, mbox, MBOX_DIR_PFAF, vf_idx, 487 otx2_reply_invalid_msg(mbox, vf_idx, 0, msg->id); 488 otx2_mbox_msg_send(mbox, vf_idx); 496 int offset, id, vf_idx = 0; local 501 vf_idx = vf_mbox - pf->mbox_pfvf; 503 mdev = &mbox->dev[vf_idx]; 3118 int vf_idx; local [all...] |
/linux-master/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_main.c | 10005 int vf_idx; local 10007 for (vf_idx = 0; vf_idx < bp->requested_nr_virtfn; vf_idx++) { 10008 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx);
|
H A D | bnx2x_vfpf.c | 2195 u8 vf_idx; local 2210 vf_idx = bnx2x_vf_idx_by_abs_fid(bp, vfpf_event->vf_id); 2214 BP_VF_MBX(bp, vf_idx)->vf_addr_hi = 2216 BP_VF_MBX(bp, vf_idx)->vf_addr_lo = 2218 BP_VFDB(bp)->event_occur |= (1ULL << vf_idx); 2229 u8 vf_idx; local 2240 for_each_vf(bp, vf_idx) { 2241 struct bnx2x_vf_mbx *mbx = BP_VF_MBX(bp, vf_idx); 2242 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); 2245 if (!(events & (1ULL << vf_idx))) [all...] |
H A D | bnx2x_sriov.c | 1305 int vf_idx; local 1314 for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) { 1318 vf_idx)); 1320 bp->vfdb->sriov.first_vf_in_pf + vf_idx); 2449 int vf_idx, sb_idx, vfq_idx, qcount, first_vf; local 2463 for (vf_idx = 0; vf_idx < req_vfs; vf_idx 3160 int vf_idx; local [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | cmd.c | 3343 int mlx4_get_vf_stats(struct mlx4_dev *dev, int port, int vf_idx, argument 3356 slave = mlx4_get_slave_indx(dev, vf_idx);
|
/linux-master/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_pfvf_mbox.c | 384 octep_send_notification(oct, msg->hdr.s.vf_idx, notif);
|
H A D | octep_ctrl_net.c | 55 msg->hdr.s.vf_idx = vfid;
|
H A D | octep_ctrl_mbox.h | 79 /* vf_idx is valid if 1 */ 82 u16 vf_idx; member in struct:octep_ctrl_mbox_msg_hdr::__anon1405
|
/linux-master/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_pf.c | 584 u16 fm10k_vf_queue_index(struct fm10k_hw *hw, u16 vf_idx) argument 589 vf_q_idx -= fm10k_queues_per_pool(hw) * (num_vfs - vf_idx); 602 static u16 fm10k_vf_vector_index(struct fm10k_hw *hw, u16 vf_idx) argument 606 vf_v_idx += fm10k_vectors_per_pool(hw) * vf_idx; 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) argument 742 if (vf_idx >= hw->iov.num_vfs) 780 fm10k_write_reg(hw, FM10K_TC_RATE(vf_idx), tc_rate | interval); 781 fm10k_write_reg(hw, FM10K_TC_MAXCREDIT(vf_idx), FM10K_TC_MAXCREDIT_64K); 782 fm10k_write_reg(hw, FM10K_TC_CREDIT(vf_idx), FM10K_TC_MAXCREDIT_64 795 fm10k_iov_assign_int_moderator_pf(struct fm10k_hw *hw, u16 vf_idx) argument 835 u16 vf_idx, vf_vid; local 949 u8 vf_idx = vf_info->vf_idx; local 1133 fm10k_iov_update_stats_pf(struct fm10k_hw *hw, struct fm10k_hw_stats_q *q, u16 vf_idx) argument 1159 u8 vf_idx = vf_info->vf_idx; local [all...] |
H A 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);
|
H A D | fm10k_type.h | 591 u8 vf_idx; /* which VF this is */ member in struct:fm10k_vf_info
|
H A D | fm10k_iov.c | 16 **results & FM10K_TLV_ID_MASK, vf_info->vf_idx); 388 u16 vf_idx = (glort - hw->mac.dglort_map) & FM10K_DGLORTMAP_NONE; local 395 if (vf_idx >= iov_data->num_vfs) 399 vf_info = &iov_data->vf_info[vf_idx]; 459 vf_info->vf_idx = i; 561 hw->iov.ops.set_lport(hw, vf_info, vf_info->vf_idx, 567 int fm10k_ndo_set_vf_mac(struct net_device *netdev, int vf_idx, u8 *mac) argument 574 if (!iov_data || vf_idx >= iov_data->num_vfs) 582 vf_info = &iov_data->vf_info[vf_idx]; 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) argument 652 fm10k_ndo_get_vf_config(struct net_device *netdev, int vf_idx, struct ifla_vf_info *ivi) argument 675 fm10k_ndo_get_vf_stats(struct net_device *netdev, int vf_idx, struct ifla_vf_stats *stats) argument [all...] |
H A D | fm10k_pf.h | 12 u16 fm10k_vf_queue_index(struct fm10k_hw *hw, u16 vf_idx);
|
/linux-master/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptpf_mbox.c | 349 int i, vf_idx; local 361 for (vf_idx = i * 64; vf_idx < cptpf->enabled_vfs; vf_idx++) { 362 vf = &cptpf->vf[vf_idx];
|
/linux-master/drivers/net/ethernet/sfc/ |
H A D | mae.c | 1035 int efx_mae_lookup_mport(struct efx_nic *efx, u32 vf_idx, u32 *id) argument 1049 m->vf_idx == vf_idx) { 1201 d->vf_idx = MCDI_STRUCT_WORD(desc,
|
H A D | mae.h | 43 u16 vf_idx; member in struct:mae_mport_desc::__anon1574::__anon1575
|
H A D | efx_devlink.c | 52 PCIE_FUNCTION_VF, mport_desc->vf_idx, 100 PCIE_FUNCTION_VF, mport_desc->vf_idx, 149 if (mport->vf_idx != MAE_MPORT_DESC_VF_IDX_NULL) 151 mport->vf_idx,
|
H A D | ef100_rep.c | 369 return pcie_func && (mport_desc->vf_idx != MAE_MPORT_DESC_VF_IDX_NULL);
|
/linux-master/drivers/net/ethernet/cavium/liquidio/ |
H A D | lio_main.c | 3999 int i, notice, vf_idx; local 4009 vf_idx = (int)vf_num - 1; 4014 if (!(oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx))) { 4015 oct->sriov_info.vf_drv_loaded_mask |= BIT_ULL(vf_idx); 4017 "driver for VF%d was loaded\n", vf_idx); 4022 if (oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx)) { 4023 oct->sriov_info.vf_drv_loaded_mask &= ~BIT_ULL(vf_idx); 4025 "driver for VF%d was removed\n", vf_idx); 4032 oct->sriov_info.vf_macaddr[vf_idx] = data[1]; 4035 vf_idx, [all...] |
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_dev.c | 1899 u16 vf_idx, num_vfs = qed_init_qm_get_num_vfs(p_hwfn); local 1906 for (vf_idx = 0; vf_idx < num_vfs; vf_idx++)
|