/freebsd-11-stable/sys/dev/e1000/ |
H A D | e1000_vf.c | 93 struct e1000_mac_info *mac = &hw->mac; local 106 mac->asf_firmware_present = FALSE; 108 mac->arc_subsystem_valid = FALSE; 110 mac->adaptive_ifs = FALSE; 112 mac->mta_reg_count = 128; 114 mac->rar_entry_count = 1; 118 mac->ops.setup_link = e1000_setup_link_vf; 120 mac->ops.get_bus_info = e1000_get_bus_info_pcie_vf; 122 mac 536 struct e1000_mac_info *mac = &hw->mac; local [all...] |
H A D | e1000_82542.c | 102 struct e1000_mac_info *mac = &hw->mac; local 110 mac->mta_reg_count = 128; 112 mac->rar_entry_count = E1000_RAR_ENTRIES; 117 mac->ops.get_bus_info = e1000_get_bus_info_82542; 119 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci; 121 mac->ops.reset_hw = e1000_reset_hw_82542; 123 mac->ops.init_hw = e1000_init_hw_82542; 125 mac->ops.setup_link = e1000_setup_link_82542; 127 mac 245 struct e1000_mac_info *mac = &hw->mac; local 319 struct e1000_mac_info *mac = &hw->mac; local [all...] |
H A D | e1000_82540.c | 94 switch (hw->mac.type) { 160 struct e1000_mac_info *mac = &hw->mac; local 183 mac->mta_reg_count = 128; 185 mac->rar_entry_count = E1000_RAR_ENTRIES; 190 mac->ops.get_bus_info = e1000_get_bus_info_pci_generic; 192 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci; 194 mac->ops.reset_hw = e1000_reset_hw_82540; 196 mac->ops.init_hw = e1000_init_hw_82540; 198 mac 330 struct e1000_mac_info *mac = &hw->mac; local 462 struct e1000_mac_info *mac = &hw->mac; local [all...] |
H A D | e1000_82543.c | 110 phy->ops.read_reg = (hw->mac.type == e1000_82543) 113 phy->ops.reset = (hw->mac.type == e1000_82543) 116 phy->ops.write_reg = (hw->mac.type == e1000_82543) 140 switch (hw->mac.type) { 195 struct e1000_mac_info *mac = &hw->mac; local 211 mac->mta_reg_count = 128; 213 mac->rar_entry_count = E1000_RAR_ENTRIES; 218 mac->ops.get_bus_info = e1000_get_bus_info_pci_generic; 220 mac 958 struct e1000_mac_info *mac = &hw->mac; local 1199 struct e1000_mac_info *mac = &hw->mac; local 1335 struct e1000_mac_info *mac = &hw->mac; local [all...] |
/freebsd-11-stable/sys/dev/bwi/ |
H A D | bwirf.h | 111 #define RF_WRITE(mac, ofs, val) bwi_rf_write((mac), (ofs), (val)) 112 #define RF_READ(mac, ofs) bwi_rf_read((mac), (ofs)) 114 #define RF_SETBITS(mac, ofs, bits) \ 115 RF_WRITE((mac), (ofs), RF_READ((mac), (ofs)) | (bits)) 116 #define RF_CLRBITS(mac, ofs, bits) \ 117 RF_WRITE((mac), (ofs), RF_READ((mac), (of [all...] |
/freebsd-11-stable/contrib/wpa/src/crypto/ |
H A D | crypto_nettle.c | 52 const u8 *addr[], const size_t *len, u8 *mac) 66 alg->digest(ctx, alg->digest_size, mac); 72 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 74 return nettle_digest_vector(&nettle_md4, num_elem, addr, len, mac); 78 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 80 return nettle_digest_vector(&nettle_md5, num_elem, addr, len, mac); 84 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 86 return nettle_digest_vector(&nettle_sha1, num_elem, addr, len, mac); 90 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 92 return nettle_digest_vector(&nettle_sha256, num_elem, addr, len, mac); 51 nettle_digest_vector(const struct nettle_hash *alg, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 96 sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 102 sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 108 hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 126 hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument 133 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 178 hmac_sha256(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument 189 hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 207 hmac_sha384(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument 218 hmac_sha512_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 236 hmac_sha512(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument [all...] |
H A D | aes-omac1.c | 36 * @mac: Buffer for MAC (128 bits, i.e., 16 bytes) 44 const u8 *addr[], const size_t *len, u8 *mac) 114 aes_encrypt(ctx, pad, mac); 126 * @mac: Buffer for MAC (128 bits, i.e., 16 bytes) 134 const u8 *addr[], const size_t *len, u8 *mac) 136 return omac1_aes_vector(key, 16, num_elem, addr, len, mac); 145 * @mac: Buffer for MAC (128 bits, i.e., 16 bytes) 152 int omac1_aes_128(const u8 *key, const u8 *data, size_t data_len, u8 *mac) argument 154 return omac1_aes_128_vector(key, 1, &data, &data_len, mac); 163 * @mac 43 omac1_aes_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 133 omac1_aes_128_vector(const u8 *key, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 170 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 D | mac_priv.c | 49 #include <security/mac/mac_framework.h> 50 #include <security/mac/mac_internal.h> 51 #include <security/mac/mac_policy.h>
|
H A D | mac_net.c | 46 __FBSDID("$FreeBSD: stable/11/sys/security/mac/mac_net.c 332288 2018-04-08 16:54:07Z brooks $"); 55 #include <sys/mac.h> 72 #include <security/mac/mac_framework.h> 73 #include <security/mac/mac_internal.h> 74 #include <security/mac/mac_policy.h> 403 struct mac mac; local 409 error = copyin(ifr_data_get_ptr(ifr), &mac, sizeof(mac)); 413 error = mac_check_structmac_consistent(&mac); 445 struct mac mac; local [all...] |
H A D | mac_socket.c | 55 #include <sys/mac.h> 75 #include <security/mac/mac_framework.h> 76 #include <security/mac/mac_internal.h> 77 #include <security/mac/mac_policy.h> 526 mac_setsockopt_label(struct ucred *cred, struct socket *so, struct mac *mac) argument 535 error = mac_check_structmac_consistent(mac); 539 buffer = malloc(mac->m_buflen, M_MACTEMP, M_WAITOK); 540 error = copyinstr(mac->m_string, buffer, mac 559 mac_getsockopt_label(struct ucred *cred, struct socket *so, struct mac *mac) argument 597 mac_getsockopt_peerlabel(struct ucred *cred, struct socket *so, struct mac *mac) argument [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_keycache.c | 56 const HAL_KEYVAL *k, const uint8_t *mac, 61 if (ar5212SetKeyCacheEntry(ah, entry, k, mac, xorKey)) { 55 ar5416SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry, const HAL_KEYVAL *k, const uint8_t *mac, int xorKey) argument
|
/freebsd-11-stable/tests/sys/mac/portacl/ |
H A D | misc.sh | 2 # $FreeBSD: stable/11/tests/sys/mac/portacl/misc.sh 324404 2017-10-07 23:10:16Z ngie $ 4 sysctl security.mac.portacl >/dev/null 2>&1 66 sysctl security.mac.portacl.rules= >/dev/null 84 sysctl security.mac.portacl.rules=${idtype}:${idstr}:${proto}:${port} >/dev/null 95 sysctl security.mac.portacl.rules= >/dev/null 99 suser_exempt=$(sysctl -n security.mac.portacl.suser_exempt) 100 port_high=$(sysctl -n security.mac.portacl.port_high) 104 sysctl -n security.mac.portacl.suser_exempt=${suser_exempt} >/dev/null 105 sysctl -n security.mac.portacl.port_high=${port_high} >/dev/null
|
H A D | Makefile | 5 TESTSDIR= ${TESTSBASE}/sys/mac/portacl
|
/freebsd-11-stable/sys/dev/ixgbe/ |
H A D | ixgbe_82599.c | 63 struct ixgbe_mac_info *mac = &hw->mac; local 71 if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) && 73 mac->ops.disable_tx_laser = 75 mac->ops.enable_tx_laser = 77 mac->ops.flap_tx_laser = ixgbe_flap_tx_laser_multispeed_fiber; 80 mac->ops.disable_tx_laser = NULL; 81 mac->ops.enable_tx_laser = NULL; 82 mac->ops.flap_tx_laser = NULL; 87 mac 117 struct ixgbe_mac_info *mac = &hw->mac; local 323 struct ixgbe_mac_info *mac = &hw->mac; local [all...] |
H A D | ixgbe_82598.c | 121 struct ixgbe_mac_info *mac = &hw->mac; local 134 mac->ops.start_hw = ixgbe_start_hw_82598; 135 mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_82598; 136 mac->ops.reset_hw = ixgbe_reset_hw_82598; 137 mac->ops.get_media_type = ixgbe_get_media_type_82598; 138 mac->ops.get_supported_physical_layer = 140 mac->ops.read_analog_reg8 = ixgbe_read_analog_reg8_82598; 141 mac->ops.write_analog_reg8 = ixgbe_write_analog_reg8_82598; 142 mac 193 struct ixgbe_mac_info *mac = &hw->mac; local [all...] |
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | macro.c | 368 ** mac -- Macro table. 374 ** clears entire mac structure including rpool pointer! 378 mactabclear(mac) 379 MACROS_T *mac; 383 if (mac->mac_rpool == NULL) 386 SM_FREE(mac->mac_table[i]); 388 memset((char *) mac, '\0', sizeof(*mac)); 400 ** mac -- Macro table. 408 ** at least the lifetime of mac [all...] |
/freebsd-11-stable/tests/sys/mac/bsdextended/ |
H A D | Makefile | 3 TESTSDIR= ${TESTSBASE}/sys/mac/bsdextended
|
/freebsd-11-stable/tools/tools/net80211/w00t/libw00t/ |
H A D | w00t.h | 34 int str2mac(char *mac, char *str); 35 void mac2str(char *str, char *mac); 45 int send_ack(int fd, char *mac); 48 int set_iface_mac(char *iface, char *mac);
|
/freebsd-11-stable/tools/tools/net80211/wlanstats/ |
H A D | wlanstats.h | 51 /* set the mac address of the associated station/ap */ 52 void (*setstamac)(struct wlanstatfoo *, const uint8_t mac[]);
|
/freebsd-11-stable/share/doc/psd/04.uprog/ |
H A D | Makefile | 5 SRCS= p.mac p0 p1 p2 p3 p4 p5 p6 p8 p9
|
/freebsd-11-stable/share/doc/usd/22.trofftut/ |
H A D | Makefile | 41 SRCS= tt.mac tt00 tt01 tt02 tt03 tt04 tt05 tt06 tt07 tt08 tt09 tt10 \
|
/freebsd-11-stable/tools/tools/ath/athstats/ |
H A D | athstats.h | 47 /* set the mac address of the associated station/ap */ 48 void (*setstamac)(struct athstatfoo *, const uint8_t mac[]);
|
/freebsd-11-stable/sys/dev/mlx4/ |
H A D | driver.h | 94 u64 mac = 0; local 98 mac <<= 8; 99 mac |= addr[i]; 101 return mac;
|
/freebsd-11-stable/sys/dev/mlx5/ |
H A D | mpfs.h | 32 int mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u32 *p_index, const u8 *mac,
|
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5210/ |
H A D | ar5210_keycache.c | 74 * Sets the mac part of the specified key cache entry and mark it valid. 77 ar5210SetKeyCacheEntryMac(struct ath_hal *ah, uint16_t entry, const uint8_t *mac) argument 86 if (mac != AH_NULL) { 87 macHi = (mac[5] << 8) | mac[4]; 88 macLo = (mac[3] << 24)| (mac[2] << 16) 89 | (mac[1] << 8) | mac[0]; 110 const HAL_KEYVAL *k, const uint8_t *mac, in 109 ar5210SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry, const HAL_KEYVAL *k, const uint8_t *mac, int xorKey) argument [all...] |