Home
last modified time | relevance | path

Searched refs:mac (Results 1 – 25 of 1232) sorted by relevance

12345678910>>...50

/freebsd/sys/dev/bwi/
H A Dbwiphy.c87 static void bwi_tbl_write_2(struct bwi_mac *mac, uint16_t, uint16_t);
88 static void bwi_tbl_write_4(struct bwi_mac *mac, uint16_t, uint32_t);
135 bwi_phy_write(struct bwi_mac *mac, uint16_t ctrl, uint16_t data) in bwi_phy_write() argument
137 struct bwi_softc *sc = mac->mac_sc; in bwi_phy_write()
144 bwi_phy_read(struct bwi_mac *mac, uint16_t ctrl) in bwi_phy_read() argument
146 struct bwi_softc *sc = mac->mac_sc; in bwi_phy_read()
153 bwi_phy_attach(struct bwi_mac *mac) in bwi_phy_attach() argument
155 struct bwi_softc *sc = mac->mac_sc; in bwi_phy_attach()
156 struct bwi_phy *phy = &mac->mac_phy; in bwi_phy_attach()
223 bwi_phy_set_bbp_atten(struct bwi_mac *mac, uint16_t bbp_atten) in bwi_phy_set_bbp_atten() argument
[all …]
H A Dbwirf.c78 #define RF_LO_WRITE(mac, lo) bwi_rf_lo_write((mac), (lo)) argument
106 #define SAVE_RF_REG(mac, regs, n) (regs)->rf_##n = RF_READ((mac), 0x##n) argument
107 #define RESTORE_RF_REG(mac, regs, n) RF_WRITE((mac), 0x##n, (regs)->rf_##n) argument
109 #define SAVE_PHY_REG(mac, regs, n) (regs)->phy_##n = PHY_READ((mac), 0x##n) argument
110 #define RESTORE_PHY_REG(mac, regs, n) PHY_WRITE((mac), 0x##n, (regs)->phy_##n) argument
159 bwi_nrssi_11g(struct bwi_mac *mac) in bwi_nrssi_11g() argument
165 val = (int16_t)__SHIFTOUT(PHY_READ(mac, 0x47f), NRSSI_11G_MASK); in bwi_nrssi_11g()
174 bwi_get_rf_lo(struct bwi_mac *mac, uint16_t rf_atten, uint16_t bbp_atten) in bwi_get_rf_lo() argument
181 return &mac->mac_rf.rf_lo[n]; in bwi_get_rf_lo()
185 bwi_rf_lo_isused(struct bwi_mac *mac, const struct bwi_rf_lo *lo) in bwi_rf_lo_isused() argument
[all …]
H A Dbwimac.c118 bwi_tmplt_write_4(struct bwi_mac *mac, uint32_t ofs, uint32_t val) in bwi_tmplt_write_4() argument
120 struct bwi_softc *sc = mac->mac_sc; in bwi_tmplt_write_4()
122 if (mac->mac_flags & BWI_MAC_F_BSWAP) in bwi_tmplt_write_4()
130 bwi_hostflags_write(struct bwi_mac *mac, uint64_t flags) in bwi_hostflags_write() argument
135 MOBJ_WRITE_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_LO, val); in bwi_hostflags_write()
138 MOBJ_WRITE_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_MI, val); in bwi_hostflags_write()
144 bwi_hostflags_read(struct bwi_mac *mac) in bwi_hostflags_read() argument
151 val = MOBJ_READ_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_MI); in bwi_hostflags_read()
154 val = MOBJ_READ_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_LO); in bwi_hostflags_read()
161 bwi_memobj_read_2(struct bwi_mac *mac, uint16_t obj_id, uint16_t ofs0) in bwi_memobj_read_2() argument
[all …]
H A Dbwimac.h73 #define MOBJ_WRITE_2(mac, objid, ofs, val) \ argument
74 bwi_memobj_write_2((mac), (objid), (ofs), (val))
75 #define MOBJ_WRITE_4(mac, objid, ofs, val) \ argument
76 bwi_memobj_write_4((mac), (objid), (ofs), (val))
77 #define MOBJ_READ_2(mac, objid, ofs) \ argument
78 bwi_memobj_read_2((mac), (objid), (ofs))
79 #define MOBJ_READ_4(mac, objid, ofs) \ argument
80 bwi_memobj_read_4((mac), (objid), (ofs))
82 #define MOBJ_SETBITS_4(mac, objid, ofs, bits) \ argument
83 MOBJ_WRITE_4((mac), (objid), (ofs), \
[all …]
/freebsd/sys/gnu/dev/bwn/phy_n/
H A Dif_bwn_phy_n_core.c162 static inline bool bwn_nphy_ipa(struct bwn_mac *mac) in bwn_nphy_ipa() argument
164 bwn_band_t band = bwn_current_band(mac); in bwn_nphy_ipa()
165 return ((mac->mac_phy.phy_n->ipa2g_on && band == BWN_BAND_2G) || in bwn_nphy_ipa()
166 (mac->mac_phy.phy_n->ipa5g_on && band == BWN_BAND_5G)); in bwn_nphy_ipa()
170 static uint8_t bwn_nphy_get_rx_core_state(struct bwn_mac *mac) in bwn_nphy_get_rx_core_state() argument
172 return (BWN_PHY_READ(mac, BWN_NPHY_RFSEQCA) & BWN_NPHY_RFSEQCA_RXEN) >> in bwn_nphy_get_rx_core_state()
181 static void bwn_nphy_force_rf_sequence(struct bwn_mac *mac, in bwn_nphy_force_rf_sequence() argument
193 uint16_t seq_mode = BWN_PHY_READ(mac, BWN_NPHY_RFSEQMODE); in bwn_nphy_force_rf_sequence()
196 BWN_WARNPRINTF(mac->mac_sc, "%s: seq %d > max", __func__, seq); in bwn_nphy_force_rf_sequence()
199 BWN_PHY_SET(mac, BWN_NPHY_RFSEQMODE, in bwn_nphy_force_rf_sequence()
[all …]
H A Dif_bwn_phy_n_tables.c3375 uint32_t bwn_ntab_read(struct bwn_mac *mac, uint32_t offset) in bwn_ntab_read() argument
3387 BWN_PHY_WRITE(mac, BWN_NPHY_TABLE_ADDR, offset); in bwn_ntab_read()
3388 value = BWN_PHY_READ(mac, BWN_NPHY_TABLE_DATALO) & 0xFF; in bwn_ntab_read()
3391 BWN_PHY_WRITE(mac, BWN_NPHY_TABLE_ADDR, offset); in bwn_ntab_read()
3392 value = BWN_PHY_READ(mac, BWN_NPHY_TABLE_DATALO); in bwn_ntab_read()
3395 BWN_PHY_WRITE(mac, BWN_NPHY_TABLE_ADDR, offset); in bwn_ntab_read()
3396 value = BWN_PHY_READ(mac, BWN_NPHY_TABLE_DATALO); in bwn_ntab_read()
3397 value |= BWN_PHY_READ(mac, BWN_NPHY_TABLE_DATAHI) << 16; in bwn_ntab_read()
3407 void bwn_ntab_read_bulk(struct bwn_mac *mac, uint32_t offset, in bwn_ntab_read_bulk() argument
3410 struct bwn_softc *sc = mac->mac_sc; in bwn_ntab_read_bulk()
[all …]
/freebsd/sys/dev/bwn/
H A Dif_bwn_phy_g.c124 static uint16_t bwn_phy_g_txctl(struct bwn_mac *mac);
125 static int bwn_phy_shm_tssi_read(struct bwn_mac *mac, uint16_t shm_offset);
126 static void bwn_phy_g_setatt(struct bwn_mac *mac, int *bbattp, int *rfattp);
127 static void bwn_phy_lock(struct bwn_mac *mac);
128 static void bwn_phy_unlock(struct bwn_mac *mac);
129 static void bwn_rf_lock(struct bwn_mac *mac);
130 static void bwn_rf_unlock(struct bwn_mac *mac);
140 bwn_has_hwpctl(struct bwn_mac *mac) in bwn_has_hwpctl() argument
143 if (mac->mac_phy.hwpctl == 0 || mac->mac_phy.use_hwpctl == NULL) in bwn_has_hwpctl()
145 return (mac->mac_phy.use_hwpctl(mac)); in bwn_has_hwpctl()
[all …]
H A Dif_bwn_phy_lp.c380 bwn_phy_lp_init_pre(struct bwn_mac *mac) in bwn_phy_lp_init_pre() argument
382 struct bwn_phy *phy = &mac->mac_phy; in bwn_phy_lp_init_pre()
389 bwn_phy_lp_init(struct bwn_mac *mac) in bwn_phy_lp_init() argument
408 struct bwn_phy_lp *plp = &mac->mac_phy.phy_lp; in bwn_phy_lp_init()
409 struct bwn_softc *sc = mac->mac_sc; in bwn_phy_lp_init()
422 if ((error = bwn_phy_lp_readsprom(mac))) in bwn_phy_lp_init()
425 bwn_phy_lp_bbinit(mac); in bwn_phy_lp_init()
428 BWN_PHY_SET(mac, BWN_PHY_4WIRECTL, 0x2); in bwn_phy_lp_init()
430 BWN_PHY_MASK(mac, BWN_PHY_4WIRECTL, 0xfffd); in bwn_phy_lp_init()
433 if (mac->mac_phy.rf_ver == 0x2062) { in bwn_phy_lp_init()
[all …]
H A Dif_bwn_phy_n.c93 bwn_phy_n_attach(struct bwn_mac *mac) in bwn_phy_n_attach() argument
97 return bwn_nphy_op_allocate(mac); in bwn_phy_n_attach()
99 device_printf(mac->mac_sc->sc_dev, in bwn_phy_n_attach()
107 bwn_phy_n_detach(struct bwn_mac *mac) in bwn_phy_n_detach() argument
111 return bwn_nphy_op_free(mac); in bwn_phy_n_detach()
116 bwn_phy_n_prepare_hw(struct bwn_mac *mac) in bwn_phy_n_prepare_hw() argument
120 return (bwn_nphy_op_prepare_structs(mac)); in bwn_phy_n_prepare_hw()
127 bwn_phy_n_init_pre(struct bwn_mac *mac) in bwn_phy_n_init_pre() argument
134 bwn_phy_n_init(struct bwn_mac *mac) in bwn_phy_n_init() argument
137 return bwn_nphy_op_init(mac); in bwn_phy_n_init()
[all …]
H A Dif_bwn.c537 struct bwn_mac *mac; in bwn_attach() local
549 mac = NULL; in bwn_attach()
615 mac = malloc(sizeof(*mac), M_DEVBUF, M_WAITOK | M_ZERO); in bwn_attach()
616 mac->mac_sc = sc; in bwn_attach()
617 mac->mac_status = BWN_MAC_STATUS_UNINIT; in bwn_attach()
619 mac->mac_flags |= BWN_MAC_FLAG_BADFRAME_PREEMP; in bwn_attach()
621 TASK_INIT(&mac->mac_hwreset, 0, bwn_hwreset, mac); in bwn_attach()
622 NET_TASK_INIT(&mac in bwn_attach()
838 bwn_phy_detach(struct bwn_mac * mac) bwn_phy_detach() argument
849 struct bwn_mac *mac = sc->sc_curmac; bwn_detach() local
979 struct bwn_mac *mac = sc->sc_curmac; bwn_start() local
1029 struct bwn_mac *mac = sc->sc_curmac; bwn_tx_isfull() local
1057 struct bwn_mac *mac = sc->sc_curmac; bwn_tx_start() local
1077 bwn_pio_tx_start(struct bwn_mac * mac,struct ieee80211_node * ni,struct mbuf ** mp) bwn_pio_tx_start() argument
1151 bwn_pio_select(struct bwn_mac * mac,uint8_t prio) bwn_pio_select() argument
1172 bwn_dma_tx_start(struct bwn_mac * mac,struct ieee80211_node * ni,struct mbuf ** mp) bwn_dma_tx_start() argument
1282 bwn_attach_core(struct bwn_mac * mac) bwn_attach_core() argument
1498 bwn_reset_core(struct bwn_mac * mac,int g_mode) bwn_reset_core() argument
1560 bwn_phy_getinfo(struct bwn_mac * mac,int gmode) bwn_phy_getinfo() argument
1623 bwn_chiptest(struct bwn_mac * mac) bwn_chiptest() argument
1667 bwn_setup_channels(struct bwn_mac * mac,int have_bg,int have_a) bwn_setup_channels() argument
1703 bwn_shm_read_4(struct bwn_mac * mac,uint16_t way,uint16_t offset) bwn_shm_read_4() argument
1729 bwn_shm_read_2(struct bwn_mac * mac,uint16_t way,uint16_t offset) bwn_shm_read_2() argument
1753 bwn_shm_ctlword(struct bwn_mac * mac,uint16_t way,uint16_t offset) bwn_shm_ctlword() argument
1765 bwn_shm_write_4(struct bwn_mac * mac,uint16_t way,uint16_t offset,uint32_t value) bwn_shm_write_4() argument
1788 bwn_shm_write_2(struct bwn_mac * mac,uint16_t way,uint16_t offset,uint16_t value) bwn_shm_write_2() argument
1827 struct bwn_mac *mac = sc->sc_curmac; bwn_raw_xmit() local
1860 struct bwn_mac *mac; bwn_updateslot() local
1881 struct bwn_mac *mac = sc->sc_curmac; bwn_update_promisc() local
1902 struct bwn_mac *mac = sc->sc_curmac; bwn_wme_update() local
1927 struct bwn_mac *mac; bwn_scan_start() local
1944 struct bwn_mac *mac; bwn_scan_end() local
1960 struct bwn_mac *mac = sc->sc_curmac; bwn_set_channel() local
2056 struct bwn_mac *mac; bwn_init() local
2094 struct bwn_mac *mac = sc->sc_curmac; bwn_stop() local
2174 bwn_core_forceclk(struct bwn_mac * mac,bool force) bwn_core_forceclk() argument
2202 bwn_core_init(struct bwn_mac * mac) bwn_core_init() argument
2332 bwn_core_start(struct bwn_mac * mac) bwn_core_start() argument
2358 bwn_core_exit(struct bwn_mac * mac) bwn_core_exit() argument
2385 bwn_bt_disable(struct bwn_mac * mac) bwn_bt_disable() argument
2394 bwn_chip_init(struct bwn_mac * mac) bwn_chip_init() argument
2485 bwn_hf_read(struct bwn_mac * mac) bwn_hf_read() argument
2498 bwn_hf_write(struct bwn_mac * mac,uint64_t value) bwn_hf_write() argument
2510 bwn_set_txretry(struct bwn_mac * mac,int s,int l) bwn_set_txretry() argument
2518 bwn_rate_init(struct bwn_mac * mac) bwn_rate_init() argument
2548 bwn_rate_write(struct bwn_mac * mac,uint16_t rate,int ofdm) bwn_rate_write() argument
2608 bwn_set_phytxctl(struct bwn_mac * mac) bwn_set_phytxctl() argument
2620 bwn_pio_init(struct bwn_mac * mac) bwn_pio_init() argument
2637 bwn_pio_set_txqueue(struct bwn_mac * mac,struct bwn_pio_txqueue * tq,int index) bwn_pio_set_txqueue() argument
2665 bwn_pio_idx2base(struct bwn_mac * mac,int index) bwn_pio_idx2base() argument
2698 bwn_pio_setupqueue_rx(struct bwn_mac * mac,struct bwn_pio_rxqueue * prq,int index) bwn_pio_setupqueue_rx() argument
2725 bwn_pio_read_2(struct bwn_mac * mac,struct bwn_pio_txqueue * tq,uint16_t offset) bwn_pio_read_2() argument
2733 bwn_dma_rxdirectfifo(struct bwn_mac * mac,int idx,uint8_t enable) bwn_dma_rxdirectfifo() argument
2800 bwn_dma_init(struct bwn_mac * mac) bwn_dma_init() argument
2815 bwn_dma_ringsetup(struct bwn_mac * mac,int controller_index,int for_tx) bwn_dma_ringsetup() argument
3223 struct bwn_mac *mac = dr->dr_mac; bwn_dma_allocringmemory() local
3268 struct bwn_mac *mac; bwn_dma_setup() local
3370 struct bwn_mac *mac = dr->dr_mac; bwn_dma_free_descbufs() local
3400 bwn_dma_tx_reset(struct bwn_mac * mac,uint16_t base,int type) bwn_dma_tx_reset() argument
3459 bwn_dma_rx_reset(struct bwn_mac * mac,uint16_t base,int type) bwn_dma_rx_reset() argument
3538 bwn_wme_init(struct bwn_mac * mac) bwn_wme_init() argument
3550 bwn_spu_setdelay(struct bwn_mac * mac,int idle) bwn_spu_setdelay() argument
3566 bwn_bt_enable(struct bwn_mac * mac) bwn_bt_enable() argument
3587 bwn_set_macaddr(struct bwn_mac * mac) bwn_set_macaddr() argument
3596 bwn_clear_keys(struct bwn_mac * mac) bwn_clear_keys() argument
3615 bwn_crypt_init(struct bwn_mac * mac) bwn_crypt_init() argument
3630 bwn_chip_exit(struct bwn_mac * mac) bwn_chip_exit() argument
3636 bwn_fw_fillinfo(struct bwn_mac * mac) bwn_fw_fillinfo() argument
3658 bwn_gpio_control(struct bwn_mac * mac,uint32_t pins) bwn_gpio_control() argument
3691 bwn_gpio_init(struct bwn_mac * mac) bwn_gpio_init() argument
3717 bwn_fw_loadinitvals(struct bwn_mac * mac) bwn_fw_loadinitvals() argument
3743 bwn_phy_init(struct bwn_mac * mac) bwn_phy_init() argument
3773 bwn_set_txantenna(struct bwn_mac * mac,int antenna) bwn_set_txantenna() argument
3791 bwn_set_opmode(struct bwn_mac * mac) bwn_set_opmode() argument
3837 bwn_dummy_transmission(struct bwn_mac * mac,int ofdm,int paon) bwn_dummy_transmission() argument
3920 bwn_ram_write(struct bwn_mac * mac,uint16_t offset,uint32_t val) bwn_ram_write() argument
3936 bwn_mac_suspend(struct bwn_mac * mac) bwn_mac_suspend() argument
3973 bwn_mac_enable(struct bwn_mac * mac) bwn_mac_enable() argument
4004 bwn_psctl(struct bwn_mac * mac,uint32_t flags) bwn_psctl() argument
4035 bwn_fw_gets(struct bwn_mac * mac,enum bwn_fwtype type) bwn_fw_gets() argument
4268 bwn_fw_get(struct bwn_mac * mac,enum bwn_fwtype type,const char * name,struct bwn_fwfile * bfw) bwn_fw_get() argument
4325 bwn_release_firmware(struct bwn_mac * mac) bwn_release_firmware() argument
4345 bwn_fw_loaducode(struct bwn_mac * mac) bwn_fw_loaducode() argument
4487 bwn_fwcaps_read(struct bwn_mac * mac) bwn_fwcaps_read() argument
4496 bwn_fwinitvals_write(struct bwn_mac * mac,const struct bwn_fwinitvals * ivals,size_t count,size_t array_size) bwn_fwinitvals_write() argument
4549 bwn_switch_channel(struct bwn_mac * mac,int chan) bwn_switch_channel() argument
4599 bwn_wme_load(struct bwn_mac * mac) bwn_wme_load() argument
4615 bwn_wme_loadparams(struct bwn_mac * mac,const struct wmeParams * p,uint16_t shm_offset) bwn_wme_loadparams() argument
4658 bwn_mac_write_bssid(struct bwn_mac * mac) bwn_mac_write_bssid() argument
4680 bwn_mac_setfilter(struct bwn_mac * mac,uint16_t offset,const uint8_t * macaddr) bwn_mac_setfilter() argument
4704 bwn_key_dowrite(struct bwn_mac * mac,uint8_t index,uint8_t algorithm,const uint8_t * key,size_t key_len,const uint8_t * mac_addr) bwn_key_dowrite() argument
4730 bwn_key_macwrite(struct bwn_mac * mac,uint8_t index,const uint8_t * addr) bwn_key_macwrite() argument
4766 bwn_key_write(struct bwn_mac * mac,uint8_t index,uint8_t algorithm,const uint8_t * key) bwn_key_write() argument
4786 bwn_phy_exit(struct bwn_mac * mac) bwn_phy_exit() argument
4795 bwn_dma_free(struct bwn_mac * mac) bwn_dma_free() argument
4812 bwn_core_stop(struct bwn_mac * mac) bwn_core_stop() argument
4837 struct bwn_mac *mac; bwn_switch_band() local
4905 bwn_rf_turnon(struct bwn_mac * mac) bwn_rf_turnon() argument
4917 bwn_rf_turnoff(struct bwn_mac * mac) bwn_rf_turnoff() argument
4932 bwn_phy_reset(struct bwn_mac * mac) bwn_phy_reset() argument
4965 struct bwn_mac *mac = sc->sc_curmac; bwn_newstate() local
5015 bwn_set_pretbtt(struct bwn_mac * mac) bwn_set_pretbtt() argument
5032 struct bwn_mac *mac = arg; bwn_intr() local
5076 struct bwn_mac *mac = arg; bwn_intrtask() local
5186 bwn_restart(struct bwn_mac * mac,const char * msg) bwn_restart() argument
5199 bwn_intr_ucode_debug(struct bwn_mac * mac) bwn_intr_ucode_debug() argument
5231 bwn_intr_tbtt_indication(struct bwn_mac * mac) bwn_intr_tbtt_indication() argument
5243 bwn_intr_atim_end(struct bwn_mac * mac) bwn_intr_atim_end() argument
5254 bwn_intr_beacon(struct bwn_mac * mac) bwn_intr_beacon() argument
5299 bwn_intr_pmq(struct bwn_mac * mac) bwn_intr_pmq() argument
5312 bwn_intr_noise(struct bwn_mac * mac) bwn_intr_noise() argument
5366 struct bwn_mac *mac = prq->prq_mac; bwn_pio_rx() local
5406 bwn_intr_txeof(struct bwn_mac * mac) bwn_intr_txeof() argument
5460 struct bwn_mac *mac = arg; bwn_hwreset() local
5489 bwn_handle_fwpanic(struct bwn_mac * mac) bwn_handle_fwpanic() argument
5502 bwn_load_beacon0(struct bwn_mac * mac) bwn_load_beacon0() argument
5509 bwn_load_beacon1(struct bwn_mac * mac) bwn_load_beacon1() argument
5516 bwn_jssi_read(struct bwn_mac * mac) bwn_jssi_read() argument
5528 bwn_noise_gensample(struct bwn_mac * mac) bwn_noise_gensample() argument
5561 struct bwn_mac *mac = dr->dr_mac; bwn_dma_rxeof() local
5639 bwn_handle_txeof(struct bwn_mac * mac,const struct bwn_txstatus * status) bwn_handle_txeof() argument
5669 struct bwn_mac *mac = prq->prq_mac; bwn_pio_rxeof() local
5798 struct bwn_mac *mac = dr->dr_mac; bwn_dma_newbuf() local
5922 bwn_rx_rssi_calc(struct bwn_mac * mac,uint8_t in_rssi,int ofdm,int adjust_2053,int adjust_2050) bwn_rx_rssi_calc() argument
5974 bwn_rxeof(struct bwn_mac * mac,struct mbuf * m,const void * _rxhdr) bwn_rxeof() argument
6136 bwn_dma_handle_txeof(struct bwn_mac * mac,const struct bwn_txstatus * status) bwn_dma_handle_txeof() argument
6191 bwn_pio_handle_txeof(struct bwn_mac * mac,const struct bwn_txstatus * status) bwn_pio_handle_txeof() argument
6223 bwn_phy_txpower_check(struct bwn_mac * mac,uint32_t flags) bwn_phy_txpower_check() argument
6320 bwn_set_txhdr_phyctl1(struct bwn_mac * mac,uint8_t bitrate) bwn_set_txhdr_phyctl1() argument
6391 bwn_set_txhdr(struct bwn_mac * mac,struct ieee80211_node * ni,struct mbuf * m,struct bwn_txhdr * txhdr,uint16_t cookie) bwn_set_txhdr() argument
6687 bwn_antenna_sanitize(struct bwn_mac * mac,uint8_t n) bwn_antenna_sanitize() argument
6745 bwn_pio_write_multi_4(struct bwn_mac * mac,struct bwn_pio_txqueue * tq,uint32_t ctl,const void * _data,int len) bwn_pio_write_multi_4() argument
6782 bwn_pio_write_4(struct bwn_mac * mac,struct bwn_pio_txqueue * tq,uint16_t offset,uint32_t value) bwn_pio_write_4() argument
6790 bwn_pio_write_multi_2(struct bwn_mac * mac,struct bwn_pio_txqueue * tq,uint16_t ctl,const void * _data,int len) bwn_pio_write_multi_2() argument
6811 bwn_pio_write_mbuf_2(struct bwn_mac * mac,struct bwn_pio_txqueue * tq,uint16_t ctl,struct mbuf * m0) bwn_pio_write_mbuf_2() argument
6844 bwn_set_slot_time(struct bwn_mac * mac,uint16_t time) bwn_set_slot_time() argument
6859 bwn_dma_select(struct bwn_mac * mac,uint8_t prio) bwn_dma_select() argument
6899 bwn_pio_parse_cookie(struct bwn_mac * mac,uint16_t cookie,struct bwn_pio_txpkt ** pack) bwn_pio_parse_cookie() argument
6938 struct bwn_mac *mac = arg; bwn_txpwr() local
6954 bwn_task_15s(struct bwn_mac * mac) bwn_task_15s() argument
6973 bwn_task_30s(struct bwn_mac * mac) bwn_task_30s() argument
6985 bwn_task_60s(struct bwn_mac * mac) bwn_task_60s() argument
6996 struct bwn_mac *mac = arg; bwn_tasks() local
7014 bwn_plcp_get_ofdmrate(struct bwn_mac * mac,struct bwn_plcp6 * plcp,uint8_t a) bwn_plcp_get_ofdmrate() argument
7044 bwn_plcp_get_cckrate(struct bwn_mac * mac,struct bwn_plcp6 * plcp) bwn_plcp_get_cckrate() argument
7063 bwn_rx_radiotap(struct bwn_mac * mac,struct mbuf * m,const struct bwn_rxhdr4 * rxhdr,struct bwn_plcp6 * plcp,int rate,int rssi,int noise) bwn_rx_radiotap() argument
7105 bwn_tsf_read(struct bwn_mac * mac,uint64_t * tsf) bwn_tsf_read() argument
7120 bwn_dma_attach(struct bwn_mac * mac) bwn_dma_attach() argument
7301 bwn_dma_parse_cookie(struct bwn_mac * mac,const struct bwn_txstatus * status,uint16_t cookie,int * slot) bwn_dma_parse_cookie() argument
7350 bwn_dma_stop(struct bwn_mac * mac) bwn_dma_stop() argument
7377 bwn_pio_stop(struct bwn_mac * mac) bwn_pio_stop() argument
7393 bwn_led_attach(struct bwn_mac * mac) bwn_led_attach() argument
7480 bwn_led_newstate(struct bwn_mac * mac,enum ieee80211_state nstate) bwn_led_newstate() argument
7541 bwn_led_event(struct bwn_mac * mac,int event) bwn_led_event() argument
7577 bwn_led_blink_start(struct bwn_mac * mac,int on_dur,int off_dur) bwn_led_blink_start() argument
7601 struct bwn_mac *mac = arg; bwn_led_blink_next() local
7616 struct bwn_mac *mac = arg; bwn_led_blink_end() local
7652 struct bwn_mac *mac = sc->sc_curmac; bwn_rfswitch() local
7699 struct bwn_mac *mac; bwn_sysctl_node() local
[all...]
H A Dif_bwn_phy_g.h33 extern int bwn_phy_g_attach(struct bwn_mac *mac);
34 extern void bwn_phy_g_detach(struct bwn_mac *mac);
35 extern int bwn_phy_g_prepare_hw(struct bwn_mac *mac);
36 extern void bwn_phy_g_init_pre(struct bwn_mac *mac);
37 extern int bwn_phy_g_init(struct bwn_mac *mac);
38 extern void bwn_phy_g_exit(struct bwn_mac *mac);
39 extern uint16_t bwn_phy_g_read(struct bwn_mac *mac, uint16_t reg);
40 extern void bwn_phy_g_write(struct bwn_mac *mac, uint16_t reg, uint16_t value);
41 extern uint16_t bwn_phy_g_rf_read(struct bwn_mac *mac, uint16_t reg);
42 extern void bwn_phy_g_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value);
[all …]
H A Dif_bwn_phy_n.h33 extern int bwn_phy_n_attach(struct bwn_mac *mac);
34 extern void bwn_phy_n_detach(struct bwn_mac *mac);
35 extern int bwn_phy_n_prepare_hw(struct bwn_mac *mac);
36 extern void bwn_phy_n_init_pre(struct bwn_mac *mac);
37 extern int bwn_phy_n_init(struct bwn_mac *mac);
38 extern void bwn_phy_n_exit(struct bwn_mac *mac);
39 extern uint16_t bwn_phy_n_read(struct bwn_mac *mac, uint16_t reg);
40 extern void bwn_phy_n_write(struct bwn_mac *mac, uint16_t reg, uint16_t value);
41 extern uint16_t bwn_phy_n_rf_read(struct bwn_mac *mac, uint16_t reg);
42 extern void bwn_phy_n_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value);
[all …]
H A Dif_bwn_phy_common.c88 bwn_mac_switch_freq(struct bwn_mac *mac, bhnd_pmu_spuravoid spurmode) in bwn_mac_switch_freq() argument
90 struct bwn_softc *sc = mac->mac_sc; in bwn_mac_switch_freq()
96 BWN_WRITE_2(mac, BWN_TSF_CLK_FRAC_LOW, 0x1862); in bwn_mac_switch_freq()
97 BWN_WRITE_2(mac, BWN_TSF_CLK_FRAC_HIGH, 0x6); in bwn_mac_switch_freq()
100 BWN_WRITE_2(mac, BWN_TSF_CLK_FRAC_LOW, 0x3e70); in bwn_mac_switch_freq()
101 BWN_WRITE_2(mac, BWN_TSF_CLK_FRAC_HIGH, 0x6); in bwn_mac_switch_freq()
104 BWN_WRITE_2(mac, BWN_TSF_CLK_FRAC_LOW, 0x6666); in bwn_mac_switch_freq()
105 BWN_WRITE_2(mac, BWN_TSF_CLK_FRAC_HIGH, 0x6); in bwn_mac_switch_freq()
117 BWN_WRITE_2(mac, BWN_TSF_CLK_FRAC_LOW, 0x2082); in bwn_mac_switch_freq()
118 BWN_WRITE_2(mac, BWN_TSF_CLK_FRAC_HIGH, 0x8); in bwn_mac_switch_freq()
[all …]
H A Dif_bwnvar.h58 #define BWN_ISOLDFMT(mac) ((mac)->mac_fw.rev <= 351) argument
61 #define BWN_HDRSIZE(mac) bwn_tx_hdrsize(mac) argument
68 #define BWN_READ_2(mac, o) \ argument
69 (bus_read_2((mac)->mac_sc->sc_mem_res, (o)))
70 #define BWN_READ_4(mac, o) \ argument
71 (bus_read_4((mac)->mac_sc->sc_mem_res, (o)))
72 #define BWN_WRITE_2(mac, o, v) \ argument
73 (bus_write_2((mac)->mac_sc->sc_mem_res, (o), (v)))
74 #define BWN_WRITE_2_F(mac, o, v) do { \ argument
75 (BWN_WRITE_2(mac, o, v)); \
[all …]
/freebsd/sys/dev/cxgb/common/
H A Dcxgb_xgmac.c38 static inline int macidx(const struct cmac *mac) in macidx() argument
40 return mac->offset / (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR); in macidx()
46 static inline int xgm_reset_ctrl(const struct cmac *mac) in xgm_reset_ctrl() argument
48 adapter_t *adap = mac->adapter; in xgm_reset_ctrl()
52 int cfg = t3_read_reg(adap, A_XGM_PORT_CFG + mac->offset); in xgm_reset_ctrl()
65 static void xaui_serdes_reset(struct cmac *mac) in xaui_serdes_reset() argument
73 adapter_t *adap = mac->adapter; in xaui_serdes_reset()
74 u32 ctrl = A_XGM_SERDES_CTRL0 + mac->offset; in xaui_serdes_reset()
76 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | in xaui_serdes_reset()
95 void t3b_pcs_reset(struct cmac *mac) in t3b_pcs_reset() argument
[all …]
H A Dcxgb_vsc7323.c284 const struct mac_stats *t3_vsc7323_update_stats(struct cmac *mac) in t3_vsc7323_update_stats() argument
290 ret = t3_elmr_blk_read(mac->adapter, in t3_vsc7323_update_stats()
291 ELMR_STAT(mac->ext_port, STATS0_START), in t3_vsc7323_update_stats()
294 ret = t3_elmr_blk_read(mac->adapter, in t3_vsc7323_update_stats()
295 ELMR_STAT(mac->ext_port, STATS1_START), in t3_vsc7323_update_stats()
303 rx_ucast = mac->stats.rx_frames - mac->stats.rx_mcast_frames - in t3_vsc7323_update_stats()
304 mac->stats.rx_bcast_frames; in t3_vsc7323_update_stats()
306 tx_ucast = mac->stats.tx_frames - mac->stats.tx_mcast_frames - in t3_vsc7323_update_stats()
307 mac->stats.tx_bcast_frames; in t3_vsc7323_update_stats()
310 #define RMON_UPDATE(mac, name, hw_stat) \ in t3_vsc7323_update_stats() argument
[all …]
/freebsd/crypto/openssl/crypto/evp/
H A Dmac_meth.c21 EVP_MAC *mac = vmac; in evp_mac_up_ref() local
24 CRYPTO_UP_REF(&mac->refcnt, &ref, mac->lock); in evp_mac_up_ref()
30 EVP_MAC *mac = vmac; in evp_mac_free() local
33 if (mac == NULL) in evp_mac_free()
36 CRYPTO_DOWN_REF(&mac->refcnt, &ref, mac->lock); in evp_mac_free()
39 OPENSSL_free(mac->type_name); in evp_mac_free()
40 ossl_provider_free(mac->prov); in evp_mac_free()
41 CRYPTO_THREAD_lock_free(mac->lock); in evp_mac_free()
42 OPENSSL_free(mac); in evp_mac_free()
47 EVP_MAC *mac = NULL; in evp_mac_new() local
[all …]
/freebsd/crypto/openssh/
H A Dmac.c106 mac_setup_by_alg(struct sshmac *mac, const struct macalg *macalg) in mac_setup_by_alg() argument
108 mac->type = macalg->type; in mac_setup_by_alg()
109 if (mac->type == SSH_DIGEST) { in mac_setup_by_alg()
110 if ((mac->hmac_ctx = ssh_hmac_start(macalg->alg)) == NULL) in mac_setup_by_alg()
112 mac->key_len = mac->mac_len = ssh_hmac_bytes(macalg->alg); in mac_setup_by_alg()
114 mac->mac_len = macalg->len / 8; in mac_setup_by_alg()
115 mac->key_len = macalg->key_len / 8; in mac_setup_by_alg()
116 mac->umac_ctx = NULL; in mac_setup_by_alg()
119 mac->mac_len = macalg->truncatebits / 8; in mac_setup_by_alg()
120 mac->etm = macalg->etm; in mac_setup_by_alg()
[all …]
/freebsd/crypto/openssl/test/ssl-tests/
H A D19-mac-then-encrypt.cnf5 test-0 = 0-disable-encrypt-then-mac-server-sha
6 test-1 = 1-disable-encrypt-then-mac-client-sha
7 test-2 = 2-disable-encrypt-then-mac-both-sha
8 test-3 = 3-disable-encrypt-then-mac-server-sha2
9 test-4 = 4-disable-encrypt-then-mac-client-sha2
10 test-5 = 5-disable-encrypt-then-mac-both-sha2
11 test-6 = 6-disable-encrypt-then-mac-server-sha-tls1
12 test-7 = 7-disable-encrypt-then-mac-client-sha-tls1
13 test-8 = 8-disable-encrypt-then-mac-both-sha-tls1
16 [0-disable-encrypt-then-mac-server-sha]
[all …]
/freebsd/lib/libc/posix1e/
H A Dmac.c293 mac_free(struct mac *mac) in mac_free() argument
296 if (mac->m_string != NULL) in mac_free()
297 free(mac->m_string); in mac_free()
298 free(mac); in mac_free()
304 mac_from_text(struct mac **mac, const char *text) in mac_from_text() argument
307 *mac = (struct mac *) malloc(sizeof(**mac)); in mac_from_text()
308 if (*mac == NULL) in mac_from_text()
311 (*mac)->m_string = strdup(text); in mac_from_text()
312 if ((*mac)->m_string == NULL) { in mac_from_text()
313 free(*mac); in mac_from_text()
[all …]
/freebsd/sys/security/mac/
H A Dmac_syscalls.c77 struct mac *mac_p, int follow);
79 struct mac *mac_p, int follow);
85 struct mac mac; in sys___mac_get_pid() local
90 error = copyin(uap->mac_p, &mac, sizeof(mac)); in sys___mac_get_pid()
94 error = mac_check_structmac_consistent(&mac); in sys___mac_get_pid()
110 elements = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK); in sys___mac_get_pid()
111 error = copyinstr(mac.m_string, elements, mac.m_buflen, NULL); in sys___mac_get_pid()
118 buffer = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); in sys___mac_get_pid()
120 buffer, mac.m_buflen); in sys___mac_get_pid()
122 error = copyout(buffer, mac.m_string, strlen(buffer)+1); in sys___mac_get_pid()
[all …]
/freebsd/sys/dev/e1000/
H A De1000_api.c48 if (hw->mac.ops.init_params) { in e1000_init_mac_params()
49 ret_val = hw->mac.ops.init_params(hw); in e1000_init_mac_params()
152 struct e1000_mac_info *mac = &hw->mac; in e1000_set_mac_type() local
159 mac->type = e1000_82542; in e1000_set_mac_type()
163 mac->type = e1000_82543; in e1000_set_mac_type()
169 mac->type = e1000_82544; in e1000_set_mac_type()
176 mac->type = e1000_82540; in e1000_set_mac_type()
180 mac->type = e1000_82545; in e1000_set_mac_type()
185 mac->type = e1000_82545_rev_3; in e1000_set_mac_type()
190 mac->type = e1000_82546; in e1000_set_mac_type()
[all …]
H A De1000_mac.c49 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_ops_generic() local
53 mac->ops.init_params = e1000_null_ops_generic; in e1000_init_mac_ops_generic()
54 mac->ops.init_hw = e1000_null_ops_generic; in e1000_init_mac_ops_generic()
55 mac->ops.reset_hw = e1000_null_ops_generic; in e1000_init_mac_ops_generic()
56 mac->ops.setup_physical_interface = e1000_null_ops_generic; in e1000_init_mac_ops_generic()
57 mac->ops.get_bus_info = e1000_null_ops_generic; in e1000_init_mac_ops_generic()
58 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pcie; in e1000_init_mac_ops_generic()
59 mac->ops.read_mac_addr = e1000_read_mac_addr_generic; in e1000_init_mac_ops_generic()
60 mac->ops.config_collision_dist = e1000_config_collision_dist_generic; in e1000_init_mac_ops_generic()
61 mac->ops.clear_hw_cntrs = e1000_null_mac_generic; in e1000_init_mac_ops_generic()
[all …]
/freebsd/sys/dev/ixgbe/
H A Dixgbe_x540.c61 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X540() local
89 mac->ops.reset_hw = ixgbe_reset_hw_X540; in ixgbe_init_ops_X540()
90 mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_gen2; in ixgbe_init_ops_X540()
91 mac->ops.get_media_type = ixgbe_get_media_type_X540; in ixgbe_init_ops_X540()
92 mac->ops.get_supported_physical_layer = in ixgbe_init_ops_X540()
94 mac->ops.read_analog_reg8 = NULL; in ixgbe_init_ops_X540()
95 mac->ops.write_analog_reg8 = NULL; in ixgbe_init_ops_X540()
96 mac->ops.start_hw = ixgbe_start_hw_X540; in ixgbe_init_ops_X540()
97 mac->ops.get_san_mac_addr = ixgbe_get_san_mac_addr_generic; in ixgbe_init_ops_X540()
98 mac->ops.set_san_mac_addr = ixgbe_set_san_mac_addr_generic; in ixgbe_init_ops_X540()
[all …]
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/
H A Devpkdf_ss.txt433 Ctrl.mac = mac:HMAC
441 Ctrl.mac = mac:HMAC
449 Ctrl.mac = mac:HMAC
457 Ctrl.mac = mac:HMAC
465 Ctrl.mac = mac:HMAC
473 Ctrl.mac = mac:HMAC
481 Ctrl.mac = mac:HMAC
489 Ctrl.mac = mac:HMAC
497 Ctrl.mac = mac:HMAC
505 Ctrl.mac = mac:HMAC
[all …]

12345678910>>...50