Lines Matching refs:mv643xx_eth_private
380 struct mv643xx_eth_private { struct
434 static inline u32 rdl(struct mv643xx_eth_private *mp, int offset) in rdl() argument
439 static inline u32 rdlp(struct mv643xx_eth_private *mp, int offset) in rdlp()
444 static inline void wrl(struct mv643xx_eth_private *mp, int offset, u32 data) in wrl()
449 static inline void wrlp(struct mv643xx_eth_private *mp, int offset, u32 data) in wrlp()
456 static struct mv643xx_eth_private *rxq_to_mp(struct rx_queue *rxq) in rxq_to_mp()
458 return container_of(rxq, struct mv643xx_eth_private, rxq[rxq->index]); in rxq_to_mp()
461 static struct mv643xx_eth_private *txq_to_mp(struct tx_queue *txq) in txq_to_mp()
463 return container_of(txq, struct mv643xx_eth_private, txq[txq->index]); in txq_to_mp()
468 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_enable()
474 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_disable()
484 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_reset_hw_ptr()
494 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_enable()
500 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_disable()
510 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_maybe_wake()
523 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_process()
615 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_refill()
690 static int skb_tx_csum(struct mv643xx_eth_private *mp, struct sk_buff *skb, in skb_tx_csum()
784 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_put_hdr_tso()
817 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_submit_tso()
880 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_submit_frag_skb()
919 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_submit_skb()
982 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_xmit()
1021 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_kick()
1046 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_reclaim()
1120 static void tx_set_rate(struct mv643xx_eth_private *mp, int rate, int burst) in tx_set_rate()
1154 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_set_rate()
1172 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_set_fixed_prio_mode()
1200 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_adjust_link()
1241 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_stats()
1263 static inline u32 mib_read(struct mv643xx_eth_private *mp, int offset) in mib_read()
1268 static void mib_counters_clear(struct mv643xx_eth_private *mp) in mib_counters_clear()
1280 static void mib_counters_update(struct mv643xx_eth_private *mp) in mib_counters_update()
1323 struct mv643xx_eth_private *mp = (void *)_mp; in mib_counters_timer_wrapper()
1341 static unsigned int get_rx_coal(struct mv643xx_eth_private *mp) in get_rx_coal()
1357 static void set_rx_coal(struct mv643xx_eth_private *mp, unsigned int usec) in set_rx_coal()
1382 static unsigned int get_tx_coal(struct mv643xx_eth_private *mp) in get_tx_coal()
1393 static void set_tx_coal(struct mv643xx_eth_private *mp, unsigned int usec) in set_tx_coal()
1422 -1, offsetof(struct mv643xx_eth_private, mib_counters.m) }
1468 mv643xx_eth_get_settings_phy(struct mv643xx_eth_private *mp, in mv643xx_eth_get_settings_phy()
1487 mv643xx_eth_get_settings_phyless(struct mv643xx_eth_private *mp, in mv643xx_eth_get_settings_phyless()
1524 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_wol()
1534 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_set_wol()
1552 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_settings()
1563 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_set_settings()
1594 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_nway_reset()
1605 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_coalesce()
1616 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_set_coalesce()
1627 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_ringparam()
1639 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_set_ringparam()
1667 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_set_features()
1693 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_get_ethtool_stats()
1743 static void uc_addr_get(struct mv643xx_eth_private *mp, unsigned char *addr) in uc_addr_get()
1756 static void uc_addr_set(struct mv643xx_eth_private *mp, unsigned char *addr) in uc_addr_set()
1786 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_program_unicast_filter()
1842 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_program_multicast_filter()
1918 static int rxq_init(struct mv643xx_eth_private *mp, int index) in rxq_init()
1987 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_deinit()
2014 static int txq_init(struct mv643xx_eth_private *mp, int index) in txq_init()
2104 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_deinit()
2127 static int mv643xx_eth_collect_events(struct mv643xx_eth_private *mp) in mv643xx_eth_collect_events()
2163 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_irq()
2174 static void handle_link_event(struct mv643xx_eth_private *mp) in handle_link_event()
2227 struct mv643xx_eth_private *mp; in mv643xx_eth_poll()
2230 mp = container_of(napi, struct mv643xx_eth_private, napi); in mv643xx_eth_poll()
2293 struct mv643xx_eth_private *mp = (void *)data; in oom_timer_wrapper()
2298 static void port_start(struct mv643xx_eth_private *mp) in port_start()
2372 static void mv643xx_eth_recalc_skb_size(struct mv643xx_eth_private *mp) in mv643xx_eth_recalc_skb_size()
2402 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_open()
2468 static void port_reset(struct mv643xx_eth_private *mp) in port_reset()
2496 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_stop()
2527 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_ioctl()
2541 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_change_mtu()
2570 struct mv643xx_eth_private *mp; in tx_timeout_task()
2572 mp = container_of(ugly, struct mv643xx_eth_private, tx_timeout_task); in tx_timeout_task()
2583 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_tx_timeout()
2593 struct mv643xx_eth_private *mp = netdev_priv(dev); in mv643xx_eth_netpoll()
2885 static void phy_addr_set(struct mv643xx_eth_private *mp, int phy_addr) in phy_addr_set()
2896 static int phy_addr_get(struct mv643xx_eth_private *mp) in phy_addr_get()
2905 static void set_params(struct mv643xx_eth_private *mp, in set_params()
2940 static struct phy_device *phy_scan(struct mv643xx_eth_private *mp, in phy_scan()
2976 static void phy_init(struct mv643xx_eth_private *mp, int speed, int duplex) in phy_init()
2994 static void init_pscr(struct mv643xx_eth_private *mp, int speed, int duplex) in init_pscr()
3042 struct mv643xx_eth_private *mp; in mv643xx_eth_probe()
3058 dev = alloc_etherdev_mq(sizeof(struct mv643xx_eth_private), 8); in mv643xx_eth_probe()
3196 struct mv643xx_eth_private *mp = platform_get_drvdata(pdev); in mv643xx_eth_remove()
3213 struct mv643xx_eth_private *mp = platform_get_drvdata(pdev); in mv643xx_eth_shutdown()