Lines Matching defs:axienet_local
549 struct axienet_local { struct
550 struct net_device *ndev;
551 struct device *dev;
553 struct phylink *phylink;
554 struct phylink_config phylink_config;
556 struct mdio_device *pcs_phy;
557 struct phylink_pcs pcs;
559 bool switch_x_sgmii;
561 struct clk *axi_clk;
562 struct clk_bulk_data misc_clks[XAE_NUM_MISC_CLOCKS];
564 struct mii_bus *mii_bus;
565 u8 mii_clk_div;
567 resource_size_t regs_start;
568 void __iomem *regs;
569 void __iomem *dma_regs;
571 struct napi_struct napi_rx;
572 struct dim rx_dim;
573 bool rx_dim_enabled;
574 u16 rx_irqs;
575 spinlock_t rx_cr_lock;
576 u32 rx_dma_cr;
577 bool rx_dma_started;
578 struct axidma_bd *rx_bd_v;
579 dma_addr_t rx_bd_p;
580 u32 rx_bd_num;
581 u32 rx_bd_ci;
582 u64_stats_t rx_packets;
583 u64_stats_t rx_bytes;
584 struct u64_stats_sync rx_stat_sync;
586 struct napi_struct napi_tx;
587 spinlock_t tx_cr_lock;
588 u32 tx_dma_cr;
589 bool tx_dma_started;
590 struct axidma_bd *tx_bd_v;
591 dma_addr_t tx_bd_p;
592 u32 tx_bd_num;
593 u32 tx_bd_ci;
594 u32 tx_bd_tail;
595 u64_stats_t tx_packets;
596 u64_stats_t tx_bytes;
597 struct u64_stats_sync tx_stat_sync;
599 u64 hw_stat_base[STAT_COUNT];
600 u32 hw_last_counter[STAT_COUNT];
601 seqcount_mutex_t hw_stats_seqcount;
602 struct mutex stats_lock;
603 struct delayed_work stats_work;
604 bool reset_in_progress;
606 struct work_struct dma_err_task;
607 bool stopping;
609 int tx_irq;
610 int rx_irq;
611 int eth_irq;
612 phy_interface_t phy_mode;
614 u32 options;
615 u32 features;
617 u32 max_frm_size;
618 u32 rxmem;
620 u8 use_dmaengine;
621 struct dma_chan *tx_chan;
622 struct dma_chan *rx_chan;
623 struct skbuf_dma_descriptor **tx_skb_ring;
624 struct skbuf_dma_descriptor **rx_skb_ring;
625 int tx_ring_head;
626 int tx_ring_tail;
627 int rx_ring_head;
628 int rx_ring_tail;