Home
last modified time | relevance | path

Searched refs:mac_addr (Results 1 – 25 of 154) sorted by relevance

1234567

/freebsd-12.1/sys/dev/qlxgb/
H A Dqla_inline.h128 return (ha->hw.mac_addr); in qla_get_mac_addr()
150 ha->hw.mac_addr[5] = macp[0]; in qla_read_mac_addr()
151 ha->hw.mac_addr[4] = macp[1]; in qla_read_mac_addr()
155 ha->hw.mac_addr[3] = macp[0]; in qla_read_mac_addr()
156 ha->hw.mac_addr[2] = macp[1]; in qla_read_mac_addr()
157 ha->hw.mac_addr[1] = macp[2]; in qla_read_mac_addr()
158 ha->hw.mac_addr[0] = macp[3]; in qla_read_mac_addr()
162 ha->hw.mac_addr[5] = macp[0]; in qla_read_mac_addr()
163 ha->hw.mac_addr[4] = macp[1]; in qla_read_mac_addr()
164 ha->hw.mac_addr[3] = macp[2]; in qla_read_mac_addr()
[all …]
/freebsd-12.1/sys/dev/ixl/
H A Dixl_debug.h39 #define MAC_FORMAT_ARGS(mac_addr) \ argument
40 (mac_addr)[0], (mac_addr)[1], (mac_addr)[2], (mac_addr)[3], \
41 (mac_addr)[4], (mac_addr)[5]
/freebsd-12.1/sys/mips/nlm/dev/net/
H A Dsgmii.c183 int port_type, uint8_t *mac_addr) in nlm_nae_setup_mac_addr_sgmii() argument
187 (mac_addr[5] << 24) | in nlm_nae_setup_mac_addr_sgmii()
188 (mac_addr[4] << 16) | in nlm_nae_setup_mac_addr_sgmii()
189 (mac_addr[3] << 8) | in nlm_nae_setup_mac_addr_sgmii()
190 mac_addr[2]); in nlm_nae_setup_mac_addr_sgmii()
194 (mac_addr[1] << 24) | in nlm_nae_setup_mac_addr_sgmii()
195 (mac_addr[0] << 16)); in nlm_nae_setup_mac_addr_sgmii()
H A Dxaui.c157 int port_type, unsigned char *mac_addr) in nlm_nae_setup_mac_addr_xaui() argument
161 (mac_addr[5] << 24) | in nlm_nae_setup_mac_addr_xaui()
162 (mac_addr[4] << 16) | in nlm_nae_setup_mac_addr_xaui()
163 (mac_addr[3] << 8) | in nlm_nae_setup_mac_addr_xaui()
164 mac_addr[2]); in nlm_nae_setup_mac_addr_xaui()
168 (mac_addr[1] << 24) | in nlm_nae_setup_mac_addr_xaui()
169 (mac_addr[0] << 16)); in nlm_nae_setup_mac_addr_xaui()
/freebsd-12.1/contrib/wpa/src/wps/
H A Dwps_attr_process.c195 const u8 *mac_addr) in wps_process_cred_mac_addr() argument
197 if (mac_addr == NULL) { in wps_process_cred_mac_addr()
203 wpa_printf(MSG_DEBUG, "WPS: MAC Address " MACSTR, MAC2STR(mac_addr)); in wps_process_cred_mac_addr()
204 os_memcpy(cred->mac_addr, mac_addr, ETH_ALEN); in wps_process_cred_mac_addr()
259 wps_process_cred_mac_addr(cred, attr->mac_addr)) in wps_process_cred()
278 wps_process_cred_mac_addr(cred, attr->mac_addr)) in wps_process_ap_settings()
H A Dwps_enrollee.c324 wps->peer_dev.mac_addr, in wps_build_cred_network_key()
445 wps_success_event(wps->wps, wps->peer_dev.mac_addr); in wps_build_wsc_done()
718 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_cred_e()
722 ")", MAC2STR(wps->cred.mac_addr), in wps_process_cred_e()
723 MAC2STR(wps->wps->dev.mac_addr)); in wps_process_cred_e()
818 if (os_memcmp(cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_ap_settings_e()
822 ")", MAC2STR(cred.mac_addr), in wps_process_ap_settings_e()
823 MAC2STR(wps->wps->dev.mac_addr)); in wps_process_ap_settings_e()
1309 wps->peer_dev.mac_addr); in wps_process_wsc_msg()
1318 wps->peer_dev.mac_addr); in wps_process_wsc_msg()
[all …]
H A Dwps.h55 u8 mac_addr[ETH_ALEN]; member
86 u8 mac_addr[ETH_ALEN]; member
267 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *p2p_dev_addr,
308 void (*reg_success_cb)(void *ctx, const u8 *mac_addr,
566 const u8 *mac_addr; member
582 const u8 *mac_addr; member
914 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid);
H A Dwps_i.h142 u16 config_error, u16 error_indication, const u8 *mac_addr);
143 void wps_success_event(struct wps_context *wps, const u8 *mac_addr);
145 const u8 *mac_addr);
218 int wps_cb_new_psk(struct wps_registrar *reg, const u8 *mac_addr,
H A Dwps_common.c273 u16 config_error, u16 error_indication, const u8 *mac_addr) in wps_fail_event() argument
284 os_memcpy(data.fail.peer_macaddr, mac_addr, ETH_ALEN); in wps_fail_event()
289 void wps_success_event(struct wps_context *wps, const u8 *mac_addr) in wps_success_event() argument
297 os_memcpy(data.success.peer_macaddr, mac_addr, ETH_ALEN); in wps_success_event()
303 const u8 *mac_addr) in wps_pwd_auth_fail_event() argument
313 os_memcpy(data.pwd_auth_fail.peer_macaddr, mac_addr, ETH_ALEN); in wps_pwd_auth_fail_event()
376 wps_build_mac_addr(plain, wps->dev.mac_addr) || in wps_get_oob_cred()
500 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid) in uuid_gen_mac_addr() argument
515 addr[1] = mac_addr; in uuid_gen_mac_addr()
H A Dwps_er.h45 u8 mac_addr[ETH_ALEN]; member
80 u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */ member
H A Dwps_registrar.c153 void (*reg_success_cb)(void *ctx, const u8 *mac_addr,
308 os_memcpy(dst->mac_addr, src->mac_addr, ETH_ALEN); in wps_device_clone_data()
329 d = wps_device_get(reg, dev->mac_addr); in wps_device_store()
1616 wps_build_mac_addr(msg, cred->mac_addr)) in wps_build_credential()
2387 if (mac_addr == NULL) { in wps_process_mac_addr()
2393 MAC2STR(mac_addr)); in wps_process_mac_addr()
2394 os_memcpy(wps->mac_addr_e, mac_addr, ETH_ALEN); in wps_process_mac_addr()
2395 os_memcpy(wps->peer_dev.mac_addr, mac_addr, ETH_ALEN); in wps_process_mac_addr()
2666 wps_process_mac_addr(wps, attr->mac_addr) || in wps_process_m1()
3069 if (wps->wps->wps_upnp && attr.mac_addr) { in wps_process_wsc_msg()
[all …]
/freebsd-12.1/contrib/ofed/libibverbs/
H A Dneigh.c400 uint8_t mac_addr[6] = {0x01, 0x00, 0x5E}; in get_mcast_mac_ipv4() local
403 mac_addr[5] = addr & 0xFF; in get_mcast_mac_ipv4()
405 mac_addr[4] = addr & 0xFF; in get_mcast_mac_ipv4()
407 mac_addr[3] = addr & 0x7F; in get_mcast_mac_ipv4()
409 *ll_addr = nl_addr_build(AF_LLC, mac_addr, sizeof(mac_addr)); in get_mcast_mac_ipv4()
416 uint8_t mac_addr[6] = {0x33, 0x33}; in get_mcast_mac_ipv6() local
420 *ll_addr = nl_addr_build(AF_LLC, mac_addr, sizeof(mac_addr)); in get_mcast_mac_ipv6()
428 uint8_t mac_addr[6]; in get_link_local_mac_ipv6() local
431 memcpy(mac_addr, (uint8_t *)nl_addr_get_binary_addr(dst) + 8, 3); in get_link_local_mac_ipv6()
432 mac_addr[0] ^= 2; in get_link_local_mac_ipv6()
[all …]
/freebsd-12.1/contrib/wpa/src/ap/
H A Diapp.c78 u8 mac_addr[ETH_ALEN]; member
99 u8 mac_addr[ETH_ALEN]; member
110 u8 mac_addr[ETH_ALEN]; member
127 u8 mac_addr[ETH_ALEN]; member
140 u8 mac_addr[ETH_ALEN]; member
174 static void iapp_send_add(struct iapp_data *iapp, u8 *mac_addr, u16 seq_num) in iapp_send_add() argument
193 os_memcpy(add->mac_addr, mac_addr, ETH_ALEN); in iapp_send_add()
273 sta = ap_get_sta(iapp->hapd, add->mac_addr); in iapp_process_add_notify()
276 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, in iapp_process_add_notify()
290 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, in iapp_process_add_notify()
H A Dwps_hostapd.c106 MAC2STR(mac_addr)); in hostapd_wps_new_psk_cb()
111 MAC2STR(mac_addr), MAC2STR(p2p_dev_addr)); in hostapd_wps_new_psk_cb()
125 os_memcpy(p->addr, mac_addr, ETH_ALEN); in hostapd_wps_new_psk_cb()
149 fprintf(f, MACSTR " %s\n", MAC2STR(mac_addr), hex); in hostapd_wps_new_psk_cb()
183 uuid, MAC2STR(dev->mac_addr), dev->device_name, in hostapd_wps_pin_needed_cb()
237 MAC2STR(mac_addr), uuid); in hostapd_wps_reg_success_cb()
240 mac_addr, uuid_e); in hostapd_wps_reg_success_cb()
433 MAC2STR(cred->mac_addr)); in hapd_wps_cred_cb()
1509 const u8 *mac_addr, const struct wpabuf *msg, in hostapd_rx_req_put_wlan_response() argument
1517 MACSTR, ev_type, MAC2STR(mac_addr)); in hostapd_rx_req_put_wlan_response()
[all …]
/freebsd-12.1/tools/tools/ath/ath_ee_9300_print/
H A Dmain.c48 ee->mac_addr[0], in eeprom_9300_hdr_print()
49 ee->mac_addr[1], in eeprom_9300_hdr_print()
50 ee->mac_addr[2], in eeprom_9300_hdr_print()
51 ee->mac_addr[3], in eeprom_9300_hdr_print()
52 ee->mac_addr[4], in eeprom_9300_hdr_print()
53 ee->mac_addr[5]); in eeprom_9300_hdr_print()
/freebsd-12.1/sys/dev/sfxge/common/
H A Dhunt_nic.c108 uint8_t mac_addr[6]; in hunt_board_cfg() local
149 rc = efx_mcdi_get_mac_address_pf(enp, mac_addr); in hunt_board_cfg()
150 if ((rc == 0) && (mac_addr[0] & 0x02)) { in hunt_board_cfg()
160 rc = efx_mcdi_get_mac_address_vf(enp, mac_addr); in hunt_board_cfg()
165 EFX_MAC_ADDR_COPY(encp->enc_mac_addr, mac_addr); in hunt_board_cfg()
H A Dmedford_nic.c135 uint8_t mac_addr[6] = { 0 }; in medford_board_cfg() local
181 rc = efx_mcdi_get_mac_address_pf(enp, mac_addr); in medford_board_cfg()
188 if ((rc == 0) && (mac_addr[0] & 0x02)) { in medford_board_cfg()
199 rc = efx_mcdi_get_mac_address_vf(enp, mac_addr); in medford_board_cfg()
204 EFX_MAC_ADDR_COPY(encp->enc_mac_addr, mac_addr); in medford_board_cfg()
/freebsd-12.1/usr.sbin/bhyve/
H A Dnet_utils.c39 net_parsemac(char *mac_str, uint8_t *mac_addr) in net_parsemac() argument
55 memcpy(mac_addr, ea->octet, ETHER_ADDR_LEN); in net_parsemac()
H A Dnet_utils.h37 int net_parsemac(char *mac_str, uint8_t *mac_addr);
/freebsd-12.1/sys/dev/qlxge/
H A Dqls_hw.c53 static int qls_config_mcast_mac_addr(qla_host_t *ha, uint8_t *mac_addr,
258 mac_upper = (ha->mac_addr[0] << 8) | ha->mac_addr[1]; in qls_config_unicast_mac_addr()
259 mac_lower = (ha->mac_addr[2] << 24) | (ha->mac_addr[3] << 16) | in qls_config_unicast_mac_addr()
260 (ha->mac_addr[4] << 8) | ha->mac_addr[5]; in qls_config_unicast_mac_addr()
309 qls_config_mcast_mac_addr(qla_host_t *ha, uint8_t *mac_addr, uint32_t add_mac, in qls_config_mcast_mac_addr() argument
324 mac_upper = (mac_addr[0] << 8) | mac_addr[1]; in qls_config_mcast_mac_addr()
325 mac_lower = (mac_addr[2] << 24) | (mac_addr[3] << 16) | in qls_config_mcast_mac_addr()
326 (mac_addr[4] << 8) | mac_addr[5]; in qls_config_mcast_mac_addr()
1898 bcopy(ha->flash.mac_addr0, ha->mac_addr, ETHER_ADDR_LEN); in qls_rd_nic_params()
1901 __func__, ha->mac_addr[0], ha->mac_addr[1], ha->mac_addr[2], in qls_rd_nic_params()
[all …]
/freebsd-12.1/contrib/wpa/hostapd/
H A Dhostapd.eap_user_sqlite30 mac_addr TEXT PRIMARY KEY,
35 mac_addr TEXT PRIMARY KEY,
/freebsd-12.1/sys/contrib/ncsw/inc/flib/
H A Dfsl_fman_memac.h184 struct mac_addr { struct
193 struct mac_addr mac_addr0; /* 0x00C-0x010 MAC_ADDR_0...1 */
210 struct mac_addr mac_addr[MEMAC_NUM_OF_PADDRS]; /* 0x80-0x0B4 mac padr */ member
/freebsd-12.1/contrib/hyperv/tools/
H A Dhv_kvp_daemon.c575 char *mac_addr = NULL; in kvp_if_name_to_mac() local
589 mac_addr = strdup(ether_ntoa((struct ether_addr *)(LLADDR(sdl)))); in kvp_if_name_to_mac()
596 return (mac_addr); in kvp_if_name_to_mac()
975 char *mac_addr; in kvp_set_ip_info() local
993 mac_addr = kvp_if_name_to_mac(if_name); in kvp_set_ip_info()
994 if (mac_addr == NULL) { in kvp_set_ip_info()
999 error = kvp_write_file(file, "HWADDR", "", mac_addr); in kvp_set_ip_info()
1049 free(mac_addr); in kvp_set_ip_info()
1064 free(mac_addr); in kvp_set_ip_info()
/freebsd-12.1/sys/contrib/ncsw/Peripherals/FM/MAC/
H A Dfman_memac.c73 iowrite32be(0x0, &regs->mac_addr[paddr_num - 1].mac_addr_l); in fman_memac_clear_addr_in_paddr()
74 iowrite32be(0x0, &regs->mac_addr[paddr_num - 1].mac_addr_u); in fman_memac_clear_addr_in_paddr()
94 iowrite32be(tmp0, &regs->mac_addr[paddr_num-1].mac_addr_l); in fman_memac_add_addr_in_paddr()
95 iowrite32be(tmp1, &regs->mac_addr[paddr_num-1].mac_addr_u); in fman_memac_add_addr_in_paddr()
/freebsd-12.1/sys/dev/bxe/
H A Dbxe_stats.c324 uint32_t mac_addr; in bxe_port_stats_init() local
371 mac_addr = (port ? GRCBASE_EMAC1 : GRCBASE_EMAC0); in bxe_port_stats_init()
376 dmae->src_addr_lo = (mac_addr + EMAC_REG_EMAC_RX_STAT_AC) >> 2; in bxe_port_stats_init()
404 dmae->src_addr_lo = ((mac_addr + EMAC_REG_EMAC_TX_STAT_AC) >> 2); in bxe_port_stats_init()
423 mac_addr = (port) ? NIG_REG_INGRESS_BMAC1_MEM : in bxe_port_stats_init()
430 ((mac_addr + BIGMAC_REGISTER_TX_STAT_GTPKT) >> 2); in bxe_port_stats_init()
434 ((mac_addr + BIGMAC_REGISTER_RX_STAT_GR64) >> 2); in bxe_port_stats_init()
439 ((mac_addr + BIGMAC2_REGISTER_TX_STAT_GTPOK) >> 2); in bxe_port_stats_init()
443 ((mac_addr + BIGMAC2_REGISTER_RX_STAT_GR64) >> 2); in bxe_port_stats_init()
453 mac_addr = (port) ? GRCBASE_MSTAT1 : GRCBASE_MSTAT0; in bxe_port_stats_init()
[all …]

1234567