Lines Matching full:pf

57 	/* Assumes only one pf mapped to a cgx lmac port */  in cgxlmac_to_pf()
82 int pf = PF_CGXMAP_BASE; in rvu_map_cgx_lmac_pf() local
92 * An additional entry is required since PF id starts from 1 and in rvu_map_cgx_lmac_pf()
115 for (lmac = 0; lmac < lmac_cnt; lmac++, pf++) { in rvu_map_cgx_lmac_pf()
116 rvu->pf2cgxlmac_map[pf] = cgxlmac_id_to_bmap(cgx, lmac); in rvu_map_cgx_lmac_pf()
117 rvu->cgxlmac2pf_map[CGX_OFFSET(cgx) + lmac] = 1 << pf; in rvu_map_cgx_lmac_pf()
119 pkind->pfchan_map[free_pkind] = ((pf) & 0x3F) << 16; in rvu_map_cgx_lmac_pf()
197 /* Send mbox message to PF */ in cgx_notify_pfs()
205 dev_warn(rvu->dev, "notification to pf %d failed\n", in cgx_notify_pfs()
355 /* Most of the CGX configuration is restricted to the mapped PF only,
356 * VF's of mapped PF and other PFs are not allowed. This fn() checks
367 void rvu_cgx_enadis_rx_bp(struct rvu *rvu, int pf, bool enable) in rvu_cgx_enadis_rx_bp() argument
372 if (!is_pf_cgxmapped(rvu, pf)) in rvu_cgx_enadis_rx_bp()
375 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_cgx_enadis_rx_bp()
387 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_rxtx() local
393 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_cgx_config_rxtx()
417 int pf = rvu_get_pf(req->hdr.pcifunc); in rvu_mbox_handler_cgx_stats() local
426 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_idx, &lmac); in rvu_mbox_handler_cgx_stats()
454 int pf = rvu_get_pf(req->hdr.pcifunc); in rvu_mbox_handler_cgx_mac_addr_set() local
457 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_mbox_handler_cgx_mac_addr_set()
468 int pf = rvu_get_pf(req->hdr.pcifunc); in rvu_mbox_handler_cgx_mac_addr_get() local
473 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_mbox_handler_cgx_mac_addr_get()
487 int pf = rvu_get_pf(pcifunc); in rvu_mbox_handler_cgx_promisc_enable() local
493 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_mbox_handler_cgx_promisc_enable()
502 int pf = rvu_get_pf(req->hdr.pcifunc); in rvu_mbox_handler_cgx_promisc_disable() local
508 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_mbox_handler_cgx_promisc_disable()
516 int pf = rvu_get_pf(pcifunc); in rvu_cgx_ptp_rx_cfg() local
521 * if received from other PF/VF simply ACK, nothing to do. in rvu_cgx_ptp_rx_cfg()
524 !is_pf_cgxmapped(rvu, pf)) in rvu_cgx_ptp_rx_cfg()
527 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_cgx_ptp_rx_cfg()
532 * parsed by this PF will have their data shifted by 8 bytes in rvu_cgx_ptp_rx_cfg()
535 if (npc_config_ts_kpuaction(rvu, pf, pcifunc, enable)) in rvu_cgx_ptp_rx_cfg()
555 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_linkevents() local
561 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_cgx_config_linkevents()
564 set_bit(pf, &rvu->pf_notify_bmap); in rvu_cgx_config_linkevents()
565 /* Send the current link status to PF */ in rvu_cgx_config_linkevents()
568 clear_bit(pf, &rvu->pf_notify_bmap); in rvu_cgx_config_linkevents()
592 int pf, err; in rvu_mbox_handler_cgx_get_linkinfo() local
594 pf = rvu_get_pf(req->hdr.pcifunc); in rvu_mbox_handler_cgx_get_linkinfo()
596 if (!is_pf_cgxmapped(rvu, pf)) in rvu_mbox_handler_cgx_get_linkinfo()
599 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_mbox_handler_cgx_get_linkinfo()
608 int pf = rvu_get_pf(pcifunc); in rvu_cgx_config_intlbk() local
614 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_cgx_config_intlbk()
638 int pf = rvu_get_pf(req->hdr.pcifunc); in rvu_mbox_handler_cgx_cfg_pause_frm() local
641 /* This msg is expected only from PF/VFs that are mapped to CGX LMACs, in rvu_mbox_handler_cgx_cfg_pause_frm()
642 * if received from other PF/VF simply ACK, nothing to do. in rvu_mbox_handler_cgx_cfg_pause_frm()
644 if (!is_pf_cgxmapped(rvu, pf)) in rvu_mbox_handler_cgx_cfg_pause_frm()
647 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id); in rvu_mbox_handler_cgx_cfg_pause_frm()
658 /* Finds cumulative status of NIX rx/tx counters from LF of a PF and those
667 int pf, lf; in rvu_cgx_nix_cuml_stats() local
674 pf = cgxlmac_to_pf(rvu, cgx_get_cgxid(cgxd), lmac_id); in rvu_cgx_nix_cuml_stats()
675 if (pf < 0) in rvu_cgx_nix_cuml_stats()
676 return pf; in rvu_cgx_nix_cuml_stats()
678 /* Assumes LF of a PF and all of its VF belongs to the same in rvu_cgx_nix_cuml_stats()
681 pcifunc = pf << RVU_PFVF_PF_SHIFT; in rvu_cgx_nix_cuml_stats()
688 /* Check if a lf is attached to this PF or one of its VFs */ in rvu_cgx_nix_cuml_stats()
711 parent_pf = &rvu->pf[rvu_get_pf(pcifunc)]; in rvu_cgx_start_stop_io()