Lines Matching refs:wpi_softc
89 static int wpi_alloc_shared(struct wpi_softc *);
90 static void wpi_free_shared(struct wpi_softc *);
91 static int wpi_alloc_fwmem(struct wpi_softc *);
92 static void wpi_free_fwmem(struct wpi_softc *);
93 static struct wpi_rbuf *wpi_alloc_rbuf(struct wpi_softc *);
95 static int wpi_alloc_rpool(struct wpi_softc *);
96 static void wpi_free_rpool(struct wpi_softc *);
97 static int wpi_alloc_rx_ring(struct wpi_softc *, struct wpi_rx_ring *);
98 static void wpi_reset_rx_ring(struct wpi_softc *, struct wpi_rx_ring *);
99 static void wpi_free_rx_ring(struct wpi_softc *, struct wpi_rx_ring *);
100 static int wpi_alloc_tx_ring(struct wpi_softc *, struct wpi_tx_ring *,
102 static void wpi_reset_tx_ring(struct wpi_softc *, struct wpi_tx_ring *);
103 static void wpi_free_tx_ring(struct wpi_softc *, struct wpi_tx_ring *);
108 static void wpi_mem_lock(struct wpi_softc *);
109 static void wpi_mem_unlock(struct wpi_softc *);
110 static uint32_t wpi_mem_read(struct wpi_softc *, uint16_t);
111 static void wpi_mem_write(struct wpi_softc *, uint16_t, uint32_t);
112 static void wpi_mem_write_region_4(struct wpi_softc *, uint16_t,
114 static int wpi_read_prom_data(struct wpi_softc *, uint32_t, void *, int);
115 static int wpi_load_microcode(struct wpi_softc *, const uint8_t *, int);
116 static int wpi_cache_firmware(struct wpi_softc *);
118 static int wpi_load_firmware(struct wpi_softc *);
121 static void wpi_power_calibration(struct wpi_softc *, int);
122 static void wpi_rx_intr(struct wpi_softc *, struct wpi_rx_desc *,
124 static void wpi_tx_intr(struct wpi_softc *, struct wpi_rx_desc *);
125 static void wpi_cmd_intr(struct wpi_softc *, struct wpi_rx_desc *);
126 static void wpi_notif_intr(struct wpi_softc *);
129 static void wpi_read_eeprom(struct wpi_softc *);
130 static void wpi_read_eeprom_channels(struct wpi_softc *, int);
131 static void wpi_read_eeprom_group(struct wpi_softc *, int);
133 static int wpi_tx_data(struct wpi_softc *, struct mbuf *,
138 static int wpi_cmd(struct wpi_softc *, int, const void *, int, int);
140 static int wpi_mrr_setup(struct wpi_softc *);
141 static void wpi_set_led(struct wpi_softc *, uint8_t, uint8_t, uint8_t);
142 static void wpi_enable_tsf(struct wpi_softc *, struct ieee80211_node *);
143 static int wpi_set_txpower(struct wpi_softc *,
145 static int wpi_get_power_index(struct wpi_softc *,
147 static int wpi_setup_beacon(struct wpi_softc *, struct ieee80211_node *);
148 static int wpi_auth(struct wpi_softc *);
149 static int wpi_scan(struct wpi_softc *);
150 static int wpi_config(struct wpi_softc *);
151 static void wpi_stop_master(struct wpi_softc *);
152 static int wpi_power_up(struct wpi_softc *);
153 static int wpi_reset(struct wpi_softc *);
154 static void wpi_hw_config(struct wpi_softc *);
158 static int wpi_getrfkill(struct wpi_softc *);
159 static void wpi_sysctlattach(struct wpi_softc *);
161 static void wpi_rsw_suspend(struct wpi_softc *);
173 CFATTACH_DECL_NEW(wpi, sizeof (struct wpi_softc), wpi_match, wpi_attach,
205 struct wpi_softc *sc = device_private(self);
438 struct wpi_softc *sc = device_private(self);
547 wpi_alloc_shared(struct wpi_softc *sc)
563 wpi_free_shared(struct wpi_softc *sc)
572 wpi_alloc_fwmem(struct wpi_softc *sc)
588 wpi_free_fwmem(struct wpi_softc *sc)
594 wpi_alloc_rbuf(struct wpi_softc *sc)
616 struct wpi_softc *sc = rbuf->sc;
629 wpi_alloc_rpool(struct wpi_softc *sc)
660 wpi_free_rpool(struct wpi_softc *sc)
667 wpi_alloc_rx_ring(struct wpi_softc *sc, struct wpi_rx_ring *ring)
741 wpi_reset_rx_ring(struct wpi_softc *sc, struct wpi_rx_ring *ring)
763 wpi_free_rx_ring(struct wpi_softc *sc, struct wpi_rx_ring *ring)
781 wpi_alloc_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring, int count,
837 wpi_reset_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring)
872 wpi_free_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring)
906 struct wpi_softc *sc = ni->ni_ic->ic_ifp->if_softc;
937 struct wpi_softc *sc = ifp->if_softc;
1052 wpi_mem_lock(struct wpi_softc *sc)
1075 wpi_mem_unlock(struct wpi_softc *sc)
1082 wpi_mem_read(struct wpi_softc *sc, uint16_t addr)
1089 wpi_mem_write(struct wpi_softc *sc, uint16_t addr, uint32_t data)
1096 wpi_mem_write_region_4(struct wpi_softc *sc, uint16_t addr,
1108 wpi_read_prom_data(struct wpi_softc *sc, uint32_t addr, void *data, int len)
1142 wpi_load_microcode(struct wpi_softc *sc, const uint8_t *ucode, int size)
1180 wpi_cache_firmware(struct wpi_softc *sc)
1288 wpi_load_firmware(struct wpi_softc *sc)
1413 struct wpi_softc *sc = arg;
1442 struct wpi_softc *sc = arg;
1453 wpi_power_calibration(struct wpi_softc *sc, int temp)
1477 wpi_rx_intr(struct wpi_softc *sc, struct wpi_rx_desc *desc,
1630 wpi_tx_intr(struct wpi_softc *sc, struct wpi_rx_desc *desc)
1678 wpi_cmd_intr(struct wpi_softc *sc, struct wpi_rx_desc *desc)
1699 wpi_notif_intr(struct wpi_softc *sc)
1818 struct wpi_softc *sc = arg;
1837 struct wpi_softc *sc = arg;
1898 wpi_tx_data(struct wpi_softc *sc, struct mbuf *m0, struct ieee80211_node *ni,
2102 struct wpi_softc *sc = ifp->if_softc;
2194 struct wpi_softc *sc = ifp->if_softc;
2218 struct wpi_softc *sc = ifp->if_softc;
2267 wpi_read_eeprom(struct wpi_softc *sc)
2298 wpi_read_eeprom_channels(struct wpi_softc *sc, int n)
2351 wpi_read_eeprom_group(struct wpi_softc *sc, int n)
2382 wpi_cmd(struct wpi_softc *sc, int code, const void *buf, int size, int async)
2423 struct wpi_softc *sc = ic->ic_ifp->if_softc;
2454 wpi_mrr_setup(struct wpi_softc *sc)
2506 wpi_set_led(struct wpi_softc *sc, uint8_t which, uint8_t off, uint8_t on)
2519 wpi_enable_tsf(struct wpi_softc *sc, struct ieee80211_node *ni)
2545 wpi_set_txpower(struct wpi_softc *sc, struct ieee80211_channel *c, int async)
2596 wpi_get_power_index(struct wpi_softc *sc, struct wpi_power_group *group,
2669 wpi_setup_beacon(struct wpi_softc *sc, struct ieee80211_node *ni)
2744 wpi_auth(struct wpi_softc *sc)
2809 wpi_scan(struct wpi_softc *sc)
2978 wpi_config(struct wpi_softc *sc)
3075 wpi_stop_master(struct wpi_softc *sc)
3098 wpi_power_up(struct wpi_softc *sc)
3122 wpi_reset(struct wpi_softc *sc)
3163 wpi_hw_config(struct wpi_softc *sc)
3194 struct wpi_softc *sc = ifp->if_softc;
3312 struct wpi_softc *sc = ifp->if_softc;
3373 struct wpi_softc *sc = device_private(dv);
3385 wpi_getrfkill(struct wpi_softc *sc)
3417 struct wpi_softc *sc;
3421 sc = (struct wpi_softc *)node.sysctl_data;
3437 wpi_sysctlattach(struct wpi_softc *sc)
3472 wpi_rsw_suspend(struct wpi_softc *sc)
3486 struct wpi_softc *sc = (struct wpi_softc *)arg;