Lines Matching refs:bcmgenet_priv

90 static inline void dmadesc_set_length_status(struct bcmgenet_priv *priv,  in dmadesc_set_length_status()
96 static inline void dmadesc_set_addr(struct bcmgenet_priv *priv, in dmadesc_set_addr()
113 static inline void dmadesc_set(struct bcmgenet_priv *priv, in dmadesc_set()
125 static inline u32 bcmgenet_rbuf_ctrl_get(struct bcmgenet_priv *priv) in bcmgenet_rbuf_ctrl_get()
133 static inline void bcmgenet_rbuf_ctrl_set(struct bcmgenet_priv *priv, u32 val) in bcmgenet_rbuf_ctrl_set()
145 static inline u32 bcmgenet_tbuf_ctrl_get(struct bcmgenet_priv *priv) in bcmgenet_tbuf_ctrl_get()
154 static inline void bcmgenet_tbuf_ctrl_set(struct bcmgenet_priv *priv, u32 val) in bcmgenet_tbuf_ctrl_set()
163 static inline u32 bcmgenet_bp_mc_get(struct bcmgenet_priv *priv) in bcmgenet_bp_mc_get()
172 static inline void bcmgenet_bp_mc_set(struct bcmgenet_priv *priv, u32 val) in bcmgenet_bp_mc_set()
312 static inline struct bcmgenet_priv *dev_to_priv(struct device *dev) in dev_to_priv()
317 static inline u32 bcmgenet_tdma_readl(struct bcmgenet_priv *priv, in bcmgenet_tdma_readl()
324 static inline void bcmgenet_tdma_writel(struct bcmgenet_priv *priv, in bcmgenet_tdma_writel()
331 static inline u32 bcmgenet_rdma_readl(struct bcmgenet_priv *priv, in bcmgenet_rdma_readl()
338 static inline void bcmgenet_rdma_writel(struct bcmgenet_priv *priv, in bcmgenet_rdma_writel()
408 static inline u32 bcmgenet_tdma_ring_readl(struct bcmgenet_priv *priv, in bcmgenet_tdma_ring_readl()
417 static inline void bcmgenet_tdma_ring_writel(struct bcmgenet_priv *priv, in bcmgenet_tdma_ring_writel()
426 static inline u32 bcmgenet_rdma_ring_readl(struct bcmgenet_priv *priv, in bcmgenet_rdma_ring_readl()
435 static inline void bcmgenet_rdma_ring_writel(struct bcmgenet_priv *priv, in bcmgenet_rdma_ring_writel()
444 static void bcmgenet_hfb_enable_filter(struct bcmgenet_priv *priv, u32 f_index) in bcmgenet_hfb_enable_filter()
458 static void bcmgenet_hfb_disable_filter(struct bcmgenet_priv *priv, u32 f_index) in bcmgenet_hfb_disable_filter()
479 static void bcmgenet_hfb_set_filter_rx_queue_mapping(struct bcmgenet_priv *priv, in bcmgenet_hfb_set_filter_rx_queue_mapping()
492 static void bcmgenet_hfb_set_filter_length(struct bcmgenet_priv *priv, in bcmgenet_hfb_set_filter_length()
528 static int bcmgenet_hfb_insert_data(struct bcmgenet_priv *priv, u32 f_index, in bcmgenet_hfb_insert_data()
578 static void bcmgenet_hfb_create_rxnfc_filter(struct bcmgenet_priv *priv, in bcmgenet_hfb_create_rxnfc_filter()
689 static void bcmgenet_hfb_clear_filter(struct bcmgenet_priv *priv, u32 f_index) in bcmgenet_hfb_clear_filter()
698 static void bcmgenet_hfb_clear(struct bcmgenet_priv *priv) in bcmgenet_hfb_clear()
720 static void bcmgenet_hfb_init(struct bcmgenet_priv *priv) in bcmgenet_hfb_init()
738 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_begin()
746 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_complete()
781 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_set_features()
800 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_get_msglevel()
807 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_set_msglevel()
817 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_get_coalesce()
843 struct bcmgenet_priv *priv = ring->priv; in bcmgenet_set_rx_coalesce()
881 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_set_coalesce()
923 struct bcmgenet_priv *priv; in bcmgenet_get_pauseparam()
945 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_set_pauseparam()
990 .stat_sizeof = sizeof(((struct bcmgenet_priv *)0)->m), \
991 .stat_offset = offsetof(struct bcmgenet_priv, m), \
1002 .stat_sizeof = sizeof(((struct bcmgenet_priv *)0)->m), \
1003 .stat_offset = offsetof(struct bcmgenet_priv, m), \
1160 static u32 bcmgenet_update_stat_misc(struct bcmgenet_priv *priv, u16 offset) in bcmgenet_update_stat_misc()
1199 static void bcmgenet_update_mib_counters(struct bcmgenet_priv *priv) in bcmgenet_update_mib_counters()
1249 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_get_ethtool_stats()
1278 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_eee_enable_set()
1321 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_get_eee()
1338 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_set_eee()
1431 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_insert_flow()
1494 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_delete_flow()
1522 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_set_rxnfc()
1544 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_get_flow()
1561 static int bcmgenet_get_num_flows(struct bcmgenet_priv *priv) in bcmgenet_get_num_flows()
1575 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_get_rxnfc()
1637 static int bcmgenet_power_down(struct bcmgenet_priv *priv, in bcmgenet_power_down()
1679 static void bcmgenet_power_up(struct bcmgenet_priv *priv, in bcmgenet_power_up()
1728 static struct enet_cb *bcmgenet_get_txcb(struct bcmgenet_priv *priv, in bcmgenet_get_txcb()
1745 static struct enet_cb *bcmgenet_put_txcb(struct bcmgenet_priv *priv, in bcmgenet_put_txcb()
1871 struct bcmgenet_priv *priv = netdev_priv(dev); in __bcmgenet_tx_reclaim()
1964 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_tx_reclaim_all()
1981 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_add_tsb()
2045 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_xmit()
2184 static struct sk_buff *bcmgenet_rx_refill(struct bcmgenet_priv *priv, in bcmgenet_rx_refill()
2232 struct bcmgenet_priv *priv = ring->priv; in bcmgenet_desc_rx()
2429 static int bcmgenet_alloc_rx_buffers(struct bcmgenet_priv *priv, in bcmgenet_alloc_rx_buffers()
2451 static void bcmgenet_free_rx_buffers(struct bcmgenet_priv *priv) in bcmgenet_free_rx_buffers()
2466 static void umac_enable_set(struct bcmgenet_priv *priv, u32 mask, bool enable) in umac_enable_set()
2490 static void reset_umac(struct bcmgenet_priv *priv) in reset_umac()
2503 static void bcmgenet_intr_disable(struct bcmgenet_priv *priv) in bcmgenet_intr_disable()
2512 static void bcmgenet_link_intr_enable(struct bcmgenet_priv *priv) in bcmgenet_link_intr_enable()
2532 static void init_umac(struct bcmgenet_priv *priv) in init_umac()
2631 static void bcmgenet_init_tx_ring(struct bcmgenet_priv *priv, in bcmgenet_init_tx_ring()
2690 static int bcmgenet_init_rx_ring(struct bcmgenet_priv *priv, in bcmgenet_init_rx_ring()
2747 static void bcmgenet_enable_tx_napi(struct bcmgenet_priv *priv) in bcmgenet_enable_tx_napi()
2763 static void bcmgenet_disable_tx_napi(struct bcmgenet_priv *priv) in bcmgenet_disable_tx_napi()
2777 static void bcmgenet_fini_tx_napi(struct bcmgenet_priv *priv) in bcmgenet_fini_tx_napi()
2808 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_init_tx_queues()
2860 static void bcmgenet_enable_rx_napi(struct bcmgenet_priv *priv) in bcmgenet_enable_rx_napi()
2876 static void bcmgenet_disable_rx_napi(struct bcmgenet_priv *priv) in bcmgenet_disable_rx_napi()
2892 static void bcmgenet_fini_rx_napi(struct bcmgenet_priv *priv) in bcmgenet_fini_rx_napi()
2915 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_init_rx_queues()
2966 static int bcmgenet_dma_teardown(struct bcmgenet_priv *priv) in bcmgenet_dma_teardown()
3033 static void bcmgenet_fini_dma(struct bcmgenet_priv *priv) in bcmgenet_fini_dma()
3059 static int bcmgenet_init_dma(struct bcmgenet_priv *priv) in bcmgenet_init_dma()
3123 struct bcmgenet_priv *priv = container_of( in bcmgenet_irq_task()
3124 work, struct bcmgenet_priv, bcmgenet_irq_work); in bcmgenet_irq_task()
3148 struct bcmgenet_priv *priv = dev_id; in bcmgenet_isr1()
3196 struct bcmgenet_priv *priv = dev_id; in bcmgenet_isr0()
3256 static void bcmgenet_umac_reset(struct bcmgenet_priv *priv) in bcmgenet_umac_reset()
3270 static void bcmgenet_set_hw_addr(struct bcmgenet_priv *priv, in bcmgenet_set_hw_addr()
3277 static void bcmgenet_get_hw_addr(struct bcmgenet_priv *priv, in bcmgenet_get_hw_addr()
3289 static u32 bcmgenet_dma_disable(struct bcmgenet_priv *priv, bool flush_rx) in bcmgenet_dma_disable()
3325 static void bcmgenet_enable_dma(struct bcmgenet_priv *priv, u32 dma_ctrl) in bcmgenet_enable_dma()
3340 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_netif_start()
3360 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_open()
3447 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_netif_stop()
3477 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_close()
3500 struct bcmgenet_priv *priv = ring->priv; in bcmgenet_dump_tx_queue()
3544 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_timeout()
3575 static inline void bcmgenet_set_mdf_addr(struct bcmgenet_priv *priv, in bcmgenet_set_mdf_addr()
3589 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_set_rx_mode()
3659 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_get_stats()
3702 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_change_carrier()
3822 static void bcmgenet_set_hw_params(struct bcmgenet_priv *priv) in bcmgenet_set_hw_params()
3981 struct bcmgenet_priv *priv; in bcmgenet_probe()
4169 struct bcmgenet_priv *priv = dev_to_priv(&pdev->dev); in bcmgenet_remove()
4186 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_resume_noirq()
4218 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_resume()
4289 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_suspend()
4310 struct bcmgenet_priv *priv = netdev_priv(dev); in bcmgenet_suspend_noirq()