Lines Matching refs:emac

14 	struct prueth_emac *emac = netdev_priv(ndev);  in emac_get_drvinfo()  local
15 struct prueth *prueth = emac->prueth; in emac_get_drvinfo()
24 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_msglevel() local
26 return emac->msg_enable; in emac_get_msglevel()
31 struct prueth_emac *emac = netdev_priv(ndev); in emac_set_msglevel() local
33 emac->msg_enable = value; in emac_set_msglevel()
71 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_sset_count() local
74 if (emac->prueth->pa_stats) in emac_get_sset_count()
85 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_strings() local
94 if (emac->prueth->pa_stats) in emac_get_strings()
106 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_ethtool_stats() local
109 emac_update_hardware_stats(emac); in emac_get_ethtool_stats()
113 *(data++) = emac->stats[i]; in emac_get_ethtool_stats()
115 if (emac->prueth->pa_stats) in emac_get_ethtool_stats()
117 *(data++) = emac->pa_stats[i]; in emac_get_ethtool_stats()
123 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_ts_info() local
131 info->phc_index = icss_iep_get_ptp_clock_idx(emac->iep); in emac_get_ts_info()
141 struct prueth_emac *emac = netdev_priv(ndev); in emac_set_channels() local
146 if (netif_running(emac->ndev)) in emac_set_channels()
149 emac->tx_ch_num = ch->tx_count; in emac_set_channels()
151 if (emac->is_sr1) in emac_set_channels()
152 emac->tx_ch_num++; in emac_set_channels()
160 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_channels() local
167 if (emac->is_sr1) in emac_get_channels()
171 ch->tx_count = emac->tx_ch_num; in emac_get_channels()
173 if (emac->is_sr1) in emac_get_channels()
190 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_rmon_stats() local
194 rmon_stats->undersize_pkts = emac_get_stat_by_name(emac, "rx_bucket1_frames") - in emac_get_rmon_stats()
195 emac_get_stat_by_name(emac, "rx_64B_frames"); in emac_get_rmon_stats()
197 rmon_stats->hist[0] = emac_get_stat_by_name(emac, "rx_bucket1_frames"); in emac_get_rmon_stats()
198 rmon_stats->hist[1] = emac_get_stat_by_name(emac, "rx_bucket2_frames"); in emac_get_rmon_stats()
199 rmon_stats->hist[2] = emac_get_stat_by_name(emac, "rx_bucket3_frames"); in emac_get_rmon_stats()
200 rmon_stats->hist[3] = emac_get_stat_by_name(emac, "rx_bucket4_frames"); in emac_get_rmon_stats()
201 rmon_stats->hist[4] = emac_get_stat_by_name(emac, "rx_bucket5_frames"); in emac_get_rmon_stats()
203 rmon_stats->hist_tx[0] = emac_get_stat_by_name(emac, "tx_bucket1_frames"); in emac_get_rmon_stats()
204 rmon_stats->hist_tx[1] = emac_get_stat_by_name(emac, "tx_bucket2_frames"); in emac_get_rmon_stats()
205 rmon_stats->hist_tx[2] = emac_get_stat_by_name(emac, "tx_bucket3_frames"); in emac_get_rmon_stats()
206 rmon_stats->hist_tx[3] = emac_get_stat_by_name(emac, "tx_bucket4_frames"); in emac_get_rmon_stats()
207 rmon_stats->hist_tx[4] = emac_get_stat_by_name(emac, "tx_bucket5_frames"); in emac_get_rmon_stats()
215 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_coalesce() local
218 tx_chn = &emac->tx_chns[0]; in emac_get_coalesce()
220 coal->rx_coalesce_usecs = emac->rx_pace_timeout_ns / 1000; in emac_get_coalesce()
229 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_per_queue_coalesce() local
235 tx_chn = &emac->tx_chns[queue]; in emac_get_per_queue_coalesce()
247 struct prueth_emac *emac = netdev_priv(ndev); in emac_set_coalesce() local
248 struct prueth *prueth = emac->prueth; in emac_set_coalesce()
251 tx_chn = &emac->tx_chns[0]; in emac_set_coalesce()
267 emac->rx_pace_timeout_ns = coal->rx_coalesce_usecs * 1000; in emac_set_coalesce()
276 struct prueth_emac *emac = netdev_priv(ndev); in emac_set_per_queue_coalesce() local
277 struct prueth *prueth = emac->prueth; in emac_set_per_queue_coalesce()
283 tx_chn = &emac->tx_chns[queue]; in emac_set_per_queue_coalesce()