Lines Matching full:si

44 	struct enetc_hw *hw = &priv->si->hw;  in enetc_get_reglen()
54 if (hw->port && !!(priv->si->hw_features & ENETC_SI_F_QBU)) in enetc_get_reglen()
66 struct enetc_hw *hw = &priv->si->hw; in enetc_get_regs()
103 if (priv->si->hw_features & ENETC_SI_F_QBU) { in enetc_get_regs()
116 { ENETC_SIROCT, "SI rx octets" },
117 { ENETC_SIRFRM, "SI rx frames" },
118 { ENETC_SIRUCA, "SI rx u-cast frames" },
119 { ENETC_SIRMCA, "SI rx m-cast frames" },
120 { ENETC_SITOCT, "SI tx octets" },
121 { ENETC_SITFRM, "SI tx frames" },
122 { ENETC_SITUCA, "SI tx u-cast frames" },
123 { ENETC_SITMCA, "SI tx m-cast frames" },
197 { ENETC_UFDMF, "SI MAC nomatch u-cast discards" },
198 { ENETC_MFDMF, "SI MAC nomatch m-cast discards" },
199 { ENETC_PBFDSIR, "SI MAC nomatch b-cast discards" },
200 { ENETC_PUFDVFR, "SI VLAN nomatch u-cast discards" },
201 { ENETC_PMFDVFR, "SI VLAN nomatch m-cast discards" },
202 { ENETC_PBFDVFR, "SI VLAN nomatch b-cast discards" },
203 { ENETC_PFDMSAPR, "SI pruning discarded frames" },
239 if (!enetc_si_is_pf(priv->si)) in enetc_get_sset_count()
274 if (!enetc_si_is_pf(priv->si)) in enetc_get_strings()
290 struct enetc_hw *hw = &priv->si->hw; in enetc_get_ethtool_stats()
313 if (!enetc_si_is_pf(priv->si)) in enetc_get_ethtool_stats()
331 struct enetc_hw *hw = &priv->si->hw; in enetc_get_pause_stats()
332 struct enetc_si *si = priv->si; in enetc_get_pause_stats() local
339 if (si->hw_features & ENETC_SI_F_QBU) in enetc_get_pause_stats()
418 struct enetc_hw *hw = &priv->si->hw; in enetc_get_eth_mac_stats()
419 struct enetc_si *si = priv->si; in enetc_get_eth_mac_stats() local
426 if (si->hw_features & ENETC_SI_F_QBU) in enetc_get_eth_mac_stats()
439 struct enetc_hw *hw = &priv->si->hw; in enetc_get_eth_ctrl_stats()
440 struct enetc_si *si = priv->si; in enetc_get_eth_ctrl_stats() local
447 if (si->hw_features & ENETC_SI_F_QBU) in enetc_get_eth_ctrl_stats()
461 struct enetc_hw *hw = &priv->si->hw; in enetc_get_rmon_stats()
462 struct enetc_si *si = priv->si; in enetc_get_rmon_stats() local
471 if (si->hw_features & ENETC_SI_F_QBU) in enetc_get_rmon_stats()
516 static int enetc_set_cls_entry(struct enetc_si *si, in enetc_set_cls_entry() argument
549 netdev_warn(si->ndev, "ToS field is not supported and was ignored\n"); in enetc_set_cls_entry()
562 netdev_warn(si->ndev, "ToS field is not supported and was ignored\n"); in enetc_set_cls_entry()
587 return enetc_set_fs_entry(si, &rfse, fs->location); in enetc_set_cls_entry()
605 rxnfc->data = priv->si->num_fs_entries; in enetc_get_rxnfc()
608 for (i = 0; i < priv->si->num_fs_entries; i++) in enetc_get_rxnfc()
613 if (rxnfc->fs.location >= priv->si->num_fs_entries) in enetc_get_rxnfc()
621 rxnfc->data = priv->si->num_fs_entries; in enetc_get_rxnfc()
624 for (i = 0; i < priv->si->num_fs_entries; i++) { in enetc_get_rxnfc()
648 if (rxnfc->fs.location >= priv->si->num_fs_entries) in enetc_set_rxnfc()
655 err = enetc_set_cls_entry(priv->si, &rxnfc->fs, true); in enetc_set_rxnfc()
662 if (rxnfc->fs.location >= priv->si->num_fs_entries) in enetc_set_rxnfc()
665 err = enetc_set_cls_entry(priv->si, &rxnfc->fs, false); in enetc_set_rxnfc()
682 return (priv->si->hw.port) ? ENETC_RSSHASH_KEY_SIZE : 0; in enetc_get_rxfh_key_size()
690 return priv->si->num_rss; in enetc_get_rxfh_indir_size()
697 struct enetc_hw *hw = &priv->si->hw; in enetc_get_rxfh()
711 err = enetc_get_rss_table(priv->si, indir, priv->si->num_rss); in enetc_get_rxfh()
729 struct enetc_hw *hw = &priv->si->hw; in enetc_set_rxfh()
738 err = enetc_set_rss_table(priv->si, indir, priv->si->num_rss); in enetc_set_rxfh()
755 struct enetc_hw *hw = &priv->si->hw; in enetc_get_ringparam()
866 if (enetc_si_is_pf(priv->si)) in enetc_get_ts_info()
942 struct enetc_hw *hw = &priv->si->hw; in enetc_get_mm_stats()
943 struct enetc_si *si = priv->si; in enetc_get_mm_stats() local
945 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_get_mm_stats()
959 struct enetc_si *si = priv->si; in enetc_get_mm() local
960 struct enetc_hw *hw = &si->hw; in enetc_get_mm()
963 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_get_mm()
1050 struct enetc_hw *hw = &priv->si->hw; in enetc_mm_commit_preemptible_tcs()
1074 static void enetc_restart_emac_rx(struct enetc_si *si) in enetc_restart_emac_rx() argument
1076 u32 val = enetc_port_rd(&si->hw, ENETC_PM0_CMD_CFG); in enetc_restart_emac_rx()
1078 enetc_port_wr(&si->hw, ENETC_PM0_CMD_CFG, val & ~ENETC_PM0_RX_EN); in enetc_restart_emac_rx()
1081 enetc_port_wr(&si->hw, ENETC_PM0_CMD_CFG, val); in enetc_restart_emac_rx()
1088 struct enetc_hw *hw = &priv->si->hw; in enetc_set_mm()
1089 struct enetc_si *si = priv->si; in enetc_set_mm() local
1093 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_set_mm()
1138 enetc_restart_emac_rx(priv->si); in enetc_set_mm()
1156 struct enetc_hw *hw = &priv->si->hw; in enetc_mm_link_state_update()
1241 if (enetc_si_is_pf(priv->si)) in enetc_set_ethtool_ops()