/freebsd-13-stable/sys/dev/bwn/ |
H A D | if_bwn_phy_g.h | 35 extern int bwn_phy_g_attach(struct bwn_mac *mac); 36 extern void bwn_phy_g_detach(struct bwn_mac *mac); 37 extern int bwn_phy_g_prepare_hw(struct bwn_mac *mac); 38 extern void bwn_phy_g_init_pre(struct bwn_mac *mac); 39 extern int bwn_phy_g_init(struct bwn_mac *mac); 40 extern void bwn_phy_g_exit(struct bwn_mac *mac); 41 extern uint16_t bwn_phy_g_read(struct bwn_mac *mac, uint16_t reg); 42 extern void bwn_phy_g_write(struct bwn_mac *mac, uint16_t reg, uint16_t value); 43 extern uint16_t bwn_phy_g_rf_read(struct bwn_mac *mac, uint16_t reg); 44 extern void bwn_phy_g_rf_write(struct bwn_mac *mac, uint16_ [all...] |
H A D | if_bwn_phy_n.h | 35 extern int bwn_phy_n_attach(struct bwn_mac *mac); 36 extern void bwn_phy_n_detach(struct bwn_mac *mac); 37 extern int bwn_phy_n_prepare_hw(struct bwn_mac *mac); 38 extern void bwn_phy_n_init_pre(struct bwn_mac *mac); 39 extern int bwn_phy_n_init(struct bwn_mac *mac); 40 extern void bwn_phy_n_exit(struct bwn_mac *mac); 41 extern uint16_t bwn_phy_n_read(struct bwn_mac *mac, uint16_t reg); 42 extern void bwn_phy_n_write(struct bwn_mac *mac, uint16_t reg, uint16_t value); 43 extern uint16_t bwn_phy_n_rf_read(struct bwn_mac *mac, uint16_t reg); 44 extern void bwn_phy_n_rf_write(struct bwn_mac *mac, uint16_ [all...] |
H A D | if_bwn_phy_common.h | 34 extern void bwn_mac_switch_freq(struct bwn_mac *mac, 36 extern int bwn_phy_force_clock(struct bwn_mac *mac, int force); 37 extern int bwn_radio_wait_value(struct bwn_mac *mac, uint16_t offset, 39 extern int bwn_mac_phy_clock_set(struct bwn_mac *mac, int enabled); 40 extern int bwn_wireless_core_phy_pll_reset(struct bwn_mac *mac);
|
H A D | if_bwn_phy_n.c | 95 bwn_phy_n_attach(struct bwn_mac *mac) argument 99 return bwn_nphy_op_allocate(mac); 101 device_printf(mac->mac_sc->sc_dev, 109 bwn_phy_n_detach(struct bwn_mac *mac) argument 113 return bwn_nphy_op_free(mac); 118 bwn_phy_n_prepare_hw(struct bwn_mac *mac) argument 122 return (bwn_nphy_op_prepare_structs(mac)); 129 bwn_phy_n_init_pre(struct bwn_mac *mac) argument 136 bwn_phy_n_init(struct bwn_mac *mac) argument 139 return bwn_nphy_op_init(mac); 146 bwn_phy_n_exit(struct bwn_mac *mac) argument 153 bwn_phy_n_read(struct bwn_mac *mac, uint16_t reg) argument 161 bwn_phy_n_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument 169 bwn_phy_n_rf_read(struct bwn_mac *mac, uint16_t reg) argument 187 bwn_phy_n_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument 200 bwn_phy_n_hwpctl(struct bwn_mac *mac) argument 207 bwn_phy_n_rf_onoff(struct bwn_mac *mac, int on) argument 215 bwn_phy_n_switch_analog(struct bwn_mac *mac, int on) argument 223 bwn_phy_n_switch_channel(struct bwn_mac *mac, uint32_t newchan) argument 233 bwn_phy_n_get_default_chan(struct bwn_mac *mac) argument 242 bwn_phy_n_set_antenna(struct bwn_mac *mac, int antenna) argument 248 bwn_phy_n_im(struct bwn_mac *mac, int mode) argument 255 bwn_phy_n_recalc_txpwr(struct bwn_mac *mac, int ignore_tssi) argument 265 bwn_phy_n_set_txpwr(struct bwn_mac *mac) argument 271 bwn_phy_n_task_15s(struct bwn_mac *mac) argument 277 bwn_phy_n_task_60s(struct bwn_mac *mac) argument [all...] |
H A D | if_bwn_phy_g.c | 126 static uint16_t bwn_phy_g_txctl(struct bwn_mac *mac); 127 static int bwn_phy_shm_tssi_read(struct bwn_mac *mac, uint16_t shm_offset); 128 static void bwn_phy_g_setatt(struct bwn_mac *mac, int *bbattp, int *rfattp); 129 static void bwn_phy_lock(struct bwn_mac *mac); 130 static void bwn_phy_unlock(struct bwn_mac *mac); 131 static void bwn_rf_lock(struct bwn_mac *mac); 132 static void bwn_rf_unlock(struct bwn_mac *mac); 142 bwn_has_hwpctl(struct bwn_mac *mac) argument 145 if (mac->mac_phy.hwpctl == 0 || mac 151 bwn_phy_g_attach(struct bwn_mac *mac) argument 227 bwn_phy_g_detach(struct bwn_mac *mac) argument 239 bwn_phy_g_init_pre(struct bwn_mac *mac) argument 272 bwn_phy_g_prepare_hw(struct bwn_mac *mac) argument 443 bwn_phy_g_txctl(struct bwn_mac *mac) argument 459 bwn_phy_g_init(struct bwn_mac *mac) argument 467 bwn_phy_g_exit(struct bwn_mac *mac) argument 481 bwn_phy_g_read(struct bwn_mac *mac, uint16_t reg) argument 489 bwn_phy_g_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument 497 bwn_phy_g_rf_read(struct bwn_mac *mac, uint16_t reg) argument 506 bwn_phy_g_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument 515 bwn_phy_g_hwpctl(struct bwn_mac *mac) argument 522 bwn_phy_g_rf_onoff(struct bwn_mac *mac, int on) argument 559 bwn_phy_g_switch_channel(struct bwn_mac *mac, uint32_t newchan) argument 570 bwn_phy_g_get_default_chan(struct bwn_mac *mac) argument 577 bwn_phy_g_set_antenna(struct bwn_mac *mac, int antenna) argument 630 bwn_phy_g_im(struct bwn_mac *mac, int mode) argument 646 bwn_phy_g_recalc_txpwr(struct bwn_mac *mac, int ignore_tssi) argument 698 bwn_phy_g_set_txpwr(struct bwn_mac *mac) argument 757 bwn_phy_g_task_15s(struct bwn_mac *mac) argument 816 bwn_phy_g_task_60s(struct bwn_mac *mac) argument 835 bwn_phy_switch_analog(struct bwn_mac *mac, int on) argument 842 bwn_phy_g_init_sub(struct bwn_mac *mac) argument 949 bwn_phy_init_b5(struct bwn_mac *mac) argument 1045 bwn_loopback_calcgain(struct bwn_mac *mac) argument 1202 bwn_rf_init_bcm2050(struct bwn_mac *mac) argument 1424 bwn_phy_init_b6(struct bwn_mac *mac) argument 1536 bwn_phy_init_a(struct bwn_mac *mac) argument 1561 bwn_wa_write_noisescale(struct bwn_mac *mac, const uint16_t *nst) argument 1570 bwn_wa_agc(struct bwn_mac *mac) argument 1650 bwn_wa_grev1(struct bwn_mac *mac) argument 1723 bwn_wa_grev26789(struct bwn_mac *mac) argument 1803 bwn_wa_init(struct bwn_mac *mac) argument 1865 bwn_ofdmtab_write_2(struct bwn_mac *mac, uint16_t table, uint16_t offset, uint16_t value) argument 1882 bwn_ofdmtab_write_4(struct bwn_mac *mac, uint16_t table, uint16_t offset, uint32_t value) argument 1901 bwn_gtab_write(struct bwn_mac *mac, uint16_t table, uint16_t offset, uint16_t value) argument 1910 bwn_lo_write(struct bwn_mac *mac, struct bwn_loctl *ctl) argument 1923 bwn_lo_calcfeed(struct bwn_mac *mac, uint16_t lna, uint16_t pga, uint16_t trsw_rx) argument 1974 bwn_lo_txctl_regtable(struct bwn_mac *mac, uint16_t *value, uint16_t *pad_mix_gain) argument 2009 bwn_lo_measure_txctl_values(struct bwn_mac *mac) argument 2107 bwn_lo_get_powervector(struct bwn_mac *mac) argument 2128 bwn_lo_measure_gain_values(struct bwn_mac *mac, int16_t max_rx_gain, int use_trsw_rx) argument 2190 bwn_lo_save(struct bwn_mac *mac, struct bwn_lo_g_value *sav) argument 2307 bwn_lo_restore(struct bwn_mac *mac, struct bwn_lo_g_value *sav) argument 2374 bwn_lo_probe_loctl(struct bwn_mac *mac, struct bwn_loctl *probe, struct bwn_lo_g_sm *d) argument 2439 bwn_lo_probe_sm(struct bwn_mac *mac, struct bwn_loctl *loctl, int *rxgain) argument 2504 bwn_lo_calibset(struct bwn_mac *mac, const struct bwn_bbatt *bbatt, const struct bwn_rfatt *rfatt) argument 2550 bwn_lo_get_calib(struct bwn_mac *mac, const struct bwn_bbatt *bbatt, const struct bwn_rfatt *rfatt) argument 2573 bwn_phy_g_dc_lookup_init(struct bwn_mac *mac, uint8_t update) argument 2645 bwn_lo_g_adjust(struct bwn_mac *mac) argument 2661 bwn_lo_g_init(struct bwn_mac *mac) argument 2672 bwn_nrssi_read(struct bwn_mac *mac, uint16_t offset) argument 2680 bwn_nrssi_threshold(struct bwn_mac *mac) argument 2729 bwn_nrssi_slope_11g(struct bwn_mac *mac) argument 2906 bwn_nrssi_offset(struct bwn_mac *mac) argument 3056 bwn_set_all_gains(struct bwn_mac *mac, int16_t first, int16_t second, int16_t third) argument 3089 bwn_set_original_gains(struct bwn_mac *mac) argument 3122 bwn_phy_hwpctl_init(struct bwn_mac *mac) argument 3181 bwn_hwpctl_early_init(struct bwn_mac *mac) argument 3212 bwn_hwpctl_init_gphy(struct bwn_mac *mac) argument 3270 bwn_phy_g_switch_chan(struct bwn_mac *mac, int channel, uint8_t spu) argument 3318 bwn_phy_g_set_txpwr_sub(struct bwn_mac *mac, const struct bwn_bbatt *bbatt, const struct bwn_rfatt *rfatt, uint8_t txctl) argument 3354 bwn_phy_g_set_bbatt(struct bwn_mac *mac, uint16_t bbatt) argument 3372 bwn_rf_2050_rfoverval(struct bwn_mac *mac, uint16_t reg, uint32_t lpd) argument 3493 bwn_spu_workaround(struct bwn_mac *mac, uint8_t channel) argument 3505 bwn_phy_shm_tssi_read(struct bwn_mac *mac, uint16_t shm_offset) argument 3541 bwn_phy_g_setatt(struct bwn_mac *mac, int *bbattp, int *rfattp) argument 3584 bwn_phy_lock(struct bwn_mac *mac) argument 3597 bwn_phy_unlock(struct bwn_mac *mac) argument 3610 bwn_rf_lock(struct bwn_mac *mac) argument 3620 bwn_rf_unlock(struct bwn_mac *mac) argument [all...] |
H A D | if_bwn.c | 539 struct bwn_mac *mac; local 551 mac = NULL; 617 mac = malloc(sizeof(*mac), M_DEVBUF, M_WAITOK | M_ZERO); 618 mac->mac_sc = sc; 619 mac->mac_status = BWN_MAC_STATUS_UNINIT; 621 mac->mac_flags |= BWN_MAC_FLAG_BADFRAME_PREEMP; 623 TASK_INIT(&mac->mac_hwreset, 0, bwn_hwreset, mac); 624 NET_TASK_INIT(&mac 842 bwn_phy_detach(struct bwn_mac *mac) argument 853 struct bwn_mac *mac = sc->sc_curmac; local 983 struct bwn_mac *mac = sc->sc_curmac; local 1033 struct bwn_mac *mac = sc->sc_curmac; local 1061 struct bwn_mac *mac = sc->sc_curmac; local 1081 bwn_pio_tx_start(struct bwn_mac *mac, struct ieee80211_node *ni, struct mbuf **mp) argument 1155 bwn_pio_select(struct bwn_mac *mac, uint8_t prio) argument 1176 bwn_dma_tx_start(struct bwn_mac *mac, struct ieee80211_node *ni, struct mbuf **mp) argument 1286 bwn_attach_core(struct bwn_mac *mac) argument 1502 bwn_reset_core(struct bwn_mac *mac, int g_mode) argument 1564 bwn_phy_getinfo(struct bwn_mac *mac, int gmode) argument 1627 bwn_chiptest(struct bwn_mac *mac) argument 1671 bwn_setup_channels(struct bwn_mac *mac, int have_bg, int have_a) argument 1707 bwn_shm_read_4(struct bwn_mac *mac, uint16_t way, uint16_t offset) argument 1733 bwn_shm_read_2(struct bwn_mac *mac, uint16_t way, uint16_t offset) argument 1757 bwn_shm_ctlword(struct bwn_mac *mac, uint16_t way, uint16_t offset) argument 1769 bwn_shm_write_4(struct bwn_mac *mac, uint16_t way, uint16_t offset, uint32_t value) argument 1792 bwn_shm_write_2(struct bwn_mac *mac, uint16_t way, uint16_t offset, uint16_t value) argument 1831 struct bwn_mac *mac = sc->sc_curmac; local 1864 struct bwn_mac *mac; local 1885 struct bwn_mac *mac = sc->sc_curmac; local 1906 struct bwn_mac *mac = sc->sc_curmac; local 1931 struct bwn_mac *mac; local 1948 struct bwn_mac *mac; local 1964 struct bwn_mac *mac = sc->sc_curmac; local 2008 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 2060 struct bwn_mac *mac; local 2098 struct bwn_mac *mac = sc->sc_curmac; local 2178 bwn_core_forceclk(struct bwn_mac *mac, bool force) argument 2206 bwn_core_init(struct bwn_mac *mac) argument 2336 bwn_core_start(struct bwn_mac *mac) argument 2362 bwn_core_exit(struct bwn_mac *mac) argument 2389 bwn_bt_disable(struct bwn_mac *mac) argument 2398 bwn_chip_init(struct bwn_mac *mac) argument 2489 bwn_hf_read(struct bwn_mac *mac) argument 2502 bwn_hf_write(struct bwn_mac *mac, uint64_t value) argument 2514 bwn_set_txretry(struct bwn_mac *mac, int s, int l) argument 2522 bwn_rate_init(struct bwn_mac *mac) argument 2552 bwn_rate_write(struct bwn_mac *mac, uint16_t rate, int ofdm) argument 2612 bwn_set_phytxctl(struct bwn_mac *mac) argument 2624 bwn_pio_init(struct bwn_mac *mac) argument 2641 bwn_pio_set_txqueue(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, int index) argument 2669 bwn_pio_idx2base(struct bwn_mac *mac, int index) argument 2702 bwn_pio_setupqueue_rx(struct bwn_mac *mac, struct bwn_pio_rxqueue *prq, int index) argument 2729 bwn_pio_read_2(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint16_t offset) argument 2737 bwn_dma_rxdirectfifo(struct bwn_mac *mac, int idx, uint8_t enable) argument 2804 bwn_dma_init(struct bwn_mac *mac) argument 2819 bwn_dma_ringsetup(struct bwn_mac *mac, int controller_index, int for_tx) argument 3227 struct bwn_mac *mac = dr->dr_mac; local 3272 struct bwn_mac *mac; local 3374 struct bwn_mac *mac = dr->dr_mac; local 3404 bwn_dma_tx_reset(struct bwn_mac *mac, uint16_t base, int type) argument 3463 bwn_dma_rx_reset(struct bwn_mac *mac, uint16_t base, int type) argument 3542 bwn_wme_init(struct bwn_mac *mac) argument 3554 bwn_spu_setdelay(struct bwn_mac *mac, int idle) argument 3570 bwn_bt_enable(struct bwn_mac *mac) argument 3591 bwn_set_macaddr(struct bwn_mac *mac) argument 3600 bwn_clear_keys(struct bwn_mac *mac) argument 3619 bwn_crypt_init(struct bwn_mac *mac) argument 3634 bwn_chip_exit(struct bwn_mac *mac) argument 3640 bwn_fw_fillinfo(struct bwn_mac *mac) argument 3662 bwn_gpio_control(struct bwn_mac *mac, uint32_t pins) argument 3695 bwn_gpio_init(struct bwn_mac *mac) argument 3721 bwn_fw_loadinitvals(struct bwn_mac *mac) argument 3747 bwn_phy_init(struct bwn_mac *mac) argument 3777 bwn_set_txantenna(struct bwn_mac *mac, int antenna) argument 3795 bwn_set_opmode(struct bwn_mac *mac) argument 3841 bwn_dummy_transmission(struct bwn_mac *mac, int ofdm, int paon) argument 3924 bwn_ram_write(struct bwn_mac *mac, uint16_t offset, uint32_t val) argument 3940 bwn_mac_suspend(struct bwn_mac *mac) argument 3977 bwn_mac_enable(struct bwn_mac *mac) argument 4008 bwn_psctl(struct bwn_mac *mac, uint32_t flags) argument 4039 bwn_fw_gets(struct bwn_mac *mac, enum bwn_fwtype type) argument 4272 bwn_fw_get(struct bwn_mac *mac, enum bwn_fwtype type, const char *name, struct bwn_fwfile *bfw) argument 4329 bwn_release_firmware(struct bwn_mac *mac) argument 4349 bwn_fw_loaducode(struct bwn_mac *mac) argument 4491 bwn_fwcaps_read(struct bwn_mac *mac) argument 4500 bwn_fwinitvals_write(struct bwn_mac *mac, const struct bwn_fwinitvals *ivals, size_t count, size_t array_size) argument 4553 bwn_switch_channel(struct bwn_mac *mac, int chan) argument 4603 bwn_wme_load(struct bwn_mac *mac) argument 4619 bwn_wme_loadparams(struct bwn_mac *mac, const struct wmeParams *p, uint16_t shm_offset) argument 4662 bwn_mac_write_bssid(struct bwn_mac *mac) argument 4684 bwn_mac_setfilter(struct bwn_mac *mac, uint16_t offset, const uint8_t *macaddr) argument 4708 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 4734 bwn_key_macwrite(struct bwn_mac *mac, uint8_t index, const uint8_t *addr) argument 4770 bwn_key_write(struct bwn_mac *mac, uint8_t index, uint8_t algorithm, const uint8_t *key) argument 4790 bwn_phy_exit(struct bwn_mac *mac) argument 4799 bwn_dma_free(struct bwn_mac *mac) argument 4816 bwn_core_stop(struct bwn_mac *mac) argument 4841 struct bwn_mac *mac; local 4909 bwn_rf_turnon(struct bwn_mac *mac) argument 4921 bwn_rf_turnoff(struct bwn_mac *mac) argument 4936 bwn_phy_reset(struct bwn_mac *mac) argument 4969 struct bwn_mac *mac = sc->sc_curmac; local 5019 bwn_set_pretbtt(struct bwn_mac *mac) argument 5036 struct bwn_mac *mac = arg; local 5081 struct bwn_mac *mac = arg; local 5193 bwn_restart(struct bwn_mac *mac, const char *msg) argument 5206 bwn_intr_ucode_debug(struct bwn_mac *mac) argument 5238 bwn_intr_tbtt_indication(struct bwn_mac *mac) argument 5250 bwn_intr_atim_end(struct bwn_mac *mac) argument 5261 bwn_intr_beacon(struct bwn_mac *mac) argument 5306 bwn_intr_pmq(struct bwn_mac *mac) argument 5319 bwn_intr_noise(struct bwn_mac *mac) argument 5373 struct bwn_mac *mac = prq->prq_mac; local 5413 bwn_intr_txeof(struct bwn_mac *mac) argument 5467 struct bwn_mac *mac = arg; local 5496 bwn_handle_fwpanic(struct bwn_mac *mac) argument 5509 bwn_load_beacon0(struct bwn_mac *mac) argument 5516 bwn_load_beacon1(struct bwn_mac *mac) argument 5523 bwn_jssi_read(struct bwn_mac *mac) argument 5535 bwn_noise_gensample(struct bwn_mac *mac) argument 5568 struct bwn_mac *mac = dr->dr_mac; local 5646 bwn_handle_txeof(struct bwn_mac *mac, const struct bwn_txstatus *status) argument 5676 struct bwn_mac *mac = prq->prq_mac; local 5805 struct bwn_mac *mac = dr->dr_mac; local 5929 bwn_rx_rssi_calc(struct bwn_mac *mac, uint8_t in_rssi, int ofdm, int adjust_2053, int adjust_2050) argument 5981 bwn_rxeof(struct bwn_mac *mac, struct mbuf *m, const void *_rxhdr) argument 6143 bwn_dma_handle_txeof(struct bwn_mac *mac, const struct bwn_txstatus *status) argument 6198 bwn_pio_handle_txeof(struct bwn_mac *mac, const struct bwn_txstatus *status) argument 6230 bwn_phy_txpower_check(struct bwn_mac *mac, uint32_t flags) argument 6327 bwn_set_txhdr_phyctl1(struct bwn_mac *mac, uint8_t bitrate) argument 6398 bwn_set_txhdr(struct bwn_mac *mac, struct ieee80211_node *ni, struct mbuf *m, struct bwn_txhdr *txhdr, uint16_t cookie) argument 6694 bwn_antenna_sanitize(struct bwn_mac *mac, uint8_t n) argument 6752 bwn_pio_write_multi_4(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint32_t ctl, const void *_data, int len) argument 6789 bwn_pio_write_4(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint16_t offset, uint32_t value) argument 6797 bwn_pio_write_multi_2(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint16_t ctl, const void *_data, int len) argument 6818 bwn_pio_write_mbuf_2(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint16_t ctl, struct mbuf *m0) argument 6851 bwn_set_slot_time(struct bwn_mac *mac, uint16_t time) argument 6866 bwn_dma_select(struct bwn_mac *mac, uint8_t prio) argument 6906 bwn_pio_parse_cookie(struct bwn_mac *mac, uint16_t cookie, struct bwn_pio_txpkt **pack) argument 6945 struct bwn_mac *mac = arg; local 6961 bwn_task_15s(struct bwn_mac *mac) argument 6980 bwn_task_30s(struct bwn_mac *mac) argument 6992 bwn_task_60s(struct bwn_mac *mac) argument 7003 struct bwn_mac *mac = arg; local 7021 bwn_plcp_get_ofdmrate(struct bwn_mac *mac, struct bwn_plcp6 *plcp, uint8_t a) argument 7051 bwn_plcp_get_cckrate(struct bwn_mac *mac, struct bwn_plcp6 *plcp) argument 7070 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 7112 bwn_tsf_read(struct bwn_mac *mac, uint64_t *tsf) argument 7127 bwn_dma_attach(struct bwn_mac *mac) argument 7308 bwn_dma_parse_cookie(struct bwn_mac *mac, const struct bwn_txstatus *status, uint16_t cookie, int *slot) argument 7357 bwn_dma_stop(struct bwn_mac *mac) argument 7384 bwn_pio_stop(struct bwn_mac *mac) argument 7400 bwn_led_attach(struct bwn_mac *mac) argument 7487 bwn_led_newstate(struct bwn_mac *mac, enum ieee80211_state nstate) argument 7548 bwn_led_event(struct bwn_mac *mac, int event) argument 7584 bwn_led_blink_start(struct bwn_mac *mac, int on_dur, int off_dur) argument 7608 struct bwn_mac *mac = arg; local 7623 struct bwn_mac *mac = arg; local 7659 struct bwn_mac *mac = sc->sc_curmac; local 7706 struct bwn_mac *mac; local [all...] |
H A D | if_bwn_phy_lp.c | 382 bwn_phy_lp_init_pre(struct bwn_mac *mac) argument 384 struct bwn_phy *phy = &mac->mac_phy; 391 bwn_phy_lp_init(struct bwn_mac *mac) argument 410 struct bwn_phy_lp *plp = &mac->mac_phy.phy_lp; 411 struct bwn_softc *sc = mac->mac_sc; 424 if ((error = bwn_phy_lp_readsprom(mac))) 427 bwn_phy_lp_bbinit(mac); 430 BWN_PHY_SET(mac, BWN_PHY_4WIRECTL, 0x2); 432 BWN_PHY_MASK(mac, BWN_PHY_4WIRECTL, 0xfffd); 435 if (mac 479 bwn_phy_lp_read(struct bwn_mac *mac, uint16_t reg) argument 487 bwn_phy_lp_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument 495 bwn_phy_lp_maskset(struct bwn_mac *mac, uint16_t reg, uint16_t mask, uint16_t set) argument 505 bwn_phy_lp_rf_read(struct bwn_mac *mac, uint16_t reg) argument 518 bwn_phy_lp_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument 527 bwn_phy_lp_rf_onoff(struct bwn_mac *mac, int on) argument 553 bwn_phy_lp_switch_channel(struct bwn_mac *mac, uint32_t chan) argument 577 bwn_phy_lp_get_default_chan(struct bwn_mac *mac) argument 586 bwn_phy_lp_set_antenna(struct bwn_mac *mac, int antenna) argument 602 bwn_phy_lp_task_60s(struct bwn_mac *mac) argument 609 bwn_phy_lp_readsprom(struct bwn_mac *mac) argument 667 bwn_phy_lp_bbinit(struct bwn_mac *mac) argument 678 bwn_phy_lp_txpctl_init(struct bwn_mac *mac) argument 691 bwn_phy_lp_calib(struct bwn_mac *mac) argument 802 bwn_phy_lp_switch_analog(struct bwn_mac *mac, int on) argument 815 bwn_phy_lp_b2063_switch_channel(struct bwn_mac *mac, uint8_t chan) argument 952 bwn_phy_lp_b2062_switch_channel(struct bwn_mac *mac, uint8_t chan) argument 1035 bwn_phy_lp_set_anafilter(struct bwn_mac *mac, uint8_t channel) argument 1051 bwn_phy_lp_set_gaintbl(struct bwn_mac *mac, uint32_t freq) argument 1078 bwn_phy_lp_digflt_save(struct bwn_mac *mac) argument 1102 bwn_phy_lp_get_txpctlmode(struct bwn_mac *mac) argument 1127 bwn_phy_lp_set_txpctlmode(struct bwn_mac *mac, uint8_t mode) argument 1183 bwn_phy_lp_bugfix(struct bwn_mac *mac) argument 1278 bwn_phy_lp_digflt_restore(struct bwn_mac *mac) argument 1295 bwn_phy_lp_tblinit(struct bwn_mac *mac) argument 1322 bwn_phy_lp_bbinit_r2(struct bwn_mac *mac) argument 1432 bwn_phy_lp_bbinit_r01(struct bwn_mac *mac) argument 1626 bwn_phy_lp_b2062_init(struct bwn_mac *mac) argument 1719 bwn_phy_lp_b2063_init(struct bwn_mac *mac) argument 1743 bwn_phy_lp_rxcal_r2(struct bwn_mac *mac) argument 1815 bwn_phy_lp_rccal_r12(struct bwn_mac *mac) argument 1935 bwn_phy_lp_set_rccap(struct bwn_mac *mac) argument 1971 bwn_phy_lp_b2062_reset_pllbias(struct bwn_mac *mac) argument 1987 bwn_phy_lp_b2062_vco_calib(struct bwn_mac *mac) argument 1996 bwn_phy_lp_b2062_tblinit(struct bwn_mac *mac) argument 2069 bwn_phy_lp_b2063_tblinit(struct bwn_mac *mac) argument 2137 bwn_tab_read_multi(struct bwn_mac *mac, uint32_t typenoffset, int count, void *_data) argument 2176 bwn_tab_write_multi(struct bwn_mac *mac, uint32_t typenoffset, int count, const void *_data) argument 2218 bwn_phy_lp_get_txgain(struct bwn_mac *mac) argument 2241 bwn_phy_lp_get_bbmult(struct bwn_mac *mac) argument 2248 bwn_phy_lp_set_txgain(struct bwn_mac *mac, struct bwn_txgain *tg) argument 2273 bwn_phy_lp_set_bbmult(struct bwn_mac *mac, uint8_t bbmult) argument 2280 bwn_phy_lp_set_trsw_over(struct bwn_mac *mac, uint8_t tx, uint8_t rx) argument 2289 bwn_phy_lp_set_rxgain(struct bwn_mac *mac, uint32_t gain) argument 2343 bwn_phy_lp_set_deaf(struct bwn_mac *mac, uint8_t user) argument 2356 bwn_phy_lp_clear_deaf(struct bwn_mac *mac, uint8_t user) argument 2377 bwn_phy_lp_calc_rx_iq_comp(struct bwn_mac *mac, uint16_t sample) argument 2431 bwn_phy_lp_tblinit_r01(struct bwn_mac *mac) argument 2626 bwn_phy_lp_tblinit_r2(struct bwn_mac *mac) argument 2849 bwn_phy_lp_tblinit_txgain(struct bwn_mac *mac) argument 3488 bwn_tab_write(struct bwn_mac *mac, uint32_t typeoffset, uint32_t value) argument 3519 bwn_phy_lp_loopback(struct bwn_mac *mac) argument 3553 bwn_phy_lp_set_rxgain_idx(struct bwn_mac *mac, uint16_t idx) argument 3560 bwn_phy_lp_ddfs_turnon(struct bwn_mac *mac, int i_on, int q_on, int incr1, int incr2, int scale_idx) argument 3578 bwn_phy_lp_rx_iq_est(struct bwn_mac *mac, uint16_t sample, uint8_t time, struct bwn_phy_lp_iq_est *ie) argument 3615 bwn_tab_read(struct bwn_mac *mac, uint32_t typeoffset) argument 3647 bwn_phy_lp_ddfs_turnoff(struct bwn_mac *mac) argument 3655 bwn_phy_lp_set_txgain_dac(struct bwn_mac *mac, uint16_t dac) argument 3665 bwn_phy_lp_set_txgain_pa(struct bwn_mac *mac, uint16_t gain) argument 3673 bwn_phy_lp_set_txgain_override(struct bwn_mac *mac) argument 3686 bwn_phy_lp_get_pa_gain(struct bwn_mac *mac) argument 3704 bwn_phy_lp_gaintbl_write_multi(struct bwn_mac *mac, int offset, int count, struct bwn_txgain_entry *table) argument 3714 bwn_phy_lp_gaintbl_write(struct bwn_mac *mac, int offset, struct bwn_txgain_entry data) argument 3725 bwn_phy_lp_gaintbl_write_r2(struct bwn_mac *mac, int offset, struct bwn_txgain_entry te) argument 3748 bwn_phy_lp_gaintbl_write_r01(struct bwn_mac *mac, int offset, struct bwn_txgain_entry te) argument [all...] |
/freebsd-13-stable/lib/libc/posix1e/ |
H A D | mac_set.c | 38 #include <sys/mac.h> 40 extern int __mac_set_fd(int fd, struct mac *mac_p); 41 extern int __mac_set_file(const char *path_p, struct mac *mac_p); 42 extern int __mac_set_link(const char *path_p, struct mac *mac_p); 43 extern int __mac_set_proc(struct mac *mac_p); 46 mac_set_fd(int fd, struct mac *label) 53 mac_set_file(const char *path, struct mac *label) 60 mac_set_link(const char *path, struct mac *label) 67 mac_set_proc(struct mac *label)
|
H A D | mac_get.c | 38 #include <sys/mac.h> 41 extern int __mac_get_fd(int fd, struct mac *mac_p); 42 extern int __mac_get_file(const char *path_p, struct mac *mac_p); 43 extern int __mac_get_link(const char *path_p, struct mac *mac_p); 44 extern int __mac_get_pid(pid_t pid, struct mac *mac_p); 45 extern int __mac_get_proc(struct mac *mac_p); 48 mac_get_fd(int fd, struct mac *label) 55 mac_get_file(const char *path, struct mac *label) 62 mac_get_link(const char *path, struct mac *label) 69 mac_get_peer(int fd, struct mac *labe [all...] |
H A D | mac.c | 52 #include <sys/mac.h> 297 mac_free(struct mac *mac) argument 300 if (mac->m_string != NULL) 301 free(mac->m_string); 302 free(mac); 308 mac_from_text(struct mac **mac, const char *text) argument 311 *mac = (struct mac *) mallo 328 mac_to_text(struct mac *mac, char **text) argument 338 mac_prepare(struct mac **mac, const char *elements) argument 362 mac_prepare_type(struct mac **mac, const char *name) argument 382 mac_prepare_ifnet_label(struct mac **mac) argument 389 mac_prepare_file_label(struct mac **mac) argument 396 mac_prepare_packet_label(struct mac **mac) argument 403 mac_prepare_process_label(struct mac **mac) argument [all...] |
H A D | mac_exec.c | 38 #include <sys/mac.h> 41 struct mac *mac_p); 44 mac_execve(char *fname, char **argv, char **envv, struct mac *label)
|
/freebsd-13-stable/sys/gnu/dev/bwn/phy_n/ |
H A D | if_bwn_phy_n_core.c | 164 static inline bool bwn_nphy_ipa(struct bwn_mac *mac) argument 166 bwn_band_t band = bwn_current_band(mac); 167 return ((mac->mac_phy.phy_n->ipa2g_on && band == BWN_BAND_2G) || 168 (mac->mac_phy.phy_n->ipa5g_on && band == BWN_BAND_5G)); 172 static uint8_t bwn_nphy_get_rx_core_state(struct bwn_mac *mac) argument 174 return (BWN_PHY_READ(mac, BWN_NPHY_RFSEQCA) & BWN_NPHY_RFSEQCA_RXEN) >> 183 static void bwn_nphy_force_rf_sequence(struct bwn_mac *mac, argument 195 uint16_t seq_mode = BWN_PHY_READ(mac, BWN_NPHY_RFSEQMODE); 198 BWN_WARNPRINTF(mac->mac_sc, "%s: seq %d > max", __func__, seq); 201 BWN_PHY_SET(mac, BWN_NPHY_RFSEQMOD 214 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 222 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 271 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 319 bwn_nphy_rf_ctl_override(struct bwn_mac *mac, uint16_t field, uint16_t value, uint8_t core, bool off) argument 399 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 469 bwn_nphy_rf_ctl_intc_override(struct bwn_mac *mac, enum n_intc_override intc_override, uint16_t value, uint8_t core) argument 581 bwn_nphy_write_clip_detection(struct bwn_mac *mac, const uint16_t *clip_st) argument 589 bwn_nphy_read_clip_detection(struct bwn_mac *mac, uint16_t *clip_st) argument 596 bwn_nphy_classifier(struct bwn_mac *mac, uint16_t mask, uint16_t val) argument 618 bwn_nphy_reset_cca(struct bwn_mac *mac) argument 632 bwn_nphy_stay_in_carrier_search(struct bwn_mac *mac, bool enable) argument 656 bwn_nphy_read_lpf_ctl(struct bwn_mac *mac, uint16_t offset) argument 664 bwn_nphy_adjust_lna_gain_table(struct bwn_mac *mac) argument 720 bwn_nphy_set_rf_sequence(struct bwn_mac *mac, uint8_t cmd, uint8_t *events, uint8_t *delays, uint8_t length) argument 748 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 804 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 900 bwn_radio_2057_rcal(struct bwn_mac *mac) argument 1015 bwn_radio_2057_rccal(struct bwn_mac *mac) argument 1105 bwn_radio_2057_init_pre(struct bwn_mac *mac) argument 1114 bwn_radio_2057_init_post(struct bwn_mac *mac) argument 1135 bwn_radio_2057_init(struct bwn_mac *mac) argument 1146 bwn_chantab_radio_2056_upload(struct bwn_mac *mac, const struct bwn_nphy_channeltab_entry_rev3 *e) argument 1222 bwn_radio_2056_setup(struct bwn_mac *mac, const struct bwn_nphy_channeltab_entry_rev3 *e) argument 1407 bwn_radio_2056_rcal(struct bwn_mac *mac) argument 1439 bwn_radio_init2056_pre(struct bwn_mac *mac) argument 1454 bwn_radio_init2056_post(struct bwn_mac *mac) argument 1473 bwn_radio_init2056(struct bwn_mac *mac) argument 1486 bwn_chantab_radio_upload(struct bwn_mac *mac, const struct bwn_nphy_channeltab_entry_rev2 *e) argument 1524 bwn_radio_2055_setup(struct bwn_mac *mac, const struct bwn_nphy_channeltab_entry_rev2 *e) argument 1545 bwn_radio_init2055_pre(struct bwn_mac *mac) argument 1556 bwn_radio_init2055_post(struct bwn_mac *mac) argument 1607 bwn_radio_init2055(struct bwn_mac *mac) argument 1625 bwn_nphy_load_samples(struct bwn_mac *mac, struct bwn_c32 *samples, uint16_t len) argument 1652 bwn_nphy_gen_load_samples(struct bwn_mac *mac, uint32_t freq, uint16_t max, bool test) argument 1695 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 1776 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 1854 bwn_nphy_rssi_select_rev19(struct bwn_mac *mac, uint8_t code, enum n_rssi_type rssi_type) argument 1860 bwn_nphy_rev3_rssi_select(struct bwn_mac *mac, uint8_t code, enum n_rssi_type rssi_type) argument 1949 bwn_nphy_rev2_rssi_select(struct bwn_mac *mac, uint8_t code, enum n_rssi_type rssi_type) argument 2021 bwn_nphy_rssi_select(struct bwn_mac *mac, uint8_t code, enum n_rssi_type type) argument 2033 bwn_nphy_set_rssi_2055_vcm(struct bwn_mac *mac, enum n_rssi_type rssi_type, uint8_t *buf) argument 2062 bwn_nphy_poll_rssi(struct bwn_mac *mac, enum n_rssi_type rssi_type, int32_t *buf, uint8_t nsamp) argument 2151 bwn_nphy_rev3_rssi_cal(struct bwn_mac *mac) argument 2416 bwn_nphy_rev2_rssi_cal(struct bwn_mac *mac, enum n_rssi_type type) argument 2585 bwn_nphy_rssi_cal(struct bwn_mac *mac) argument 2602 bwn_nphy_gain_ctl_workarounds_rev19(struct bwn_mac *mac) argument 2607 bwn_nphy_gain_ctl_workarounds_rev7(struct bwn_mac *mac) argument 2616 bwn_nphy_gain_ctl_workarounds_rev3(struct bwn_mac *mac) argument 2700 bwn_nphy_gain_ctl_workarounds_rev1_2(struct bwn_mac *mac) argument 2810 bwn_nphy_gain_ctl_workarounds(struct bwn_mac *mac) argument 2822 bwn_nphy_workarounds_rev7plus(struct bwn_mac *mac) argument 3269 bwn_nphy_workarounds_rev3plus(struct bwn_mac *mac) argument 3491 bwn_nphy_workarounds_rev1_2(struct bwn_mac *mac) argument 3581 bwn_nphy_workarounds(struct bwn_mac *mac) argument 3623 bwn_nphy_tx_tone(struct bwn_mac *mac, uint32_t freq, uint16_t max_val, bool iqmode, bool dac_test, bool modify_bbmult) argument 3635 bwn_nphy_update_txrx_chain(struct bwn_mac *mac) argument 3663 bwn_nphy_stop_playback(struct bwn_mac *mac) argument 3700 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 3749 bwn_nphy_tx_power_ctrl(struct bwn_mac *mac, bool enable) argument 3886 bwn_nphy_tx_power_fix(struct bwn_mac *mac) argument 4015 bwn_nphy_ipa_internal_tssi_setup(struct bwn_mac *mac) argument 4099 bwn_nphy_tx_power_ctl_idle_tssi(struct bwn_mac *mac) argument 4150 bwn_nphy_tx_prepare_adjusted_power_table(struct bwn_mac *mac) argument 4211 bwn_nphy_tx_power_ctl_setup(struct bwn_mac *mac) argument 4402 bwn_nphy_tx_gain_table_upload(struct bwn_mac *mac) argument 4461 bwn_nphy_pa_override(struct bwn_mac *mac, bool enable) argument 4500 bwn_nphy_tx_lpf_bw(struct bwn_mac *mac) argument 4522 bwn_nphy_rx_iq_est(struct bwn_mac *mac, struct bwn_nphy_iq_est *est, uint16_t samps, uint8_t time, bool wait) argument 4561 bwn_nphy_rx_iq_coeffs(struct bwn_mac *mac, bool write, struct bwn_phy_n_iq_comp *pcomp) argument 4665 bwn_nphy_calc_rx_iq_comp(struct bwn_mac *mac, uint8_t mask) argument 4763 bwn_nphy_tx_iq_workaround(struct bwn_mac *mac) argument 4775 bwn_nphy_spur_workaround(struct bwn_mac *mac) argument 4838 bwn_nphy_tx_pwr_ctrl_coef_setup(struct bwn_mac *mac) argument 4907 bwn_nphy_restore_rssi_cal(struct bwn_mac *mac) argument 4956 bwn_nphy_tx_cal_radio_setup_rev19(struct bwn_mac *mac) argument 4961 bwn_nphy_tx_cal_radio_setup_rev7(struct bwn_mac *mac) argument 5015 bwn_nphy_tx_cal_radio_setup(struct bwn_mac *mac) argument 5114 bwn_nphy_update_tx_cal_ladder(struct bwn_mac *mac, uint16_t core) argument 5136 bwn_nphy_pa_set_tx_dig_filter(struct bwn_mac *mac, uint16_t offset, const int16_t *filter) argument 5148 bwn_nphy_ext_pa_set_tx_dig_filters(struct bwn_mac *mac) argument 5155 bwn_nphy_int_pa_set_tx_dig_filters(struct bwn_mac *mac) argument 5195 bwn_nphy_get_tx_gains(struct bwn_mac *mac) argument 5270 bwn_nphy_tx_cal_phy_cleanup(struct bwn_mac *mac) argument 5299 bwn_nphy_tx_cal_phy_setup(struct bwn_mac *mac) argument 5400 bwn_nphy_save_cal(struct bwn_mac *mac) argument 5470 bwn_nphy_restore_cal(struct bwn_mac *mac) argument 5558 bwn_nphy_cal_tx_iq_lo(struct bwn_mac *mac, struct bwn_nphy_txgains target, bool full, bool mphase) argument 5790 bwn_nphy_reapply_tx_cal_coeffs(struct bwn_mac *mac) argument 5825 bwn_nphy_rev2_cal_rx_iq(struct bwn_mac *mac, struct bwn_nphy_txgains target, uint8_t type, bool debug) argument 6005 bwn_nphy_rev3_cal_rx_iq(struct bwn_mac *mac, struct bwn_nphy_txgains target, uint8_t type, bool debug) argument 6012 bwn_nphy_cal_rx_iq(struct bwn_mac *mac, struct bwn_nphy_txgains target, uint8_t type, bool debug) argument 6025 bwn_nphy_set_rx_core_state(struct bwn_mac *mac, uint8_t mask) argument 6065 bwn_nphy_op_recalc_txpower(struct bwn_mac *mac, bool ignore_tssi) argument 6135 bwn_nphy_update_mimo_config(struct bwn_mac *mac, int32_t preamble) argument 6149 bwn_nphy_bphy_init(struct bwn_mac *mac) argument 6168 bwn_nphy_superswitch_init(struct bwn_mac *mac, bool init) argument 6208 bwn_phy_initn(struct bwn_mac *mac) argument 6430 bwn_chantab_phy_upload(struct bwn_mac *mac, const struct bwn_phy_n_sfo_cfg *e) argument 6442 bwn_nphy_pmu_spur_avoid(struct bwn_mac *mac, bhnd_pmu_spuravoid mode) argument 6463 bwn_nphy_channel_setup(struct bwn_mac *mac, const struct bwn_phy_n_sfo_cfg *e, struct ieee80211_channel *new_channel) argument 6581 bwn_nphy_set_channel(struct bwn_mac *mac, struct ieee80211_channel *channel, bwn_chan_type_t channel_type) argument 6674 bwn_nphy_op_allocate(struct bwn_mac *mac) argument 6688 bwn_nphy_op_prepare_structs(struct bwn_mac *mac) argument 6756 bwn_nphy_op_free(struct bwn_mac *mac) argument 6766 bwn_nphy_op_init(struct bwn_mac *mac) argument 6771 check_phyreg(struct bwn_mac *mac, uint16_t offset) argument 6788 bwn_nphy_op_maskset(struct bwn_mac *mac, uint16_t reg, uint16_t mask, uint16_t set) argument 6831 bwn_nphy_op_software_rfkill(struct bwn_mac *mac, bool active) argument 6895 bwn_nphy_op_switch_analog(struct bwn_mac *mac, bool on) argument 6922 bwn_nphy_op_switch_channel(struct bwn_mac *mac, unsigned int new_channel) argument [all...] |
H A D | if_bwn_phy_n_ppr.h | 59 extern void bwn_ppr_clear(struct bwn_mac *mac, struct bwn_ppr *ppr); 60 extern void bwn_ppr_add(struct bwn_mac *mac, struct bwn_ppr *ppr, int diff); 61 extern void bwn_ppr_apply_max(struct bwn_mac *mac, struct bwn_ppr *ppr, 63 extern void bwn_ppr_apply_min(struct bwn_mac *mac, struct bwn_ppr *ppr, 65 extern uint8_t bwn_ppr_get_max(struct bwn_mac *mac, struct bwn_ppr *ppr); 66 extern bool bwn_ppr_load_max_from_sprom(struct bwn_mac *mac,
|
/freebsd-13-stable/sys/dev/bwi/ |
H A D | bwimac.h | 74 #define MOBJ_WRITE_2(mac, objid, ofs, val) \ 75 bwi_memobj_write_2((mac), (objid), (ofs), (val)) 76 #define MOBJ_WRITE_4(mac, objid, ofs, val) \ 77 bwi_memobj_write_4((mac), (objid), (ofs), (val)) 78 #define MOBJ_READ_2(mac, objid, ofs) \ 79 bwi_memobj_read_2((mac), (objid), (ofs)) 80 #define MOBJ_READ_4(mac, objid, ofs) \ 81 bwi_memobj_read_4((mac), (objid), (ofs)) 83 #define MOBJ_SETBITS_4(mac, objid, ofs, bits) \ 84 MOBJ_WRITE_4((mac), (obji [all...] |
H A D | bwiphy.c | 89 static void bwi_tbl_write_2(struct bwi_mac *mac, uint16_t, uint16_t); 90 static void bwi_tbl_write_4(struct bwi_mac *mac, uint16_t, uint32_t); 137 bwi_phy_write(struct bwi_mac *mac, uint16_t ctrl, uint16_t data) argument 139 struct bwi_softc *sc = mac->mac_sc; 146 bwi_phy_read(struct bwi_mac *mac, uint16_t ctrl) argument 148 struct bwi_softc *sc = mac->mac_sc; 155 bwi_phy_attach(struct bwi_mac *mac) argument 157 struct bwi_softc *sc = mac->mac_sc; 158 struct bwi_phy *phy = &mac->mac_phy; 225 bwi_phy_set_bbp_atten(struct bwi_mac *mac, uint16_ argument 244 bwi_phy_calibrate(struct bwi_mac *mac) argument 266 bwi_tbl_write_2(struct bwi_mac *mac, uint16_t ofs, uint16_t data) argument 278 bwi_tbl_write_4(struct bwi_mac *mac, uint16_t ofs, uint32_t data) argument 293 bwi_nrssi_write(struct bwi_mac *mac, uint16_t ofs, int16_t data) argument 300 bwi_nrssi_read(struct bwi_mac *mac, uint16_t ofs) argument 307 bwi_phy_init_11a(struct bwi_mac *mac) argument 313 bwi_phy_init_11g(struct bwi_mac *mac) argument 428 bwi_phy_init_11b_rev2(struct bwi_mac *mac) argument 436 bwi_phy_init_11b_rev4(struct bwi_mac *mac) argument 505 bwi_phy_init_11b_rev5(struct bwi_mac *mac) argument 607 bwi_phy_init_11b_rev6(struct bwi_mac *mac) argument 748 bwi_phy_config_11g(struct bwi_mac *mac) argument 881 bwi_phy_config_agc(struct bwi_mac *mac) argument 962 bwi_set_gains(struct bwi_mac *mac, const struct bwi_gains *gains) argument [all...] |
H A D | bwirf.c | 80 #define RF_LO_WRITE(mac, lo) bwi_rf_lo_write((mac), (lo)) 108 #define SAVE_RF_REG(mac, regs, n) (regs)->rf_##n = RF_READ((mac), 0x##n) 109 #define RESTORE_RF_REG(mac, regs, n) RF_WRITE((mac), 0x##n, (regs)->rf_##n) 111 #define SAVE_PHY_REG(mac, regs, n) (regs)->phy_##n = PHY_READ((mac), 0x##n) 112 #define RESTORE_PHY_REG(mac, regs, n) PHY_WRITE((mac), 161 bwi_nrssi_11g(struct bwi_mac *mac) argument 176 bwi_get_rf_lo(struct bwi_mac *mac, uint16_t rf_atten, uint16_t bbp_atten) argument 187 bwi_rf_lo_isused(struct bwi_mac *mac, const struct bwi_rf_lo *lo) argument 199 bwi_rf_write(struct bwi_mac *mac, uint16_t ctrl, uint16_t data) argument 208 bwi_rf_read(struct bwi_mac *mac, uint16_t ctrl) argument 227 bwi_rf_attach(struct bwi_mac *mac) argument 342 bwi_rf_set_chan(struct bwi_mac *mac, u_int chan, int work_around) argument 373 bwi_rf_get_gains(struct bwi_mac *mac) argument 528 bwi_rf_init(struct bwi_mac *mac) argument 543 bwi_rf_off_11a(struct bwi_mac *mac) argument 555 bwi_rf_off_11bg(struct bwi_mac *mac) argument 561 bwi_rf_off_11g_rev5(struct bwi_mac *mac) argument 568 bwi_rf_work_around(struct bwi_mac *mac, u_int chan) argument 590 bwi_rf_lo_find(struct bwi_mac *mac, const struct bwi_tpctl *tpctl) argument 632 bwi_rf_lo_adjust(struct bwi_mac *mac, const struct bwi_tpctl *tpctl) argument 641 bwi_rf_lo_write(struct bwi_mac *mac, const struct bwi_rf_lo *lo) argument 652 bwi_rf_gain_max_reached(struct bwi_mac *mac, int idx) argument 677 bwi_phy812_value(struct bwi_mac *mac, uint16_t lpd) argument 749 bwi_rf_init_bcm2050(struct bwi_mac *mac) argument 1011 bwi_rf_calibval(struct bwi_mac *mac) argument 1085 bwi_rf_map_txpower(struct bwi_mac *mac) argument 1258 bwi_rf_lo_update_11g(struct bwi_mac *mac) argument 1391 bwi_rf_lo_devi_measure(struct bwi_mac *mac, uint16_t ctrl) argument 1424 bwi_rf_get_tp_ctrl2(struct bwi_mac *mac) argument 1450 _bwi_rf_lo_update_11g(struct bwi_mac *mac, uint16_t orig_rf7a) argument 1547 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 1637 bwi_rf_calc_nrssi_slope_11b(struct bwi_mac *mac) argument 1750 bwi_rf_set_nrssi_ofs_11g(struct bwi_mac *mac) argument 1905 bwi_rf_calc_nrssi_slope_11g(struct bwi_mac *mac) argument 2084 bwi_rf_init_sw_nrssi_table(struct bwi_mac *mac) argument 2104 bwi_rf_init_hw_nrssi_table(struct bwi_mac *mac, uint16_t adjust) argument 2124 bwi_rf_set_nrssi_thr_11b(struct bwi_mac *mac) argument 2181 bwi_rf_set_nrssi_thr_11g(struct bwi_mac *mac) argument 2222 bwi_rf_clear_tssi(struct bwi_mac *mac) argument 2271 bwi_rf_on_11a(struct bwi_mac *mac) argument 2277 bwi_rf_on_11bg(struct bwi_mac *mac) argument 2292 bwi_rf_set_ant_mode(struct bwi_mac *mac, int ant_mode) argument 2368 bwi_rf_get_latest_tssi(struct bwi_mac *mac, int8_t tssi[], uint16_t ofs) argument 2388 bwi_rf_tssi2dbm(struct bwi_mac *mac, int8_t tssi, int8_t *txpwr) argument 2409 bwi_rf_calc_rssi_bcm2050(struct bwi_mac *mac, const struct bwi_rxbuf_hdr *hdr) argument 2479 bwi_rf_calc_rssi_bcm2053(struct bwi_mac *mac, const struct bwi_rxbuf_hdr *hdr) argument 2495 bwi_rf_calc_rssi_bcm2060(struct bwi_mac *mac, const struct bwi_rxbuf_hdr *hdr) argument 2506 bwi_rf_calc_noise_bcm2050(struct bwi_mac *mac) argument 2530 bwi_rf_calc_noise_bcm2053(struct bwi_mac *mac) argument 2544 bwi_rf_calc_noise_bcm2060(struct bwi_mac *mac) argument 2551 bwi_rf_lo_measure_11b(struct bwi_mac *mac) argument 2571 bwi_rf_lo_update_11b(struct bwi_mac *mac) argument [all...] |
H A D | bwimac.c | 120 bwi_tmplt_write_4(struct bwi_mac *mac, uint32_t ofs, uint32_t val) argument 122 struct bwi_softc *sc = mac->mac_sc; 124 if (mac->mac_flags & BWI_MAC_F_BSWAP) 132 bwi_hostflags_write(struct bwi_mac *mac, uint64_t flags) argument 137 MOBJ_WRITE_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_LO, val); 140 MOBJ_WRITE_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_MI, val); 146 bwi_hostflags_read(struct bwi_mac *mac) argument 153 val = MOBJ_READ_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_MI); 156 val = MOBJ_READ_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_LO); 163 bwi_memobj_read_2(struct bwi_mac *mac, uint16_ argument 180 bwi_memobj_read_4(struct bwi_mac *mac, uint16_t obj_id, uint16_t ofs0) argument 205 bwi_memobj_write_2(struct bwi_mac *mac, uint16_t obj_id, uint16_t ofs0, uint16_t v) argument 223 bwi_memobj_write_4(struct bwi_mac *mac, uint16_t obj_id, uint16_t ofs0, uint32_t v) argument 244 bwi_mac_lateattach(struct bwi_mac *mac) argument 287 bwi_mac_init(struct bwi_mac *mac) argument 453 bwi_mac_reset(struct bwi_mac *mac, int link_phy) argument 501 bwi_mac_set_tpctl_11bg(struct bwi_mac *mac, const struct bwi_tpctl *new_tpctl) argument 541 bwi_mac_test(struct bwi_mac *mac) argument 592 bwi_mac_setup_tpctl(struct bwi_mac *mac) argument 693 bwi_mac_dummy_xmit(struct bwi_mac *mac) argument 758 bwi_mac_init_tpctl_11bg(struct bwi_mac *mac) argument 827 bwi_mac_detach(struct bwi_mac *mac) argument 881 bwi_mac_fw_alloc(struct bwi_mac *mac) argument 976 bwi_mac_fw_free(struct bwi_mac *mac) argument 1005 bwi_mac_fw_load(struct bwi_mac *mac) argument 1085 bwi_mac_gpio_init(struct bwi_mac *mac) argument 1120 bwi_mac_gpio_fini(struct bwi_mac *mac) argument 1137 bwi_mac_fw_load_iv(struct bwi_mac *mac, const struct firmware *fw) argument 1217 bwi_mac_fw_init(struct bwi_mac *mac) argument 1237 bwi_mac_opmode_init(struct bwi_mac *mac) argument 1307 bwi_mac_hostflags_init(struct bwi_mac *mac) argument 1336 bwi_mac_bss_param_init(struct bwi_mac *mac) argument 1395 bwi_mac_set_retry_lim(struct bwi_mac *mac, const struct bwi_retry_lim *lim) argument 1411 bwi_mac_set_ackrates(struct bwi_mac *mac, const struct ieee80211_rate_table *rt, const struct ieee80211_rateset *rs) argument 1443 bwi_mac_start(struct bwi_mac *mac) argument 1458 bwi_mac_stop(struct bwi_mac *mac) argument 1488 bwi_mac_config_ps(struct bwi_mac *mac) argument 1522 bwi_mac_reset_hwkeys(struct bwi_mac *mac) argument 1529 bwi_mac_shutdown(struct bwi_mac *mac) argument 1556 bwi_mac_get_property(struct bwi_mac *mac) argument 1609 bwi_mac_updateslot(struct bwi_mac *mac, int shslot) argument 1629 struct bwi_mac *mac; local 1747 bwi_mac_adjust_tpctl(struct bwi_mac *mac, int rf_atten_adj, int bbp_atten_adj) argument 1803 bwi_mac_calibrate_txpower(struct bwi_mac *mac, enum bwi_txpwrcb_type type) argument 1918 bwi_mac_lock(struct bwi_mac *mac) argument 1941 bwi_mac_unlock(struct bwi_mac *mac) argument 1962 bwi_mac_set_promisc(struct bwi_mac *mac, int promisc) argument [all...] |
/freebsd-13-stable/sys/dev/cxgb/common/ |
H A D | cxgb_xgmac.c | 40 static inline int macidx(const struct cmac *mac) argument 42 return mac->offset / (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR); 46 * Returns a reasonable A_XGM_RESET_CTRL value for the mac specified. 48 static inline int xgm_reset_ctrl(const struct cmac *mac) argument 50 adapter_t *adap = mac->adapter; 54 int cfg = t3_read_reg(adap, A_XGM_PORT_CFG + mac->offset); 67 static void xaui_serdes_reset(struct cmac *mac) argument 75 adapter_t *adap = mac->adapter; 76 u32 ctrl = A_XGM_SERDES_CTRL0 + mac->offset; 78 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | 97 t3b_pcs_reset(struct cmac *mac) argument 108 t3c_pcs_force_los(struct cmac *mac) argument 141 t3_mac_init(struct cmac *mac) argument 221 t3_mac_reset(struct cmac *mac, int portspeed) argument 315 set_addr_filter(struct cmac *mac, int idx, const u8 *addr) argument 335 t3_mac_set_address(struct cmac *mac, unsigned int idx, u8 addr[6]) argument 359 t3_mac_set_num_ucast(struct cmac *mac, unsigned char n) argument 367 t3_mac_disable_exact_filters(struct cmac *mac) argument 378 t3_mac_enable_exact_filters(struct cmac *mac) argument 412 struct cmac *mac; member in struct:t3_mcaddr_ctx 434 t3_mac_set_rx_mode(struct cmac *mac, struct t3_rx_mode *rm) argument 475 t3_mac_set_mtu(struct cmac *mac, unsigned int mtu) argument 570 t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) argument 648 t3_mac_enable(struct cmac *mac, int which) argument 700 t3_mac_disable(struct cmac *mac, int which) argument 723 t3b2_mac_watchdog_task(struct cmac *mac) argument 800 t3_mac_update_stats(struct cmac *mac) argument [all...] |
/freebsd-13-stable/tools/tools/net80211/scripts/mesh/ |
H A D | topology.line | 14 ifconfig $WLAN mac:allow 19 ifconfig $WLAN mac:add $NODE2_MAC 23 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE3_MAC 27 ifconfig $WLAN mac:add $NODE2_MAC mac:add $NODE4_MAC 31 ifconfig $WLAN mac:add $NODE3_MAC mac:add $NODE5_MAC 35 ifconfig $WLAN mac:add $NODE4_MAC
|
H A D | topology.star | 13 ifconfig $WLAN mac:allow 18 ifconfig $WLAN mac:add $NODE3_MAC 22 ifconfig $WLAN mac:add $NODE3_MAC 26 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE2_MAC mac:add \ 27 $NODE4_MAC mac:add $NODE5_MAC 31 ifconfig $WLAN mac:add $NODE3_MAC 35 ifconfig $WLAN mac:add $NODE3_MAC
|
H A D | topology.tree | 23 ifconfig $WLAN mac:allow 28 ifconfig $WLAN mac:add $NODE2_MAC mac:add $NODE3_MAC 32 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE4_MAC 36 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE5_MAC 40 ifconfig $WLAN mac:add $NODE2_MAC 44 ifconfig $WLAN mac:add $NODE3_MAC
|
H A D | topology.ring | 16 ifconfig $WLAN mac:allow 21 ifconfig $WLAN mac:add $NODE2_MAC mac:add $NODE5_MAC 25 ifconfig $WLAN mac:add $NODE1_MAC mac:add $NODE3_MAC 29 ifconfig $WLAN mac:add $NODE2_MAC mac:add $NODE4_MAC 33 ifconfig $WLAN mac:add $NODE3_MAC mac:add $NODE5_MAC 37 ifconfig $WLAN mac [all...] |
/freebsd-13-stable/crypto/openssh/ |
H A D | mac.c | 1 /* $OpenBSD: mac.c,v 1.34 2017/05/08 22:57:38 djm Exp $ */ 36 #include "mac.h" 109 mac_setup_by_alg(struct sshmac *mac, const struct macalg *macalg) argument 111 mac->type = macalg->type; 112 if (mac->type == SSH_DIGEST) { 113 if ((mac->hmac_ctx = ssh_hmac_start(macalg->alg)) == NULL) 115 mac->key_len = mac->mac_len = ssh_hmac_bytes(macalg->alg); 117 mac->mac_len = macalg->len / 8; 118 mac 128 mac_setup(struct sshmac *mac, char *name) argument 143 mac_init(struct sshmac *mac) argument 167 mac_compute(struct sshmac *mac, u_int32_t seqno, const u_char *data, int datalen, u_char *digest, size_t dlen) argument 213 mac_check(struct sshmac *mac, u_int32_t seqno, const u_char *data, size_t dlen, const u_char *theirmac, size_t mlen) argument 231 mac_clear(struct sshmac *mac) argument [all...] |
/freebsd-13-stable/contrib/wpa/hostapd/logwatch/ |
H A D | hostapd | 29 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};
|
/freebsd-13-stable/tests/sys/mac/ |
H A D | Makefile | 3 TESTSDIR= ${TESTSBASE}/sys/mac
|