Lines Matching refs:bfe_softc
87 static void bfe_release_resources (struct bfe_softc *);
89 static int bfe_encap (struct bfe_softc *, struct mbuf **);
95 static void bfe_stop (struct bfe_softc *);
96 static void bfe_watchdog (struct bfe_softc *);
99 static void bfe_txeof (struct bfe_softc *);
100 static void bfe_rxeof (struct bfe_softc *);
101 static void bfe_set_rx_mode (struct bfe_softc *);
102 static int bfe_list_rx_init (struct bfe_softc *);
103 static void bfe_list_tx_init (struct bfe_softc *);
104 static void bfe_discard_buf (struct bfe_softc *, int);
105 static int bfe_list_newbuf (struct bfe_softc *, int);
106 static void bfe_rx_ring_free (struct bfe_softc *);
108 static void bfe_pci_setup (struct bfe_softc *, u_int32_t);
114 static int bfe_wait_bit (struct bfe_softc *, u_int32_t, u_int32_t,
116 static void bfe_get_config (struct bfe_softc *sc);
117 static void bfe_read_eeprom (struct bfe_softc *, u_int8_t *);
118 static void bfe_stats_update (struct bfe_softc *);
119 static void bfe_clear_stats (struct bfe_softc *);
120 static int bfe_readphy (struct bfe_softc *, u_int32_t, u_int32_t*);
121 static int bfe_writephy (struct bfe_softc *, u_int32_t, u_int32_t);
122 static int bfe_resetphy (struct bfe_softc *);
123 static int bfe_setupphy (struct bfe_softc *);
124 static void bfe_chip_reset (struct bfe_softc *);
125 static void bfe_chip_halt (struct bfe_softc *);
126 static void bfe_core_reset (struct bfe_softc *);
127 static void bfe_core_disable (struct bfe_softc *);
128 static int bfe_dma_alloc (struct bfe_softc *);
129 static void bfe_dma_free (struct bfe_softc *sc);
131 static void bfe_cam_write (struct bfe_softc *, u_char *, int);
154 sizeof(struct bfe_softc)
191 bfe_dma_alloc(struct bfe_softc *sc) in bfe_dma_alloc()
363 bfe_dma_free(struct bfe_softc *sc) in bfe_dma_free()
438 struct bfe_softc *sc; in bfe_attach()
544 struct bfe_softc *sc; in bfe_detach()
583 struct bfe_softc *sc; in bfe_shutdown()
597 struct bfe_softc *sc; in bfe_suspend()
610 struct bfe_softc *sc; in bfe_resume()
631 struct bfe_softc *sc; in bfe_miibus_readreg()
643 struct bfe_softc *sc; in bfe_miibus_writereg()
654 struct bfe_softc *sc; in bfe_miibus_statchg()
700 bfe_tx_ring_free(struct bfe_softc *sc) in bfe_tx_ring_free()
720 bfe_rx_ring_free(struct bfe_softc *sc) in bfe_rx_ring_free()
740 bfe_list_rx_init(struct bfe_softc *sc) in bfe_list_rx_init()
763 bfe_list_tx_init(struct bfe_softc *sc) in bfe_list_tx_init()
777 bfe_discard_buf(struct bfe_softc *sc, int c) in bfe_discard_buf()
788 bfe_list_newbuf(struct bfe_softc *sc, int c) in bfe_list_newbuf()
843 bfe_get_config(struct bfe_softc *sc) in bfe_get_config()
864 bfe_pci_setup(struct bfe_softc *sc, u_int32_t cores) in bfe_pci_setup()
884 bfe_clear_stats(struct bfe_softc *sc) in bfe_clear_stats()
898 bfe_resetphy(struct bfe_softc *sc) in bfe_resetphy()
913 bfe_chip_halt(struct bfe_softc *sc) in bfe_chip_halt()
929 bfe_chip_reset(struct bfe_softc *sc) in bfe_chip_reset()
1012 bfe_core_disable(struct bfe_softc *sc) in bfe_core_disable()
1034 bfe_core_reset(struct bfe_softc *sc) in bfe_core_reset()
1065 bfe_cam_write(struct bfe_softc *sc, u_char *data, int index) in bfe_cam_write()
1084 bfe_set_rx_mode(struct bfe_softc *sc) in bfe_set_rx_mode()
1142 bfe_release_resources(struct bfe_softc *sc) in bfe_release_resources()
1160 bfe_read_eeprom(struct bfe_softc *sc, u_int8_t *data) in bfe_read_eeprom()
1170 bfe_wait_bit(struct bfe_softc *sc, u_int32_t reg, u_int32_t bit, in bfe_wait_bit()
1194 bfe_readphy(struct bfe_softc *sc, u_int32_t reg, u_int32_t *val) in bfe_readphy()
1212 bfe_writephy(struct bfe_softc *sc, u_int32_t reg, u_int32_t val) in bfe_writephy()
1233 bfe_setupphy(struct bfe_softc *sc) in bfe_setupphy()
1250 bfe_stats_update(struct bfe_softc *sc) in bfe_stats_update()
1338 bfe_txeof(struct bfe_softc *sc) in bfe_txeof()
1382 bfe_rxeof(struct bfe_softc *sc) in bfe_rxeof()
1449 struct bfe_softc *sc = xsc; in bfe_intr()
1510 bfe_encap(struct bfe_softc *sc, struct mbuf **m_head) in bfe_encap()
1602 BFE_LOCK((struct bfe_softc *)ifp->if_softc); in bfe_start()
1604 BFE_UNLOCK((struct bfe_softc *)ifp->if_softc); in bfe_start()
1613 struct bfe_softc *sc; in bfe_start_locked()
1686 BFE_LOCK((struct bfe_softc *)xsc); in bfe_init()
1688 BFE_UNLOCK((struct bfe_softc *)xsc); in bfe_init()
1694 struct bfe_softc *sc = (struct bfe_softc*)xsc; in bfe_init_locked()
1739 struct bfe_softc *sc; in bfe_ifmedia_upd()
1762 struct bfe_softc *sc = ifp->if_softc; in bfe_ifmedia_sts()
1776 struct bfe_softc *sc = ifp->if_softc; in bfe_ioctl()
1814 bfe_watchdog(struct bfe_softc *sc) in bfe_watchdog()
1838 struct bfe_softc *sc = xsc; in bfe_tick()
1855 bfe_stop(struct bfe_softc *sc) in bfe_stop()
1875 struct bfe_softc *sc; in sysctl_bfe_stats()
1888 sc = (struct bfe_softc *)arg1; in sysctl_bfe_stats()