Lines Matching refs:pf
1249 if ((vf_id < bp->pf.first_vf_id) || in bnxt_hwrm_handler()
1250 (vf_id >= bp->pf.first_vf_id + bp->pf.active_vfs)) { in bnxt_hwrm_handler()
1256 set_bit(vf_id - bp->pf.first_vf_id, bp->pf.vf_event_bmap); in bnxt_hwrm_handler()
3622 struct bnxt_pf_info *pf = &bp->pf; in bnxt_hwrm_func_qcaps() local
3624 pf->fw_fid = le16_to_cpu(resp->fid); in bnxt_hwrm_func_qcaps()
3625 pf->port_id = le16_to_cpu(resp->port_id); in bnxt_hwrm_func_qcaps()
3626 memcpy(pf->mac_addr, resp->perm_mac_address, ETH_ALEN); in bnxt_hwrm_func_qcaps()
3627 memcpy(bp->dev->dev_addr, pf->mac_addr, ETH_ALEN); in bnxt_hwrm_func_qcaps()
3628 pf->max_rsscos_ctxs = le16_to_cpu(resp->max_rsscos_ctx); in bnxt_hwrm_func_qcaps()
3629 pf->max_cp_rings = le16_to_cpu(resp->max_cmpl_rings); in bnxt_hwrm_func_qcaps()
3630 pf->max_tx_rings = le16_to_cpu(resp->max_tx_rings); in bnxt_hwrm_func_qcaps()
3631 pf->max_pf_tx_rings = pf->max_tx_rings; in bnxt_hwrm_func_qcaps()
3632 pf->max_rx_rings = le16_to_cpu(resp->max_rx_rings); in bnxt_hwrm_func_qcaps()
3633 pf->max_pf_rx_rings = pf->max_rx_rings; in bnxt_hwrm_func_qcaps()
3634 pf->max_l2_ctxs = le16_to_cpu(resp->max_l2_ctxs); in bnxt_hwrm_func_qcaps()
3635 pf->max_vnics = le16_to_cpu(resp->max_vnics); in bnxt_hwrm_func_qcaps()
3636 pf->max_stat_ctxs = le16_to_cpu(resp->max_stat_ctx); in bnxt_hwrm_func_qcaps()
3637 pf->first_vf_id = le16_to_cpu(resp->first_vf_id); in bnxt_hwrm_func_qcaps()
3638 pf->max_vfs = le16_to_cpu(resp->max_vfs); in bnxt_hwrm_func_qcaps()
3639 pf->max_encap_records = le32_to_cpu(resp->max_encap_records); in bnxt_hwrm_func_qcaps()
3640 pf->max_decap_records = le32_to_cpu(resp->max_decap_records); in bnxt_hwrm_func_qcaps()
3641 pf->max_tx_em_flows = le32_to_cpu(resp->max_tx_em_flows); in bnxt_hwrm_func_qcaps()
3642 pf->max_tx_wm_flows = le32_to_cpu(resp->max_tx_wm_flows); in bnxt_hwrm_func_qcaps()
3643 pf->max_rx_em_flows = le32_to_cpu(resp->max_rx_em_flows); in bnxt_hwrm_func_qcaps()
3644 pf->max_rx_wm_flows = le32_to_cpu(resp->max_rx_wm_flows); in bnxt_hwrm_func_qcaps()
5618 *max_tx = bp->pf.max_pf_tx_rings; in bnxt_get_max_rings()
5619 *max_rx = bp->pf.max_pf_rx_rings; in bnxt_get_max_rings()
5620 max_rings = min_t(int, bp->pf.max_irqs, bp->pf.max_cp_rings); in bnxt_get_max_rings()
5621 max_rings = min_t(int, max_rings, bp->pf.max_stat_ctxs); in bnxt_get_max_rings()
5729 bp->pf.max_irqs = max_irqs; in bnxt_init_one()