Home
last modified time | relevance | path

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

12345678910>>...45

/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 = 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 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 …]
H A Dcxgb_vsc7323.c2 SPDX-License-Identifier: BSD-2-Clause
54 const struct mdio_ops *mo = adapter_info(adap)->mdio_ops; in t3_elmr_blk_write()
57 ret = mo->write(adap, ELMR_MDIO_ADDR, 0, ELMR_ADDR, start); in t3_elmr_blk_write()
58 for ( ; !ret && n; n--, vals++) { in t3_elmr_blk_write()
59 ret = mo->write(adap, ELMR_MDIO_ADDR, 0, ELMR_DATA_LO, in t3_elmr_blk_write()
62 ret = mo->write(adap, ELMR_MDIO_ADDR, 0, ELMR_DATA_HI, in t3_elmr_blk_write()
78 const struct mdio_ops *mo = adapter_info(adap)->mdio_ops; in t3_elmr_blk_read()
82 ret = mo->write(adap, ELMR_MDIO_ADDR, 0, ELMR_ADDR, start); in t3_elmr_blk_read()
87 ret = mo->read(adap, ELMR_MDIO_ADDR, 0, ELMR_STAT, &v); in t3_elmr_blk_read()
95 ret = -ETIMEDOUT; in t3_elmr_blk_read()
[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 …]

12345678910>>...45