Lines Matching refs:vf
3647 struct bnxt_vf_info *vf = &bp->vf; in bnxt_hwrm_func_qcaps() local
3649 vf->fw_fid = le16_to_cpu(resp->fid); in bnxt_hwrm_func_qcaps()
3650 memcpy(vf->mac_addr, resp->perm_mac_address, ETH_ALEN); in bnxt_hwrm_func_qcaps()
3651 if (is_valid_ether_addr(vf->mac_addr)) in bnxt_hwrm_func_qcaps()
3653 memcpy(bp->dev->dev_addr, vf->mac_addr, ETH_ALEN); in bnxt_hwrm_func_qcaps()
3657 vf->max_rsscos_ctxs = le16_to_cpu(resp->max_rsscos_ctx); in bnxt_hwrm_func_qcaps()
3658 vf->max_cp_rings = le16_to_cpu(resp->max_cmpl_rings); in bnxt_hwrm_func_qcaps()
3659 vf->max_tx_rings = le16_to_cpu(resp->max_tx_rings); in bnxt_hwrm_func_qcaps()
3660 vf->max_rx_rings = le16_to_cpu(resp->max_rx_rings); in bnxt_hwrm_func_qcaps()
3661 vf->max_l2_ctxs = le16_to_cpu(resp->max_l2_ctxs); in bnxt_hwrm_func_qcaps()
3662 vf->max_vnics = le16_to_cpu(resp->max_vnics); in bnxt_hwrm_func_qcaps()
3663 vf->max_stat_ctxs = le16_to_cpu(resp->max_stat_ctx); in bnxt_hwrm_func_qcaps()
5247 if (BNXT_VF(bp) && is_valid_ether_addr(bp->vf.mac_addr)) in bnxt_change_mac_addr()
5624 *max_tx = bp->vf.max_tx_rings; in bnxt_get_max_rings()
5625 *max_rx = bp->vf.max_rx_rings; in bnxt_get_max_rings()
5626 max_rings = min_t(int, bp->vf.max_irqs, bp->vf.max_cp_rings); in bnxt_get_max_rings()
5627 max_rings = min_t(int, max_rings, bp->vf.max_stat_ctxs); in bnxt_get_max_rings()
5732 bp->vf.max_irqs = max_irqs; in bnxt_init_one()