Home
last modified time | relevance | path

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

12345678910>>...44

/freebsd/sys/dev/bwn/
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_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_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()
100 "%s: BWN_GPL_PHY not in kernel config; " 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
[all …]
/freebsd/contrib/ntp/libntp/
H A Da_md5encrypt.c45 * overhead in time-critical paths. ntpsec also caches the algorithms in make_mac()
47 * This is not thread-safe, but that is in make_mac()
64 msyslog(LOG_ERR, "%s init failed", OBJ_nid2sn(nid)); in make_mac()
96 void const * keyptr = key->buf; in make_mac()
100 if (AES_128_KEY_SIZE > key->len) { in make_mac()
101 memcpy(keybuf, keyptr, key->len); in make_mac()
102 zero_mem((keybuf + key->len), in make_mac()
103 (AES_128_KEY_SIZE - key->len)); in make_mac()
108 msyslog(LOG_ERR, "MAC encryp in make_mac()
[all...]
/freebsd/sys/dev/bwi/
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/contrib/wpa/src/crypto/
H A Dcrypto_linux.c29 int s; in linux_af_alg_socket() local
32 return -1; in linux_af_alg_socket()
34 s = socket(AF_ALG, SOCK_SEQPACKET, 0); in linux_af_alg_socket()
35 if (s < 0) { in linux_af_alg_socket()
36 wpa_printf(MSG_ERROR, "%s: Failed to open AF_ALG socket: %s", in linux_af_alg_socket()
38 return -1; in linux_af_alg_socket()
45 if (bind(s, (struct sockaddr *) &sa, sizeof(sa)) < 0) { in linux_af_alg_socket()
47 "%s: Failed to bind AF_ALG socket(%s,%s): %s", in linux_af_alg_socket()
49 close(s); in linux_af_alg_socket()
50 return -1; in linux_af_alg_socket()
[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/tests/sys/mac/ipacl/
H A Dipacl_test.sh1 #-
43 prev_ipacl_ipv4="$(sysctl -n security.mac.ipacl.ipv4)"
44 prev_ipacl_rules="$(sysctl -n security.mac.ipacl.rules)"
53 jidA=$(jls -j A -s jid | grep -o -E '[0-9]+')
54 jidB=$(jls -j B -s jid | grep -o -E '[0-9]+')
57 sysctl security.mac.ipacl.ipv4=0
59 atf_check -s exit:0 -e ignore \
61 atf_check -s exit:0 -e ignore \
66 sysctl security.mac.ipacl.ipv4=1
67 sysctl security.mac.ipacl.rules=
[all …]
/freebsd/tools/tools/net80211/w00t/ap/
H A Dap.c1 /*-
39 char mac[6]; member
52 char mac[6]; member
78 printf("Usage: %s <opts>\n" in usage()
79 "-h\thelp\n" in usage()
80 "-i\t<iface>\n" in usage()
81 "-s\t<ssid>\n" in usage()
82 "-m\t<mac>\n" in usage()
83 "-w\t<wep key>\n" in usage()
84 "-c\t<chan>\n" in usage()
[all …]
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_keycache.c26 * Note: The key cache hardware requires that each double-word
28 * a 64-bit register). Don't reorder the writes in this code
34 (AH9300(ah)->ah_sta_id1_defaults & AR_STA_ID1_CRPT_MIC_ENABLE)
55 return AH_PRIVATE(ah)->ah_caps.halKeyCacheSize; in ar9300_get_key_cache_size()
64 if (entry < AH_PRIVATE(ah)->ah_caps.halKeyCacheSize) { in ar9300_is_key_cache_entry_valid()
82 if (entry >= AH_PRIVATE(ah)->ah_caps.halKeyCacheSize) { in ar9300_reset_key_cache_entry()
84 "%s: entry %u out of range\n", __func__, entry); in ar9300_reset_key_cache_entry()
88 ahp->ah_keytype[entry] = keyType[HAL_CIPHER_CLR]; in ar9300_reset_key_cache_entry()
104 HALASSERT(micentry < AH_PRIVATE(ah)->ah_caps.halKeyCacheSize); in ar9300_reset_key_cache_entry()
109 /* NB: key type and MAC are known to be ok */ in ar9300_reset_key_cache_entry()
[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 …]
H A Dixgbe_api.c2 SPDX-License-Identifier: BSD-3-Clause
4 Copyright (c) 2001-2020, Intel Corporation
61 * ixgbe_dcb_get_rtrup2tc - read rtrup2tc reg
69 if (hw->mac.ops.get_rtrup2tc) in ixgbe_dcb_get_rtrup2tc()
70 hw->mac.ops.get_rtrup2tc(hw, map); in ixgbe_dcb_get_rtrup2tc()
74 * ixgbe_init_shared_code - Initialize the shared code
77 * This will assign function pointers and assign the MAC type and PHY code.
92 * Set the mac type in ixgbe_init_shared_code()
96 switch (hw->mac.type) { in ixgbe_init_shared_code()
130 hw->mac.max_link_up_time = IXGBE_LINK_UP_TIME; in ixgbe_init_shared_code()
[all …]
/freebsd/contrib/sendmail/src/
H A Dmacro.c2 * Copyright (c) 1998-2001, 2003, 2006, 2007 Proofpoint, Inc. and its suppliers.
4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
16 SM_RCSID("@(#)$Id: macro.c,v 8.108 2013-11-22 20:51:55 ca Exp $")
19 #if MAXMACROID != (BITMAPBITS - 1)
37 /* table for next id in non-printable ASCII range: disallow some value */
49 /* 9 ht */ -1,
50 /* 10 nl */ -1,
51 /* 11 vt */ -1,
52 /* 12 np */ -1,
53 /* 13 cr */ -1,
[all …]
/freebsd/secure/lib/libcrypto/man/man3/
H A DEVP_MAC.31 .\" -*- mode: troff; coding: utf-8 -*-
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
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);
[all …]
/freebsd/sys/contrib/device-tree/Bindings/net/
H A Dethernet-controller.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/net/ethernet-controller.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - David S. Miller <davem@davemloft.net>
19 local-mac-address:
21 Specifies the MAC address that was assigned to the network device.
22 $ref: /schemas/types.yaml#/definitions/uint8-array
26 mac-address:
28 Specifies the MAC address that was last used by the boot
[all …]
/freebsd/crypto/openssl/apps/
H A Dmac.c2 * Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
31 {OPT_HELP_STR, 1, '-', "Usage: %s [options] mac_name\n"},
34 {"help", OPT_HELP, '-', "Display this summary"},
35 {"macopt", OPT_MACOPT, 's', "MAC algorithm parameters in n:v form"},
36 {"cipher", OPT_CIPHER, 's', "Cipher"},
37 {"digest", OPT_DIGEST, 's', "Digest"},
38 {OPT_MORE_STR, 1, '-', "See 'PARAMETER NAMES' in the EVP_MAC_ docs"},
41 {"in", OPT_IN, '<', "Input file to MAC (default is stdin)"},
45 {"binary", OPT_BIN, '-',
51 {"mac_name", 0, 0, "MAC algorithm"},
[all …]
/freebsd/sys/contrib/device-tree/Bindings/nvmem/
H A Dbrcm,nvram.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Broadcom's NVRAM
10 Broadcom's NVRAM is a structure containing device specific environment
14 NVRAM can be accessed on Broadcom BCM47xx MIPS and Northstar ARM Cortex-A9
20 - Rafał Miłecki <rafal@milecki.pl>
23 - $ref: nvmem.yaml#
38 description: First Ethernet interface's MAC address
40 "#nvmem-cell-cells":
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_keycache.c1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
29 * Note: The key cache hardware requires that each double-word
31 * a 64-bit register). Don't reorder the writes in this code
37 (AH5212(ah)->ah_staId1Defaults & AR_STA_ID1_CRPT_MIC_ENABLE)
45 return AH_PRIVATE(ah)->ah_caps.halKeyCacheSize; in ar5212GetKeyCacheSize()
54 if (entry < AH_PRIVATE(ah)->ah_caps.halKeyCacheSize) { in ar5212IsKeyCacheEntryValid()
70 if (entry >= AH_PRIVATE(ah)->ah_caps.halKeyCacheSize) { in ar5212ResetKeyCacheEntry()
[all …]
/freebsd/sys/net80211/
H A Dieee80211_acl.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2004-2008 Sam Leffler, Errno Consulting
30 * IEEE 802.11 MAC ACL support.
60 ACL_POLICY_OPEN = 0, /* open, don't check ACL's */
61 ACL_POLICY_ALLOW = 1, /* allow traffic from MAC */
62 ACL_POLICY_DENY = 2, /* deny traffic from MAC */
82 TAILQ_HEAD(, acl) as_list; /* list of all ACL's */
89 (((const uint8_t *)(addr))[IEEE80211_ADDR_LEN - 1] % ACL_HASHSIZE)
108 TAILQ_INIT(&as->as_list); in acl_attach()
[all …]
/freebsd/share/man/man4/
H A Dmac.47 .\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
35 .Nm mac
38 .Cd "options MAC"
41 The Mandatory Access Control, or MAC, framework allows administrators to
44 It is important to note that due to its nature, MAC security policies may
50 Currently, the following MAC policy modules are shipped with
52 .Bl -column ".Xr mac_seeotheruids 4" "ddb(4) interface restrictions" ".Em Labeling" "boot only"
57 .It Xr mac_do 4 Ta "Change command's uid/gid" Ta no Ta any time
60 .It Xr mac_lomac 4 Ta "Low-Watermark MAC policy" Ta yes Ta boot only
62 .It Xr mac_ntpd 4 Ta "Non-root NTP Daemon policy" Ta no Ta any time
[all …]
/freebsd/tests/sys/net/
H A Dif_lagg_test.sh41 local TAP0 TAP1 LAGG MAC
56 atf_check -o match:"inet ${ADDR}" ifconfig $LAGG
57 atf_check -o match:"laggport: ${TAP0}" ifconfig $LAGG
58 atf_check -o match:"laggport: ${TAP1}" ifconfig $LAGG
60 # Check that all members have the same MAC
61 MAC=`ifconfig $LAGG | awk '/ether/ {print $2}'`
62 atf_check -o match:"ether ${MAC}" ifconfig $TAP0
63 atf_check -o match:"ether ${MAC}" ifconfig $TAP1
65 # Check that no members have an IPv6 link-local address. IPv6
66 # link-local addresses should never be merged in any way to prevent
[all …]
/freebsd/crypto/openssl/demos/mac/
H A Dcmac-aes256.c1 /*-
2 * Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
42 "The heart-ache, and the thousand natural shocks\n"
45 "To sleepe, perchance to dreame, Aye, there's the rub,\n"
48 "Must give us pause. There's the respect\n"
51 "The oppressor's wrong, the proud man's Contumely,\n"
52 "The pangs of dispised love, the Law's delay,\n"
55 /* The known value of the CMAC/AES256 MAC of the above soliloqy */
62 * A property query used for selecting the MAC implementation.
70 EVP_MAC *mac = NULL; in main() local
[all …]
/freebsd/tools/tools/crypto/
H A Dcryptocheck.c1 /*-
31 /*-
45 * 3. Neither the names of the above-listed copyright holders nor the names
70 * cryptocheck [-vz] [-A aad length] [-a algorithm] [-d dev] [-I IV length]
74 * -v Verbose.
75 * -z Run all algorithms on a variety of buffer sizes.
80 * mac Run all mac tests
82 * eta Run all encrypt-then-authenticate tests
87 * ripemd160 160-bit RIPEMD
88 * sha1 SHA-1
[all …]
/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/security/mac/
H A Dmac_framework.c1 /*-
2 * Copyright (c) 1999-2002, 2006, 2009 Robert N. M. Watson
3 * Copyright (c) 2001 Ilmar S. Habibulin
4 * Copyright (c) 2001-2005 Networks Associates Technology, Inc.
5 * Copyright (c) 2005-2006 SPARTA, Inc.
6 * Copyright (c) 2008-2009 Apple Inc.
14 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"),
18 * N66001-04-C-6019 ("SEFOS").
45 /*-
47 * kernel infrastructure for the TrustedBSD MAC Framework, including policy
[all …]

12345678910>>...44