| /freebsd/sys/gnu/dev/bwn/phy_n/ |
| H A D | if_bwn_phy_n_core.c | 23 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 D | bwiphy.c | 1 /*- 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 D | bwirf.c | 1 /*- 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 D | bwimac.c | 1 /*- 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 D | if_bwn_phy_g.c | 1 /*- 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 D | if_bwn.c | 1 /*- 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 = NULL; in bwn_attach() 553 sc->sc_quirks = bhnd_device_quirks(dev, bwn_devices, in bwn_attach() 558 sc->sc_quirks |= bhnd_device_quirks(hostb, bridge_devices, in bwn_attach() 564 sc->sc_quirks |= BWN_QUIRK_NODMA; in bwn_attach() [all …]
|
| H A D | if_bwn_phy_lp.c | 1 /*- 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 D | if_bwn_phy_n.c | 1 /*- 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 D | if_bwnvar.h | 1 /*- 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 D | cxgb_xgmac.c | 2 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/test/recipes/30-test_evp_data/ |
| H A D | evpkdf_kbkdf_kmac.txt | 2 # Copyright 2022-2024 The OpenSSL Project Authors. All Rights Reserved. 10 # Cipher Decrypt Derive Digest Encoding KDF MAC PBE 21 Ctrl.mac = mac:KMAC128 30 Ctrl.mac = mac:KMAC128 39 Ctrl.mac = mac:KMAC128 48 Ctrl.mac = mac:KMAC128 57 Ctrl.mac = mac:KMAC128 66 Ctrl.mac = mac:KMAC128 75 Ctrl.mac = mac:KMAC128 84 Ctrl.mac = mac:KMAC128 [all …]
|
| H A D | evpmac_common.txt | 2 # Copyright 2001-2024 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 71 MAC = HMAC 72 Algorithm = SHA256-192 [all …]
|
| H A D | evpkdf_ss.txt | 2 # Copyright 2001-2024 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 439 Ctrl.mac = mac:HMAC 447 Ctrl.mac = mac:HMAC 455 Ctrl.mac = mac:HMAC 463 Ctrl.mac = mac:HMAC 471 Ctrl.mac = mac:HMAC 479 Ctrl.mac = mac:HMAC 487 Ctrl.mac = mac:HMAC [all …]
|
| H A D | evpkdf_kbkdf_counter.txt | 2 # Copyright 2021-2024 The OpenSSL Project Authors. All Rights Reserved. 10 # Cipher Decrypt Derive Digest Encoding KDF MAC PBE 18 # Cryptographic-Algorithm-Validation-Program/documents/KBKDF800-108/CounterMode.zip 30 Ctrl.mac = mac:CMAC 31 Ctrl.use-l = use-l:0 32 Ctrl.use-separator = use-separator:0 43 Ctrl.mac = mac:CMAC 44 Ctrl.use-l = use-l:0 45 Ctrl.use-separator = use-separator:0 56 Ctrl.mac = mac:CMAC [all …]
|
| H A D | evpmac_poly1305.txt | 2 # 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 D | evpmac_siphash.txt | 2 # 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 …]
|
| /freebsd/crypto/openssl/crypto/evp/ |
| H A D | mac_meth.c | 2 * Copyright 2022-2025 The OpenSSL Project Authors. All Rights Reserved. 21 EVP_MAC *mac = vmac; in evp_mac_up_ref() local 24 CRYPTO_UP_REF(&mac->refcnt, &ref); 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); 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_FREE_REF(&mac->refcnt); in evp_mac_free() 42 OPENSSL_free(mac); in evp_mac_free() [all …]
|
| /freebsd/crypto/openssl/test/ssl-tests/ |
| H A D | 19-mac-then-encrypt.cnf | 5 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/openssh/ |
| H A D | mac.c | 1 /* $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 D | mac_syscalls.c | 1 /*- 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 D | mac.c | 1 /*- 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 …]
|
| /freebsd/sys/dev/ath/ath_hal/ar5212/ |
| H A D | ar5212reg.h | 1 /*- 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/secure/lib/libcrypto/man/man3/ |
| H A D | EVP_MAC.3 | 1 .\" -*- mode: troff; coding: utf-8 -*- 58 .TH EVP_MAC 3ossl 2025-09-30 3.5.4 OpenSSL 73 EVP_MAC_do_all_provided \- EVP MAC routines 84 \& int EVP_MAC_up_ref(EVP_MAC *mac); 85 \& void EVP_MAC_free(EVP_MAC *mac); 86 \& int EVP_MAC_is_a(const EVP_MAC *mac, const char *name); 87 \& const char *EVP_MAC_get0_name(const EVP_MAC *mac); 88 \& int EVP_MAC_names_do_all(const EVP_MAC *mac, 91 \& const char *EVP_MAC_get0_description(const EVP_MAC *mac); 92 \& const OSSL_PROVIDER *EVP_MAC_get0_provider(const EVP_MAC *mac); [all …]
|
| /freebsd/secure/lib/libcrypto/man/man7/ |
| H A D | provider-mac.7 | 1 .\" -*- mode: troff; coding: utf-8 -*- 57 .IX Title "PROVIDER-MAC 7ossl" 58 .TH PROVIDER-MAC 7ossl 2025-09-30 3.5.4 OpenSSL 64 provider\-mac \- The mac library <\-> provider functions 89 \& /* MAC parameter descriptors */ 94 \& /* MAC parameters */ 104 The MAC operation enables providers to implement mac algorithms and make 112 (see "Provider Functions" in \fBprovider\-base\fR\|(7)). 127 macros in \fBopenssl\-core_dispatch.h\fR\|(7), as follows: 148 A mac algorithm implementation may not implement all of these functions. [all …]
|
| /freebsd/sys/dev/ixgbe/ |
| H A D | ixgbe_x540.c | 2 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 …]
|