Searched refs:mac (Results 1 - 25 of 897) sorted by relevance

1234567891011>>

/freebsd-current/sys/dev/bwn/
H A Dif_bwn_phy_g.h33 extern int bwn_phy_g_attach(struct bwn_mac *mac);
34 extern void bwn_phy_g_detach(struct bwn_mac *mac);
35 extern int bwn_phy_g_prepare_hw(struct bwn_mac *mac);
36 extern void bwn_phy_g_init_pre(struct bwn_mac *mac);
37 extern int bwn_phy_g_init(struct bwn_mac *mac);
38 extern void bwn_phy_g_exit(struct bwn_mac *mac);
39 extern uint16_t bwn_phy_g_read(struct bwn_mac *mac, uint16_t reg);
40 extern void bwn_phy_g_write(struct bwn_mac *mac, uint16_t reg, uint16_t value);
41 extern uint16_t bwn_phy_g_rf_read(struct bwn_mac *mac, uint16_t reg);
42 extern void bwn_phy_g_rf_write(struct bwn_mac *mac, uint16_
[all...]
H A Dif_bwn_phy_n.h33 extern int bwn_phy_n_attach(struct bwn_mac *mac);
34 extern void bwn_phy_n_detach(struct bwn_mac *mac);
35 extern int bwn_phy_n_prepare_hw(struct bwn_mac *mac);
36 extern void bwn_phy_n_init_pre(struct bwn_mac *mac);
37 extern int bwn_phy_n_init(struct bwn_mac *mac);
38 extern void bwn_phy_n_exit(struct bwn_mac *mac);
39 extern uint16_t bwn_phy_n_read(struct bwn_mac *mac, uint16_t reg);
40 extern void bwn_phy_n_write(struct bwn_mac *mac, uint16_t reg, uint16_t value);
41 extern uint16_t bwn_phy_n_rf_read(struct bwn_mac *mac, uint16_t reg);
42 extern void bwn_phy_n_rf_write(struct bwn_mac *mac, uint16_
[all...]
H A Dif_bwn_phy_common.h32 extern void bwn_mac_switch_freq(struct bwn_mac *mac,
34 extern int bwn_phy_force_clock(struct bwn_mac *mac, int force);
35 extern int bwn_radio_wait_value(struct bwn_mac *mac, uint16_t offset,
37 extern int bwn_mac_phy_clock_set(struct bwn_mac *mac, int enabled);
38 extern int bwn_wireless_core_phy_pll_reset(struct bwn_mac *mac);
H A Dif_bwn_phy_n.c93 bwn_phy_n_attach(struct bwn_mac *mac) argument
97 return bwn_nphy_op_allocate(mac);
99 device_printf(mac->mac_sc->sc_dev,
107 bwn_phy_n_detach(struct bwn_mac *mac) argument
111 return bwn_nphy_op_free(mac);
116 bwn_phy_n_prepare_hw(struct bwn_mac *mac) argument
120 return (bwn_nphy_op_prepare_structs(mac));
127 bwn_phy_n_init_pre(struct bwn_mac *mac) argument
134 bwn_phy_n_init(struct bwn_mac *mac) argument
137 return bwn_nphy_op_init(mac);
144 bwn_phy_n_exit(struct bwn_mac *mac) argument
151 bwn_phy_n_read(struct bwn_mac *mac, uint16_t reg) argument
159 bwn_phy_n_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument
167 bwn_phy_n_rf_read(struct bwn_mac *mac, uint16_t reg) argument
185 bwn_phy_n_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument
198 bwn_phy_n_hwpctl(struct bwn_mac *mac) argument
205 bwn_phy_n_rf_onoff(struct bwn_mac *mac, int on) argument
213 bwn_phy_n_switch_analog(struct bwn_mac *mac, int on) argument
221 bwn_phy_n_switch_channel(struct bwn_mac *mac, uint32_t newchan) argument
231 bwn_phy_n_get_default_chan(struct bwn_mac *mac) argument
240 bwn_phy_n_set_antenna(struct bwn_mac *mac, int antenna) argument
246 bwn_phy_n_im(struct bwn_mac *mac, int mode) argument
253 bwn_phy_n_recalc_txpwr(struct bwn_mac *mac, int ignore_tssi) argument
263 bwn_phy_n_set_txpwr(struct bwn_mac *mac) argument
269 bwn_phy_n_task_15s(struct bwn_mac *mac) argument
275 bwn_phy_n_task_60s(struct bwn_mac *mac) argument
[all...]
H A Dif_bwn_phy_g.c124 static uint16_t bwn_phy_g_txctl(struct bwn_mac *mac);
125 static int bwn_phy_shm_tssi_read(struct bwn_mac *mac, uint16_t shm_offset);
126 static void bwn_phy_g_setatt(struct bwn_mac *mac, int *bbattp, int *rfattp);
127 static void bwn_phy_lock(struct bwn_mac *mac);
128 static void bwn_phy_unlock(struct bwn_mac *mac);
129 static void bwn_rf_lock(struct bwn_mac *mac);
130 static void bwn_rf_unlock(struct bwn_mac *mac);
140 bwn_has_hwpctl(struct bwn_mac *mac) argument
143 if (mac->mac_phy.hwpctl == 0 || mac
149 bwn_phy_g_attach(struct bwn_mac *mac) argument
225 bwn_phy_g_detach(struct bwn_mac *mac) argument
237 bwn_phy_g_init_pre(struct bwn_mac *mac) argument
270 bwn_phy_g_prepare_hw(struct bwn_mac *mac) argument
441 bwn_phy_g_txctl(struct bwn_mac *mac) argument
457 bwn_phy_g_init(struct bwn_mac *mac) argument
465 bwn_phy_g_exit(struct bwn_mac *mac) argument
479 bwn_phy_g_read(struct bwn_mac *mac, uint16_t reg) argument
487 bwn_phy_g_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument
495 bwn_phy_g_rf_read(struct bwn_mac *mac, uint16_t reg) argument
504 bwn_phy_g_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument
513 bwn_phy_g_hwpctl(struct bwn_mac *mac) argument
520 bwn_phy_g_rf_onoff(struct bwn_mac *mac, int on) argument
557 bwn_phy_g_switch_channel(struct bwn_mac *mac, uint32_t newchan) argument
568 bwn_phy_g_get_default_chan(struct bwn_mac *mac) argument
575 bwn_phy_g_set_antenna(struct bwn_mac *mac, int antenna) argument
628 bwn_phy_g_im(struct bwn_mac *mac, int mode) argument
644 bwn_phy_g_recalc_txpwr(struct bwn_mac *mac, int ignore_tssi) argument
696 bwn_phy_g_set_txpwr(struct bwn_mac *mac) argument
755 bwn_phy_g_task_15s(struct bwn_mac *mac) argument
814 bwn_phy_g_task_60s(struct bwn_mac *mac) argument
833 bwn_phy_switch_analog(struct bwn_mac *mac, int on) argument
840 bwn_phy_g_init_sub(struct bwn_mac *mac) argument
947 bwn_phy_init_b5(struct bwn_mac *mac) argument
1043 bwn_loopback_calcgain(struct bwn_mac *mac) argument
1200 bwn_rf_init_bcm2050(struct bwn_mac *mac) argument
1422 bwn_phy_init_b6(struct bwn_mac *mac) argument
1534 bwn_phy_init_a(struct bwn_mac *mac) argument
1559 bwn_wa_write_noisescale(struct bwn_mac *mac, const uint16_t *nst) argument
1568 bwn_wa_agc(struct bwn_mac *mac) argument
1648 bwn_wa_grev1(struct bwn_mac *mac) argument
1721 bwn_wa_grev26789(struct bwn_mac *mac) argument
1801 bwn_wa_init(struct bwn_mac *mac) argument
1863 bwn_ofdmtab_write_2(struct bwn_mac *mac, uint16_t table, uint16_t offset, uint16_t value) argument
1880 bwn_ofdmtab_write_4(struct bwn_mac *mac, uint16_t table, uint16_t offset, uint32_t value) argument
1899 bwn_gtab_write(struct bwn_mac *mac, uint16_t table, uint16_t offset, uint16_t value) argument
1908 bwn_lo_write(struct bwn_mac *mac, struct bwn_loctl *ctl) argument
1921 bwn_lo_calcfeed(struct bwn_mac *mac, uint16_t lna, uint16_t pga, uint16_t trsw_rx) argument
1972 bwn_lo_txctl_regtable(struct bwn_mac *mac, uint16_t *value, uint16_t *pad_mix_gain) argument
2007 bwn_lo_measure_txctl_values(struct bwn_mac *mac) argument
2105 bwn_lo_get_powervector(struct bwn_mac *mac) argument
2126 bwn_lo_measure_gain_values(struct bwn_mac *mac, int16_t max_rx_gain, int use_trsw_rx) argument
2186 bwn_lo_save(struct bwn_mac *mac, struct bwn_lo_g_value *sav) argument
2303 bwn_lo_restore(struct bwn_mac *mac, struct bwn_lo_g_value *sav) argument
2370 bwn_lo_probe_loctl(struct bwn_mac *mac, struct bwn_loctl *probe, struct bwn_lo_g_sm *d) argument
2435 bwn_lo_probe_sm(struct bwn_mac *mac, struct bwn_loctl *loctl, int *rxgain) argument
2500 bwn_lo_calibset(struct bwn_mac *mac, const struct bwn_bbatt *bbatt, const struct bwn_rfatt *rfatt) argument
2546 bwn_lo_get_calib(struct bwn_mac *mac, const struct bwn_bbatt *bbatt, const struct bwn_rfatt *rfatt) argument
2569 bwn_phy_g_dc_lookup_init(struct bwn_mac *mac, uint8_t update) argument
2641 bwn_lo_g_adjust(struct bwn_mac *mac) argument
2657 bwn_lo_g_init(struct bwn_mac *mac) argument
2668 bwn_nrssi_read(struct bwn_mac *mac, uint16_t offset) argument
2676 bwn_nrssi_threshold(struct bwn_mac *mac) argument
2725 bwn_nrssi_slope_11g(struct bwn_mac *mac) argument
2902 bwn_nrssi_offset(struct bwn_mac *mac) argument
3052 bwn_set_all_gains(struct bwn_mac *mac, int16_t first, int16_t second, int16_t third) argument
3085 bwn_set_original_gains(struct bwn_mac *mac) argument
3118 bwn_phy_hwpctl_init(struct bwn_mac *mac) argument
3177 bwn_hwpctl_early_init(struct bwn_mac *mac) argument
3208 bwn_hwpctl_init_gphy(struct bwn_mac *mac) argument
3266 bwn_phy_g_switch_chan(struct bwn_mac *mac, int channel, uint8_t spu) argument
3314 bwn_phy_g_set_txpwr_sub(struct bwn_mac *mac, const struct bwn_bbatt *bbatt, const struct bwn_rfatt *rfatt, uint8_t txctl) argument
3350 bwn_phy_g_set_bbatt(struct bwn_mac *mac, uint16_t bbatt) argument
3368 bwn_rf_2050_rfoverval(struct bwn_mac *mac, uint16_t reg, uint32_t lpd) argument
3489 bwn_spu_workaround(struct bwn_mac *mac, uint8_t channel) argument
3501 bwn_phy_shm_tssi_read(struct bwn_mac *mac, uint16_t shm_offset) argument
3537 bwn_phy_g_setatt(struct bwn_mac *mac, int *bbattp, int *rfattp) argument
3580 bwn_phy_lock(struct bwn_mac *mac) argument
3593 bwn_phy_unlock(struct bwn_mac *mac) argument
3606 bwn_rf_lock(struct bwn_mac *mac) argument
3616 bwn_rf_unlock(struct bwn_mac *mac) argument
[all...]
H A Dif_bwn.c537 struct bwn_mac *mac; local
549 mac = NULL;
615 mac = malloc(sizeof(*mac), M_DEVBUF, M_WAITOK | M_ZERO);
616 mac->mac_sc = sc;
617 mac->mac_status = BWN_MAC_STATUS_UNINIT;
619 mac->mac_flags |= BWN_MAC_FLAG_BADFRAME_PREEMP;
621 TASK_INIT(&mac->mac_hwreset, 0, bwn_hwreset, mac);
622 NET_TASK_INIT(&mac
838 bwn_phy_detach(struct bwn_mac *mac) argument
849 struct bwn_mac *mac = sc->sc_curmac; local
979 struct bwn_mac *mac = sc->sc_curmac; local
1029 struct bwn_mac *mac = sc->sc_curmac; local
1057 struct bwn_mac *mac = sc->sc_curmac; local
1077 bwn_pio_tx_start(struct bwn_mac *mac, struct ieee80211_node *ni, struct mbuf **mp) argument
1151 bwn_pio_select(struct bwn_mac *mac, uint8_t prio) argument
1172 bwn_dma_tx_start(struct bwn_mac *mac, struct ieee80211_node *ni, struct mbuf **mp) argument
1282 bwn_attach_core(struct bwn_mac *mac) argument
1498 bwn_reset_core(struct bwn_mac *mac, int g_mode) argument
1560 bwn_phy_getinfo(struct bwn_mac *mac, int gmode) argument
1623 bwn_chiptest(struct bwn_mac *mac) argument
1667 bwn_setup_channels(struct bwn_mac *mac, int have_bg, int have_a) argument
1703 bwn_shm_read_4(struct bwn_mac *mac, uint16_t way, uint16_t offset) argument
1729 bwn_shm_read_2(struct bwn_mac *mac, uint16_t way, uint16_t offset) argument
1753 bwn_shm_ctlword(struct bwn_mac *mac, uint16_t way, uint16_t offset) argument
1765 bwn_shm_write_4(struct bwn_mac *mac, uint16_t way, uint16_t offset, uint32_t value) argument
1788 bwn_shm_write_2(struct bwn_mac *mac, uint16_t way, uint16_t offset, uint16_t value) argument
1827 struct bwn_mac *mac = sc->sc_curmac; local
1860 struct bwn_mac *mac; local
1881 struct bwn_mac *mac = sc->sc_curmac; local
1902 struct bwn_mac *mac = sc->sc_curmac; local
1927 struct bwn_mac *mac; local
1944 struct bwn_mac *mac; local
1960 struct bwn_mac *mac = sc->sc_curmac; local
2004 bwn_vap_create(struct ieee80211com *ic, const char name[IFNAMSIZ], int unit, enum ieee80211_opmode opmode, int flags, const uint8_t bssid[IEEE80211_ADDR_LEN], const uint8_t mac[IEEE80211_ADDR_LEN]) argument
2056 struct bwn_mac *mac; local
2094 struct bwn_mac *mac = sc->sc_curmac; local
2174 bwn_core_forceclk(struct bwn_mac *mac, bool force) argument
2202 bwn_core_init(struct bwn_mac *mac) argument
2332 bwn_core_start(struct bwn_mac *mac) argument
2358 bwn_core_exit(struct bwn_mac *mac) argument
2385 bwn_bt_disable(struct bwn_mac *mac) argument
2394 bwn_chip_init(struct bwn_mac *mac) argument
2485 bwn_hf_read(struct bwn_mac *mac) argument
2498 bwn_hf_write(struct bwn_mac *mac, uint64_t value) argument
2510 bwn_set_txretry(struct bwn_mac *mac, int s, int l) argument
2518 bwn_rate_init(struct bwn_mac *mac) argument
2548 bwn_rate_write(struct bwn_mac *mac, uint16_t rate, int ofdm) argument
2608 bwn_set_phytxctl(struct bwn_mac *mac) argument
2620 bwn_pio_init(struct bwn_mac *mac) argument
2637 bwn_pio_set_txqueue(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, int index) argument
2665 bwn_pio_idx2base(struct bwn_mac *mac, int index) argument
2698 bwn_pio_setupqueue_rx(struct bwn_mac *mac, struct bwn_pio_rxqueue *prq, int index) argument
2725 bwn_pio_read_2(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint16_t offset) argument
2733 bwn_dma_rxdirectfifo(struct bwn_mac *mac, int idx, uint8_t enable) argument
2800 bwn_dma_init(struct bwn_mac *mac) argument
2815 bwn_dma_ringsetup(struct bwn_mac *mac, int controller_index, int for_tx) argument
3223 struct bwn_mac *mac = dr->dr_mac; local
3268 struct bwn_mac *mac; local
3370 struct bwn_mac *mac = dr->dr_mac; local
3400 bwn_dma_tx_reset(struct bwn_mac *mac, uint16_t base, int type) argument
3459 bwn_dma_rx_reset(struct bwn_mac *mac, uint16_t base, int type) argument
3538 bwn_wme_init(struct bwn_mac *mac) argument
3550 bwn_spu_setdelay(struct bwn_mac *mac, int idle) argument
3566 bwn_bt_enable(struct bwn_mac *mac) argument
3587 bwn_set_macaddr(struct bwn_mac *mac) argument
3596 bwn_clear_keys(struct bwn_mac *mac) argument
3615 bwn_crypt_init(struct bwn_mac *mac) argument
3630 bwn_chip_exit(struct bwn_mac *mac) argument
3636 bwn_fw_fillinfo(struct bwn_mac *mac) argument
3658 bwn_gpio_control(struct bwn_mac *mac, uint32_t pins) argument
3691 bwn_gpio_init(struct bwn_mac *mac) argument
3717 bwn_fw_loadinitvals(struct bwn_mac *mac) argument
3743 bwn_phy_init(struct bwn_mac *mac) argument
3773 bwn_set_txantenna(struct bwn_mac *mac, int antenna) argument
3791 bwn_set_opmode(struct bwn_mac *mac) argument
3837 bwn_dummy_transmission(struct bwn_mac *mac, int ofdm, int paon) argument
3920 bwn_ram_write(struct bwn_mac *mac, uint16_t offset, uint32_t val) argument
3936 bwn_mac_suspend(struct bwn_mac *mac) argument
3973 bwn_mac_enable(struct bwn_mac *mac) argument
4004 bwn_psctl(struct bwn_mac *mac, uint32_t flags) argument
4035 bwn_fw_gets(struct bwn_mac *mac, enum bwn_fwtype type) argument
4268 bwn_fw_get(struct bwn_mac *mac, enum bwn_fwtype type, const char *name, struct bwn_fwfile *bfw) argument
4325 bwn_release_firmware(struct bwn_mac *mac) argument
4345 bwn_fw_loaducode(struct bwn_mac *mac) argument
4487 bwn_fwcaps_read(struct bwn_mac *mac) argument
4496 bwn_fwinitvals_write(struct bwn_mac *mac, const struct bwn_fwinitvals *ivals, size_t count, size_t array_size) argument
4549 bwn_switch_channel(struct bwn_mac *mac, int chan) argument
4599 bwn_wme_load(struct bwn_mac *mac) argument
4615 bwn_wme_loadparams(struct bwn_mac *mac, const struct wmeParams *p, uint16_t shm_offset) argument
4658 bwn_mac_write_bssid(struct bwn_mac *mac) argument
4680 bwn_mac_setfilter(struct bwn_mac *mac, uint16_t offset, const uint8_t *macaddr) argument
4704 bwn_key_dowrite(struct bwn_mac *mac, uint8_t index, uint8_t algorithm, const uint8_t *key, size_t key_len, const uint8_t *mac_addr) argument
4730 bwn_key_macwrite(struct bwn_mac *mac, uint8_t index, const uint8_t *addr) argument
4766 bwn_key_write(struct bwn_mac *mac, uint8_t index, uint8_t algorithm, const uint8_t *key) argument
4786 bwn_phy_exit(struct bwn_mac *mac) argument
4795 bwn_dma_free(struct bwn_mac *mac) argument
4812 bwn_core_stop(struct bwn_mac *mac) argument
4837 struct bwn_mac *mac; local
4905 bwn_rf_turnon(struct bwn_mac *mac) argument
4917 bwn_rf_turnoff(struct bwn_mac *mac) argument
4932 bwn_phy_reset(struct bwn_mac *mac) argument
4965 struct bwn_mac *mac = sc->sc_curmac; local
5015 bwn_set_pretbtt(struct bwn_mac *mac) argument
5032 struct bwn_mac *mac = arg; local
5076 struct bwn_mac *mac = arg; local
5186 bwn_restart(struct bwn_mac *mac, const char *msg) argument
5199 bwn_intr_ucode_debug(struct bwn_mac *mac) argument
5231 bwn_intr_tbtt_indication(struct bwn_mac *mac) argument
5243 bwn_intr_atim_end(struct bwn_mac *mac) argument
5254 bwn_intr_beacon(struct bwn_mac *mac) argument
5299 bwn_intr_pmq(struct bwn_mac *mac) argument
5312 bwn_intr_noise(struct bwn_mac *mac) argument
5366 struct bwn_mac *mac = prq->prq_mac; local
5406 bwn_intr_txeof(struct bwn_mac *mac) argument
5460 struct bwn_mac *mac = arg; local
5489 bwn_handle_fwpanic(struct bwn_mac *mac) argument
5502 bwn_load_beacon0(struct bwn_mac *mac) argument
5509 bwn_load_beacon1(struct bwn_mac *mac) argument
5516 bwn_jssi_read(struct bwn_mac *mac) argument
5528 bwn_noise_gensample(struct bwn_mac *mac) argument
5561 struct bwn_mac *mac = dr->dr_mac; local
5639 bwn_handle_txeof(struct bwn_mac *mac, const struct bwn_txstatus *status) argument
5669 struct bwn_mac *mac = prq->prq_mac; local
5798 struct bwn_mac *mac = dr->dr_mac; local
5922 bwn_rx_rssi_calc(struct bwn_mac *mac, uint8_t in_rssi, int ofdm, int adjust_2053, int adjust_2050) argument
5974 bwn_rxeof(struct bwn_mac *mac, struct mbuf *m, const void *_rxhdr) argument
6136 bwn_dma_handle_txeof(struct bwn_mac *mac, const struct bwn_txstatus *status) argument
6191 bwn_pio_handle_txeof(struct bwn_mac *mac, const struct bwn_txstatus *status) argument
6223 bwn_phy_txpower_check(struct bwn_mac *mac, uint32_t flags) argument
6320 bwn_set_txhdr_phyctl1(struct bwn_mac *mac, uint8_t bitrate) argument
6391 bwn_set_txhdr(struct bwn_mac *mac, struct ieee80211_node *ni, struct mbuf *m, struct bwn_txhdr *txhdr, uint16_t cookie) argument
6687 bwn_antenna_sanitize(struct bwn_mac *mac, uint8_t n) argument
6745 bwn_pio_write_multi_4(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint32_t ctl, const void *_data, int len) argument
6782 bwn_pio_write_4(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint16_t offset, uint32_t value) argument
6790 bwn_pio_write_multi_2(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint16_t ctl, const void *_data, int len) argument
6811 bwn_pio_write_mbuf_2(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint16_t ctl, struct mbuf *m0) argument
6844 bwn_set_slot_time(struct bwn_mac *mac, uint16_t time) argument
6859 bwn_dma_select(struct bwn_mac *mac, uint8_t prio) argument
6899 bwn_pio_parse_cookie(struct bwn_mac *mac, uint16_t cookie, struct bwn_pio_txpkt **pack) argument
6938 struct bwn_mac *mac = arg; local
6954 bwn_task_15s(struct bwn_mac *mac) argument
6973 bwn_task_30s(struct bwn_mac *mac) argument
6985 bwn_task_60s(struct bwn_mac *mac) argument
6996 struct bwn_mac *mac = arg; local
7014 bwn_plcp_get_ofdmrate(struct bwn_mac *mac, struct bwn_plcp6 *plcp, uint8_t a) argument
7044 bwn_plcp_get_cckrate(struct bwn_mac *mac, struct bwn_plcp6 *plcp) argument
7063 bwn_rx_radiotap(struct bwn_mac *mac, struct mbuf *m, const struct bwn_rxhdr4 *rxhdr, struct bwn_plcp6 *plcp, int rate, int rssi, int noise) argument
7105 bwn_tsf_read(struct bwn_mac *mac, uint64_t *tsf) argument
7120 bwn_dma_attach(struct bwn_mac *mac) argument
7301 bwn_dma_parse_cookie(struct bwn_mac *mac, const struct bwn_txstatus *status, uint16_t cookie, int *slot) argument
7350 bwn_dma_stop(struct bwn_mac *mac) argument
7377 bwn_pio_stop(struct bwn_mac *mac) argument
7393 bwn_led_attach(struct bwn_mac *mac) argument
7480 bwn_led_newstate(struct bwn_mac *mac, enum ieee80211_state nstate) argument
7541 bwn_led_event(struct bwn_mac *mac, int event) argument
7577 bwn_led_blink_start(struct bwn_mac *mac, int on_dur, int off_dur) argument
7601 struct bwn_mac *mac = arg; local
7616 struct bwn_mac *mac = arg; local
7652 struct bwn_mac *mac = sc->sc_curmac; local
7699 struct bwn_mac *mac; local
[all...]
H A Dif_bwn_phy_lp.c380 bwn_phy_lp_init_pre(struct bwn_mac *mac) argument
382 struct bwn_phy *phy = &mac->mac_phy;
389 bwn_phy_lp_init(struct bwn_mac *mac) argument
408 struct bwn_phy_lp *plp = &mac->mac_phy.phy_lp;
409 struct bwn_softc *sc = mac->mac_sc;
422 if ((error = bwn_phy_lp_readsprom(mac)))
425 bwn_phy_lp_bbinit(mac);
428 BWN_PHY_SET(mac, BWN_PHY_4WIRECTL, 0x2);
430 BWN_PHY_MASK(mac, BWN_PHY_4WIRECTL, 0xfffd);
433 if (mac
477 bwn_phy_lp_read(struct bwn_mac *mac, uint16_t reg) argument
485 bwn_phy_lp_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument
493 bwn_phy_lp_maskset(struct bwn_mac *mac, uint16_t reg, uint16_t mask, uint16_t set) argument
503 bwn_phy_lp_rf_read(struct bwn_mac *mac, uint16_t reg) argument
516 bwn_phy_lp_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument
525 bwn_phy_lp_rf_onoff(struct bwn_mac *mac, int on) argument
551 bwn_phy_lp_switch_channel(struct bwn_mac *mac, uint32_t chan) argument
575 bwn_phy_lp_get_default_chan(struct bwn_mac *mac) argument
584 bwn_phy_lp_set_antenna(struct bwn_mac *mac, int antenna) argument
600 bwn_phy_lp_task_60s(struct bwn_mac *mac) argument
607 bwn_phy_lp_readsprom(struct bwn_mac *mac) argument
665 bwn_phy_lp_bbinit(struct bwn_mac *mac) argument
676 bwn_phy_lp_txpctl_init(struct bwn_mac *mac) argument
689 bwn_phy_lp_calib(struct bwn_mac *mac) argument
800 bwn_phy_lp_switch_analog(struct bwn_mac *mac, int on) argument
813 bwn_phy_lp_b2063_switch_channel(struct bwn_mac *mac, uint8_t chan) argument
950 bwn_phy_lp_b2062_switch_channel(struct bwn_mac *mac, uint8_t chan) argument
1033 bwn_phy_lp_set_anafilter(struct bwn_mac *mac, uint8_t channel) argument
1049 bwn_phy_lp_set_gaintbl(struct bwn_mac *mac, uint32_t freq) argument
1076 bwn_phy_lp_digflt_save(struct bwn_mac *mac) argument
1100 bwn_phy_lp_get_txpctlmode(struct bwn_mac *mac) argument
1125 bwn_phy_lp_set_txpctlmode(struct bwn_mac *mac, uint8_t mode) argument
1181 bwn_phy_lp_bugfix(struct bwn_mac *mac) argument
1276 bwn_phy_lp_digflt_restore(struct bwn_mac *mac) argument
1293 bwn_phy_lp_tblinit(struct bwn_mac *mac) argument
1320 bwn_phy_lp_bbinit_r2(struct bwn_mac *mac) argument
1430 bwn_phy_lp_bbinit_r01(struct bwn_mac *mac) argument
1624 bwn_phy_lp_b2062_init(struct bwn_mac *mac) argument
1717 bwn_phy_lp_b2063_init(struct bwn_mac *mac) argument
1741 bwn_phy_lp_rxcal_r2(struct bwn_mac *mac) argument
1813 bwn_phy_lp_rccal_r12(struct bwn_mac *mac) argument
1933 bwn_phy_lp_set_rccap(struct bwn_mac *mac) argument
1969 bwn_phy_lp_b2062_reset_pllbias(struct bwn_mac *mac) argument
1985 bwn_phy_lp_b2062_vco_calib(struct bwn_mac *mac) argument
1994 bwn_phy_lp_b2062_tblinit(struct bwn_mac *mac) argument
2067 bwn_phy_lp_b2063_tblinit(struct bwn_mac *mac) argument
2135 bwn_tab_read_multi(struct bwn_mac *mac, uint32_t typenoffset, int count, void *_data) argument
2174 bwn_tab_write_multi(struct bwn_mac *mac, uint32_t typenoffset, int count, const void *_data) argument
2216 bwn_phy_lp_get_txgain(struct bwn_mac *mac) argument
2239 bwn_phy_lp_get_bbmult(struct bwn_mac *mac) argument
2246 bwn_phy_lp_set_txgain(struct bwn_mac *mac, struct bwn_txgain *tg) argument
2271 bwn_phy_lp_set_bbmult(struct bwn_mac *mac, uint8_t bbmult) argument
2278 bwn_phy_lp_set_trsw_over(struct bwn_mac *mac, uint8_t tx, uint8_t rx) argument
2287 bwn_phy_lp_set_rxgain(struct bwn_mac *mac, uint32_t gain) argument
2341 bwn_phy_lp_set_deaf(struct bwn_mac *mac, uint8_t user) argument
2354 bwn_phy_lp_clear_deaf(struct bwn_mac *mac, uint8_t user) argument
2375 bwn_phy_lp_calc_rx_iq_comp(struct bwn_mac *mac, uint16_t sample) argument
2429 bwn_phy_lp_tblinit_r01(struct bwn_mac *mac) argument
2624 bwn_phy_lp_tblinit_r2(struct bwn_mac *mac) argument
2847 bwn_phy_lp_tblinit_txgain(struct bwn_mac *mac) argument
3486 bwn_tab_write(struct bwn_mac *mac, uint32_t typeoffset, uint32_t value) argument
3517 bwn_phy_lp_loopback(struct bwn_mac *mac) argument
3551 bwn_phy_lp_set_rxgain_idx(struct bwn_mac *mac, uint16_t idx) argument
3558 bwn_phy_lp_ddfs_turnon(struct bwn_mac *mac, int i_on, int q_on, int incr1, int incr2, int scale_idx) argument
3576 bwn_phy_lp_rx_iq_est(struct bwn_mac *mac, uint16_t sample, uint8_t time, struct bwn_phy_lp_iq_est *ie) argument
3613 bwn_tab_read(struct bwn_mac *mac, uint32_t typeoffset) argument
3645 bwn_phy_lp_ddfs_turnoff(struct bwn_mac *mac) argument
3653 bwn_phy_lp_set_txgain_dac(struct bwn_mac *mac, uint16_t dac) argument
3663 bwn_phy_lp_set_txgain_pa(struct bwn_mac *mac, uint16_t gain) argument
3671 bwn_phy_lp_set_txgain_override(struct bwn_mac *mac) argument
3684 bwn_phy_lp_get_pa_gain(struct bwn_mac *mac) argument
3702 bwn_phy_lp_gaintbl_write_multi(struct bwn_mac *mac, int offset, int count, struct bwn_txgain_entry *table) argument
3712 bwn_phy_lp_gaintbl_write(struct bwn_mac *mac, int offset, struct bwn_txgain_entry data) argument
3723 bwn_phy_lp_gaintbl_write_r2(struct bwn_mac *mac, int offset, struct bwn_txgain_entry te) argument
3746 bwn_phy_lp_gaintbl_write_r01(struct bwn_mac *mac, int offset, struct bwn_txgain_entry te) argument
[all...]
/freebsd-current/lib/libc/posix1e/
H A Dmac_set.c35 #include <sys/mac.h>
37 extern int __mac_set_fd(int fd, struct mac *mac_p);
38 extern int __mac_set_file(const char *path_p, struct mac *mac_p);
39 extern int __mac_set_link(const char *path_p, struct mac *mac_p);
40 extern int __mac_set_proc(struct mac *mac_p);
43 mac_set_fd(int fd, struct mac *label)
50 mac_set_file(const char *path, struct mac *label)
57 mac_set_link(const char *path, struct mac *label)
64 mac_set_proc(struct mac *label)
H A Dmac_get.c35 #include <sys/mac.h>
38 extern int __mac_get_fd(int fd, struct mac *mac_p);
39 extern int __mac_get_file(const char *path_p, struct mac *mac_p);
40 extern int __mac_get_link(const char *path_p, struct mac *mac_p);
41 extern int __mac_get_pid(pid_t pid, struct mac *mac_p);
42 extern int __mac_get_proc(struct mac *mac_p);
45 mac_get_fd(int fd, struct mac *label)
52 mac_get_file(const char *path, struct mac *label)
59 mac_get_link(const char *path, struct mac *label)
66 mac_get_peer(int fd, struct mac *labe
[all...]
H A Dmac.c49 #include <sys/mac.h>
293 mac_free(struct mac *mac) argument
296 if (mac->m_string != NULL)
297 free(mac->m_string);
298 free(mac);
304 mac_from_text(struct mac **mac, const char *text) argument
307 *mac = (struct mac *) mallo
324 mac_to_text(struct mac *mac, char **text) argument
334 mac_prepare(struct mac **mac, const char *elements) argument
358 mac_prepare_type(struct mac **mac, const char *name) argument
378 mac_prepare_ifnet_label(struct mac **mac) argument
385 mac_prepare_file_label(struct mac **mac) argument
392 mac_prepare_packet_label(struct mac **mac) argument
399 mac_prepare_process_label(struct mac **mac) argument
[all...]
H A Dmac_exec.c35 #include <sys/mac.h>
38 struct mac *mac_p);
41 mac_execve(char *fname, char **argv, char **envv, struct mac *label)
/freebsd-current/sys/gnu/dev/bwn/phy_n/
H A Dif_bwn_phy_n_core.c162 static inline bool bwn_nphy_ipa(struct bwn_mac *mac) argument
164 bwn_band_t band = bwn_current_band(mac);
165 return ((mac->mac_phy.phy_n->ipa2g_on && band == BWN_BAND_2G) ||
166 (mac->mac_phy.phy_n->ipa5g_on && band == BWN_BAND_5G));
170 static uint8_t bwn_nphy_get_rx_core_state(struct bwn_mac *mac) argument
172 return (BWN_PHY_READ(mac, BWN_NPHY_RFSEQCA) & BWN_NPHY_RFSEQCA_RXEN) >>
181 static void bwn_nphy_force_rf_sequence(struct bwn_mac *mac, argument
193 uint16_t seq_mode = BWN_PHY_READ(mac, BWN_NPHY_RFSEQMODE);
196 BWN_WARNPRINTF(mac->mac_sc, "%s: seq %d > max", __func__, seq);
199 BWN_PHY_SET(mac, BWN_NPHY_RFSEQMOD
212 bwn_nphy_rf_ctl_override_rev19(struct bwn_mac *mac, uint16_t field, uint16_t value, uint8_t core, bool off, uint8_t override_id) argument
220 bwn_nphy_rf_ctl_override_rev7(struct bwn_mac *mac, uint16_t field, uint16_t value, uint8_t core, bool off, uint8_t override) argument
269 bwn_nphy_rf_ctl_override_one_to_many(struct bwn_mac *mac, enum n_rf_ctl_over_cmd cmd, uint16_t value, uint8_t core, bool off) argument
317 bwn_nphy_rf_ctl_override(struct bwn_mac *mac, uint16_t field, uint16_t value, uint8_t core, bool off) argument
397 bwn_nphy_rf_ctl_intc_override_rev7(struct bwn_mac *mac, enum n_intc_override intc_override, uint16_t value, uint8_t core_sel) argument
467 bwn_nphy_rf_ctl_intc_override(struct bwn_mac *mac, enum n_intc_override intc_override, uint16_t value, uint8_t core) argument
579 bwn_nphy_write_clip_detection(struct bwn_mac *mac, const uint16_t *clip_st) argument
587 bwn_nphy_read_clip_detection(struct bwn_mac *mac, uint16_t *clip_st) argument
594 bwn_nphy_classifier(struct bwn_mac *mac, uint16_t mask, uint16_t val) argument
616 bwn_nphy_reset_cca(struct bwn_mac *mac) argument
630 bwn_nphy_stay_in_carrier_search(struct bwn_mac *mac, bool enable) argument
654 bwn_nphy_read_lpf_ctl(struct bwn_mac *mac, uint16_t offset) argument
662 bwn_nphy_adjust_lna_gain_table(struct bwn_mac *mac) argument
718 bwn_nphy_set_rf_sequence(struct bwn_mac *mac, uint8_t cmd, uint8_t *events, uint8_t *delays, uint8_t length) argument
746 bwn_radio_2057_chantab_upload(struct bwn_mac *mac, const struct bwn_nphy_chantabent_rev7 *e_r7, const struct bwn_nphy_chantabent_rev7_2g *e_r7_2g) argument
802 bwn_radio_2057_setup(struct bwn_mac *mac, const struct bwn_nphy_chantabent_rev7 *tabent_r7, const struct bwn_nphy_chantabent_rev7_2g *tabent_r7_2g) argument
898 bwn_radio_2057_rcal(struct bwn_mac *mac) argument
1013 bwn_radio_2057_rccal(struct bwn_mac *mac) argument
1103 bwn_radio_2057_init_pre(struct bwn_mac *mac) argument
1112 bwn_radio_2057_init_post(struct bwn_mac *mac) argument
1133 bwn_radio_2057_init(struct bwn_mac *mac) argument
1144 bwn_chantab_radio_2056_upload(struct bwn_mac *mac, const struct bwn_nphy_channeltab_entry_rev3 *e) argument
1220 bwn_radio_2056_setup(struct bwn_mac *mac, const struct bwn_nphy_channeltab_entry_rev3 *e) argument
1405 bwn_radio_2056_rcal(struct bwn_mac *mac) argument
1437 bwn_radio_init2056_pre(struct bwn_mac *mac) argument
1452 bwn_radio_init2056_post(struct bwn_mac *mac) argument
1471 bwn_radio_init2056(struct bwn_mac *mac) argument
1484 bwn_chantab_radio_upload(struct bwn_mac *mac, const struct bwn_nphy_channeltab_entry_rev2 *e) argument
1522 bwn_radio_2055_setup(struct bwn_mac *mac, const struct bwn_nphy_channeltab_entry_rev2 *e) argument
1543 bwn_radio_init2055_pre(struct bwn_mac *mac) argument
1554 bwn_radio_init2055_post(struct bwn_mac *mac) argument
1605 bwn_radio_init2055(struct bwn_mac *mac) argument
1623 bwn_nphy_load_samples(struct bwn_mac *mac, struct bwn_c32 *samples, uint16_t len) argument
1650 bwn_nphy_gen_load_samples(struct bwn_mac *mac, uint32_t freq, uint16_t max, bool test) argument
1693 bwn_nphy_run_samples(struct bwn_mac *mac, uint16_t samps, uint16_t loops, uint16_t wait, bool iqmode, bool dac_test, bool modify_bbmult) argument
1774 bwn_nphy_scale_offset_rssi(struct bwn_mac *mac, uint16_t scale, int8_t offset, uint8_t core, enum n_rail_type rail, enum n_rssi_type rssi_type) argument
1852 bwn_nphy_rssi_select_rev19(struct bwn_mac *mac, uint8_t code, enum n_rssi_type rssi_type) argument
1858 bwn_nphy_rev3_rssi_select(struct bwn_mac *mac, uint8_t code, enum n_rssi_type rssi_type) argument
1947 bwn_nphy_rev2_rssi_select(struct bwn_mac *mac, uint8_t code, enum n_rssi_type rssi_type) argument
2019 bwn_nphy_rssi_select(struct bwn_mac *mac, uint8_t code, enum n_rssi_type type) argument
2031 bwn_nphy_set_rssi_2055_vcm(struct bwn_mac *mac, enum n_rssi_type rssi_type, uint8_t *buf) argument
2060 bwn_nphy_poll_rssi(struct bwn_mac *mac, enum n_rssi_type rssi_type, int32_t *buf, uint8_t nsamp) argument
2149 bwn_nphy_rev3_rssi_cal(struct bwn_mac *mac) argument
2414 bwn_nphy_rev2_rssi_cal(struct bwn_mac *mac, enum n_rssi_type type) argument
2583 bwn_nphy_rssi_cal(struct bwn_mac *mac) argument
2600 bwn_nphy_gain_ctl_workarounds_rev19(struct bwn_mac *mac) argument
2605 bwn_nphy_gain_ctl_workarounds_rev7(struct bwn_mac *mac) argument
2614 bwn_nphy_gain_ctl_workarounds_rev3(struct bwn_mac *mac) argument
2698 bwn_nphy_gain_ctl_workarounds_rev1_2(struct bwn_mac *mac) argument
2808 bwn_nphy_gain_ctl_workarounds(struct bwn_mac *mac) argument
2820 bwn_nphy_workarounds_rev7plus(struct bwn_mac *mac) argument
3267 bwn_nphy_workarounds_rev3plus(struct bwn_mac *mac) argument
3489 bwn_nphy_workarounds_rev1_2(struct bwn_mac *mac) argument
3579 bwn_nphy_workarounds(struct bwn_mac *mac) argument
3621 bwn_nphy_tx_tone(struct bwn_mac *mac, uint32_t freq, uint16_t max_val, bool iqmode, bool dac_test, bool modify_bbmult) argument
3633 bwn_nphy_update_txrx_chain(struct bwn_mac *mac) argument
3661 bwn_nphy_stop_playback(struct bwn_mac *mac) argument
3698 bwn_nphy_iq_cal_gain_params(struct bwn_mac *mac, uint16_t core, struct bwn_nphy_txgains target, struct bwn_nphy_iqcal_params *params) argument
3747 bwn_nphy_tx_power_ctrl(struct bwn_mac *mac, bool enable) argument
3884 bwn_nphy_tx_power_fix(struct bwn_mac *mac) argument
4013 bwn_nphy_ipa_internal_tssi_setup(struct bwn_mac *mac) argument
4097 bwn_nphy_tx_power_ctl_idle_tssi(struct bwn_mac *mac) argument
4148 bwn_nphy_tx_prepare_adjusted_power_table(struct bwn_mac *mac) argument
4209 bwn_nphy_tx_power_ctl_setup(struct bwn_mac *mac) argument
4400 bwn_nphy_tx_gain_table_upload(struct bwn_mac *mac) argument
4459 bwn_nphy_pa_override(struct bwn_mac *mac, bool enable) argument
4498 bwn_nphy_tx_lpf_bw(struct bwn_mac *mac) argument
4520 bwn_nphy_rx_iq_est(struct bwn_mac *mac, struct bwn_nphy_iq_est *est, uint16_t samps, uint8_t time, bool wait) argument
4559 bwn_nphy_rx_iq_coeffs(struct bwn_mac *mac, bool write, struct bwn_phy_n_iq_comp *pcomp) argument
4663 bwn_nphy_calc_rx_iq_comp(struct bwn_mac *mac, uint8_t mask) argument
4761 bwn_nphy_tx_iq_workaround(struct bwn_mac *mac) argument
4773 bwn_nphy_spur_workaround(struct bwn_mac *mac) argument
4836 bwn_nphy_tx_pwr_ctrl_coef_setup(struct bwn_mac *mac) argument
4905 bwn_nphy_restore_rssi_cal(struct bwn_mac *mac) argument
4954 bwn_nphy_tx_cal_radio_setup_rev19(struct bwn_mac *mac) argument
4959 bwn_nphy_tx_cal_radio_setup_rev7(struct bwn_mac *mac) argument
5013 bwn_nphy_tx_cal_radio_setup(struct bwn_mac *mac) argument
5112 bwn_nphy_update_tx_cal_ladder(struct bwn_mac *mac, uint16_t core) argument
5134 bwn_nphy_pa_set_tx_dig_filter(struct bwn_mac *mac, uint16_t offset, const int16_t *filter) argument
5146 bwn_nphy_ext_pa_set_tx_dig_filters(struct bwn_mac *mac) argument
5153 bwn_nphy_int_pa_set_tx_dig_filters(struct bwn_mac *mac) argument
5193 bwn_nphy_get_tx_gains(struct bwn_mac *mac) argument
5268 bwn_nphy_tx_cal_phy_cleanup(struct bwn_mac *mac) argument
5297 bwn_nphy_tx_cal_phy_setup(struct bwn_mac *mac) argument
5398 bwn_nphy_save_cal(struct bwn_mac *mac) argument
5468 bwn_nphy_restore_cal(struct bwn_mac *mac) argument
5556 bwn_nphy_cal_tx_iq_lo(struct bwn_mac *mac, struct bwn_nphy_txgains target, bool full, bool mphase) argument
5788 bwn_nphy_reapply_tx_cal_coeffs(struct bwn_mac *mac) argument
5823 bwn_nphy_rev2_cal_rx_iq(struct bwn_mac *mac, struct bwn_nphy_txgains target, uint8_t type, bool debug) argument
6003 bwn_nphy_rev3_cal_rx_iq(struct bwn_mac *mac, struct bwn_nphy_txgains target, uint8_t type, bool debug) argument
6010 bwn_nphy_cal_rx_iq(struct bwn_mac *mac, struct bwn_nphy_txgains target, uint8_t type, bool debug) argument
6023 bwn_nphy_set_rx_core_state(struct bwn_mac *mac, uint8_t mask) argument
6063 bwn_nphy_op_recalc_txpower(struct bwn_mac *mac, bool ignore_tssi) argument
6131 bwn_nphy_update_mimo_config(struct bwn_mac *mac, int32_t preamble) argument
6145 bwn_nphy_bphy_init(struct bwn_mac *mac) argument
6164 bwn_nphy_superswitch_init(struct bwn_mac *mac, bool init) argument
6204 bwn_phy_initn(struct bwn_mac *mac) argument
6424 bwn_chantab_phy_upload(struct bwn_mac *mac, const struct bwn_phy_n_sfo_cfg *e) argument
6436 bwn_nphy_pmu_spur_avoid(struct bwn_mac *mac, bhnd_pmu_spuravoid mode) argument
6457 bwn_nphy_channel_setup(struct bwn_mac *mac, const struct bwn_phy_n_sfo_cfg *e, struct ieee80211_channel *new_channel) argument
6575 bwn_nphy_set_channel(struct bwn_mac *mac, struct ieee80211_channel *channel, bwn_chan_type_t channel_type) argument
6668 bwn_nphy_op_allocate(struct bwn_mac *mac) argument
6682 bwn_nphy_op_prepare_structs(struct bwn_mac *mac) argument
6750 bwn_nphy_op_free(struct bwn_mac *mac) argument
6760 bwn_nphy_op_init(struct bwn_mac *mac) argument
6765 check_phyreg(struct bwn_mac *mac, uint16_t offset) argument
6782 bwn_nphy_op_maskset(struct bwn_mac *mac, uint16_t reg, uint16_t mask, uint16_t set) argument
6825 bwn_nphy_op_software_rfkill(struct bwn_mac *mac, bool active) argument
6889 bwn_nphy_op_switch_analog(struct bwn_mac *mac, bool on) argument
6916 bwn_nphy_op_switch_channel(struct bwn_mac *mac, unsigned int new_channel) argument
[all...]
/freebsd-current/crypto/openssl/crypto/evp/
H A Dmac_meth.c21 EVP_MAC *mac = vmac; local
24 CRYPTO_UP_REF(&mac->refcnt, &ref, mac->lock);
30 EVP_MAC *mac = vmac; local
33 if (mac == NULL)
36 CRYPTO_DOWN_REF(&mac->refcnt, &ref, mac->lock);
39 OPENSSL_free(mac->type_name);
40 ossl_provider_free(mac->prov);
41 CRYPTO_THREAD_lock_free(mac
47 EVP_MAC *mac = NULL; local
65 EVP_MAC *mac = NULL; local
177 EVP_MAC_up_ref(EVP_MAC *mac) argument
182 EVP_MAC_free(EVP_MAC *mac) argument
187 EVP_MAC_get0_provider(const EVP_MAC *mac) argument
192 EVP_MAC_gettable_params(const EVP_MAC *mac) argument
199 EVP_MAC_gettable_ctx_params(const EVP_MAC *mac) argument
209 EVP_MAC_settable_ctx_params(const EVP_MAC *mac) argument
239 EVP_MAC_do_all_provided(OSSL_LIB_CTX *libctx, void (*fn)(EVP_MAC *mac, void *arg), void *arg) argument
[all...]
/freebsd-current/sys/dev/bwi/
H A Dbwimac.h73 #define MOBJ_WRITE_2(mac, objid, ofs, val) \
74 bwi_memobj_write_2((mac), (objid), (ofs), (val))
75 #define MOBJ_WRITE_4(mac, objid, ofs, val) \
76 bwi_memobj_write_4((mac), (objid), (ofs), (val))
77 #define MOBJ_READ_2(mac, objid, ofs) \
78 bwi_memobj_read_2((mac), (objid), (ofs))
79 #define MOBJ_READ_4(mac, objid, ofs) \
80 bwi_memobj_read_4((mac), (objid), (ofs))
82 #define MOBJ_SETBITS_4(mac, objid, ofs, bits) \
83 MOBJ_WRITE_4((mac), (obji
[all...]
H A Dbwiphy.c87 static void bwi_tbl_write_2(struct bwi_mac *mac, uint16_t, uint16_t);
88 static void bwi_tbl_write_4(struct bwi_mac *mac, uint16_t, uint32_t);
135 bwi_phy_write(struct bwi_mac *mac, uint16_t ctrl, uint16_t data) argument
137 struct bwi_softc *sc = mac->mac_sc;
144 bwi_phy_read(struct bwi_mac *mac, uint16_t ctrl) argument
146 struct bwi_softc *sc = mac->mac_sc;
153 bwi_phy_attach(struct bwi_mac *mac) argument
155 struct bwi_softc *sc = mac->mac_sc;
156 struct bwi_phy *phy = &mac->mac_phy;
223 bwi_phy_set_bbp_atten(struct bwi_mac *mac, uint16_ argument
242 bwi_phy_calibrate(struct bwi_mac *mac) argument
264 bwi_tbl_write_2(struct bwi_mac *mac, uint16_t ofs, uint16_t data) argument
276 bwi_tbl_write_4(struct bwi_mac *mac, uint16_t ofs, uint32_t data) argument
291 bwi_nrssi_write(struct bwi_mac *mac, uint16_t ofs, int16_t data) argument
298 bwi_nrssi_read(struct bwi_mac *mac, uint16_t ofs) argument
305 bwi_phy_init_11a(struct bwi_mac *mac) argument
311 bwi_phy_init_11g(struct bwi_mac *mac) argument
426 bwi_phy_init_11b_rev2(struct bwi_mac *mac) argument
434 bwi_phy_init_11b_rev4(struct bwi_mac *mac) argument
503 bwi_phy_init_11b_rev5(struct bwi_mac *mac) argument
605 bwi_phy_init_11b_rev6(struct bwi_mac *mac) argument
746 bwi_phy_config_11g(struct bwi_mac *mac) argument
879 bwi_phy_config_agc(struct bwi_mac *mac) argument
960 bwi_set_gains(struct bwi_mac *mac, const struct bwi_gains *gains) argument
[all...]
H A Dbwirf.c78 #define RF_LO_WRITE(mac, lo) bwi_rf_lo_write((mac), (lo))
106 #define SAVE_RF_REG(mac, regs, n) (regs)->rf_##n = RF_READ((mac), 0x##n)
107 #define RESTORE_RF_REG(mac, regs, n) RF_WRITE((mac), 0x##n, (regs)->rf_##n)
109 #define SAVE_PHY_REG(mac, regs, n) (regs)->phy_##n = PHY_READ((mac), 0x##n)
110 #define RESTORE_PHY_REG(mac, regs, n) PHY_WRITE((mac),
159 bwi_nrssi_11g(struct bwi_mac *mac) argument
174 bwi_get_rf_lo(struct bwi_mac *mac, uint16_t rf_atten, uint16_t bbp_atten) argument
185 bwi_rf_lo_isused(struct bwi_mac *mac, const struct bwi_rf_lo *lo) argument
197 bwi_rf_write(struct bwi_mac *mac, uint16_t ctrl, uint16_t data) argument
206 bwi_rf_read(struct bwi_mac *mac, uint16_t ctrl) argument
225 bwi_rf_attach(struct bwi_mac *mac) argument
340 bwi_rf_set_chan(struct bwi_mac *mac, u_int chan, int work_around) argument
371 bwi_rf_get_gains(struct bwi_mac *mac) argument
526 bwi_rf_init(struct bwi_mac *mac) argument
541 bwi_rf_off_11a(struct bwi_mac *mac) argument
553 bwi_rf_off_11bg(struct bwi_mac *mac) argument
559 bwi_rf_off_11g_rev5(struct bwi_mac *mac) argument
566 bwi_rf_work_around(struct bwi_mac *mac, u_int chan) argument
588 bwi_rf_lo_find(struct bwi_mac *mac, const struct bwi_tpctl *tpctl) argument
630 bwi_rf_lo_adjust(struct bwi_mac *mac, const struct bwi_tpctl *tpctl) argument
639 bwi_rf_lo_write(struct bwi_mac *mac, const struct bwi_rf_lo *lo) argument
650 bwi_rf_gain_max_reached(struct bwi_mac *mac, int idx) argument
675 bwi_phy812_value(struct bwi_mac *mac, uint16_t lpd) argument
747 bwi_rf_init_bcm2050(struct bwi_mac *mac) argument
1009 bwi_rf_calibval(struct bwi_mac *mac) argument
1083 bwi_rf_map_txpower(struct bwi_mac *mac) argument
1256 bwi_rf_lo_update_11g(struct bwi_mac *mac) argument
1389 bwi_rf_lo_devi_measure(struct bwi_mac *mac, uint16_t ctrl) argument
1422 bwi_rf_get_tp_ctrl2(struct bwi_mac *mac) argument
1448 _bwi_rf_lo_update_11g(struct bwi_mac *mac, uint16_t orig_rf7a) argument
1545 bwi_rf_lo_measure_11g(struct bwi_mac *mac, const struct bwi_rf_lo *src_lo, struct bwi_rf_lo *dst_lo, uint8_t devi_ctrl) argument
1635 bwi_rf_calc_nrssi_slope_11b(struct bwi_mac *mac) argument
1748 bwi_rf_set_nrssi_ofs_11g(struct bwi_mac *mac) argument
1903 bwi_rf_calc_nrssi_slope_11g(struct bwi_mac *mac) argument
2082 bwi_rf_init_sw_nrssi_table(struct bwi_mac *mac) argument
2102 bwi_rf_init_hw_nrssi_table(struct bwi_mac *mac, uint16_t adjust) argument
2122 bwi_rf_set_nrssi_thr_11b(struct bwi_mac *mac) argument
2179 bwi_rf_set_nrssi_thr_11g(struct bwi_mac *mac) argument
2220 bwi_rf_clear_tssi(struct bwi_mac *mac) argument
2269 bwi_rf_on_11a(struct bwi_mac *mac) argument
2275 bwi_rf_on_11bg(struct bwi_mac *mac) argument
2290 bwi_rf_set_ant_mode(struct bwi_mac *mac, int ant_mode) argument
2366 bwi_rf_get_latest_tssi(struct bwi_mac *mac, int8_t tssi[], uint16_t ofs) argument
2386 bwi_rf_tssi2dbm(struct bwi_mac *mac, int8_t tssi, int8_t *txpwr) argument
2407 bwi_rf_calc_rssi_bcm2050(struct bwi_mac *mac, const struct bwi_rxbuf_hdr *hdr) argument
2477 bwi_rf_calc_rssi_bcm2053(struct bwi_mac *mac, const struct bwi_rxbuf_hdr *hdr) argument
2493 bwi_rf_calc_rssi_bcm2060(struct bwi_mac *mac, const struct bwi_rxbuf_hdr *hdr) argument
2504 bwi_rf_calc_noise_bcm2050(struct bwi_mac *mac) argument
2528 bwi_rf_calc_noise_bcm2053(struct bwi_mac *mac) argument
2542 bwi_rf_calc_noise_bcm2060(struct bwi_mac *mac) argument
2549 bwi_rf_lo_measure_11b(struct bwi_mac *mac) argument
2569 bwi_rf_lo_update_11b(struct bwi_mac *mac) argument
[all...]
H A Dbwimac.c118 bwi_tmplt_write_4(struct bwi_mac *mac, uint32_t ofs, uint32_t val) argument
120 struct bwi_softc *sc = mac->mac_sc;
122 if (mac->mac_flags & BWI_MAC_F_BSWAP)
130 bwi_hostflags_write(struct bwi_mac *mac, uint64_t flags) argument
135 MOBJ_WRITE_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_LO, val);
138 MOBJ_WRITE_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_MI, val);
144 bwi_hostflags_read(struct bwi_mac *mac) argument
151 val = MOBJ_READ_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_MI);
154 val = MOBJ_READ_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_LO);
161 bwi_memobj_read_2(struct bwi_mac *mac, uint16_ argument
178 bwi_memobj_read_4(struct bwi_mac *mac, uint16_t obj_id, uint16_t ofs0) argument
203 bwi_memobj_write_2(struct bwi_mac *mac, uint16_t obj_id, uint16_t ofs0, uint16_t v) argument
221 bwi_memobj_write_4(struct bwi_mac *mac, uint16_t obj_id, uint16_t ofs0, uint32_t v) argument
242 bwi_mac_lateattach(struct bwi_mac *mac) argument
285 bwi_mac_init(struct bwi_mac *mac) argument
451 bwi_mac_reset(struct bwi_mac *mac, int link_phy) argument
499 bwi_mac_set_tpctl_11bg(struct bwi_mac *mac, const struct bwi_tpctl *new_tpctl) argument
539 bwi_mac_test(struct bwi_mac *mac) argument
590 bwi_mac_setup_tpctl(struct bwi_mac *mac) argument
691 bwi_mac_dummy_xmit(struct bwi_mac *mac) argument
756 bwi_mac_init_tpctl_11bg(struct bwi_mac *mac) argument
825 bwi_mac_detach(struct bwi_mac *mac) argument
879 bwi_mac_fw_alloc(struct bwi_mac *mac) argument
974 bwi_mac_fw_free(struct bwi_mac *mac) argument
1003 bwi_mac_fw_load(struct bwi_mac *mac) argument
1083 bwi_mac_gpio_init(struct bwi_mac *mac) argument
1118 bwi_mac_gpio_fini(struct bwi_mac *mac) argument
1135 bwi_mac_fw_load_iv(struct bwi_mac *mac, const struct firmware *fw) argument
1215 bwi_mac_fw_init(struct bwi_mac *mac) argument
1235 bwi_mac_opmode_init(struct bwi_mac *mac) argument
1305 bwi_mac_hostflags_init(struct bwi_mac *mac) argument
1334 bwi_mac_bss_param_init(struct bwi_mac *mac) argument
1393 bwi_mac_set_retry_lim(struct bwi_mac *mac, const struct bwi_retry_lim *lim) argument
1409 bwi_mac_set_ackrates(struct bwi_mac *mac, const struct ieee80211_rate_table *rt, const struct ieee80211_rateset *rs) argument
1441 bwi_mac_start(struct bwi_mac *mac) argument
1456 bwi_mac_stop(struct bwi_mac *mac) argument
1486 bwi_mac_config_ps(struct bwi_mac *mac) argument
1520 bwi_mac_reset_hwkeys(struct bwi_mac *mac) argument
1527 bwi_mac_shutdown(struct bwi_mac *mac) argument
1554 bwi_mac_get_property(struct bwi_mac *mac) argument
1607 bwi_mac_updateslot(struct bwi_mac *mac, int shslot) argument
1627 struct bwi_mac *mac; local
1745 bwi_mac_adjust_tpctl(struct bwi_mac *mac, int rf_atten_adj, int bbp_atten_adj) argument
1801 bwi_mac_calibrate_txpower(struct bwi_mac *mac, enum bwi_txpwrcb_type type) argument
1916 bwi_mac_lock(struct bwi_mac *mac) argument
1939 bwi_mac_unlock(struct bwi_mac *mac) argument
1960 bwi_mac_set_promisc(struct bwi_mac *mac, int promisc) argument
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Dmac.sh31 if sysctl security.mac.test 2>&1 | grep -q unknown; then
38 sysctl security.mac.test
/freebsd-current/sys/dev/cxgb/common/
H A Dcxgb_xgmac.c38 static inline int macidx(const struct cmac *mac) argument
40 return mac->offset / (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR);
44 * Returns a reasonable A_XGM_RESET_CTRL value for the mac specified.
46 static inline int xgm_reset_ctrl(const struct cmac *mac) argument
48 adapter_t *adap = mac->adapter;
52 int cfg = t3_read_reg(adap, A_XGM_PORT_CFG + mac->offset);
65 static void xaui_serdes_reset(struct cmac *mac) argument
73 adapter_t *adap = mac->adapter;
74 u32 ctrl = A_XGM_SERDES_CTRL0 + mac->offset;
76 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] |
95 t3b_pcs_reset(struct cmac *mac) argument
106 t3c_pcs_force_los(struct cmac *mac) argument
139 t3_mac_init(struct cmac *mac) argument
219 t3_mac_reset(struct cmac *mac, int portspeed) argument
313 set_addr_filter(struct cmac *mac, int idx, const u8 *addr) argument
333 t3_mac_set_address(struct cmac *mac, unsigned int idx, u8 addr[6]) argument
357 t3_mac_set_num_ucast(struct cmac *mac, unsigned char n) argument
365 t3_mac_disable_exact_filters(struct cmac *mac) argument
376 t3_mac_enable_exact_filters(struct cmac *mac) argument
410 struct cmac *mac; member in struct:t3_mcaddr_ctx
432 t3_mac_set_rx_mode(struct cmac *mac, struct t3_rx_mode *rm) argument
473 t3_mac_set_mtu(struct cmac *mac, unsigned int mtu) argument
568 t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) argument
646 t3_mac_enable(struct cmac *mac, int which) argument
698 t3_mac_disable(struct cmac *mac, int which) argument
721 t3b2_mac_watchdog_task(struct cmac *mac) argument
798 t3_mac_update_stats(struct cmac *mac) argument
[all...]
/freebsd-current/tools/tools/net80211/scripts/mesh/
H A Dtopology.tree22 ifconfig $WLAN mac:allow
27 ifconfig $WLAN mac:add $NODE2_MAC mac:add $NODE3_MAC
31 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE4_MAC
35 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE5_MAC
39 ifconfig $WLAN mac:add $NODE2_MAC
43 ifconfig $WLAN mac:add $NODE3_MAC
H A Dtopology.line13 ifconfig $WLAN mac:allow
18 ifconfig $WLAN mac:add $NODE2_MAC
22 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE3_MAC
26 ifconfig $WLAN mac:add $NODE2_MAC mac:add $NODE4_MAC
30 ifconfig $WLAN mac:add $NODE3_MAC mac:add $NODE5_MAC
34 ifconfig $WLAN mac:add $NODE4_MAC
H A Dtopology.star12 ifconfig $WLAN mac:allow
17 ifconfig $WLAN mac:add $NODE3_MAC
21 ifconfig $WLAN mac:add $NODE3_MAC
25 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE2_MAC mac:add \
26 $NODE4_MAC mac:add $NODE5_MAC
30 ifconfig $WLAN mac:add $NODE3_MAC
34 ifconfig $WLAN mac:add $NODE3_MAC
H A Dtopology.ring15 ifconfig $WLAN mac:allow
20 ifconfig $WLAN mac:add $NODE2_MAC mac:add $NODE5_MAC
24 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE3_MAC
28 ifconfig $WLAN mac:add $NODE2_MAC mac:add $NODE4_MAC
32 ifconfig $WLAN mac:add $NODE3_MAC mac:add $NODE5_MAC
36 ifconfig $WLAN mac
[all...]
/freebsd-current/crypto/openssh/
H A Dmac.c1 /* $OpenBSD: mac.c,v 1.35 2019/09/06 04:53:27 djm Exp $ */
37 #include "mac.h"
106 mac_setup_by_alg(struct sshmac *mac, const struct macalg *macalg) argument
108 mac->type = macalg->type;
109 if (mac->type == SSH_DIGEST) {
110 if ((mac->hmac_ctx = ssh_hmac_start(macalg->alg)) == NULL)
112 mac->key_len = mac->mac_len = ssh_hmac_bytes(macalg->alg);
114 mac->mac_len = macalg->len / 8;
115 mac
125 mac_setup(struct sshmac *mac, char *name) argument
140 mac_init(struct sshmac *mac) argument
164 mac_compute(struct sshmac *mac, u_int32_t seqno, const u_char *data, int datalen, u_char *digest, size_t dlen) argument
210 mac_check(struct sshmac *mac, u_int32_t seqno, const u_char *data, size_t dlen, const u_char *theirmac, size_t mlen) argument
228 mac_clear(struct sshmac *mac) argument
[all...]
/freebsd-current/contrib/wpa/hostapd/logwatch/
H A Dhostapd29 if (my ($iface,$mac,$layer,$details) = ($line =~ /(.*?): STA (.*?) (.*?): (.*?)$/i)) {
34 $hostapd{$iface}->{$mac}->{$layer}->{$details}++;
43 foreach my $mac (sort keys %{$hostapd{$iface}}) {
44 print " Client MAC Address $mac:\n";
45 foreach my $layer (sort keys %{$hostapd{$iface}->{$mac}}) {
47 foreach my $details (sort keys %{$hostapd{$iface}->{$mac}->{$layer}}) {
49 my $count = $hostapd{$iface}->{$mac}->{$layer}->{$details};

Completed in 308 milliseconds

1234567891011>>