Lines Matching refs:mv643xx_eth_private
367 struct mv643xx_eth_private { struct
419 static inline u32 rdl(struct mv643xx_eth_private *mp, int offset) in rdl() argument
424 static inline u32 rdlp(struct mv643xx_eth_private *mp, int offset) in rdlp()
429 static inline void wrl(struct mv643xx_eth_private *mp, int offset, u32 data) in wrl()
434 static inline void wrlp(struct mv643xx_eth_private *mp, int offset, u32 data) in wrlp()
441 static struct mv643xx_eth_private *rxq_to_mp(struct rx_queue *rxq) in rxq_to_mp()
443 return container_of(rxq, struct mv643xx_eth_private, rxq[rxq->index]); in rxq_to_mp()
446 static struct mv643xx_eth_private *txq_to_mp(struct tx_queue *txq) in txq_to_mp()
448 return container_of(txq, struct mv643xx_eth_private, txq[txq->index]); in txq_to_mp()
453 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_enable()
459 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_disable()
469 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_reset_hw_ptr()
479 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_enable()
485 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_disable()
495 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_maybe_wake()
508 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_process()
600 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_refill()
670 static int skb_tx_csum(struct mv643xx_eth_private *mp, struct sk_buff *skb, in skb_tx_csum()
778 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_put_hdr_tso()
821 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_submit_tso()
893 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_submit_frag_skb()
932 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_submit_skb()
995 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_xmit()
1034 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_kick()
1059 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_reclaim()
1133 static void tx_set_rate(struct mv643xx_eth_private *mp, int rate, int burst) in tx_set_rate()
1167 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_set_rate()
1185 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_set_fixed_prio_mode()
1213 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_adjust_link()
1254 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_stats()
1276 static inline u32 mib_read(struct mv643xx_eth_private *mp, int offset) in mib_read()
1281 static void mib_counters_clear(struct mv643xx_eth_private *mp) in mib_counters_clear()
1293 static void mib_counters_update(struct mv643xx_eth_private *mp) in mib_counters_update()
1336 struct mv643xx_eth_private *mp = timer_container_of(mp, t, in mib_counters_timer_wrapper()
1355 static unsigned int get_rx_coal(struct mv643xx_eth_private *mp) in get_rx_coal()
1372 static void set_rx_coal(struct mv643xx_eth_private *mp, unsigned int usec) in set_rx_coal()
1397 static unsigned int get_tx_coal(struct mv643xx_eth_private *mp) in get_tx_coal()
1409 static void set_tx_coal(struct mv643xx_eth_private *mp, unsigned int usec) in set_tx_coal()
1438 -1, offsetof(struct mv643xx_eth_private, mib_counters.m) }
1484 mv643xx_eth_get_link_ksettings_phy(struct mv643xx_eth_private *mp, in mv643xx_eth_get_link_ksettings_phy()
1503 mv643xx_eth_get_link_ksettings_phyless(struct mv643xx_eth_private *mp, in mv643xx_eth_get_link_ksettings_phyless()
1571 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_link_ksettings()
1621 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_coalesce()
1634 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_set_coalesce()
1647 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_ringparam()
1661 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_set_ringparam()
1689 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_set_features()
1711 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_ethtool_stats()
1762 static void uc_addr_get(struct mv643xx_eth_private *mp, unsigned char *addr) in uc_addr_get()
1775 static void uc_addr_set(struct mv643xx_eth_private *mp, const u8 *addr) in uc_addr_set()
1805 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_program_unicast_filter()
1861 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_program_multicast_filter()
1935 static int rxq_init(struct mv643xx_eth_private *mp, int index) in rxq_init()
2004 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_deinit()
2031 static int txq_init(struct mv643xx_eth_private *mp, int index) in txq_init()
2121 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_deinit()
2144 static int mv643xx_eth_collect_events(struct mv643xx_eth_private *mp) in mv643xx_eth_collect_events()
2180 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_irq()
2191 static void handle_link_event(struct mv643xx_eth_private *mp) in handle_link_event()
2244 struct mv643xx_eth_private *mp; in mv643xx_eth_poll()
2247 mp = container_of(napi, struct mv643xx_eth_private, napi); in mv643xx_eth_poll()
2310 struct mv643xx_eth_private *mp = timer_container_of(mp, t, rx_oom); in oom_timer_wrapper()
2315 static void port_start(struct mv643xx_eth_private *mp) in port_start()
2391 static void mv643xx_eth_recalc_skb_size(struct mv643xx_eth_private *mp) in mv643xx_eth_recalc_skb_size()
2421 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_open()
2488 static void port_reset(struct mv643xx_eth_private *mp) in port_reset()
2516 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_stop()
2560 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_change_mtu()
2586 struct mv643xx_eth_private *mp; in tx_timeout_task()
2588 mp = container_of(ugly, struct mv643xx_eth_private, tx_timeout_task); in tx_timeout_task()
2599 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_tx_timeout()
2609 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_netpoll()
2905 static void phy_addr_set(struct mv643xx_eth_private *mp, int phy_addr) in phy_addr_set()
2916 static int phy_addr_get(struct mv643xx_eth_private *mp) in phy_addr_get()
2925 static void set_params(struct mv643xx_eth_private *mp, in set_params()
2964 static int get_phy_mode(struct mv643xx_eth_private *mp) in get_phy_mode()
2981 static struct phy_device *phy_scan(struct mv643xx_eth_private *mp, in phy_scan()
3017 static void phy_init(struct mv643xx_eth_private *mp, int speed, int duplex) in phy_init()
3038 static void init_pscr(struct mv643xx_eth_private *mp, int speed, int duplex) in init_pscr()
3087 struct mv643xx_eth_private *mp; in mv643xx_eth_probe()
3104 dev = alloc_etherdev_mq(sizeof(struct mv643xx_eth_private), 8); in mv643xx_eth_probe()
3275 struct mv643xx_eth_private *mp = platform_get_drvdata(pdev); in mv643xx_eth_remove()
3291 struct mv643xx_eth_private *mp = platform_get_drvdata(pdev); in mv643xx_eth_shutdown()