/freebsd-11-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, int spurmode); 35 extern void bwn_phy_force_clock(struct bwn_mac *mac, int force); 36 extern int bwn_radio_wait_value(struct bwn_mac *mac, uint16_t offset, 38 extern void bwn_mac_phy_clock_set(struct bwn_mac *mac, int enabled); 39 extern void bwn_wireless_core_phy_pll_reset(struct bwn_mac *mac);
|
H A D | if_bwn_phy_g.c | 127 static uint16_t bwn_phy_g_txctl(struct bwn_mac *mac); 128 static int bwn_phy_shm_tssi_read(struct bwn_mac *mac, uint16_t shm_offset); 129 static void bwn_phy_g_setatt(struct bwn_mac *mac, int *bbattp, int *rfattp); 130 static void bwn_phy_lock(struct bwn_mac *mac); 131 static void bwn_phy_unlock(struct bwn_mac *mac); 132 static void bwn_rf_lock(struct bwn_mac *mac); 133 static void bwn_rf_unlock(struct bwn_mac *mac); 143 bwn_has_hwpctl(struct bwn_mac *mac) argument 146 if (mac->mac_phy.hwpctl == 0 || mac 152 bwn_phy_g_attach(struct bwn_mac *mac) argument 215 bwn_phy_g_detach(struct bwn_mac *mac) argument 227 bwn_phy_g_init_pre(struct bwn_mac *mac) argument 260 bwn_phy_g_prepare_hw(struct bwn_mac *mac) argument 430 bwn_phy_g_txctl(struct bwn_mac *mac) argument 446 bwn_phy_g_init(struct bwn_mac *mac) argument 454 bwn_phy_g_exit(struct bwn_mac *mac) argument 468 bwn_phy_g_read(struct bwn_mac *mac, uint16_t reg) argument 476 bwn_phy_g_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument 484 bwn_phy_g_rf_read(struct bwn_mac *mac, uint16_t reg) argument 493 bwn_phy_g_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument 502 bwn_phy_g_hwpctl(struct bwn_mac *mac) argument 509 bwn_phy_g_rf_onoff(struct bwn_mac *mac, int on) argument 546 bwn_phy_g_switch_channel(struct bwn_mac *mac, uint32_t newchan) argument 557 bwn_phy_g_get_default_chan(struct bwn_mac *mac) argument 564 bwn_phy_g_set_antenna(struct bwn_mac *mac, int antenna) argument 617 bwn_phy_g_im(struct bwn_mac *mac, int mode) argument 633 bwn_phy_g_recalc_txpwr(struct bwn_mac *mac, int ignore_tssi) argument 685 bwn_phy_g_set_txpwr(struct bwn_mac *mac) argument 744 bwn_phy_g_task_15s(struct bwn_mac *mac) argument 803 bwn_phy_g_task_60s(struct bwn_mac *mac) argument 822 bwn_phy_switch_analog(struct bwn_mac *mac, int on) argument 829 bwn_phy_g_init_sub(struct bwn_mac *mac) argument 936 bwn_phy_init_b5(struct bwn_mac *mac) argument 1032 bwn_loopback_calcgain(struct bwn_mac *mac) argument 1189 bwn_rf_init_bcm2050(struct bwn_mac *mac) argument 1411 bwn_phy_init_b6(struct bwn_mac *mac) argument 1523 bwn_phy_init_a(struct bwn_mac *mac) argument 1548 bwn_wa_write_noisescale(struct bwn_mac *mac, const uint16_t *nst) argument 1557 bwn_wa_agc(struct bwn_mac *mac) argument 1637 bwn_wa_grev1(struct bwn_mac *mac) argument 1711 bwn_wa_grev26789(struct bwn_mac *mac) argument 1791 bwn_wa_init(struct bwn_mac *mac) argument 1853 bwn_ofdmtab_write_2(struct bwn_mac *mac, uint16_t table, uint16_t offset, uint16_t value) argument 1870 bwn_ofdmtab_write_4(struct bwn_mac *mac, uint16_t table, uint16_t offset, uint32_t value) argument 1889 bwn_gtab_write(struct bwn_mac *mac, uint16_t table, uint16_t offset, uint16_t value) argument 1898 bwn_lo_write(struct bwn_mac *mac, struct bwn_loctl *ctl) argument 1911 bwn_lo_calcfeed(struct bwn_mac *mac, uint16_t lna, uint16_t pga, uint16_t trsw_rx) argument 1962 bwn_lo_txctl_regtable(struct bwn_mac *mac, uint16_t *value, uint16_t *pad_mix_gain) argument 1997 bwn_lo_measure_txctl_values(struct bwn_mac *mac) argument 2095 bwn_lo_get_powervector(struct bwn_mac *mac) argument 2116 bwn_lo_measure_gain_values(struct bwn_mac *mac, int16_t max_rx_gain, int use_trsw_rx) argument 2178 bwn_lo_save(struct bwn_mac *mac, struct bwn_lo_g_value *sav) argument 2295 bwn_lo_restore(struct bwn_mac *mac, struct bwn_lo_g_value *sav) argument 2362 bwn_lo_probe_loctl(struct bwn_mac *mac, struct bwn_loctl *probe, struct bwn_lo_g_sm *d) argument 2427 bwn_lo_probe_sm(struct bwn_mac *mac, struct bwn_loctl *loctl, int *rxgain) argument 2492 bwn_lo_calibset(struct bwn_mac *mac, const struct bwn_bbatt *bbatt, const struct bwn_rfatt *rfatt) argument 2538 bwn_lo_get_calib(struct bwn_mac *mac, const struct bwn_bbatt *bbatt, const struct bwn_rfatt *rfatt) argument 2561 bwn_phy_g_dc_lookup_init(struct bwn_mac *mac, uint8_t update) argument 2633 bwn_lo_g_adjust(struct bwn_mac *mac) argument 2649 bwn_lo_g_init(struct bwn_mac *mac) argument 2660 bwn_nrssi_read(struct bwn_mac *mac, uint16_t offset) argument 2668 bwn_nrssi_threshold(struct bwn_mac *mac) argument 2717 bwn_nrssi_slope_11g(struct bwn_mac *mac) argument 2894 bwn_nrssi_offset(struct bwn_mac *mac) argument 3044 bwn_set_all_gains(struct bwn_mac *mac, int16_t first, int16_t second, int16_t third) argument 3077 bwn_set_original_gains(struct bwn_mac *mac) argument 3110 bwn_phy_hwpctl_init(struct bwn_mac *mac) argument 3169 bwn_hwpctl_early_init(struct bwn_mac *mac) argument 3200 bwn_hwpctl_init_gphy(struct bwn_mac *mac) argument 3258 bwn_phy_g_switch_chan(struct bwn_mac *mac, int channel, uint8_t spu) argument 3295 bwn_phy_g_set_txpwr_sub(struct bwn_mac *mac, const struct bwn_bbatt *bbatt, const struct bwn_rfatt *rfatt, uint8_t txctl) argument 3331 bwn_phy_g_set_bbatt(struct bwn_mac *mac, uint16_t bbatt) argument 3349 bwn_rf_2050_rfoverval(struct bwn_mac *mac, uint16_t reg, uint32_t lpd) argument 3470 bwn_spu_workaround(struct bwn_mac *mac, uint8_t channel) argument 3482 bwn_phy_shm_tssi_read(struct bwn_mac *mac, uint16_t shm_offset) argument 3518 bwn_phy_g_setatt(struct bwn_mac *mac, int *bbattp, int *rfattp) argument 3561 bwn_phy_lock(struct bwn_mac *mac) argument 3574 bwn_phy_unlock(struct bwn_mac *mac) argument 3587 bwn_rf_lock(struct bwn_mac *mac) argument 3597 bwn_rf_unlock(struct bwn_mac *mac) argument [all...] |
H A D | if_bwn_phy_n.c | 98 bwn_phy_n_attach(struct bwn_mac *mac) argument 102 return bwn_nphy_op_allocate(mac); 104 device_printf(mac->mac_sc->sc_dev, 112 bwn_phy_n_detach(struct bwn_mac *mac) argument 116 return bwn_nphy_op_free(mac); 121 bwn_phy_n_prepare_hw(struct bwn_mac *mac) argument 125 bwn_nphy_op_prepare_structs(mac); 133 bwn_phy_n_init_pre(struct bwn_mac *mac) argument 140 bwn_phy_n_init(struct bwn_mac *mac) argument 143 return bwn_nphy_op_init(mac); 150 bwn_phy_n_exit(struct bwn_mac *mac) argument 157 bwn_phy_n_read(struct bwn_mac *mac, uint16_t reg) argument 165 bwn_phy_n_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument 173 bwn_phy_n_rf_read(struct bwn_mac *mac, uint16_t reg) argument 191 bwn_phy_n_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument 204 bwn_phy_n_hwpctl(struct bwn_mac *mac) argument 211 bwn_phy_n_rf_onoff(struct bwn_mac *mac, int on) argument 219 bwn_phy_n_switch_analog(struct bwn_mac *mac, int on) argument 227 bwn_phy_n_switch_channel(struct bwn_mac *mac, uint32_t newchan) argument 237 bwn_phy_n_get_default_chan(struct bwn_mac *mac) argument 246 bwn_phy_n_set_antenna(struct bwn_mac *mac, int antenna) argument 252 bwn_phy_n_im(struct bwn_mac *mac, int mode) argument 259 bwn_phy_n_recalc_txpwr(struct bwn_mac *mac, int ignore_tssi) argument 269 bwn_phy_n_set_txpwr(struct bwn_mac *mac) argument 275 bwn_phy_n_task_15s(struct bwn_mac *mac) argument 281 bwn_phy_n_task_60s(struct bwn_mac *mac) argument [all...] |
H A D | if_bwn.c | 515 struct bwn_mac *mac; local 540 mac = malloc(sizeof(*mac), M_DEVBUF, M_WAITOK | M_ZERO); 541 mac->mac_sc = sc; 542 mac->mac_status = BWN_MAC_STATUS_UNINIT; 544 mac->mac_flags |= BWN_MAC_FLAG_BADFRAME_PREEMP; 546 TASK_INIT(&mac->mac_hwreset, 0, bwn_hwreset, mac); 547 TASK_INIT(&mac->mac_intrtask, 0, bwn_intrtask, mac); 708 bwn_phy_detach(struct bwn_mac *mac) argument 719 struct bwn_mac *mac = sc->sc_curmac; local 851 struct bwn_mac *mac = sc->sc_curmac; local 901 struct bwn_mac *mac = sc->sc_curmac; local 929 struct bwn_mac *mac = sc->sc_curmac; local 949 bwn_pio_tx_start(struct bwn_mac *mac, struct ieee80211_node *ni, struct mbuf **mp) argument 1023 bwn_pio_select(struct bwn_mac *mac, uint8_t prio) argument 1044 bwn_dma_tx_start(struct bwn_mac *mac, struct ieee80211_node *ni, struct mbuf **mp) argument 1154 bwn_attach_core(struct bwn_mac *mac) argument 1348 bwn_reset_core(struct bwn_mac *mac, int g_mode) argument 1389 bwn_phy_getinfo(struct bwn_mac *mac, int gmode) argument 1460 bwn_chiptest(struct bwn_mac *mac) argument 1504 bwn_setup_channels(struct bwn_mac *mac, int have_bg, int have_a) argument 1540 bwn_shm_read_4(struct bwn_mac *mac, uint16_t way, uint16_t offset) argument 1566 bwn_shm_read_2(struct bwn_mac *mac, uint16_t way, uint16_t offset) argument 1590 bwn_shm_ctlword(struct bwn_mac *mac, uint16_t way, uint16_t offset) argument 1602 bwn_shm_write_4(struct bwn_mac *mac, uint16_t way, uint16_t offset, uint32_t value) argument 1625 bwn_shm_write_2(struct bwn_mac *mac, uint16_t way, uint16_t offset, uint16_t value) argument 1664 struct bwn_mac *mac = sc->sc_curmac; local 1697 struct bwn_mac *mac; local 1718 struct bwn_mac *mac = sc->sc_curmac; local 1739 struct bwn_mac *mac = sc->sc_curmac; local 1761 struct bwn_mac *mac; local 1778 struct bwn_mac *mac; local 1794 struct bwn_mac *mac = sc->sc_curmac; local 1838 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 1890 struct bwn_mac *mac; local 1928 struct bwn_mac *mac = sc->sc_curmac; local 2001 bwn_core_init(struct bwn_mac *mac) argument 2128 bwn_core_start(struct bwn_mac *mac) argument 2154 bwn_core_exit(struct bwn_mac *mac) argument 2182 bwn_bt_disable(struct bwn_mac *mac) argument 2191 bwn_chip_init(struct bwn_mac *mac) argument 2271 bwn_hf_read(struct bwn_mac *mac) argument 2284 bwn_hf_write(struct bwn_mac *mac, uint64_t value) argument 2296 bwn_set_txretry(struct bwn_mac *mac, int s, int l) argument 2304 bwn_rate_init(struct bwn_mac *mac) argument 2334 bwn_rate_write(struct bwn_mac *mac, uint16_t rate, int ofdm) argument 2394 bwn_set_phytxctl(struct bwn_mac *mac) argument 2406 bwn_pio_init(struct bwn_mac *mac) argument 2423 bwn_pio_set_txqueue(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, int index) argument 2451 bwn_pio_idx2base(struct bwn_mac *mac, int index) argument 2484 bwn_pio_setupqueue_rx(struct bwn_mac *mac, struct bwn_pio_rxqueue *prq, int index) argument 2511 bwn_pio_read_2(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint16_t offset) argument 2519 bwn_dma_rxdirectfifo(struct bwn_mac *mac, int idx, uint8_t enable) argument 2543 bwn_dma_mask(struct bwn_mac *mac) argument 2620 bwn_dma_init(struct bwn_mac *mac) argument 2635 bwn_dma_ringsetup(struct bwn_mac *mac, int controller_index, int for_tx, int type) argument 3030 struct bwn_mac *mac = dr->dr_mac; local 3178 struct bwn_mac *mac = dr->dr_mac; local 3208 bwn_dma_tx_reset(struct bwn_mac *mac, uint16_t base, int type) argument 3266 bwn_dma_rx_reset(struct bwn_mac *mac, uint16_t base, int type) argument 3344 bwn_wme_init(struct bwn_mac *mac) argument 3356 bwn_spu_setdelay(struct bwn_mac *mac, int idle) argument 3372 bwn_bt_enable(struct bwn_mac *mac) argument 3393 bwn_set_macaddr(struct bwn_mac *mac) argument 3402 bwn_clear_keys(struct bwn_mac *mac) argument 3421 bwn_crypt_init(struct bwn_mac *mac) argument 3436 bwn_chip_exit(struct bwn_mac *mac) argument 3445 bwn_fw_fillinfo(struct bwn_mac *mac) argument 3459 bwn_gpio_init(struct bwn_mac *mac) argument 3491 bwn_fw_loadinitvals(struct bwn_mac *mac) argument 3517 bwn_phy_init(struct bwn_mac *mac) argument 3547 bwn_set_txantenna(struct bwn_mac *mac, int antenna) argument 3565 bwn_set_opmode(struct bwn_mac *mac) argument 3602 bwn_dma_gettype(struct bwn_mac *mac) argument 3629 bwn_dummy_transmission(struct bwn_mac *mac, int ofdm, int paon) argument 3712 bwn_ram_write(struct bwn_mac *mac, uint16_t offset, uint32_t val) argument 3728 bwn_mac_suspend(struct bwn_mac *mac) argument 3765 bwn_mac_enable(struct bwn_mac *mac) argument 3796 bwn_psctl(struct bwn_mac *mac, uint32_t flags) argument 3827 bwn_fw_gets(struct bwn_mac *mac, enum bwn_fwtype type) argument 4057 bwn_fw_get(struct bwn_mac *mac, enum bwn_fwtype type, const char *name, struct bwn_fwfile *bfw) argument 4114 bwn_release_firmware(struct bwn_mac *mac) argument 4134 bwn_fw_loaducode(struct bwn_mac *mac) argument 4276 bwn_fwcaps_read(struct bwn_mac *mac) argument 4285 bwn_fwinitvals_write(struct bwn_mac *mac, const struct bwn_fwinitvals *ivals, size_t count, size_t array_size) argument 4339 bwn_switch_channel(struct bwn_mac *mac, int chan) argument 4389 bwn_wme_load(struct bwn_mac *mac) argument 4405 bwn_wme_loadparams(struct bwn_mac *mac, const struct wmeParams *p, uint16_t shm_offset) argument 4446 bwn_mac_write_bssid(struct bwn_mac *mac) argument 4468 bwn_mac_setfilter(struct bwn_mac *mac, uint16_t offset, const uint8_t *macaddr) argument 4492 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 4518 bwn_key_macwrite(struct bwn_mac *mac, uint8_t index, const uint8_t *addr) argument 4554 bwn_key_write(struct bwn_mac *mac, uint8_t index, uint8_t algorithm, const uint8_t *key) argument 4574 bwn_phy_exit(struct bwn_mac *mac) argument 4583 bwn_dma_free(struct bwn_mac *mac) argument 4600 bwn_core_stop(struct bwn_mac *mac) argument 4625 struct bwn_mac *mac; local 4690 bwn_rf_turnon(struct bwn_mac *mac) argument 4702 bwn_rf_turnoff(struct bwn_mac *mac) argument 4717 bwn_phy_reset_siba(struct bwn_mac *mac) argument 4731 bwn_phy_reset(struct bwn_mac *mac) argument 4748 struct bwn_mac *mac = sc->sc_curmac; local 4798 bwn_set_pretbtt(struct bwn_mac *mac) argument 4815 struct bwn_mac *mac = arg; local 4860 struct bwn_mac *mac = arg; local 4971 bwn_restart(struct bwn_mac *mac, const char *msg) argument 4984 bwn_intr_ucode_debug(struct bwn_mac *mac) argument 5016 bwn_intr_tbtt_indication(struct bwn_mac *mac) argument 5028 bwn_intr_atim_end(struct bwn_mac *mac) argument 5039 bwn_intr_beacon(struct bwn_mac *mac) argument 5084 bwn_intr_pmq(struct bwn_mac *mac) argument 5097 bwn_intr_noise(struct bwn_mac *mac) argument 5151 struct bwn_mac *mac = prq->prq_mac; local 5191 bwn_intr_txeof(struct bwn_mac *mac) argument 5245 struct bwn_mac *mac = arg; local 5274 bwn_handle_fwpanic(struct bwn_mac *mac) argument 5287 bwn_load_beacon0(struct bwn_mac *mac) argument 5294 bwn_load_beacon1(struct bwn_mac *mac) argument 5301 bwn_jssi_read(struct bwn_mac *mac) argument 5313 bwn_noise_gensample(struct bwn_mac *mac) argument 5346 struct bwn_mac *mac = dr->dr_mac; local 5424 bwn_handle_txeof(struct bwn_mac *mac, const struct bwn_txstatus *status) argument 5454 struct bwn_mac *mac = prq->prq_mac; local 5580 struct bwn_mac *mac = dr->dr_mac; local 5704 bwn_rx_rssi_calc(struct bwn_mac *mac, uint8_t in_rssi, int ofdm, int adjust_2053, int adjust_2050) argument 5756 bwn_rxeof(struct bwn_mac *mac, struct mbuf *m, const void *_rxhdr) argument 5892 bwn_dma_handle_txeof(struct bwn_mac *mac, const struct bwn_txstatus *status) argument 5965 bwn_pio_handle_txeof(struct bwn_mac *mac, const struct bwn_txstatus *status) argument 6016 bwn_phy_txpower_check(struct bwn_mac *mac, uint32_t flags) argument 6113 bwn_set_txhdr_phyctl1(struct bwn_mac *mac, uint8_t bitrate) argument 6184 bwn_set_txhdr(struct bwn_mac *mac, struct ieee80211_node *ni, struct mbuf *m, struct bwn_txhdr *txhdr, uint16_t cookie) argument 6507 bwn_antenna_sanitize(struct bwn_mac *mac, uint8_t n) argument 6565 bwn_pio_write_multi_4(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint32_t ctl, const void *_data, int len) argument 6602 bwn_pio_write_4(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint16_t offset, uint32_t value) argument 6610 bwn_pio_write_multi_2(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint16_t ctl, const void *_data, int len) argument 6631 bwn_pio_write_mbuf_2(struct bwn_mac *mac, struct bwn_pio_txqueue *tq, uint16_t ctl, struct mbuf *m0) argument 6664 bwn_set_slot_time(struct bwn_mac *mac, uint16_t time) argument 6679 bwn_dma_select(struct bwn_mac *mac, uint8_t prio) argument 6719 bwn_pio_parse_cookie(struct bwn_mac *mac, uint16_t cookie, struct bwn_pio_txpkt **pack) argument 6758 struct bwn_mac *mac = arg; local 6769 bwn_task_15s(struct bwn_mac *mac) argument 6788 bwn_task_30s(struct bwn_mac *mac) argument 6800 bwn_task_60s(struct bwn_mac *mac) argument 6811 struct bwn_mac *mac = arg; local 6829 bwn_plcp_get_ofdmrate(struct bwn_mac *mac, struct bwn_plcp6 *plcp, uint8_t a) argument 6859 bwn_plcp_get_cckrate(struct bwn_mac *mac, struct bwn_plcp6 *plcp) argument 6878 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 6920 bwn_tsf_read(struct bwn_mac *mac, uint64_t *tsf) argument 6935 bwn_dma_attach(struct bwn_mac *mac) argument 7049 bwn_dma_parse_cookie(struct bwn_mac *mac, const struct bwn_txstatus *status, uint16_t cookie, int *slot) argument 7098 bwn_dma_stop(struct bwn_mac *mac) argument 7125 bwn_pio_stop(struct bwn_mac *mac) argument 7141 bwn_led_attach(struct bwn_mac *mac) argument 7215 bwn_led_newstate(struct bwn_mac *mac, enum ieee80211_state nstate) argument 7276 bwn_led_event(struct bwn_mac *mac, int event) argument 7312 bwn_led_blink_start(struct bwn_mac *mac, int on_dur, int off_dur) argument 7336 struct bwn_mac *mac = arg; local 7351 struct bwn_mac *mac = arg; local 7387 struct bwn_mac *mac = sc->sc_curmac; local 7434 struct bwn_mac *mac; local [all...] |
H A D | if_bwn_phy_lp.c | 378 bwn_phy_lp_init_pre(struct bwn_mac *mac) argument 380 struct bwn_phy *phy = &mac->mac_phy; 387 bwn_phy_lp_init(struct bwn_mac *mac) argument 406 struct bwn_phy_lp *plp = &mac->mac_phy.phy_lp; 407 struct bwn_softc *sc = mac->mac_sc; 413 bwn_phy_lp_readsprom(mac); /* XXX bad place */ 414 bwn_phy_lp_bbinit(mac); 417 BWN_PHY_SET(mac, BWN_PHY_4WIRECTL, 0x2); 419 BWN_PHY_MASK(mac, BWN_PHY_4WIRECTL, 0xfffd); 422 if (mac 461 bwn_phy_lp_read(struct bwn_mac *mac, uint16_t reg) argument 469 bwn_phy_lp_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument 477 bwn_phy_lp_maskset(struct bwn_mac *mac, uint16_t reg, uint16_t mask, uint16_t set) argument 487 bwn_phy_lp_rf_read(struct bwn_mac *mac, uint16_t reg) argument 500 bwn_phy_lp_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) argument 509 bwn_phy_lp_rf_onoff(struct bwn_mac *mac, int on) argument 535 bwn_phy_lp_switch_channel(struct bwn_mac *mac, uint32_t chan) argument 559 bwn_phy_lp_get_default_chan(struct bwn_mac *mac) argument 568 bwn_phy_lp_set_antenna(struct bwn_mac *mac, int antenna) argument 584 bwn_phy_lp_task_60s(struct bwn_mac *mac) argument 591 bwn_phy_lp_readsprom(struct bwn_mac *mac) argument 618 bwn_phy_lp_bbinit(struct bwn_mac *mac) argument 629 bwn_phy_lp_txpctl_init(struct bwn_mac *mac) argument 642 bwn_phy_lp_calib(struct bwn_mac *mac) argument 753 bwn_phy_lp_switch_analog(struct bwn_mac *mac, int on) argument 766 bwn_phy_lp_b2063_switch_channel(struct bwn_mac *mac, uint8_t chan) argument 896 bwn_phy_lp_b2062_switch_channel(struct bwn_mac *mac, uint8_t chan) argument 972 bwn_phy_lp_set_anafilter(struct bwn_mac *mac, uint8_t channel) argument 988 bwn_phy_lp_set_gaintbl(struct bwn_mac *mac, uint32_t freq) argument 1015 bwn_phy_lp_digflt_save(struct bwn_mac *mac) argument 1039 bwn_phy_lp_get_txpctlmode(struct bwn_mac *mac) argument 1064 bwn_phy_lp_set_txpctlmode(struct bwn_mac *mac, uint8_t mode) argument 1120 bwn_phy_lp_bugfix(struct bwn_mac *mac) argument 1215 bwn_phy_lp_digflt_restore(struct bwn_mac *mac) argument 1232 bwn_phy_lp_tblinit(struct bwn_mac *mac) argument 1259 bwn_phy_lp_bbinit_r2(struct bwn_mac *mac) argument 1369 bwn_phy_lp_bbinit_r01(struct bwn_mac *mac) argument 1548 bwn_phy_lp_b2062_init(struct bwn_mac *mac) argument 1635 bwn_phy_lp_b2063_init(struct bwn_mac *mac) argument 1657 bwn_phy_lp_rxcal_r2(struct bwn_mac *mac) argument 1720 bwn_phy_lp_rccal_r12(struct bwn_mac *mac) argument 1838 bwn_phy_lp_set_rccap(struct bwn_mac *mac) argument 1874 bwn_phy_lp_b2062_reset_pllbias(struct bwn_mac *mac) argument 1890 bwn_phy_lp_b2062_vco_calib(struct bwn_mac *mac) argument 1899 bwn_phy_lp_b2062_tblinit(struct bwn_mac *mac) argument 1972 bwn_phy_lp_b2063_tblinit(struct bwn_mac *mac) argument 2040 bwn_tab_read_multi(struct bwn_mac *mac, uint32_t typenoffset, int count, void *_data) argument 2079 bwn_tab_write_multi(struct bwn_mac *mac, uint32_t typenoffset, int count, const void *_data) argument 2121 bwn_phy_lp_get_txgain(struct bwn_mac *mac) argument 2144 bwn_phy_lp_get_bbmult(struct bwn_mac *mac) argument 2151 bwn_phy_lp_set_txgain(struct bwn_mac *mac, struct bwn_txgain *tg) argument 2176 bwn_phy_lp_set_bbmult(struct bwn_mac *mac, uint8_t bbmult) argument 2183 bwn_phy_lp_set_trsw_over(struct bwn_mac *mac, uint8_t tx, uint8_t rx) argument 2192 bwn_phy_lp_set_rxgain(struct bwn_mac *mac, uint32_t gain) argument 2246 bwn_phy_lp_set_deaf(struct bwn_mac *mac, uint8_t user) argument 2259 bwn_phy_lp_clear_deaf(struct bwn_mac *mac, uint8_t user) argument 2280 bwn_phy_lp_calc_rx_iq_comp(struct bwn_mac *mac, uint16_t sample) argument 2334 bwn_phy_lp_tblinit_r01(struct bwn_mac *mac) argument 2529 bwn_phy_lp_tblinit_r2(struct bwn_mac *mac) argument 2752 bwn_phy_lp_tblinit_txgain(struct bwn_mac *mac) argument 3391 bwn_tab_write(struct bwn_mac *mac, uint32_t typeoffset, uint32_t value) argument 3422 bwn_phy_lp_loopback(struct bwn_mac *mac) argument 3456 bwn_phy_lp_set_rxgain_idx(struct bwn_mac *mac, uint16_t idx) argument 3463 bwn_phy_lp_ddfs_turnon(struct bwn_mac *mac, int i_on, int q_on, int incr1, int incr2, int scale_idx) argument 3481 bwn_phy_lp_rx_iq_est(struct bwn_mac *mac, uint16_t sample, uint8_t time, struct bwn_phy_lp_iq_est *ie) argument 3518 bwn_tab_read(struct bwn_mac *mac, uint32_t typeoffset) argument 3550 bwn_phy_lp_ddfs_turnoff(struct bwn_mac *mac) argument 3558 bwn_phy_lp_set_txgain_dac(struct bwn_mac *mac, uint16_t dac) argument 3568 bwn_phy_lp_set_txgain_pa(struct bwn_mac *mac, uint16_t gain) argument 3576 bwn_phy_lp_set_txgain_override(struct bwn_mac *mac) argument 3589 bwn_phy_lp_get_pa_gain(struct bwn_mac *mac) argument 3607 bwn_phy_lp_gaintbl_write_multi(struct bwn_mac *mac, int offset, int count, struct bwn_txgain_entry *table) argument 3617 bwn_phy_lp_gaintbl_write(struct bwn_mac *mac, int offset, struct bwn_txgain_entry data) argument 3628 bwn_phy_lp_gaintbl_write_r2(struct bwn_mac *mac, int offset, struct bwn_txgain_entry te) argument 3651 bwn_phy_lp_gaintbl_write_r01(struct bwn_mac *mac, int offset, struct bwn_txgain_entry te) argument [all...] |
/freebsd-11-stable/lib/libc/posix1e/ |
H A D | mac_set.c | 36 #include <sys/mac.h> 38 extern int __mac_set_fd(int fd, struct mac *mac_p); 39 extern int __mac_set_file(const char *path_p, struct mac *mac_p); 40 extern int __mac_set_link(const char *path_p, struct mac *mac_p); 41 extern int __mac_set_proc(struct mac *mac_p); 44 mac_set_fd(int fd, struct mac *label) 51 mac_set_file(const char *path, struct mac *label) 58 mac_set_link(const char *path, struct mac *label) 65 mac_set_proc(struct mac *label)
|
H A D | mac_get.c | 36 #include <sys/mac.h> 39 extern int __mac_get_fd(int fd, struct mac *mac_p); 40 extern int __mac_get_file(const char *path_p, struct mac *mac_p); 41 extern int __mac_get_link(const char *path_p, struct mac *mac_p); 42 extern int __mac_get_pid(pid_t pid, struct mac *mac_p); 43 extern int __mac_get_proc(struct mac *mac_p); 46 mac_get_fd(int fd, struct mac *label) 53 mac_get_file(const char *path, struct mac *label) 60 mac_get_link(const char *path, struct mac *label) 67 mac_get_peer(int fd, struct mac *labe [all...] |
H A D | mac.c | 50 #include <sys/mac.h> 295 mac_free(struct mac *mac) argument 298 if (mac->m_string != NULL) 299 free(mac->m_string); 300 free(mac); 306 mac_from_text(struct mac **mac, const char *text) argument 309 *mac = (struct mac *) mallo 326 mac_to_text(struct mac *mac, char **text) argument 336 mac_prepare(struct mac **mac, const char *elements) argument 360 mac_prepare_type(struct mac **mac, const char *name) argument 380 mac_prepare_ifnet_label(struct mac **mac) argument 387 mac_prepare_file_label(struct mac **mac) argument 394 mac_prepare_packet_label(struct mac **mac) argument 401 mac_prepare_process_label(struct mac **mac) argument [all...] |
H A D | mac_exec.c | 36 #include <sys/mac.h> 39 struct mac *mac_p); 42 mac_execve(char *fname, char **argv, char **envv, struct mac *label)
|
/freebsd-11-stable/sys/gnu/dev/bwn/phy_n/ |
H A D | if_bwn_phy_n_core.c | 159 static inline bool bwn_nphy_ipa(struct bwn_mac *mac) argument 161 bwn_band_t band = bwn_current_band(mac); 162 return ((mac->mac_phy.phy_n->ipa2g_on && band == BWN_BAND_2G) || 163 (mac->mac_phy.phy_n->ipa5g_on && band == BWN_BAND_5G)); 167 static uint8_t bwn_nphy_get_rx_core_state(struct bwn_mac *mac) argument 169 return (BWN_PHY_READ(mac, BWN_NPHY_RFSEQCA) & BWN_NPHY_RFSEQCA_RXEN) >> 178 static void bwn_nphy_force_rf_sequence(struct bwn_mac *mac, argument 190 uint16_t seq_mode = BWN_PHY_READ(mac, BWN_NPHY_RFSEQMODE); 193 BWN_WARNPRINTF(mac->mac_sc, "%s: seq %d > max", __func__, seq); 196 BWN_PHY_SET(mac, BWN_NPHY_RFSEQMOD 209 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 217 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 266 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 314 bwn_nphy_rf_ctl_override(struct bwn_mac *mac, uint16_t field, uint16_t value, uint8_t core, bool off) argument 394 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 464 bwn_nphy_rf_ctl_intc_override(struct bwn_mac *mac, enum n_intc_override intc_override, uint16_t value, uint8_t core) argument 576 bwn_nphy_write_clip_detection(struct bwn_mac *mac, const uint16_t *clip_st) argument 584 bwn_nphy_read_clip_detection(struct bwn_mac *mac, uint16_t *clip_st) argument 591 bwn_nphy_classifier(struct bwn_mac *mac, uint16_t mask, uint16_t val) argument 613 bwn_nphy_reset_cca(struct bwn_mac *mac) argument 627 bwn_nphy_stay_in_carrier_search(struct bwn_mac *mac, bool enable) argument 651 bwn_nphy_read_lpf_ctl(struct bwn_mac *mac, uint16_t offset) argument 659 bwn_nphy_adjust_lna_gain_table(struct bwn_mac *mac) argument 715 bwn_nphy_set_rf_sequence(struct bwn_mac *mac, uint8_t cmd, uint8_t *events, uint8_t *delays, uint8_t length) argument 743 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 799 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 895 bwn_radio_2057_rcal(struct bwn_mac *mac) argument 1010 bwn_radio_2057_rccal(struct bwn_mac *mac) argument 1100 bwn_radio_2057_init_pre(struct bwn_mac *mac) argument 1109 bwn_radio_2057_init_post(struct bwn_mac *mac) argument 1130 bwn_radio_2057_init(struct bwn_mac *mac) argument 1141 bwn_chantab_radio_2056_upload(struct bwn_mac *mac, const struct bwn_nphy_channeltab_entry_rev3 *e) argument 1217 bwn_radio_2056_setup(struct bwn_mac *mac, const struct bwn_nphy_channeltab_entry_rev3 *e) argument 1402 bwn_radio_2056_rcal(struct bwn_mac *mac) argument 1434 bwn_radio_init2056_pre(struct bwn_mac *mac) argument 1449 bwn_radio_init2056_post(struct bwn_mac *mac) argument 1468 bwn_radio_init2056(struct bwn_mac *mac) argument 1481 bwn_chantab_radio_upload(struct bwn_mac *mac, const struct bwn_nphy_channeltab_entry_rev2 *e) argument 1519 bwn_radio_2055_setup(struct bwn_mac *mac, const struct bwn_nphy_channeltab_entry_rev2 *e) argument 1540 bwn_radio_init2055_pre(struct bwn_mac *mac) argument 1551 bwn_radio_init2055_post(struct bwn_mac *mac) argument 1602 bwn_radio_init2055(struct bwn_mac *mac) argument 1620 bwn_nphy_load_samples(struct bwn_mac *mac, struct bwn_c32 *samples, uint16_t len) argument 1647 bwn_nphy_gen_load_samples(struct bwn_mac *mac, uint32_t freq, uint16_t max, bool test) argument 1690 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 1771 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 1849 bwn_nphy_rssi_select_rev19(struct bwn_mac *mac, uint8_t code, enum n_rssi_type rssi_type) argument 1855 bwn_nphy_rev3_rssi_select(struct bwn_mac *mac, uint8_t code, enum n_rssi_type rssi_type) argument 1944 bwn_nphy_rev2_rssi_select(struct bwn_mac *mac, uint8_t code, enum n_rssi_type rssi_type) argument 2016 bwn_nphy_rssi_select(struct bwn_mac *mac, uint8_t code, enum n_rssi_type type) argument 2028 bwn_nphy_set_rssi_2055_vcm(struct bwn_mac *mac, enum n_rssi_type rssi_type, uint8_t *buf) argument 2057 bwn_nphy_poll_rssi(struct bwn_mac *mac, enum n_rssi_type rssi_type, int32_t *buf, uint8_t nsamp) argument 2146 bwn_nphy_rev3_rssi_cal(struct bwn_mac *mac) argument 2411 bwn_nphy_rev2_rssi_cal(struct bwn_mac *mac, enum n_rssi_type type) argument 2580 bwn_nphy_rssi_cal(struct bwn_mac *mac) argument 2597 bwn_nphy_gain_ctl_workarounds_rev19(struct bwn_mac *mac) argument 2602 bwn_nphy_gain_ctl_workarounds_rev7(struct bwn_mac *mac) argument 2611 bwn_nphy_gain_ctl_workarounds_rev3(struct bwn_mac *mac) argument 2695 bwn_nphy_gain_ctl_workarounds_rev1_2(struct bwn_mac *mac) argument 2805 bwn_nphy_gain_ctl_workarounds(struct bwn_mac *mac) argument 2817 bwn_nphy_workarounds_rev7plus(struct bwn_mac *mac) argument 3262 bwn_nphy_workarounds_rev3plus(struct bwn_mac *mac) argument 3471 bwn_nphy_workarounds_rev1_2(struct bwn_mac *mac) argument 3559 bwn_nphy_workarounds(struct bwn_mac *mac) argument 3595 bwn_nphy_tx_tone(struct bwn_mac *mac, uint32_t freq, uint16_t max_val, bool iqmode, bool dac_test, bool modify_bbmult) argument 3607 bwn_nphy_update_txrx_chain(struct bwn_mac *mac) argument 3635 bwn_nphy_stop_playback(struct bwn_mac *mac) argument 3672 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 3721 bwn_nphy_tx_power_ctrl(struct bwn_mac *mac, bool enable) argument 3858 bwn_nphy_tx_power_fix(struct bwn_mac *mac) argument 3968 bwn_nphy_ipa_internal_tssi_setup(struct bwn_mac *mac) argument 4052 bwn_nphy_tx_power_ctl_idle_tssi(struct bwn_mac *mac) argument 4103 bwn_nphy_tx_prepare_adjusted_power_table(struct bwn_mac *mac) argument 4164 bwn_nphy_tx_power_ctl_setup(struct bwn_mac *mac) argument 4355 bwn_nphy_tx_gain_table_upload(struct bwn_mac *mac) argument 4414 bwn_nphy_pa_override(struct bwn_mac *mac, bool enable) argument 4453 bwn_nphy_tx_lpf_bw(struct bwn_mac *mac) argument 4475 bwn_nphy_rx_iq_est(struct bwn_mac *mac, struct bwn_nphy_iq_est *est, uint16_t samps, uint8_t time, bool wait) argument 4514 bwn_nphy_rx_iq_coeffs(struct bwn_mac *mac, bool write, struct bwn_phy_n_iq_comp *pcomp) argument 4618 bwn_nphy_calc_rx_iq_comp(struct bwn_mac *mac, uint8_t mask) argument 4716 bwn_nphy_tx_iq_workaround(struct bwn_mac *mac) argument 4728 bwn_nphy_spur_workaround(struct bwn_mac *mac) argument 4791 bwn_nphy_tx_pwr_ctrl_coef_setup(struct bwn_mac *mac) argument 4860 bwn_nphy_restore_rssi_cal(struct bwn_mac *mac) argument 4909 bwn_nphy_tx_cal_radio_setup_rev19(struct bwn_mac *mac) argument 4914 bwn_nphy_tx_cal_radio_setup_rev7(struct bwn_mac *mac) argument 4968 bwn_nphy_tx_cal_radio_setup(struct bwn_mac *mac) argument 5067 bwn_nphy_update_tx_cal_ladder(struct bwn_mac *mac, uint16_t core) argument 5089 bwn_nphy_pa_set_tx_dig_filter(struct bwn_mac *mac, uint16_t offset, const int16_t *filter) argument 5101 bwn_nphy_ext_pa_set_tx_dig_filters(struct bwn_mac *mac) argument 5108 bwn_nphy_int_pa_set_tx_dig_filters(struct bwn_mac *mac) argument 5148 bwn_nphy_get_tx_gains(struct bwn_mac *mac) argument 5223 bwn_nphy_tx_cal_phy_cleanup(struct bwn_mac *mac) argument 5252 bwn_nphy_tx_cal_phy_setup(struct bwn_mac *mac) argument 5353 bwn_nphy_save_cal(struct bwn_mac *mac) argument 5423 bwn_nphy_restore_cal(struct bwn_mac *mac) argument 5511 bwn_nphy_cal_tx_iq_lo(struct bwn_mac *mac, struct bwn_nphy_txgains target, bool full, bool mphase) argument 5743 bwn_nphy_reapply_tx_cal_coeffs(struct bwn_mac *mac) argument 5778 bwn_nphy_rev2_cal_rx_iq(struct bwn_mac *mac, struct bwn_nphy_txgains target, uint8_t type, bool debug) argument 5958 bwn_nphy_rev3_cal_rx_iq(struct bwn_mac *mac, struct bwn_nphy_txgains target, uint8_t type, bool debug) argument 5965 bwn_nphy_cal_rx_iq(struct bwn_mac *mac, struct bwn_nphy_txgains target, uint8_t type, bool debug) argument 5978 bwn_nphy_set_rx_core_state(struct bwn_mac *mac, uint8_t mask) argument 6018 bwn_nphy_op_recalc_txpower(struct bwn_mac *mac, bool ignore_tssi) argument 6088 bwn_nphy_update_mimo_config(struct bwn_mac *mac, int32_t preamble) argument 6102 bwn_nphy_bphy_init(struct bwn_mac *mac) argument 6121 bwn_nphy_superswitch_init(struct bwn_mac *mac, bool init) argument 6161 bwn_phy_initn(struct bwn_mac *mac) argument 6367 bwn_chantab_phy_upload(struct bwn_mac *mac, const struct bwn_phy_n_sfo_cfg *e) argument 6379 bwn_nphy_pmu_spur_avoid(struct bwn_mac *mac, bool avoid) argument 6391 bwn_nphy_channel_setup(struct bwn_mac *mac, const struct bwn_phy_n_sfo_cfg *e, struct ieee80211_channel *new_channel) argument 6503 bwn_nphy_set_channel(struct bwn_mac *mac, struct ieee80211_channel *channel, bwn_chan_type_t channel_type) argument 6592 bwn_nphy_op_allocate(struct bwn_mac *mac) argument 6606 bwn_nphy_op_prepare_structs(struct bwn_mac *mac) argument 6656 bwn_nphy_op_free(struct bwn_mac *mac) argument 6666 bwn_nphy_op_init(struct bwn_mac *mac) argument 6671 check_phyreg(struct bwn_mac *mac, uint16_t offset) argument 6688 bwn_nphy_op_maskset(struct bwn_mac *mac, uint16_t reg, uint16_t mask, uint16_t set) argument 6731 bwn_nphy_op_software_rfkill(struct bwn_mac *mac, bool active) argument 6795 bwn_nphy_op_switch_analog(struct bwn_mac *mac, bool on) argument 6822 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-11-stable/sys/dev/bwi/ |
H A D | bwimac.h | 72 #define MOBJ_WRITE_2(mac, objid, ofs, val) \ 73 bwi_memobj_write_2((mac), (objid), (ofs), (val)) 74 #define MOBJ_WRITE_4(mac, objid, ofs, val) \ 75 bwi_memobj_write_4((mac), (objid), (ofs), (val)) 76 #define MOBJ_READ_2(mac, objid, ofs) \ 77 bwi_memobj_read_2((mac), (objid), (ofs)) 78 #define MOBJ_READ_4(mac, objid, ofs) \ 79 bwi_memobj_read_4((mac), (objid), (ofs)) 81 #define MOBJ_SETBITS_4(mac, objid, ofs, bits) \ 82 MOBJ_WRITE_4((mac), (obji [all...] |
H A D | bwiphy.c | 87 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); 136 bwi_phy_write(struct bwi_mac *mac, uint16_t ctrl, uint16_t data) argument 138 struct bwi_softc *sc = mac->mac_sc; 145 bwi_phy_read(struct bwi_mac *mac, uint16_t ctrl) argument 147 struct bwi_softc *sc = mac->mac_sc; 154 bwi_phy_attach(struct bwi_mac *mac) argument 156 struct bwi_softc *sc = mac->mac_sc; 157 struct bwi_phy *phy = &mac->mac_phy; 224 bwi_phy_set_bbp_atten(struct bwi_mac *mac, uint16_ argument 243 bwi_phy_calibrate(struct bwi_mac *mac) argument 265 bwi_tbl_write_2(struct bwi_mac *mac, uint16_t ofs, uint16_t data) argument 277 bwi_tbl_write_4(struct bwi_mac *mac, uint16_t ofs, uint32_t data) argument 292 bwi_nrssi_write(struct bwi_mac *mac, uint16_t ofs, int16_t data) argument 299 bwi_nrssi_read(struct bwi_mac *mac, uint16_t ofs) argument 306 bwi_phy_init_11a(struct bwi_mac *mac) argument 312 bwi_phy_init_11g(struct bwi_mac *mac) argument 427 bwi_phy_init_11b_rev2(struct bwi_mac *mac) argument 435 bwi_phy_init_11b_rev4(struct bwi_mac *mac) argument 504 bwi_phy_init_11b_rev5(struct bwi_mac *mac) argument 606 bwi_phy_init_11b_rev6(struct bwi_mac *mac) argument 747 bwi_phy_config_11g(struct bwi_mac *mac) argument 880 bwi_phy_config_agc(struct bwi_mac *mac) argument 961 bwi_set_gains(struct bwi_mac *mac, const struct bwi_gains *gains) argument [all...] |
H A D | bwirf.c | 78 #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 D | bwimac.c | 118 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-11-stable/sys/dev/cxgb/common/ |
H A D | cxgb_xgmac.c | 39 static inline int macidx(const struct cmac *mac) argument 41 return mac->offset / (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR); 45 * Returns a reasonable A_XGM_RESET_CTRL value for the mac specified. 47 static inline int xgm_reset_ctrl(const struct cmac *mac) argument 49 adapter_t *adap = mac->adapter; 53 int cfg = t3_read_reg(adap, A_XGM_PORT_CFG + mac->offset); 66 static void xaui_serdes_reset(struct cmac *mac) argument 74 adapter_t *adap = mac->adapter; 75 u32 ctrl = A_XGM_SERDES_CTRL0 + mac->offset; 77 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | 96 t3b_pcs_reset(struct cmac *mac) argument 107 t3c_pcs_force_los(struct cmac *mac) argument 140 t3_mac_init(struct cmac *mac) argument 220 t3_mac_reset(struct cmac *mac, int portspeed) argument 314 set_addr_filter(struct cmac *mac, int idx, const u8 *addr) argument 334 t3_mac_set_address(struct cmac *mac, unsigned int idx, u8 addr[6]) argument 358 t3_mac_set_num_ucast(struct cmac *mac, unsigned char n) argument 366 t3_mac_disable_exact_filters(struct cmac *mac) argument 377 t3_mac_enable_exact_filters(struct cmac *mac) argument 410 t3_mac_set_rx_mode(struct cmac *mac, struct t3_rx_mode *rm) argument 463 t3_mac_set_mtu(struct cmac *mac, unsigned int mtu) argument 558 t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) argument 636 t3_mac_enable(struct cmac *mac, int which) argument 688 t3_mac_disable(struct cmac *mac, int which) argument 711 t3b2_mac_watchdog_task(struct cmac *mac) argument 788 t3_mac_update_stats(struct cmac *mac) argument [all...] |
/freebsd-11-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-11-stable/crypto/openssh/ |
H A D | mac.c | 1 /* $OpenBSD: mac.c,v 1.33 2016/07/08 03:44:42 djm Exp $ */ 36 #include "mac.h" 116 mac_setup_by_alg(struct sshmac *mac, const struct macalg *macalg) argument 118 mac->type = macalg->type; 119 if (mac->type == SSH_DIGEST) { 120 if ((mac->hmac_ctx = ssh_hmac_start(macalg->alg)) == NULL) 122 mac->key_len = mac->mac_len = ssh_hmac_bytes(macalg->alg); 124 mac->mac_len = macalg->len / 8; 125 mac 135 mac_setup(struct sshmac *mac, char *name) argument 150 mac_init(struct sshmac *mac) argument 174 mac_compute(struct sshmac *mac, u_int32_t seqno, const u_char *data, int datalen, u_char *digest, size_t dlen) argument 220 mac_check(struct sshmac *mac, u_int32_t seqno, const u_char *data, size_t dlen, const u_char *theirmac, size_t mlen) argument 238 mac_clear(struct sshmac *mac) argument [all...] |
/freebsd-11-stable/crypto/openssl/crypto/pkcs12/ |
H A D | p12_mutl.c | 70 unsigned char *mac, unsigned int *maclen) 83 salt = p12->mac->salt->data; 84 saltlen = p12->mac->salt->length; 85 if (!p12->mac->iter) 88 iter = ASN1_INTEGER_get(p12->mac->iter); 89 if (!(md_type = EVP_get_digestbyobj(p12->mac->dinfo->algor->algorithm))) { 105 || !HMAC_Final(&hmac, mac, maclen)) { 113 /* Verify the mac */ 116 unsigned char mac[EVP_MAX_MD_SIZE]; local 118 if (p12->mac 69 PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen, unsigned char *mac, unsigned int *maclen) argument 138 unsigned char mac[EVP_MAX_MD_SIZE]; local [all...] |
/freebsd-11-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};
|