Lines Matching refs:ethoc
3 * linux/drivers/net/ethernet/ethoc.c
25 #include <net/ethoc.h>
177 * struct ethoc - driver-private device structure
198 struct ethoc {
237 static inline u32 ethoc_read(struct ethoc *dev, loff_t offset)
245 static inline void ethoc_write(struct ethoc *dev, loff_t offset, u32 data)
253 static inline void ethoc_read_bd(struct ethoc *dev, int index,
261 static inline void ethoc_write_bd(struct ethoc *dev, int index,
269 static inline void ethoc_enable_irq(struct ethoc *dev, u32 mask)
276 static inline void ethoc_disable_irq(struct ethoc *dev, u32 mask)
283 static inline void ethoc_ack_irq(struct ethoc *dev, u32 mask)
288 static inline void ethoc_enable_rx_and_tx(struct ethoc *dev)
295 static inline void ethoc_disable_rx_and_tx(struct ethoc *dev)
302 static int ethoc_init_ring(struct ethoc *dev, unsigned long mem_start)
346 static int ethoc_reset(struct ethoc *dev)
373 static unsigned int ethoc_update_rx_stats(struct ethoc *dev,
422 struct ethoc *priv = netdev_priv(dev);
480 static void ethoc_update_tx_stats(struct ethoc *dev, struct ethoc_bd *bd)
514 struct ethoc *priv = netdev_priv(dev);
553 struct ethoc *priv = netdev_priv(dev);
591 struct ethoc *priv = netdev_priv(dev);
610 struct ethoc *priv = container_of(napi, struct ethoc, napi);
627 struct ethoc *priv = bus->priv;
649 struct ethoc *priv = bus->priv;
671 struct ethoc *priv = netdev_priv(dev);
701 struct ethoc *priv = netdev_priv(dev);
728 struct ethoc *priv = netdev_priv(dev);
764 struct ethoc *priv = netdev_priv(dev);
782 struct ethoc *priv = netdev_priv(dev);
806 struct ethoc *priv = netdev_priv(dev);
826 struct ethoc *priv = netdev_priv(dev);
874 struct ethoc *priv = netdev_priv(dev);
882 struct ethoc *priv = netdev_priv(dev);
938 struct ethoc *priv = netdev_priv(dev);
952 struct ethoc *priv = netdev_priv(dev);
970 struct ethoc *priv = netdev_priv(dev);
1030 struct ethoc *priv = NULL;
1037 netdev = alloc_etherdev(sizeof(struct ethoc));
1136 dev_dbg(&pdev->dev, "ethoc: num_tx: %d num_rx: %d\n",
1201 priv->mdio->name = "ethoc-mdio";
1260 struct ethoc *priv = netdev_priv(netdev);
1294 { .compatible = "opencores,ethoc", },
1305 .name = "ethoc",