Searched refs:mac (Results 76 - 100 of 646) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/dev/ath/ath_hal/ar5211/
H A Dar5211_keycache.c78 * Sets the mac part of the specified key cache entry and mark it valid.
81 ar5211SetKeyCacheEntryMac(struct ath_hal *ah, uint16_t entry, const uint8_t *mac) argument
95 if (mac != AH_NULL) {
96 macHi = (mac[5] << 8) | mac[4];
97 macLo = (mac[3] << 24)| (mac[2] << 16)
98 | (mac[1] << 8) | mac[0];
116 const HAL_KEYVAL *k, const uint8_t *mac,
115 ar5211SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry, const HAL_KEYVAL *k, const uint8_t *mac, int xorKey) argument
[all...]
/freebsd-11-stable/sys/dev/e1000/
H A De1000_82541.c221 struct e1000_mac_info *mac = &hw->mac; local
228 mac->mta_reg_count = 128;
230 mac->rar_entry_count = E1000_RAR_ENTRIES;
232 mac->asf_firmware_present = TRUE;
237 mac->ops.get_bus_info = e1000_get_bus_info_pci_generic;
239 mac->ops.set_lan_id = e1000_set_lan_id_single_port;
241 mac->ops.reset_hw = e1000_reset_hw_82541;
243 mac->ops.init_hw = e1000_init_hw_82541;
245 mac
376 struct e1000_mac_info *mac = &hw->mac; local
586 struct e1000_mac_info *mac = &hw->mac; local
[all...]
H A De1000_80003es2lan.c198 struct e1000_mac_info *mac = &hw->mac; local
206 mac->ops.check_for_link = e1000_check_for_serdes_link_generic;
207 mac->ops.setup_physical_interface =
212 mac->ops.check_for_link = e1000_check_for_copper_link_generic;
213 mac->ops.setup_physical_interface =
219 mac->mta_reg_count = 128;
221 mac->rar_entry_count = E1000_RAR_ENTRIES;
223 mac->asf_firmware_present = TRUE;
225 mac
886 struct e1000_mac_info *mac = &hw->mac; local
[all...]
H A De1000_manage.c77 if (!hw->mac.arc_subsystem_valid) {
139 hw->mac.tx_pkt_filtering = TRUE;
142 if (!hw->mac.ops.check_mng_mode(hw)) {
143 hw->mac.tx_pkt_filtering = FALSE;
144 return hw->mac.tx_pkt_filtering;
152 hw->mac.tx_pkt_filtering = FALSE;
153 return hw->mac.tx_pkt_filtering;
171 hw->mac.tx_pkt_filtering = TRUE;
172 return hw->mac.tx_pkt_filtering;
177 hw->mac
[all...]
H A De1000_82575.c139 switch (hw->mac.type) {
208 switch (hw->mac.type) {
272 hw->mac.ops.check_for_link =
352 if (hw->mac.type < e1000_i210) {
393 switch (hw->mac.type) {
416 struct e1000_mac_info *mac = &hw->mac; local
424 mac->mta_reg_count = 128;
426 mac->uta_reg_count = (hw->mac
1330 struct e1000_mac_info *mac = &hw->mac; local
1492 struct e1000_mac_info *mac = &hw->mac; local
[all...]
/freebsd-11-stable/contrib/wpa/src/crypto/
H A Dcrypto_gnutls.c21 const u8 *addr[], const size_t *len, u8 *mac)
36 memcpy(mac, p, gcry_md_get_algo_dlen(algo));
42 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
44 return gnutls_digest_vector(GCRY_MD_MD4, num_elem, addr, len, mac);
71 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
73 return gnutls_digest_vector(GCRY_MD_MD5, num_elem, addr, len, mac);
77 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
79 return gnutls_digest_vector(GCRY_MD_SHA1, num_elem, addr, len, mac);
83 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
85 return gnutls_digest_vector(GCRY_MD_SHA256, num_elem, addr, len, mac);
20 gnutls_digest_vector(int algo, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
89 sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
95 sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
101 gnutls_hmac_vector(int algo, const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
128 hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
136 hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument
143 hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
151 hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument
160 hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
168 hmac_sha256(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument
179 hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
187 hmac_sha384(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument
198 hmac_sha512_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
206 hmac_sha512(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument
[all...]
H A Dsha1.h15 const u8 *addr[], const size_t *len, u8 *mac);
17 u8 *mac);
H A Dsha512.h15 const u8 *addr[], const size_t *len, u8 *mac);
17 size_t data_len, u8 *mac);
H A Dsha384.h15 const u8 *addr[], const size_t *len, u8 *mac);
17 size_t data_len, u8 *mac);
H A Dcrypto_internal.c179 int crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len) argument
187 if (mac == NULL || len == NULL) {
200 MD5Final(mac, &ctx->u.md5);
209 SHA1Final(mac, &ctx->u.sha1);
219 sha256_done(&ctx->u.sha256, mac);
230 sha384_done(&ctx->u.sha384, mac);
241 sha512_done(&ctx->u.sha512, mac);
252 MD5Final(mac, &ctx->u.md5);
261 MD5Update(&ctx->u.md5, mac, 16);
262 MD5Final(mac,
[all...]
H A Dcrypto_linux.c60 u8 *mac, size_t mac_len)
102 res = recv(t, mac, mac_len, 0);
125 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
128 mac, 16);
132 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
135 mac, MD5_MAC_LEN);
140 u8 *mac)
143 mac, SHA1_MAC_LEN);
148 u8 *mac)
151 mac, SHA256_MAC_LE
57 linux_af_alg_hash_vector(const char *alg, const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac, size_t mac_len) argument
139 sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
147 sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
155 sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
163 sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
171 hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
179 hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument
186 hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
194 hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument
201 hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
209 hmac_sha256(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument
216 hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
224 hmac_sha384(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument
348 crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len) argument
757 omac1_aes_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
765 omac1_aes_128_vector(const u8 *key, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
772 omac1_aes_128(const u8 *key, const u8 *data, size_t data_len, u8 *mac) argument
778 omac1_aes_256(const u8 *key, const u8 *data, size_t data_len, u8 *mac) argument
[all...]
/freebsd-11-stable/sys/security/mac/
H A Dmac_framework.c61 * - The user MAC API, defined in mac.h, which allows user programs to query
65 * src/sys/security/mac. Sample policy modules may be found in
72 __FBSDID("$FreeBSD: stable/11/sys/security/mac/mac_framework.c 337465 2018-08-08 17:11:07Z markj $");
79 #include <sys/mac.h>
86 #include <security/mac/mac_framework.h>
87 #include <security/mac/mac_internal.h>
88 #include <security/mac/mac_policy.h>
93 SDT_PROVIDER_DEFINE(mac); variable
96 SDT_PROBE_DEFINE2(mac, , policy, modevent, "int",
98 SDT_PROBE_DEFINE1(mac, , polic
586 mac_check_structmac_consistent(struct mac *mac) argument
[all...]
H A Dmac_process.c56 #include <sys/mac.h>
73 #include <security/mac/mac_framework.h>
74 #include <security/mac/mac_internal.h>
75 #include <security/mac/mac_policy.h>
136 mac_execve_enter(struct image_params *imgp, struct mac *mac_p)
139 struct mac mac; local
149 error = copyin(mac_p, &mac, sizeof(mac));
153 error = mac_check_structmac_consistent(&mac);
[all...]
/freebsd-11-stable/sys/dev/ixgbe/
H A Dixgbe_x550.c56 struct ixgbe_mac_info *mac = &hw->mac; local
63 mac->ops.dmac_config = ixgbe_dmac_config_X550;
64 mac->ops.dmac_config_tcs = ixgbe_dmac_config_tcs_X550;
65 mac->ops.dmac_update_tcs = ixgbe_dmac_update_tcs_X550;
66 mac->ops.setup_eee = NULL;
67 mac->ops.set_source_address_pruning =
69 mac->ops.set_ethertype_anti_spoofing =
72 mac->ops.get_rtrup2tc = ixgbe_dcb_get_rtrup2tc_generic;
82 mac
702 struct ixgbe_mac_info *mac = &hw->mac; local
886 struct ixgbe_mac_info *mac = &hw->mac; local
944 struct ixgbe_mac_info *mac = &hw->mac; local
1777 struct ixgbe_mac_info *mac = &hw->mac; local
1844 struct ixgbe_mac_info *mac = &hw->mac; local
1914 struct ixgbe_mac_info *mac = &hw->mac; local
2753 struct ixgbe_mac_info *mac = &hw->mac; local
2903 struct ixgbe_mac_info *mac = &hw->mac; local
2974 struct ixgbe_mac_info *mac = &hw->mac; local
[all...]
H A Dixgbe_common.c72 struct ixgbe_mac_info *mac = &hw->mac; local
96 mac->ops.init_hw = ixgbe_init_hw_generic;
97 mac->ops.reset_hw = NULL;
98 mac->ops.start_hw = ixgbe_start_hw_generic;
99 mac->ops.clear_hw_cntrs = ixgbe_clear_hw_cntrs_generic;
100 mac->ops.get_media_type = NULL;
101 mac->ops.get_supported_physical_layer = NULL;
102 mac->ops.enable_rx_dma = ixgbe_enable_rx_dma_generic;
103 mac
1007 struct ixgbe_mac_info *mac = &hw->mac; local
1165 struct ixgbe_mac_info *mac = &hw->mac; local
[all...]
H A Dif_bypass.c128 if ((error = hw->mac.ops.bypass_rw(hw, cmd, &version) != 0))
132 if ((error = hw->mac.ops.bypass_rw(hw, cmd, &version) != 0))
165 error = hw->mac.ops.bypass_rw(hw,
186 if ((error = hw->mac.ops.bypass_set(hw, BYPASS_PAGE_CTL0,
190 error = hw->mac.ops.bypass_set(hw, BYPASS_PAGE_CTL0,
227 error = hw->mac.ops.bypass_rw(hw, BYPASS_PAGE_CTL0, &timeout);
250 error = hw->mac.ops.bypass_set(hw, BYPASS_PAGE_CTL0,
269 error = hw->mac.ops.bypass_rw(hw, BYPASS_PAGE_CTL0, &main_on);
292 error = hw->mac.ops.bypass_set(hw, BYPASS_PAGE_CTL0,
311 error = hw->mac
[all...]
/freebsd-11-stable/contrib/ldns/ldns/
H A Dtsig.h44 * \param[in] wire needed to verify the mac
48 * \param[in] mac original mac
51 bool ldns_pkt_tsig_verify(ldns_pkt *pkt, uint8_t *wire, size_t wire_size, const char *key_name, const char *key_data, ldns_rdf *mac);
57 * \param[in] wire needed to verify the mac
61 * \param[in] mac original mac
63 components are used to verify the _mac. If non-zero, only the TSIG timers are used to verify the mac.
66 bool ldns_pkt_tsig_verify_next(ldns_pkt *pkt, uint8_t *wire, size_t wire_size, const char *key_name, const char *key_data, ldns_rdf *mac,
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/
H A Deswitch.h43 /* L2 -mac address based- hash helpers */
53 #define l2addr_hash_find(hash, mac, type) ({ \
54 int ix = MLX5_L2_ADDR_HASH(mac); \
59 if (ether_addr_equal(ptr->node.addr, mac)) {\
68 #define l2addr_hash_add(hash, mac, type, gfp) ({ \
69 int ix = MLX5_L2_ADDR_HASH(mac); \
74 ether_addr_copy(ptr->node.addr, mac); \
145 __u8 mac[32]; member in struct:mlx5_esw_vport_info
161 int vport, u8 mac[ETH_ALEN]);
/freebsd-11-stable/share/doc/psd/01.cacm/
H A DMakefile5 SRCS= stubs p.mac p1 p2 p3 p4 p5 p6
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_keycache.c100 * Sets the mac part of the specified key cache entry (and any
103 * Since mac[0] is shifted off and not presented to the hardware,
110 ar5212SetKeyCacheEntryMac(struct ath_hal *ah, uint16_t entry, const uint8_t *mac) argument
124 if (mac != AH_NULL) {
132 if (mac[0] & 0x01)
135 macHi = (mac[5] << 8) | mac[4];
136 macLo = (mac[3] << 24)| (mac[2] << 16)
137 | (mac[
154 ar5212SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry, const HAL_KEYVAL *k, const uint8_t *mac, int xorKey) argument
[all...]
/freebsd-11-stable/sys/sys/
H A Dmac.h63 * struct mac is the data structure used to carry MAC labels in system calls
66 struct mac { struct
71 typedef struct mac *mac_t;
76 * Location of the userland MAC framework configuration file. mac.conf
79 #define MAC_CONFFILE "/etc/mac.conf"
106 int mac_to_text(mac_t mac, char **_text);
/freebsd-11-stable/sys/net80211/
H A Dieee80211_acl.c173 acl_add(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN]) argument
183 "ACL: add %s failed, no memory\n", ether_sprintf(mac));
189 hash = ACL_HASH(mac);
191 if (IEEE80211_ADDR_EQ(acl->acl_macaddr, mac)) {
196 ether_sprintf(mac));
200 IEEE80211_ADDR_COPY(new->acl_macaddr, mac);
207 "ACL: add %s\n", ether_sprintf(mac));
212 acl_remove(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN]) argument
218 acl = _find_acl(as, mac);
224 "ACL: remove %s%s\n", ether_sprintf(mac),
329 static const struct ieee80211_aclator mac = { variable in typeref:struct:ieee80211_aclator
[all...]
/freebsd-11-stable/contrib/wpa/src/eap_common/
H A Deap_pax_common.c35 u8 mac[SHA1_MAC_LEN]; local
60 if (hmac_sha1_vector(key, key_len, 3, addr, len, mac) < 0)
62 os_memcpy(pos, mac, clen);
82 * @mac: Buffer for the MAC value (EAP_PAX_MAC_LEN = 16 bytes)
91 u8 *mac)
112 os_memcpy(mac, hash, EAP_PAX_MAC_LEN);
87 eap_pax_mac(u8 mac_id, const u8 *key, size_t key_len, const u8 *data1, size_t data1_len, const u8 *data2, size_t data2_len, const u8 *data3, size_t data3_len, u8 *mac) argument
/freebsd-11-stable/tools/tools/net80211/w00t/ap/
H A Dap.c41 char mac[6]; member in struct:client
54 char mac[6]; member in struct:params
84 "-m\t<mac>\n"
99 memcpy(wh->i_addr2, p->mac, 6);
165 memcpy(wh->i_addr3, p->mac, 6);
187 void send_pres(struct params *p, char *mac) argument
197 memcpy(wh->i_addr1, mac, 6);
198 memcpy(wh->i_addr3, p->mac, 6);
235 void send_auth(struct params* p, char *mac) argument
246 memcpy(wh->i_addr1, mac,
265 char mac[6*3]; local
285 send_assoc(struct params *p, char *mac) argument
382 send_cts(struct params *p, char *mac) argument
566 client_find(struct params *p, char *mac) argument
584 char mac[6*3]; local
[all...]
/freebsd-11-stable/tools/tools/net80211/w00t/libw00t/
H A Dw00t.c47 int str2mac(char *mac, char *str) argument
58 *mac++ = (char) macf[i];
65 unsigned char *mac = m; local
67 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
228 int send_ack(int fd, char *mac) argument
254 set_iface_mac(char *iface, char *mac) argument
[all...]

Completed in 259 milliseconds

1234567891011>>