Lines Matching refs:pcifunc

292 int mcs_clear_all_stats(struct mcs *mcs, u16 pcifunc, int dir)  in mcs_clear_all_stats()  argument
304 if (map->flowid2pf_map[id] != pcifunc) in mcs_clear_all_stats()
311 if (map->secy2pf_map[id] != pcifunc) in mcs_clear_all_stats()
318 if (map->sc2pf_map[id] != pcifunc) in mcs_clear_all_stats()
325 if (map->sa2pf_map[id] != pcifunc) in mcs_clear_all_stats()
555 int mcs_alloc_ctrlpktrule(struct rsrc_bmap *rsrc, u16 *pf_map, u16 offset, u16 pcifunc) in mcs_alloc_ctrlpktrule() argument
567 pf_map[rsrc_id] = pcifunc; in mcs_alloc_ctrlpktrule()
574 u16 pcifunc = req->hdr.pcifunc; in mcs_free_ctrlpktrule() local
584 if (map->ctrlpktrule2pf_map[id] != pcifunc) in mcs_free_ctrlpktrule()
586 mcs_free_rsrc(&map->ctrlpktrule, map->ctrlpktrule2pf_map, id, pcifunc); in mcs_free_ctrlpktrule()
594 rc = mcs_free_rsrc(&map->ctrlpktrule, map->ctrlpktrule2pf_map, req->rule_idx, pcifunc); in mcs_free_ctrlpktrule()
690 int mcs_free_rsrc(struct rsrc_bmap *rsrc, u16 *pf_map, int rsrc_id, u16 pcifunc) in mcs_free_rsrc() argument
693 if (pf_map[rsrc_id] != pcifunc) in mcs_free_rsrc()
702 int mcs_free_all_rsrc(struct mcs *mcs, int dir, u16 pcifunc) in mcs_free_all_rsrc() argument
714 if (map->flowid2pf_map[id] != pcifunc) in mcs_free_all_rsrc()
717 id, pcifunc); in mcs_free_all_rsrc()
723 if (map->secy2pf_map[id] != pcifunc) in mcs_free_all_rsrc()
726 id, pcifunc); in mcs_free_all_rsrc()
732 if (map->sc2pf_map[id] != pcifunc) in mcs_free_all_rsrc()
734 mcs_free_rsrc(&map->sc, map->sc2pf_map, id, pcifunc); in mcs_free_all_rsrc()
743 if (map->sa2pf_map[id] != pcifunc) in mcs_free_all_rsrc()
745 mcs_free_rsrc(&map->sa, map->sa2pf_map, id, pcifunc); in mcs_free_all_rsrc()
750 int mcs_alloc_rsrc(struct rsrc_bmap *rsrc, u16 *pf_map, u16 pcifunc) in mcs_alloc_rsrc() argument
757 pf_map[rsrc_id] = pcifunc; in mcs_alloc_rsrc()
762 u8 *sc_id, u8 *sa1_id, u8 *sa2_id, u16 pcifunc, int dir) in mcs_alloc_all_rsrc() argument
772 id = mcs_alloc_rsrc(&map->flow_ids, map->flowid2pf_map, pcifunc); in mcs_alloc_all_rsrc()
777 id = mcs_alloc_rsrc(&map->secy, map->secy2pf_map, pcifunc); in mcs_alloc_all_rsrc()
782 id = mcs_alloc_rsrc(&map->sc, map->sc2pf_map, pcifunc); in mcs_alloc_all_rsrc()
787 id = mcs_alloc_rsrc(&map->sa, map->sa2pf_map, pcifunc); in mcs_alloc_all_rsrc()
792 id = mcs_alloc_rsrc(&map->sa, map->sa2pf_map, pcifunc); in mcs_alloc_all_rsrc()
822 event.pcifunc = mcs->tx.sa2pf_map[event.sa_id]; in cn10kb_mcs_tx_pn_wrapped_handler()
861 event.pcifunc = mcs->tx.sa2pf_map[event.sa_id]; in cn10kb_mcs_tx_pn_thresh_reached_handler()
885 event.pcifunc = mcs->rx.sa2pf_map[event.sa_id]; in mcs_rx_pn_thresh_reached_handler()
896 event.pcifunc = mcs->pf_map[0]; in mcs_rx_misc_intr_handler()
922 event.pcifunc = mcs->pf_map[0]; in mcs_tx_misc_intr_handler()
938 event.pcifunc = mcs->pf_map[0]; in mcs_bbe_intr_handler()
971 event.pcifunc = mcs->pf_map[0]; in mcs_pab_intr_handler()