Lines Matching refs: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()
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()
941 struct enetc_hw *hw = &priv->si->hw; in enetc_get_mm_stats()
942 struct enetc_si *si = priv->si; in enetc_get_mm_stats() local
944 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_get_mm_stats()
958 struct enetc_si *si = priv->si; in enetc_get_mm() local
959 struct enetc_hw *hw = &si->hw; in enetc_get_mm()
962 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_get_mm()
1049 struct enetc_hw *hw = &priv->si->hw; in enetc_mm_commit_preemptible_tcs()
1073 static void enetc_restart_emac_rx(struct enetc_si *si) in enetc_restart_emac_rx() argument
1075 u32 val = enetc_port_rd(&si->hw, ENETC_PM0_CMD_CFG); in enetc_restart_emac_rx()
1077 enetc_port_wr(&si->hw, ENETC_PM0_CMD_CFG, val & ~ENETC_PM0_RX_EN); in enetc_restart_emac_rx()
1080 enetc_port_wr(&si->hw, ENETC_PM0_CMD_CFG, val); in enetc_restart_emac_rx()
1087 struct enetc_hw *hw = &priv->si->hw; in enetc_set_mm()
1088 struct enetc_si *si = priv->si; in enetc_set_mm() local
1092 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_set_mm()
1137 enetc_restart_emac_rx(priv->si); in enetc_set_mm()
1155 struct enetc_hw *hw = &priv->si->hw; in enetc_mm_link_state_update()
1240 if (enetc_si_is_pf(priv->si)) in enetc_set_ethtool_ops()