Home
last modified time | relevance | path

Searched +full:mac +full:- (Results 1 – 25 of 1093) sorted by relevance

12345678910>>...44

/freebsd/sys/gnu/dev/bwn/phy_n/
H A Dif_bwn_phy_n_core.c23 Boston, MA 02110-1301, USA.
162 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()
169 /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/RxCoreGetState */
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()
180 /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/ForceRFSeq */
181 static void bwn_nphy_force_rf_sequence(struct bwn_mac *mac, in bwn_nphy_force_rf_sequence() argument
[all …]
/freebsd/sys/dev/bwi/
H A Dbwiphy.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
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);
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()
[all …]
H A Dbwirf.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
78 #define RF_LO_WRITE(mac, lo) bwi_rf_lo_write((mac), (lo)) argument
81 (ieee80211_ieee2mhz((chan), IEEE80211_CHAN_2GHZ) - 2400)
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()
[all …]
H A Dbwimac.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
118 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()
[all …]
/freebsd/sys/dev/bwn/
H A Dif_bwn_phy_g.c1 /*-
2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
124 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
[all …]
H A Dif_bwn.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
537 struct bwn_mac *mac; in bwn_attach() local
544 sc->sc_dev = dev; in bwn_attach()
546 sc->sc_debug = bwn_debug; in bwn_attach()
549 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_lp.c1 /*-
2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
325 { 1, -66, 15 }, { 2, -66, 15 }, { 3, -66, 15 }, { 4, -66, 15 },
326 { 5, -66, 15 }, { 6, -66, 15 }, { 7, -66, 14 }, { 8, -66, 14 },
327 { 9, -66, 14 }, { 10, -66, 14 }, { 11, -66, 14 }, { 12, -66, 13 },
328 { 13, -66, 13 }, { 14, -66, 13 },
333 { 1, -64, 13 }, { 2, -64, 13 }, { 3, -64, 13 }, { 4, -64, 13 },
334 { 5, -64, 12 }, { 6, -64, 12 }, { 7, -64, 12 }, { 8, -64, 12 },
335 { 9, -64, 12 }, { 10, -64, 11 }, { 11, -64, 11 }, { 12, -64, 11 },
336 { 13, -64, 11 }, { 14, -64, 10 }, { 34, -62, 24 }, { 38, -62, 24 },
[all …]
H A Dif_bwn_phy_n.c1 /*-
32 * This is the top-level N-PHY support for the Broadcom softmac driver.
93 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()
101 "no PHY-N support\n", __func__); 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()
[all …]
H A Dif_bwnvar.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
48 (((phy)->rev >= 2) && ((phy)->rf_ver == 0x2050) && \
49 ((phy)->rf_rev == 8))
51 (((phy)->rev > 1) || ((phy)->gmode))
58 #define BWN_ISOLDFMT(mac) ((mac)->mac_fw.rev <= 351) argument
61 #define BWN_HDRSIZE(mac) bwn_tx_hdrsize(mac) argument
65 ((uint16_t)((((uint16_t)tq->tq_index + 1) << 12) | tp->tp_index))
67 ((uint16_t)(((uint16_t)dr->dr_index + 1) << 12) | (uint16_t)slot)
[all …]
/freebsd/sys/dev/cxgb/common/
H A Dcxgb_xgmac.c2 SPDX-License-Identifier: BSD-2-Clause
4 Copyright (c) 2007-2009 Chelsio Inc.
38 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()
44 * Returns a reasonable A_XGM_RESET_CTRL value for the mac specified.
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()
[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/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/crypto/openssl/test/recipes/30-test_evp_data/
H A Devpmac_common.txt2 # Copyright 2001-2022 The OpenSSL Project Authors. All Rights Reserved.
10 # Cipher Decrypt Derive Digest Encoding KDF MAC PBE
18 MAC = HMAC
27 MAC = HMAC
35 MAC = HMAC
46 MAC = HMAC
54 MAC = HMAC
61 MAC = HMAC
70 MAC = HMAC
78 MAC = HMAC
[all …]
H A Devpmac_poly1305.txt2 # Copyright 2001-2022 The OpenSSL Project Authors. All Rights Reserved.
10 # Cipher Decrypt Derive Digest Encoding KDF MAC PBE
16 MAC = Poly1305
22 MAC = Poly1305
28 MAC = Poly1305
34 MAC = Poly1305
40 # If one uses 130-bit partial reduction, does the code handle the case where partially reduced fina…
41 MAC = Poly1305
48 MAC = Poly1305
55 MAC = Poly1305
[all …]
H A Devpmac_siphash.txt2 # Copyright 2001-2021 The OpenSSL Project Authors. All Rights Reserved.
10 # Cipher Decrypt Derive Digest Encoding KDF MAC PBE
14 # SIPHASH tests - default values: 2,4 rounds, 16-byte mac
19 MAC = SipHash
24 MAC = SipHash
29 MAC = SipHash
34 MAC = SipHash
39 MAC = SipHash
44 MAC = SipHash
49 MAC = SipHash
[all …]
H A Devpkdf_ss.txt2 # Copyright 2001-2020 The OpenSSL Project Authors. All Rights Reserved.
10 # Cipher Decrypt Derive Digest Encoding KDF MAC PBE
15 # https://github.com/patrickfav/singlestep-kdf/wiki/NIST-SP-800-56C-Rev1:-Non-Official-Test-Vectors
433 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
[all …]
/freebsd/crypto/openssh/
H A Dmac.c1 /* $OpenBSD: mac.c,v 1.35 2019/09/06 04:53:27 djm Exp $ */
37 #include "mac.h"
42 #include "openbsd-compat/openssl-compat.h"
55 int etm; /* Encrypt-then-MAC */
59 /* Encrypt-and-MAC (encrypt-and-authenticate) variants */
60 { "hmac-sha1", SSH_DIGEST, SSH_DIGEST_SHA1, 0, 0, 0, 0 },
61 { "hmac-sha1-96", SSH_DIGEST, SSH_DIGEST_SHA1, 96, 0, 0, 0 },
62 { "hmac-sha2-256", SSH_DIGEST, SSH_DIGEST_SHA256, 0, 0, 0, 0 },
63 { "hmac-sha2-512", SSH_DIGEST, SSH_DIGEST_SHA512, 0, 0, 0, 0 },
64 { "hmac-md5", SSH_DIGEST, SSH_DIGEST_MD5, 0, 0, 0, 0 },
[all …]
/freebsd/sys/security/mac/
H A Dmac_syscalls.c1 /*-
2 * Copyright (c) 1999-2002, 2006, 2009 Robert N. M. Watson
4 * Copyright (c) 2001-2005 Networks Associates Technology, Inc.
5 * Copyright (c) 2005-2006 SPARTA, Inc.
14 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"),
18 * N66001-04-C-6019 ("SEFOS").
56 #include <sys/mac.h>
69 #include <security/mac/mac_framework.h>
70 #include <security/mac/mac_internal.h>
71 #include <security/mac/mac_policy.h>
[all …]
/freebsd/lib/libc/posix1e/
H A Dmac.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
12 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"),
49 #include <sys/mac.h>
57 * XXXMAC: Not thread-safe.
72 free(ld->ld_name); in mac_destroy_labels()
73 free(ld->ld_labels); in mac_destroy_labels()
101 return (-1); in mac_add_type()
107 return (-1); in mac_add_type()
114 return (-1); in mac_add_type()
[all …]
H A Dmac.38 .\" Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part
36 .Nm mac
37 .Nd introduction to the MAC security API
44 .Cd "options MAC"
49 Not all system objects support MAC labeling, and MAC policies must be
52 and convert to and from text the MAC labels on files and processes.
55 attributes from MAC policies.
60 .Bd -literal -offset indent
64 Further syntax and semantics of MAC labels may be found in
77 .Xr mac.conf 5 .
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5212/
H A Dar5212reg.h1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
27 #define AR_CR 0x0008 /* MAC control register */
28 #define AR_RXDP 0x000C /* MAC receive queue descriptor pointer */
29 #define AR_CFG 0x0014 /* MAC configuration and status register */
30 #define AR_IER 0x0024 /* MAC Interrupt enable register */
33 #define AR_TXCFG 0x0030 /* MAC tx DMA size config register */
34 #define AR_RXCFG 0x0034 /* MAC rx DMA size config register */
[all …]
/freebsd/sys/dev/ixgbe/
H A Dixgbe_x540.c2 SPDX-License-Identifier: BSD-3-Clause
4 Copyright (c) 2001-2020, Intel Corporation
53 * ixgbe_init_ops_X540 - Inits func ptrs and MAC type
56 * Initialize the function pointers and assign the MAC type for X540.
61 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X540() local
62 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_init_ops_X540()
63 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_ops_X540()
74 eeprom->ops.init_params = ixgbe_init_eeprom_params_X540; in ixgbe_init_ops_X540()
75 eeprom->ops.read = ixgbe_read_eerd_X540; in ixgbe_init_ops_X540()
76 eeprom->ops.read_buffer = ixgbe_read_eerd_buffer_X540; in ixgbe_init_ops_X540()
[all …]
/freebsd/secure/lib/libcrypto/man/man3/
H A DEVP_MAC.318 .\" Set up some character translations and predefined strings. \*(-- will
24 .tr \(*W-
27 . ds -- \(*W-
29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
37 . ds -- \|\(em\|
71 .\" Fear. Run. Save yourself. No user-serviceable parts.
81 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
97 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
98 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DEVP_MAC.pod14 EVP_MAC_do_all_provided - EVP MAC routines
25 int EVP_MAC_up_ref(EVP_MAC *mac);
26 void EVP_MAC_free(EVP_MAC *mac);
27 int EVP_MAC_is_a(const EVP_MAC *mac, const char *name);
28 const char *EVP_MAC_get0_name(const EVP_MAC *mac);
29 int EVP_MAC_names_do_all(const EVP_MAC *mac,
32 const char *EVP_MAC_get0_description(const EVP_MAC *mac);
33 const OSSL_PROVIDER *EVP_MAC_get0_provider(const EVP_MAC *mac);
34 int EVP_MAC_get_params(EVP_MAC *mac, OSSL_PARAM params[]);
36 EVP_MAC_CTX *EVP_MAC_CTX_new(EVP_MAC *mac);
[all …]
/freebsd/crypto/openssl/crypto/pkcs12/
H A Dp12_mutl.c2 * Copyright 1999-2024 The OpenSSL Project Authors. All Rights Reserved.
26 return p12->mac ? 1 : 0; in PKCS12_mac_present()
35 if (p12->mac) { in PKCS12_get0_mac()
36 X509_SIG_get0(p12->mac->dinfo, pmacalg, pmac); in PKCS12_get0_mac()
38 *psalt = p12->mac->salt; in PKCS12_get0_mac()
40 *piter = p12->mac->iter; in PKCS12_get0_mac()
70 memcpy(key, out + sizeof(out) - TK26_MAC_KEY_LEN, TK26_MAC_KEY_LEN); in pkcs12_gen_gost_mac_key()
75 /* Generate a MAC */
77 unsigned char *mac, unsigned int *maclen, in pkcs12_gen_mac() argument
96 if (!PKCS7_type_is_data(p12->authsafes)) { in pkcs12_gen_mac()
[all …]

12345678910>>...44