Lines Matching refs:enc28j60_net
58 struct enc28j60_net {
88 spi_read_buf(struct enc28j60_net *priv, int len, u8 *data)
120 static int spi_write_buf(struct enc28j60_net *priv, int len,
141 static u8 spi_read_op(struct enc28j60_net *priv, u8 op,
168 static int spi_write_op(struct enc28j60_net *priv, u8 op,
182 static void enc28j60_soft_reset(struct enc28j60_net *priv)
194 static void enc28j60_set_bank(struct enc28j60_net *priv, u8 addr)
238 static void nolock_reg_bfset(struct enc28j60_net *priv,
245 static void locked_reg_bfset(struct enc28j60_net *priv,
256 static void nolock_reg_bfclr(struct enc28j60_net *priv,
263 static void locked_reg_bfclr(struct enc28j60_net *priv,
274 static int nolock_regb_read(struct enc28j60_net *priv,
281 static int locked_regb_read(struct enc28j60_net *priv,
296 static int nolock_regw_read(struct enc28j60_net *priv,
308 static int locked_regw_read(struct enc28j60_net *priv,
323 static void nolock_regb_write(struct enc28j60_net *priv,
330 static void locked_regb_write(struct enc28j60_net *priv,
341 static void nolock_regw_write(struct enc28j60_net *priv,
350 static void locked_regw_write(struct enc28j60_net *priv,
362 static void enc28j60_mem_read(struct enc28j60_net *priv,
384 enc28j60_packet_write(struct enc28j60_net *priv, int len, const u8 *data)
418 static int poll_ready(struct enc28j60_net *priv, u8 reg, u8 mask, u8 val)
438 static int wait_phy_ready(struct enc28j60_net *priv)
447 static u16 enc28j60_phy_read(struct enc28j60_net *priv, u8 address)
467 static int enc28j60_phy_write(struct enc28j60_net *priv, u8 address, u16 data)
489 struct enc28j60_net *priv = netdev_priv(ndev);
535 static void enc28j60_dump_regs(struct enc28j60_net *priv, const char *msg)
593 static void nolock_rxfifo_init(struct enc28j60_net *priv, u16 start, u16 end)
611 static void nolock_txfifo_init(struct enc28j60_net *priv, u16 start, u16 end)
629 static void enc28j60_lowpower(struct enc28j60_net *priv, bool is_low)
650 static int enc28j60_hw_init(struct enc28j60_net *priv)
744 static void enc28j60_hw_enable(struct enc28j60_net *priv)
765 static void enc28j60_hw_disable(struct enc28j60_net *priv)
778 struct enc28j60_net *priv = netdev_priv(ndev);
805 static void enc28j60_read_tsv(struct enc28j60_net *priv, u8 tsv[TSV_SIZE])
816 static void enc28j60_dump_tsv(struct enc28j60_net *priv, const char *msg,
859 static void enc28j60_dump_rsv(struct enc28j60_net *priv, const char *msg,
899 struct enc28j60_net *priv = netdev_priv(ndev);
1008 static int enc28j60_get_free_rxfifo(struct enc28j60_net *priv)
1042 struct enc28j60_net *priv = netdev_priv(ndev);
1067 struct enc28j60_net *priv = netdev_priv(ndev);
1086 struct enc28j60_net *priv = netdev_priv(ndev);
1108 struct enc28j60_net *priv =
1109 container_of(work, struct enc28j60_net, irq_work);
1225 static void enc28j60_hw_tx(struct enc28j60_net *priv)
1271 struct enc28j60_net *priv = netdev_priv(dev);
1295 struct enc28j60_net *priv =
1296 container_of(work, struct enc28j60_net, tx_work);
1304 struct enc28j60_net *priv = dev_id;
1320 struct enc28j60_net *priv = netdev_priv(ndev);
1340 struct enc28j60_net *priv = netdev_priv(dev);
1376 struct enc28j60_net *priv = netdev_priv(dev);
1396 struct enc28j60_net *priv = netdev_priv(dev);
1420 struct enc28j60_net *priv =
1421 container_of(work, struct enc28j60_net, setrx_work);
1444 struct enc28j60_net *priv =
1445 container_of(work, struct enc28j60_net, restart_work);
1475 struct enc28j60_net *priv = netdev_priv(dev);
1497 struct enc28j60_net *priv = netdev_priv(dev);
1503 struct enc28j60_net *priv = netdev_priv(dev);
1517 struct enc28j60_net *priv = netdev_priv(dev);
1536 struct enc28j60_net *priv;
1543 dev = alloc_etherdev(sizeof(struct enc28j60_net));
1614 struct enc28j60_net *priv = dev_get_drvdata(&spi->dev);