Lines Matching defs:priv
84 spi_read_buf(struct enc28j60_net *priv, int len, u8 *data) in spi_read_buf()
121 static int spi_write_buf(struct enc28j60_net *priv, int len, const u8 *data) in spi_write_buf()
142 static u8 spi_read_op(struct enc28j60_net *priv, u8 op, u8 addr) in spi_read_op()
169 static int spi_write_op(struct enc28j60_net *priv, u8 op, u8 addr, u8 val) in spi_write_op()
183 static void enc28j60_soft_reset(struct enc28j60_net *priv) in enc28j60_soft_reset()
194 static void enc28j60_set_bank(struct enc28j60_net *priv, u8 addr) in enc28j60_set_bank()
238 static void nolock_reg_bfset(struct enc28j60_net *priv, u8 addr, u8 mask) in nolock_reg_bfset()
244 static void locked_reg_bfset(struct enc28j60_net *priv, u8 addr, u8 mask) in locked_reg_bfset()
254 static void nolock_reg_bfclr(struct enc28j60_net *priv, u8 addr, u8 mask) in nolock_reg_bfclr()
260 static void locked_reg_bfclr(struct enc28j60_net *priv, u8 addr, u8 mask) in locked_reg_bfclr()
270 static int nolock_regb_read(struct enc28j60_net *priv, u8 address) in nolock_regb_read()
276 static int locked_regb_read(struct enc28j60_net *priv, u8 address) in locked_regb_read()
290 static int nolock_regw_read(struct enc28j60_net *priv, u8 address) in nolock_regw_read()
301 static int locked_regw_read(struct enc28j60_net *priv, u8 address) in locked_regw_read()
315 static void nolock_regb_write(struct enc28j60_net *priv, u8 address, u8 data) in nolock_regb_write()
321 static void locked_regb_write(struct enc28j60_net *priv, u8 address, u8 data) in locked_regb_write()
331 static void nolock_regw_write(struct enc28j60_net *priv, u8 address, u16 data) in nolock_regw_write()
339 static void locked_regw_write(struct enc28j60_net *priv, u8 address, u16 data) in locked_regw_write()
350 static void enc28j60_mem_read(struct enc28j60_net *priv, u16 addr, int len, in enc28j60_mem_read()
375 enc28j60_packet_write(struct enc28j60_net *priv, int len, const u8 *data) in enc28j60_packet_write()
409 static int poll_ready(struct enc28j60_net *priv, u8 reg, u8 mask, u8 val) in poll_ready()
429 static int wait_phy_ready(struct enc28j60_net *priv) in wait_phy_ready()
438 static u16 enc28j60_phy_read(struct enc28j60_net *priv, u8 address) in enc28j60_phy_read()
458 static int enc28j60_phy_write(struct enc28j60_net *priv, u8 address, u16 data) in enc28j60_phy_write()
480 struct enc28j60_net *priv = netdev_priv(ndev); in enc28j60_set_hw_macaddr() local
526 static void enc28j60_dump_regs(struct enc28j60_net *priv, const char *msg) in enc28j60_dump_regs()
587 static void nolock_rxfifo_init(struct enc28j60_net *priv, u16 start, u16 end) in nolock_rxfifo_init()
606 static void nolock_txfifo_init(struct enc28j60_net *priv, u16 start, u16 end) in nolock_txfifo_init()
626 static void enc28j60_lowpower(struct enc28j60_net *priv, bool is_low) in enc28j60_lowpower()
648 static int enc28j60_hw_init(struct enc28j60_net *priv) in enc28j60_hw_init()
743 static void enc28j60_hw_enable(struct enc28j60_net *priv) in enc28j60_hw_enable()
766 static void enc28j60_hw_disable(struct enc28j60_net *priv) in enc28j60_hw_disable()
779 struct enc28j60_net *priv = netdev_priv(ndev); in enc28j60_setlink() local
804 static void enc28j60_read_tsv(struct enc28j60_net *priv, u8 tsv[TSV_SIZE]) in enc28j60_read_tsv()
816 static void enc28j60_dump_tsv(struct enc28j60_net *priv, const char *msg, in enc28j60_dump_tsv()
862 static void enc28j60_dump_rsv(struct enc28j60_net *priv, const char *msg, in enc28j60_dump_rsv()
904 struct enc28j60_net *priv = netdev_priv(ndev); in enc28j60_hw_rx() local
1011 static int enc28j60_get_free_rxfifo(struct enc28j60_net *priv) in enc28j60_get_free_rxfifo()
1046 struct enc28j60_net *priv = netdev_priv(ndev); in enc28j60_check_link_status() local
1072 struct enc28j60_net *priv = netdev_priv(ndev); in enc28j60_tx_clear() local
1099 struct enc28j60_net *priv = netdev_priv(ndev); in enc28j60_rx_interrupt() local
1122 struct enc28j60_net *priv = dev_id; in enc28j60_irq() local
1235 static void enc28j60_hw_tx(struct enc28j60_net *priv) in enc28j60_hw_tx()
1284 struct enc28j60_net *priv = netdev_priv(dev); in enc28j60_send_packet() local
1305 struct enc28j60_net *priv = in enc28j60_tx_work_handler() local
1314 struct enc28j60_net *priv = netdev_priv(ndev); in enc28j60_tx_timeout() local
1334 struct enc28j60_net *priv = netdev_priv(dev); in enc28j60_net_open() local
1366 struct enc28j60_net *priv = netdev_priv(dev); in enc28j60_net_close() local
1383 struct enc28j60_net *priv = netdev_priv(dev); in enc28j60_set_multicast_list() local
1407 struct enc28j60_net *priv = in enc28j60_setrx_work_handler() local
1432 struct enc28j60_net *priv = in enc28j60_restart_work_handler() local
1464 struct enc28j60_net *priv = netdev_priv(dev); in enc28j60_get_link_ksettings() local
1489 struct enc28j60_net *priv = netdev_priv(dev); in enc28j60_get_msglevel() local
1495 struct enc28j60_net *priv = netdev_priv(dev); in enc28j60_set_msglevel() local
1509 struct enc28j60_net *priv = netdev_priv(dev); in enc28j60_chipset_init() local
1527 struct enc28j60_net *priv; in enc28j60_probe() local
1601 struct enc28j60_net *priv = spi_get_drvdata(spi); in enc28j60_remove() local