Lines Matching refs:abs_vfid

61 int bnx2x_vf_idx_by_abs_fid(struct bnx2x *bp, u16 abs_vfid)  in bnx2x_vf_idx_by_abs_fid()  argument
66 if (bnx2x_vf(bp, idx, abs_vfid) == abs_vfid) in bnx2x_vf_idx_by_abs_fid()
72 struct bnx2x_virtf *bnx2x_vf_by_abs_fid(struct bnx2x *bp, u16 abs_vfid) in bnx2x_vf_by_abs_fid() argument
74 u16 idx = (u16)bnx2x_vf_idx_by_abs_fid(bp, abs_vfid); in bnx2x_vf_by_abs_fid()
86 u32 func_encode = vf->abs_vfid; in bnx2x_vf_igu_ack_sb()
133 vf->abs_vfid, in bnx2x_vfop_qctor_dump_tx()
151 vf->abs_vfid, in bnx2x_vfop_qctor_dump_rx()
221 rxq_p->rss_engine_id = FW_VF_HANDLE(vf->abs_vfid); in bnx2x_vfop_qctor_prep()
241 DP(BNX2X_MSG_IOV, "vf[%d:%d]\n", vf->abs_vfid, qid); in bnx2x_vf_queue_create()
283 DP(BNX2X_MSG_IOV, "vf[%d]\n", vf->abs_vfid); in bnx2x_vf_queue_destroy()
316 bnx2x_vf_set_igu_info(struct bnx2x *bp, u8 igu_sb_id, u8 abs_vfid) in bnx2x_vf_set_igu_info() argument
318 struct bnx2x_virtf *vf = bnx2x_vf_by_abs_fid(bp, abs_vfid); in bnx2x_vf_set_igu_info()
340 DP(BNX2X_MSG_IOV, "vf[%d] - deleting all %s\n", vf->abs_vfid, in bnx2x_vf_vlan_mac_clear()
387 vf->abs_vfid, filter->add ? "Adding" : "Deleting", in bnx2x_vf_mac_vlan_config()
440 DP(BNX2X_MSG_IOV, "vf[%d]\n", vf->abs_vfid); in bnx2x_vf_mac_vlan_config_list()
478 DP(BNX2X_MSG_IOV, "vf[%d:%d]\n", vf->abs_vfid, qid); in bnx2x_vf_queue_setup()
489 BNX2X_ERR("QSETUP[%d:%d] error: rc %d\n", vf->abs_vfid, qid, rc); in bnx2x_vf_queue_setup()
498 DP(BNX2X_MSG_IOV, "vf[%d:%d]\n", vf->abs_vfid, qid); in bnx2x_vf_queue_flr()
533 BNX2X_ERR("vf[%d:%d] error: rc %d\n", vf->abs_vfid, qid, rc); in bnx2x_vf_queue_flr()
544 DP(BNX2X_MSG_IOV, "vf[%d]\n", vf->abs_vfid); in bnx2x_vf_mcast()
598 ramrod->func_id = FW_VF_HANDLE(vf->abs_vfid); in bnx2x_vf_prep_rx_mode()
617 DP(BNX2X_MSG_IOV, "vf[%d]\n", vf->abs_vfid); in bnx2x_vf_rxmode()
629 DP(BNX2X_MSG_IOV, "vf[%d:%d]\n", vf->abs_vfid, qid); in bnx2x_vf_queue_teardown()
667 vf->abs_vfid, qid, rc); in bnx2x_vf_queue_teardown()
685 static void bnx2x_vf_semi_clear_err(struct bnx2x *bp, u8 abs_vfid) in bnx2x_vf_semi_clear_err() argument
687 REG_WR(bp, TSEM_REG_VFPF_ERR_NUM, abs_vfid); in bnx2x_vf_semi_clear_err()
688 REG_WR(bp, USEM_REG_VFPF_ERR_NUM, abs_vfid); in bnx2x_vf_semi_clear_err()
689 REG_WR(bp, CSEM_REG_VFPF_ERR_NUM, abs_vfid); in bnx2x_vf_semi_clear_err()
690 REG_WR(bp, XSEM_REG_VFPF_ERR_NUM, abs_vfid); in bnx2x_vf_semi_clear_err()
693 static void bnx2x_vf_pglue_clear_err(struct bnx2x *bp, u8 abs_vfid) in bnx2x_vf_pglue_clear_err() argument
695 u32 was_err_group = (2 * BP_PATH(bp) + abs_vfid) >> 5; in bnx2x_vf_pglue_clear_err()
712 REG_WR(bp, was_err_reg, 1 << (abs_vfid & 0x1f)); in bnx2x_vf_pglue_clear_err()
721 bnx2x_pretend_func(bp, HW_VF_HANDLE(bp, vf->abs_vfid)); in bnx2x_vf_igu_reset()
738 vf->abs_vfid, val); in bnx2x_vf_igu_reset()
750 bnx2x_igu_clear_sb_gen(bp, vf->abs_vfid, igu_sb_id, in bnx2x_vf_igu_reset()
759 void bnx2x_vf_enable_access(struct bnx2x *bp, u8 abs_vfid) in bnx2x_vf_enable_access() argument
762 storm_memset_vf_to_pf(bp, FW_VF_HANDLE(abs_vfid), BP_FUNC(bp)); in bnx2x_vf_enable_access()
763 storm_memset_func_en(bp, FW_VF_HANDLE(abs_vfid), 1); in bnx2x_vf_enable_access()
766 bnx2x_vf_semi_clear_err(bp, abs_vfid); in bnx2x_vf_enable_access()
767 bnx2x_vf_pglue_clear_err(bp, abs_vfid); in bnx2x_vf_enable_access()
770 bnx2x_pretend_func(bp, HW_VF_HANDLE(bp, abs_vfid)); in bnx2x_vf_enable_access()
771 DP(BNX2X_MSG_IOV, "enabling internal access for vf %x\n", abs_vfid); in bnx2x_vf_enable_access()
782 bnx2x_pretend_func(bp, HW_VF_HANDLE(bp, vf->abs_vfid)); in bnx2x_vf_enable_traffic()
787 static u8 bnx2x_vf_is_pcie_pending(struct bnx2x *bp, u8 abs_vfid) in bnx2x_vf_is_pcie_pending() argument
790 struct bnx2x_virtf *vf = bnx2x_vf_by_abs_fid(bp, abs_vfid); in bnx2x_vf_is_pcie_pending()
801 int bnx2x_vf_flr_clnup_epilog(struct bnx2x *bp, u8 abs_vfid) in bnx2x_vf_flr_clnup_epilog() argument
804 if (bnx2x_vf_is_pcie_pending(bp, abs_vfid)) in bnx2x_vf_flr_clnup_epilog()
845 bnx2x_pretend_func(bp, HW_VF_HANDLE(bp, vf->abs_vfid)); in bnx2x_vf_flr_clnup_hw()
852 if (bnx2x_send_final_clnup(bp, (u8)FW_VF_HANDLE(vf->abs_vfid), in bnx2x_vf_flr_clnup_hw()
854 BNX2X_ERR("VF[%d] Final cleanup timed-out\n", vf->abs_vfid); in bnx2x_vf_flr_clnup_hw()
864 DP(BNX2X_MSG_IOV, "vf[%d]\n", vf->abs_vfid); in bnx2x_vf_flr()
887 bnx2x_vf_enable_mbx(bp, vf->abs_vfid); in bnx2x_vf_flr()
891 vf->abs_vfid, i, rc); in bnx2x_vf_flr()
959 if (vf->abs_vfid < 32) in bnx2x_vf_handle_flr_event()
960 reset = bp->vfdb->flrd_vfs[0] & (1 << vf->abs_vfid); in bnx2x_vf_handle_flr_event()
963 (1 << (vf->abs_vfid - 32)); in bnx2x_vf_handle_flr_event()
972 vf->abs_vfid); in bnx2x_vf_handle_flr_event()
1059 vf->bars[n].bar = start + size * vf->abs_vfid; in bnx2x_vf_set_bars()
1248 bnx2x_vf(bp, i, abs_vfid) = iov->first_vf_in_pf + i; in bnx2x_iov_init_one()
1404 u8 func_id = FW_VF_HANDLE(vf->abs_vfid); in bnx2x_vfq_init()
1422 vf->abs_vfid, q->sp_obj.func_id, q->cid); in bnx2x_vfq_init()
1554 vf->abs_vfid, vf_sb_count(vf), base_vf_cid, in bnx2x_iov_nic_init()
1591 bnx2x_vf_enable_mbx(bp, vf->abs_vfid); in bnx2x_iov_nic_init()
1606 vf->abs_vfid, vf->bus, vf->devfn, in bnx2x_iov_nic_init()
1724 int qidx = 0, abs_vfid; in bnx2x_iov_eq_sp_event() local
1749 abs_vfid = elem->message.data.vf_flr_event.vf_id; in bnx2x_iov_eq_sp_event()
1751 abs_vfid); in bnx2x_iov_eq_sp_event()
1754 abs_vfid = elem->message.data.malicious_vf_event.vf_id; in bnx2x_iov_eq_sp_event()
1756 abs_vfid, in bnx2x_iov_eq_sp_event()
1774 abs_vfid = (cid >> BNX2X_VF_CID_WND) & (BNX2X_MAX_NUM_OF_VFS-1); in bnx2x_iov_eq_sp_event()
1776 vf = bnx2x_vf_by_abs_fid(bp, abs_vfid); in bnx2x_iov_eq_sp_event()
1780 cid, abs_vfid); in bnx2x_iov_eq_sp_event()
1787 vf->abs_vfid, qidx); in bnx2x_iov_eq_sp_event()
1795 vf->abs_vfid, qidx); in bnx2x_iov_eq_sp_event()
1800 vf->abs_vfid, qidx); in bnx2x_iov_eq_sp_event()
1805 vf->abs_vfid, qidx); in bnx2x_iov_eq_sp_event()
1810 vf->abs_vfid, qidx); in bnx2x_iov_eq_sp_event()
1830 int abs_vfid = (vf_cid >> BNX2X_VF_CID_WND) & (BNX2X_MAX_NUM_OF_VFS-1); in bnx2x_vf_by_cid() local
1831 return bnx2x_vf_by_abs_fid(bp, abs_vfid); in bnx2x_vf_by_cid()
1895 vf->abs_vfid); in bnx2x_iov_adjust_stats_req()
1902 vf->abs_vfid); in bnx2x_iov_adjust_stats_req()
1907 "add addresses for vf %d\n", vf->abs_vfid); in bnx2x_iov_adjust_stats_req()
1923 cpu_to_le16(FW_VF_HANDLE(vf->abs_vfid)); in bnx2x_iov_adjust_stats_req()
1947 static void bnx2x_vf_qtbl_set_q(struct bnx2x *bp, u8 abs_vfid, u8 qid, in bnx2x_vf_qtbl_set_q() argument
1951 u32 val = enable ? (abs_vfid | (1 << 6)) : 0; in bnx2x_vf_qtbl_set_q()
1961 bnx2x_vf_qtbl_set_q(bp, vf->abs_vfid, in bnx2x_vf_clr_qtbl()
1970 bnx2x_pretend_func(bp, HW_VF_HANDLE(bp, vf->abs_vfid)); in bnx2x_vf_igu_disable()
2017 vf->abs_vfid); in bnx2x_vf_acquire()
2021 vf->abs_vfid); in bnx2x_vf_acquire()
2030 vf->abs_vfid, vf->state); in bnx2x_vf_acquire()
2075 vf->abs_vfid, i, q->index, q->cid, q->cxt); in bnx2x_vf_acquire()
2093 bnx2x_init_sb(bp, (dma_addr_t)sb_map[i], vf->abs_vfid, true, in bnx2x_vf_init()
2099 vf->abs_vfid, vf->state); in bnx2x_vf_init()
2107 if (bnx2x_vf_flr_clnup_epilog(bp, vf->abs_vfid)) in bnx2x_vf_init()
2111 REG_WR(bp, IGU_REG_STATISTIC_NUM_MESSAGE_SENT + vf->abs_vfid * 4 , 0); in bnx2x_vf_init()
2115 func_init.func_id = FW_VF_HANDLE(vf->abs_vfid); in bnx2x_vf_init()
2119 bnx2x_vf_enable_access(bp, vf->abs_vfid); in bnx2x_vf_init()
2124 bnx2x_vf_qtbl_set_q(bp, vf->abs_vfid, in bnx2x_vf_init()
2151 DP(BNX2X_MSG_IOV, "vf[%d]\n", vf->abs_vfid); in bnx2x_vf_close()
2186 BNX2X_ERR("vf[%d] CLOSE error: rc %d\n", vf->abs_vfid, rc); in bnx2x_vf_close()
2198 DP(BNX2X_MSG_IOV, "VF[%d] STATE: %s\n", vf->abs_vfid, in bnx2x_vf_free()
2223 BNX2X_ERR("VF[%d] RELEASE error: rc %d\n", vf->abs_vfid, rc); in bnx2x_vf_free()
2230 DP(BNX2X_MSG_IOV, "vf[%d]\n", vf->abs_vfid); in bnx2x_vf_rss_update()
2243 DP(BNX2X_MSG_IOV, "vf[%d]\n", vf->abs_vfid); in bnx2x_vf_tpa_update()
2256 vf->abs_vfid, qid, U64_HI(sge_addr[qid]), in bnx2x_vf_tpa_update()
2262 vf->abs_vfid, qid); in bnx2x_vf_tpa_update()
2278 DP(BNX2X_MSG_IOV, "PF releasing vf %d\n", vf->abs_vfid); in bnx2x_vf_release()
2285 vf->abs_vfid, rc); in bnx2x_vf_release()
2307 vf->abs_vfid, tlv); in bnx2x_lock_vf_pf_channel()
2338 vf->abs_vfid, current_tlv); in bnx2x_unlock_vf_pf_channel()