Lines Matching refs:mv643xx_eth_private
366 struct mv643xx_eth_private { struct
418 static inline u32 rdl(struct mv643xx_eth_private *mp, int offset) in rdl() argument
423 static inline u32 rdlp(struct mv643xx_eth_private *mp, int offset) in rdlp()
428 static inline void wrl(struct mv643xx_eth_private *mp, int offset, u32 data) in wrl()
433 static inline void wrlp(struct mv643xx_eth_private *mp, int offset, u32 data) in wrlp()
440 static struct mv643xx_eth_private *rxq_to_mp(struct rx_queue *rxq) in rxq_to_mp()
442 return container_of(rxq, struct mv643xx_eth_private, rxq[rxq->index]); in rxq_to_mp()
445 static struct mv643xx_eth_private *txq_to_mp(struct tx_queue *txq) in txq_to_mp()
447 return container_of(txq, struct mv643xx_eth_private, txq[txq->index]); in txq_to_mp()
452 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_enable()
458 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_disable()
468 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_reset_hw_ptr()
478 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_enable()
484 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_disable()
494 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_maybe_wake()
507 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_process()
599 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_refill()
669 static int skb_tx_csum(struct mv643xx_eth_private *mp, struct sk_buff *skb, in skb_tx_csum()
777 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_put_hdr_tso()
820 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_submit_tso()
892 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_submit_frag_skb()
931 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_submit_skb()
994 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_xmit()
1033 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_kick()
1058 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_reclaim()
1132 static void tx_set_rate(struct mv643xx_eth_private *mp, int rate, int burst) in tx_set_rate()
1166 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_set_rate()
1184 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_set_fixed_prio_mode()
1212 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_adjust_link()
1253 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_stats()
1275 static inline u32 mib_read(struct mv643xx_eth_private *mp, int offset) in mib_read()
1280 static void mib_counters_clear(struct mv643xx_eth_private *mp) in mib_counters_clear()
1292 static void mib_counters_update(struct mv643xx_eth_private *mp) in mib_counters_update()
1335 struct mv643xx_eth_private *mp = from_timer(mp, t, mib_counters_timer); in mib_counters_timer_wrapper()
1353 static unsigned int get_rx_coal(struct mv643xx_eth_private *mp) in get_rx_coal()
1370 static void set_rx_coal(struct mv643xx_eth_private *mp, unsigned int usec) in set_rx_coal()
1395 static unsigned int get_tx_coal(struct mv643xx_eth_private *mp) in get_tx_coal()
1407 static void set_tx_coal(struct mv643xx_eth_private *mp, unsigned int usec) in set_tx_coal()
1436 -1, offsetof(struct mv643xx_eth_private, mib_counters.m) }
1482 mv643xx_eth_get_link_ksettings_phy(struct mv643xx_eth_private *mp, in mv643xx_eth_get_link_ksettings_phy()
1501 mv643xx_eth_get_link_ksettings_phyless(struct mv643xx_eth_private *mp, in mv643xx_eth_get_link_ksettings_phyless()
1569 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_link_ksettings()
1619 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_coalesce()
1632 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_set_coalesce()
1645 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_ringparam()
1659 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_set_ringparam()
1687 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_set_features()
1713 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_ethtool_stats()
1764 static void uc_addr_get(struct mv643xx_eth_private *mp, unsigned char *addr) in uc_addr_get()
1777 static void uc_addr_set(struct mv643xx_eth_private *mp, const u8 *addr) in uc_addr_set()
1807 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_program_unicast_filter()
1863 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_program_multicast_filter()
1937 static int rxq_init(struct mv643xx_eth_private *mp, int index) in rxq_init()
2006 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_deinit()
2033 static int txq_init(struct mv643xx_eth_private *mp, int index) in txq_init()
2123 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_deinit()
2146 static int mv643xx_eth_collect_events(struct mv643xx_eth_private *mp) in mv643xx_eth_collect_events()
2182 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_irq()
2193 static void handle_link_event(struct mv643xx_eth_private *mp) in handle_link_event()
2246 struct mv643xx_eth_private *mp; in mv643xx_eth_poll()
2249 mp = container_of(napi, struct mv643xx_eth_private, napi); in mv643xx_eth_poll()
2312 struct mv643xx_eth_private *mp = from_timer(mp, t, rx_oom); in oom_timer_wrapper()
2317 static void port_start(struct mv643xx_eth_private *mp) in port_start()
2393 static void mv643xx_eth_recalc_skb_size(struct mv643xx_eth_private *mp) in mv643xx_eth_recalc_skb_size()
2423 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_open()
2490 static void port_reset(struct mv643xx_eth_private *mp) in port_reset()
2518 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_stop()
2562 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_change_mtu()
2588 struct mv643xx_eth_private *mp; in tx_timeout_task()
2590 mp = container_of(ugly, struct mv643xx_eth_private, tx_timeout_task); in tx_timeout_task()
2601 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_tx_timeout()
2611 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_netpoll()
2911 static void phy_addr_set(struct mv643xx_eth_private *mp, int phy_addr) in phy_addr_set()
2922 static int phy_addr_get(struct mv643xx_eth_private *mp) in phy_addr_get()
2931 static void set_params(struct mv643xx_eth_private *mp, in set_params()
2970 static int get_phy_mode(struct mv643xx_eth_private *mp) in get_phy_mode()
2987 static struct phy_device *phy_scan(struct mv643xx_eth_private *mp, in phy_scan()
3023 static void phy_init(struct mv643xx_eth_private *mp, int speed, int duplex) in phy_init()
3044 static void init_pscr(struct mv643xx_eth_private *mp, int speed, int duplex) in init_pscr()
3093 struct mv643xx_eth_private *mp; in mv643xx_eth_probe()
3109 dev = alloc_etherdev_mq(sizeof(struct mv643xx_eth_private), 8); in mv643xx_eth_probe()
3249 struct mv643xx_eth_private *mp = platform_get_drvdata(pdev); in mv643xx_eth_remove()
3267 struct mv643xx_eth_private *mp = platform_get_drvdata(pdev); in mv643xx_eth_shutdown()