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()
263 if (!enetc_si_is_pf(priv->si)) in enetc_get_strings()
277 struct enetc_hw *hw = &priv->si->hw; in enetc_get_ethtool_stats()
300 if (!enetc_si_is_pf(priv->si)) in enetc_get_ethtool_stats()
318 struct enetc_hw *hw = &priv->si->hw; in enetc_get_pause_stats()
319 struct enetc_si *si = priv->si; in enetc_get_pause_stats() local
326 if (si->hw_features & ENETC_SI_F_QBU) in enetc_get_pause_stats()
405 struct enetc_hw *hw = &priv->si->hw; in enetc_get_eth_mac_stats()
406 struct enetc_si *si = priv->si; in enetc_get_eth_mac_stats() local
413 if (si->hw_features & ENETC_SI_F_QBU) in enetc_get_eth_mac_stats()
426 struct enetc_hw *hw = &priv->si->hw; in enetc_get_eth_ctrl_stats()
427 struct enetc_si *si = priv->si; in enetc_get_eth_ctrl_stats() local
434 if (si->hw_features & ENETC_SI_F_QBU) in enetc_get_eth_ctrl_stats()
448 struct enetc_hw *hw = &priv->si->hw; in enetc_get_rmon_stats()
449 struct enetc_si *si = priv->si; in enetc_get_rmon_stats() local
458 if (si->hw_features & ENETC_SI_F_QBU) in enetc_get_rmon_stats()
503 static int enetc_set_cls_entry(struct enetc_si *si, in enetc_set_cls_entry() argument
536 netdev_warn(si->ndev, "ToS field is not supported and was ignored\n"); in enetc_set_cls_entry()
549 netdev_warn(si->ndev, "ToS field is not supported and was ignored\n"); in enetc_set_cls_entry()
574 return enetc_set_fs_entry(si, &rfse, fs->location); in enetc_set_cls_entry()
592 rxnfc->data = priv->si->num_fs_entries; in enetc_get_rxnfc()
595 for (i = 0; i < priv->si->num_fs_entries; i++) in enetc_get_rxnfc()
600 if (rxnfc->fs.location >= priv->si->num_fs_entries) in enetc_get_rxnfc()
608 rxnfc->data = priv->si->num_fs_entries; in enetc_get_rxnfc()
611 for (i = 0; i < priv->si->num_fs_entries; i++) { in enetc_get_rxnfc()
635 if (rxnfc->fs.location >= priv->si->num_fs_entries) in enetc_set_rxnfc()
642 err = enetc_set_cls_entry(priv->si, &rxnfc->fs, true); in enetc_set_rxnfc()
649 if (rxnfc->fs.location >= priv->si->num_fs_entries) in enetc_set_rxnfc()
652 err = enetc_set_cls_entry(priv->si, &rxnfc->fs, false); in enetc_set_rxnfc()
669 return (priv->si->hw.port) ? ENETC_RSSHASH_KEY_SIZE : 0; in enetc_get_rxfh_key_size()
677 return priv->si->num_rss; in enetc_get_rxfh_indir_size()
684 struct enetc_hw *hw = &priv->si->hw; in enetc_get_rxfh()
698 err = enetc_get_rss_table(priv->si, rxfh->indir, in enetc_get_rxfh()
699 priv->si->num_rss); in enetc_get_rxfh()
718 struct enetc_hw *hw = &priv->si->hw; in enetc_set_rxfh()
727 err = enetc_set_rss_table(priv->si, rxfh->indir, in enetc_set_rxfh()
728 priv->si->num_rss); in enetc_set_rxfh()
745 struct enetc_hw *hw = &priv->si->hw; in enetc_get_ringparam()
858 if (enetc_si_is_pf(priv->si)) in enetc_get_ts_info()
934 struct enetc_hw *hw = &priv->si->hw; in enetc_get_mm_stats()
935 struct enetc_si *si = priv->si; in enetc_get_mm_stats() local
937 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_get_mm_stats()
951 struct enetc_si *si = priv->si; in enetc_get_mm() local
952 struct enetc_hw *hw = &si->hw; in enetc_get_mm()
955 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_get_mm()
1042 struct enetc_hw *hw = &priv->si->hw; in enetc_mm_commit_preemptible_tcs()
1066 static void enetc_restart_emac_rx(struct enetc_si *si) in enetc_restart_emac_rx() argument
1068 u32 val = enetc_port_rd(&si->hw, ENETC_PM0_CMD_CFG); in enetc_restart_emac_rx()
1070 enetc_port_wr(&si->hw, ENETC_PM0_CMD_CFG, val & ~ENETC_PM0_RX_EN); in enetc_restart_emac_rx()
1073 enetc_port_wr(&si->hw, ENETC_PM0_CMD_CFG, val); in enetc_restart_emac_rx()
1080 struct enetc_hw *hw = &priv->si->hw; in enetc_set_mm()
1081 struct enetc_si *si = priv->si; in enetc_set_mm() local
1085 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_set_mm()
1130 enetc_restart_emac_rx(priv->si); in enetc_set_mm()
1148 struct enetc_hw *hw = &priv->si->hw; in enetc_mm_link_state_update()
1249 ndev->ethtool_ops = priv->si->drvdata->eth_ops; in enetc_set_ethtool_ops()