Lines Matching refs:macb
130 static unsigned int macb_dma_desc_get_size(struct macb *bp) in macb_dma_desc_get_size()
157 static unsigned int macb_adj_dma_desc_idx(struct macb *bp, unsigned int desc_idx) in macb_adj_dma_desc_idx()
176 static struct macb_dma_desc_64 *macb_64b_desc(struct macb *bp, struct macb_dma_desc *desc) in macb_64b_desc()
184 static unsigned int macb_tx_ring_wrap(struct macb *bp, unsigned int index) in macb_tx_ring_wrap()
213 static unsigned int macb_rx_ring_wrap(struct macb *bp, unsigned int index) in macb_rx_ring_wrap()
232 static u32 hw_readl_native(struct macb *bp, int offset) in hw_readl_native()
237 static void hw_writel_native(struct macb *bp, int offset, u32 value) in hw_writel_native()
242 static u32 hw_readl(struct macb *bp, int offset) in hw_readl()
247 static void hw_writel(struct macb *bp, int offset, u32 value) in hw_writel()
281 static void macb_set_hwaddr(struct macb *bp) in macb_set_hwaddr()
300 static void macb_get_hwaddr(struct macb *bp) in macb_get_hwaddr()
329 static int macb_mdio_wait_for_idle(struct macb *bp) in macb_mdio_wait_for_idle()
339 struct macb *bp = bus->priv; in macb_mdio_read()
391 struct macb *bp = bus->priv; in macb_mdio_write()
440 static void macb_init_buffers(struct macb *bp) in macb_init_buffers()
466 static void macb_set_tx_clk(struct macb *bp, int speed) in macb_set_tx_clk()
513 struct macb *bp = container_of(pcs, struct macb, phylink_usx_pcs); in macb_usx_pcs_link_up()
527 struct macb *bp = container_of(pcs, struct macb, phylink_usx_pcs); in macb_usx_pcs_get_state()
547 struct macb *bp = container_of(pcs, struct macb, phylink_usx_pcs); in macb_usx_pcs_config()
591 struct macb *bp = netdev_priv(ndev); in macb_mac_config()
649 struct macb *bp = netdev_priv(ndev); in macb_mac_link_down()
673 struct macb *bp = netdev_priv(ndev); in macb_mac_link_up()
734 struct macb *bp = netdev_priv(ndev); in macb_mac_select_pcs()
759 static int macb_phylink_connect(struct macb *bp) in macb_phylink_connect()
794 struct macb *bp = netdev_priv(ndev); in macb_get_pcs_fixed_state()
802 struct macb *bp = netdev_priv(dev); in macb_mii_probe()
856 static int macb_mdiobus_register(struct macb *bp) in macb_mdiobus_register()
892 static int macb_mii_init(struct macb *bp) in macb_mii_init()
933 static void macb_update_stats(struct macb *bp) in macb_update_stats()
935 u32 *p = &bp->hw_stats.macb.rx_pause_frames; in macb_update_stats()
936 u32 *end = &bp->hw_stats.macb.tx_pause_frames + 1; in macb_update_stats()
945 static int macb_halt_tx(struct macb *bp) in macb_halt_tx()
965 static void macb_tx_unmap(struct macb *bp, struct macb_tx_skb *tx_skb, int budget) in macb_tx_unmap()
983 static void macb_set_addr(struct macb *bp, struct macb_dma_desc *desc, dma_addr_t addr) in macb_set_addr()
1001 static dma_addr_t macb_get_addr(struct macb *bp, struct macb_dma_desc *desc) in macb_get_addr()
1020 struct macb *bp = queue->bp; in macb_tx_error_task()
1160 struct macb *bp = queue->bp; in macb_tx_complete()
1239 struct macb *bp = queue->bp; in gem_rx_refill()
1321 struct macb *bp = queue->bp; in gem_rx()
1417 struct macb *bp = queue->bp; in macb_rx_frame()
1493 struct macb *bp = queue->bp; in macb_init_rx_ring()
1512 struct macb *bp = queue->bp; in macb_rx()
1590 struct macb *bp = queue->bp; in macb_rx_pending()
1606 struct macb *bp = queue->bp; in macb_rx_poll()
1643 struct macb *bp = queue->bp; in macb_tx_restart()
1685 struct macb *bp = queue->bp; in macb_tx_poll()
1727 struct macb *bp = from_tasklet(bp, t, hresp_err_tasklet); in macb_hresp_error_task()
1767 struct macb *bp = queue->bp; in macb_wol_interrupt()
1796 struct macb *bp = queue->bp; in gem_wol_interrupt()
1825 struct macb *bp = queue->bp; in macb_interrupt()
1920 bp->hw_stats.macb.rx_overruns++; in macb_interrupt()
1947 struct macb *bp = netdev_priv(dev); in macb_poll_controller()
1959 static unsigned int macb_tx_map(struct macb *bp, in macb_tx_map()
2240 struct macb *bp = netdev_priv(dev); in macb_start_xmit()
2333 static void macb_init_rx_buffer_size(struct macb *bp, size_t size) in macb_init_rx_buffer_size()
2353 static void gem_free_rx_buffers(struct macb *bp) in gem_free_rx_buffers()
2386 static void macb_free_rx_buffers(struct macb *bp) in macb_free_rx_buffers()
2398 static void macb_free_consistent(struct macb *bp) in macb_free_consistent()
2424 static int gem_alloc_rx_buffers(struct macb *bp) in gem_alloc_rx_buffers()
2443 static int macb_alloc_rx_buffers(struct macb *bp) in macb_alloc_rx_buffers()
2460 static int macb_alloc_consistent(struct macb *bp) in macb_alloc_consistent()
2502 static void gem_init_rings(struct macb *bp) in gem_init_rings()
2527 static void macb_init_rings(struct macb *bp) in macb_init_rings()
2544 static void macb_reset_hw(struct macb *bp) in macb_reset_hw()
2573 static u32 gem_mdc_clk_div(struct macb *bp) in gem_mdc_clk_div()
2594 static u32 macb_mdc_clk_div(struct macb *bp) in macb_mdc_clk_div()
2619 static u32 macb_dbw(struct macb *bp) in macb_dbw()
2642 static void macb_configure_dma(struct macb *bp) in macb_configure_dma()
2688 static void macb_init_hw(struct macb *bp) in macb_init_hw()
2781 struct macb *bp = netdev_priv(dev); in macb_sethashtable()
2799 struct macb *bp = netdev_priv(dev); in macb_set_rx_mode()
2841 struct macb *bp = netdev_priv(dev); in macb_open()
2901 struct macb *bp = netdev_priv(dev); in macb_close()
2943 static void gem_update_stats(struct macb *bp) in gem_update_stats()
2972 static struct net_device_stats *gem_get_stats(struct macb *bp) in gem_get_stats()
3016 struct macb *bp; in gem_get_ethtool_stats()
3026 struct macb *bp = netdev_priv(dev); in gem_get_sset_count()
3039 struct macb *bp = netdev_priv(dev); in gem_get_ethtool_strings()
3063 struct macb *bp = netdev_priv(dev); in macb_get_stats()
3065 struct macb_stats *hwstat = &bp->hw_stats.macb; in macb_get_stats()
3116 struct macb *bp = netdev_priv(dev); in macb_get_regs()
3148 struct macb *bp = netdev_priv(netdev); in macb_get_wol()
3161 struct macb *bp = netdev_priv(netdev); in macb_set_wol()
3189 struct macb *bp = netdev_priv(netdev); in macb_get_link_ksettings()
3197 struct macb *bp = netdev_priv(netdev); in macb_set_link_ksettings()
3207 struct macb *bp = netdev_priv(netdev); in macb_get_ringparam()
3221 struct macb *bp = netdev_priv(netdev); in macb_set_ringparam()
3257 static unsigned int gem_get_tsu_rate(struct macb *bp) in gem_get_tsu_rate()
3282 struct macb *bp = netdev_priv(dev); in gem_get_ts_info()
3323 struct macb *bp = netdev_priv(netdev); in macb_get_ts_info()
3331 static void gem_enable_flow_filters(struct macb *bp, bool enable) in gem_enable_flow_filters()
3377 static void gem_prog_cmp_regs(struct macb *bp, struct ethtool_rx_flow_spec *fs) in gem_prog_cmp_regs()
3463 struct macb *bp = netdev_priv(netdev); in gem_add_flow_filter()
3518 struct macb *bp = netdev_priv(netdev); in gem_del_flow_filter()
3554 struct macb *bp = netdev_priv(netdev); in gem_get_flow_entry()
3569 struct macb *bp = netdev_priv(netdev); in gem_get_all_flow_entries()
3588 struct macb *bp = netdev_priv(netdev); in gem_get_rxnfc()
3615 struct macb *bp = netdev_priv(netdev); in gem_set_rxnfc()
3672 struct macb *bp = netdev_priv(dev); in macb_ioctl()
3689 static inline void macb_set_txcsum_feature(struct macb *bp, in macb_set_txcsum_feature()
3706 static inline void macb_set_rxcsum_feature(struct macb *bp, in macb_set_rxcsum_feature()
3724 static inline void macb_set_rxflow_feature(struct macb *bp, in macb_set_rxflow_feature()
3736 struct macb *bp = netdev_priv(netdev); in macb_set_features()
3754 static void macb_restore_features(struct macb *bp) in macb_restore_features()
3793 static void macb_configure_caps(struct macb *bp, in macb_configure_caps()
3956 struct macb *bp = netdev_priv(dev); in macb_init()
4124 static int at91ether_alloc_coherent(struct macb *lp) in at91ether_alloc_coherent()
4151 static void at91ether_free_coherent(struct macb *lp) in at91ether_free_coherent()
4173 static int at91ether_start(struct macb *lp) in at91ether_start()
4218 static void at91ether_stop(struct macb *lp) in at91ether_stop()
4242 struct macb *lp = netdev_priv(dev); in at91ether_open()
4278 struct macb *lp = netdev_priv(dev); in at91ether_close()
4294 struct macb *lp = netdev_priv(dev); in at91ether_start_xmit()
4331 struct macb *lp = netdev_priv(dev); in at91ether_rx()
4375 struct macb *lp = netdev_priv(dev); in at91ether_interrupt()
4472 struct macb *bp = netdev_priv(dev); in at91ether_init()
4602 struct macb *bp = netdev_priv(dev); in init_reset_optional()
4857 struct macb *bp; in macb_probe()
5033 struct macb *bp; in macb_remove()
5062 struct macb *bp = netdev_priv(netdev); in macb_suspend()
5152 struct macb *bp = netdev_priv(netdev); in macb_resume()
5234 struct macb *bp = netdev_priv(netdev); in macb_runtime_suspend()
5247 struct macb *bp = netdev_priv(netdev); in macb_runtime_resume()