Lines Matching defs:bcm_enet_priv

194 struct bcm_enet_priv {  struct
197 int mac_id;
200 void __iomem *base;
203 int irq;
204 int irq_rx;
205 int irq_tx;
208 dma_addr_t rx_desc_dma;
209 dma_addr_t tx_desc_dma;
212 unsigned int rx_desc_alloc_size;
213 unsigned int tx_desc_alloc_size;
216 struct napi_struct napi;
219 int rx_chan;
222 int rx_ring_size;
225 struct bcm_enet_desc *rx_desc_cpu;
228 int rx_desc_count;
231 int rx_curr_desc;
234 int rx_dirty_desc;
237 unsigned int rx_skb_size;
240 struct sk_buff **rx_skb;
244 struct timer_list rx_timeout;
247 spinlock_t rx_lock;
251 int tx_chan;
254 int tx_ring_size;
257 int dma_maxburst;
260 struct bcm_enet_desc *tx_desc_cpu;
263 int tx_desc_count;
266 int tx_curr_desc;
269 int tx_dirty_desc;
272 struct sk_buff **tx_skb;
275 spinlock_t tx_lock;
280 int use_external_mii;
284 int has_phy;
285 int phy_id;
288 int has_phy_interrupt;
289 int phy_interrupt;
292 struct mii_bus *mii_bus;
293 struct phy_device *phydev;
294 int old_link;
295 int old_duplex;
296 int old_pause;
299 int force_speed_100;
300 int force_duplex_full;
303 int pause_auto;
304 int pause_rx;
305 int pause_tx;
308 struct bcm_enet_mib_counters mib;
312 struct work_struct mib_update_task;
315 struct mutex mib_update_lock;
318 struct clk *mac_clk;
321 struct clk *phy_clk;
324 struct net_device *net_dev;
327 struct platform_device *pdev;
330 unsigned int hw_mtu;
332 bool enet_is_sw;
335 int num_ports;
336 struct bcm63xx_enetsw_port used_ports[ENETSW_MAX_PORT];
337 int sw_port_link[ENETSW_MAX_PORT];
340 struct timer_list swphy_poll;
341 spinlock_t enetsw_mdio_lock;
344 u32 dma_chan_en_mask;
347 u32 dma_chan_int_mask;
350 bool dma_has_sram;
353 unsigned int dma_chan_width;
356 unsigned int dma_desc_shift;