Home
last modified time | relevance | path

Searched refs:mac (Results 251 – 275 of 1888) sorted by relevance

1...<<11121314151617181920>>...76

/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dvxlan_bridge_1q_ipv6.sh626 local mac=$1; shift
665 local mac=$1; shift
673 vxlan_flood_test $mac $dst $vid "${expects[@]}"
690 local mac=$1; shift
701 local mac=$1; shift
712 vxlan_flood_test $mac $dst $vid "${expects[@]}"
759 local mac=de:ad:be:ef:13:37
767 vxlan_flood_test $mac $dst $vid "${expects[@]}"
777 vxlan_flood_test $mac $dst $vid "${expects[@]}"
787 vxlan_flood_test $mac $dst $vid "${expects[@]}"
[all …]
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_utils.c743 u8 *mac) in hw_atl_utils_get_mac_permanent() argument
776 if ((mac[0] & 0x01U) || ((mac[0] | mac[1] | mac[2]) == 0x00U)) { in hw_atl_utils_get_mac_permanent()
783 mac[5] = (u8)(0xFFU & l); in hw_atl_utils_get_mac_permanent()
785 mac[4] = (u8)(0xFFU & l); in hw_atl_utils_get_mac_permanent()
787 mac[3] = (u8)(0xFFU & l); in hw_atl_utils_get_mac_permanent()
789 mac[2] = (u8)(0xFFU & l); in hw_atl_utils_get_mac_permanent()
790 mac[1] = (u8)(0xFFU & h); in hw_atl_utils_get_mac_permanent()
792 mac[0] = (u8)(0xFFU & h); in hw_atl_utils_get_mac_permanent()
968 const u8 *mac) in aq_fw1x_set_wake_magic() argument
994 mac); in aq_fw1x_set_wake_magic()
[all …]
/openbmc/openbmc/meta-ampere/meta-common/recipes-phosphor/network/
H A Dphosphor-network_%.bbappend1 PACKAGECONFIG:append = " sync-mac"
2 EXTRA_OEMESON:append = " -Dforce-sync-mac=false"
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A Digb_main.c2292 struct e1000_mac_info *mac = &hw->mac; in igb_reset() local
2299 switch (mac->type) { in igb_reset()
2403 if ((mac->type == e1000_82575 || mac->type == e1000_i350) && in igb_reset()
2420 if (!hw->mac.autoneg) in igb_reset()
3288 memcpy(&hw->mac.ops, ei->mac_ops, sizeof(hw->mac.ops)); in igb_probe()
3948 if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211) || in igb_probe_vfs()
5359 if ((hw->mac.type < e1000_82576) || (hw->mac.type > e1000_i350)) in igb_set_rx_mode()
9325 struct e1000_mac_info *mac = &adapter->hw.mac; in igb_set_spd_dplx() local
9327 mac->autoneg = 0; in igb_set_spd_dplx()
9363 mac->autoneg = 1; in igb_set_spd_dplx()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
H A Dhw.c396 if (!mac->ht_enable) in rtl88ee_set_hw_reg()
445 mac->min_space_cfg = ((mac->min_space_cfg & in rtl88ee_set_hw_reg()
453 mac->min_space_cfg); in rtl88ee_set_hw_reg()
456 mac->min_space_cfg); in rtl88ee_set_hw_reg()
467 mac->min_space_cfg); in rtl88ee_set_hw_reg()
470 mac->min_space_cfg); in rtl88ee_set_hw_reg()
694 mac->assoc_id)); in rtl88ee_set_hw_reg()
1977 u8 b_nmode = mac->ht_enable; in rtl88ee_update_hal_rate_table()
1981 u8 curtxbw_40mhz = mac->bw_40; in rtl88ee_update_hal_rate_table()
2084 curtxbw_40mhz = mac->bw_40; in rtl88ee_update_hal_rate_mask()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192c/
H A Dfw_common.c567 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92c_set_fw_rsvdpagepkt() local
583 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl92c_set_fw_rsvdpagepkt()
584 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl92c_set_fw_rsvdpagepkt()
591 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl92c_set_fw_rsvdpagepkt()
592 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl92c_set_fw_rsvdpagepkt()
600 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl92c_set_fw_rsvdpagepkt()
601 SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); in rtl92c_set_fw_rsvdpagepkt()
602 SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); in rtl92c_set_fw_rsvdpagepkt()
610 SET_80211_HDR_ADDRESS1(p_probersp, mac->bssid); in rtl92c_set_fw_rsvdpagepkt()
611 SET_80211_HDR_ADDRESS2(p_probersp, mac->mac_addr); in rtl92c_set_fw_rsvdpagepkt()
[all …]
/openbmc/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_main.c314 wx->mac.type = wx_mac_sp; in txgbe_init_type_code()
317 wx->mac.type = wx_mac_unknown; in txgbe_init_type_code()
355 wx->mac.num_rar_entries = TXGBE_SP_RAR_ENTRIES; in txgbe_sw_init()
356 wx->mac.max_tx_queues = TXGBE_SP_MAX_TX_QUEUES; in txgbe_sw_init()
357 wx->mac.max_rx_queues = TXGBE_SP_MAX_RX_QUEUES; in txgbe_sw_init()
358 wx->mac.mcft_size = TXGBE_SP_MC_TBL_SIZE; in txgbe_sw_init()
359 wx->mac.vft_size = TXGBE_SP_VFT_TBL_SIZE; in txgbe_sw_init()
360 wx->mac.rx_pb_size = TXGBE_SP_RX_PB_SIZE; in txgbe_sw_init()
361 wx->mac.tx_pb_size = TXGBE_SP_TDB_PB_SZ; in txgbe_sw_init()
375 wx->mac.max_msix_vectors = msix_count; in txgbe_sw_init()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
H A Dtrx.c217 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92ce_translate_rx_signal_stuff() local
237 ether_addr_equal(mac->bssid, in _rtl92ce_translate_rx_signal_stuff()
350 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_tx_fill_desc() local
375 sta = get_sta(hw, mac->vif, mac->bssid); in rtl92ce_tx_fill_desc()
376 if (mac->opmode == NL80211_IFTYPE_STATION) { in rtl92ce_tx_fill_desc()
377 bw_40 = mac->bw_40; in rtl92ce_tx_fill_desc()
378 } else if (mac->opmode == NL80211_IFTYPE_AP || in rtl92ce_tx_fill_desc()
379 mac->opmode == NL80211_IFTYPE_ADHOC || in rtl92ce_tx_fill_desc()
380 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in rtl92ce_tx_fill_desc()
433 mac->cur_40_prime_sc); in rtl92ce_tx_fill_desc()
[all …]
/openbmc/linux/drivers/staging/rtl8723bs/include/
H A Dsta_info.h341 static inline u32 wifi_mac_hash(u8 *mac) in wifi_mac_hash() argument
345 x = mac[0]; in wifi_mac_hash()
346 x = (x << 2) ^ mac[1]; in wifi_mac_hash()
347 x = (x << 2) ^ mac[2]; in wifi_mac_hash()
348 x = (x << 2) ^ mac[3]; in wifi_mac_hash()
349 x = (x << 2) ^ mac[4]; in wifi_mac_hash()
350 x = (x << 2) ^ mac[5]; in wifi_mac_hash()
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sp.c649 if (!is_valid_ether_addr(data->mac.mac)) in bnx2x_check_mac_add()
654 if (ether_addr_equal(data->mac.mac, pos->u.mac.mac) && in bnx2x_check_mac_add()
707 if (ether_addr_equal(data->mac.mac, pos->u.mac.mac) && in bnx2x_check_mac_del()
895 u8 *mac = elem->cmd_data.vlan_mac.u.mac.mac; in bnx2x_set_one_mac_e2() local
937 &rule_entry->mac.mac_lsb, mac); in bnx2x_set_one_mac_e2()
955 &rule_entry->mac.mac_lsb, mac); in bnx2x_set_one_mac_e2()
1063 elem->cmd_data.vlan_mac.u.mac.mac, 0, in bnx2x_set_one_mac_e1x()
2945 cfg_data.mac = &pmac_pos->mac[0]; in bnx2x_mcast_hdl_pending_add_e2()
3176 cfg_data.mac = mlist_pos->mac; in bnx2x_mcast_hdl_add()
3735 cfg_data.mac = &elem->mac[0]; in bnx2x_mcast_handle_restore_cmd_e1()
[all …]
/openbmc/phosphor-host-ipmid/user_channel/
H A Dpasswd_mgr.cpp147 uint8_t* mac, size_t* macLen, unsigned char* outBytes, size_t* outBytesLen) in encryptDecryptData() argument
150 outBytes == NULL || mac == NULL || inBytesLen == 0 || in encryptDecryptData()
172 (std::memcmp(calMac.data(), mac, calMacLen) == 0))) in encryptDecryptData()
225 if (NULL == HMAC(EVP_sha256(), key, keyLen, outBytes, *outBytesLen, mac, in encryptDecryptData()
340 uint8_t* mac = inBytes + inBytesLen; in readPasswdFileData() local
347 ivLen, inBytes, inBytesLen, mac, &macLen, in readPasswdFileData()
494 std::array<uint8_t, EVP_MAX_MD_SIZE> mac; in updatePasswdSpecialFile() local
495 size_t macLen = mac.size(); in updatePasswdSpecialFile()
527 mac.data(), &macLen, outBytes.data(), &outBytesLen) != 0) in updatePasswdSpecialFile()
568 if (fwrite(&mac[0], 1, macLen, (temp)()) != macLen) in updatePasswdSpecialFile()
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac4_core.c1345 mac->pcsr = priv->ioaddr; in dwmac4_setup()
1348 mac->mcast_bits_log2 = 0; in dwmac4_setup()
1350 if (mac->multicast_filter_bins) in dwmac4_setup()
1351 mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); in dwmac4_setup()
1355 mac->link.duplex = GMAC_CONFIG_DM; in dwmac4_setup()
1358 mac->link.speed1000 = 0; in dwmac4_setup()
1361 mac->mii.addr = GMAC_MDIO_ADDR; in dwmac4_setup()
1362 mac->mii.data = GMAC_MDIO_DATA; in dwmac4_setup()
1363 mac->mii.addr_shift = 21; in dwmac4_setup()
1365 mac->mii.reg_shift = 16; in dwmac4_setup()
[all …]
/openbmc/linux/drivers/infiniband/hw/usnic/
H A Dusnic_common_util.h40 usnic_mac_ip_to_gid(const char *const mac, const __be32 inaddr, char *raw_gid) in usnic_mac_ip_to_gid() argument
46 addrconf_addr_eui48(&raw_gid[8], mac); in usnic_mac_ip_to_gid()
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_fdb.c18 unsigned char mac[ETH_ALEN] __aligned(2); member
31 ether_addr_equal(fdb_entry->mac, fdb_info->addr)) in lan966x_fdb_find_entry()
53 ether_addr_copy(fdb_entry->mac, fdb_info->addr); in lan966x_fdb_add_entry()
67 ether_addr_equal(fdb_entry->mac, fdb_info->addr)) { in lan966x_fdb_del_entry()
89 lan966x_mac_cpu_learn(lan966x, fdb_entry->mac, fdb_entry->vid); in lan966x_fdb_write_entries()
101 lan966x_mac_cpu_forget(lan966x, fdb_entry->mac, fdb_entry->vid); in lan966x_fdb_erase_entries()
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_main.c93 if (mac[port].drpuntag == drop) in sja1105_drop_untagged()
96 mac[port].drpuntag = drop; in sja1105_drop_untagged()
99 &mac[port], true); in sja1105_drop_untagged()
108 if (mac[port].vlanid == pvid) in sja1105_pvid_apply()
111 mac[port].vlanid = pvid; in sja1105_pvid_apply()
114 &mac[port], true); in sja1105_pvid_apply()
219 mac = table->entries; in sja1105_init_mac_settings()
1336 mac[port].speed = speed; in sja1105_adjust_port_config()
1340 &mac[port], true); in sja1105_adjust_port_config()
2109 &mac[port], true); in sja1105_bridge_stp_state_set()
[all …]
/openbmc/u-boot/drivers/net/
H A Dvsc9953.c1247 (mac[0] << 8) | (mac[1] << 0); in vsc9953_mac_table_add()
1251 (mac[2] << 24) | (mac[3] << 16) | (mac[4] << 8) | in vsc9953_mac_table_add()
1265 (mac[0] << 8) | (mac[1] << 0); in vsc9953_mac_table_add()
1269 (mac[2] << 24) | (mac[3] << 16) | (mac[4] << 8) | in vsc9953_mac_table_add()
1297 (mac[0] << 8) | (mac[1] << 0); in vsc9953_mac_table_del()
1301 (mac[2] << 24) | (mac[3] << 16) | (mac[4] << 8) | in vsc9953_mac_table_del()
1312 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); in vsc9953_mac_table_del()
1320 (mac[0] << 8) | (mac[1] << 0); in vsc9953_mac_table_del()
1324 (mac[3] << 16) | (mac[4] << 8) | (mac[5] << 0)); in vsc9953_mac_table_del()
1332 (mac[0] << 8) | (mac[1] << 0); in vsc9953_mac_table_del()
[all …]
/openbmc/linux/drivers/net/ethernet/qualcomm/emac/
H A Demac-mac.c284 u32 mac; in emac_mac_mode_config() local
290 mac |= VLAN_STRIP; in emac_mac_mode_config()
293 mac |= PROM_MODE; in emac_mac_mode_config()
296 mac |= MULTI_ALL; in emac_mac_mode_config()
484 u32 mac, csr1; in emac_mac_start() local
515 mac |= SPEED(2); in emac_mac_start()
518 mac |= SPEED(1); in emac_mac_start()
523 mac |= FULLD; in emac_mac_start()
525 mac &= ~FULLD; in emac_mac_start()
530 mac |= BROAD_EN; in emac_mac_start()
[all …]
/openbmc/linux/net/llc/
H A Dllc_c_ac.c210 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_disc_cmd_p_set_x()
237 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_dm_rsp_f_set_p()
261 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_dm_rsp_f_set_1()
295 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_frmr_rsp_f_set_x()
322 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_frmr_rsp_f_set_0()
352 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_frmr_rsp_f_set_p()
373 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_i_cmd_p_set_1()
391 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_i_cmd_p_set_0()
409 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_i_xxx_x_set_0()
784 const u8 *dmac = llc->daddr.mac; in llc_conn_ac_send_sabme_cmd_p_set_x()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
H A Ddm.c140 if (mac->act_scanning) in rtl92ee_dm_dig()
153 if (mac->link_state >= MAC80211_LINKED) { in rtl92ee_dm_dig()
224 if (mac->link_state >= MAC80211_LINKED) { in rtl92ee_dm_dig()
331 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl92ee_dm_find_minimum_rssi() local
334 if ((mac->link_state < MAC80211_LINKED) && in rtl92ee_dm_find_minimum_rssi()
340 if (mac->link_state >= MAC80211_LINKED) { in rtl92ee_dm_find_minimum_rssi()
341 if (mac->opmode == NL80211_IFTYPE_AP || in rtl92ee_dm_find_minimum_rssi()
371 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl92ee_dm_check_rssi_monitor() local
378 if (mac->opmode == NL80211_IFTYPE_AP || in rtl92ee_dm_check_rssi_monitor()
379 mac->opmode == NL80211_IFTYPE_ADHOC || in rtl92ee_dm_check_rssi_monitor()
[all …]
/openbmc/linux/net/ethernet/
H A Deth.c540 const void *mac; in nvmem_get_mac_address() local
547 mac = nvmem_cell_read(cell, &len); in nvmem_get_mac_address()
550 if (IS_ERR(mac)) in nvmem_get_mac_address()
551 return PTR_ERR(mac); in nvmem_get_mac_address()
553 if (len != ETH_ALEN || !is_valid_ether_addr(mac)) { in nvmem_get_mac_address()
554 kfree(mac); in nvmem_get_mac_address()
558 ether_addr_copy(addrbuf, mac); in nvmem_get_mac_address()
559 kfree(mac); in nvmem_get_mac_address()
/openbmc/linux/net/batman-adv/
H A Dbridge_loop_avoidance.h27 static inline bool batadv_bla_is_loopdetect_mac(const uint8_t *mac) in batadv_bla_is_loopdetect_mac() argument
29 if (mac[0] == 0xba && mac[1] == 0xbe) in batadv_bla_is_loopdetect_mac()
/openbmc/linux/Documentation/devicetree/bindings/net/
H A Dasix,ax88178.yaml33 local-mac-address: true
34 mac-address: true
51 local-mac-address = [00 00 00 00 00 00];
/openbmc/openbmc/meta-ampere/meta-mitchell/recipes-phosphor/ipmi/
H A Dampere-ipmi-oem.bbappend1 PACKAGECONFIG:append = " mac-address-manual-fru-conf"
2 PACKAGECONFIG[mac-address-manual-fru-conf] = "-Dmac-address-fru-bus=14 -Dmac-address-fru-addr=80"
/openbmc/openbmc/meta-ampere/meta-jefferson/recipes-phosphor/ipmi/
H A Dampere-ipmi-oem.bbappend1 PACKAGECONFIG:append = " mac-address-manual-fru-conf"
2 PACKAGECONFIG[mac-address-manual-fru-conf] = "-Dmac-address-fru-bus=14 -Dmac-address-fru-addr=80"
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_sriov.c34 num_vf_macvlans = hw->mac.num_rar_entries - in ixgbe_alloc_vf_macvlans()
942 msgbuf[3] = hw->mac.mc_filter_type; in ixgbe_vf_reset_msg()
1202 if (hw->mac.type <= ixgbe_mac_82599EB) in ixgbe_update_vf_xcast_mode()
1428 if (is_valid_ether_addr(mac)) { in ixgbe_ndo_set_vf_mac()
1430 mac, vf); in ixgbe_ndo_set_vf_mac()
1444 } else if (is_zero_ether_addr(mac)) { in ixgbe_ndo_set_vf_mac()
1457 memcpy(vf_mac_addr, mac, ETH_ALEN); in ixgbe_ndo_set_vf_mac()
1485 if (hw->mac.type >= ixgbe_mac_X550) in ixgbe_enable_port_vlan()
1517 if (hw->mac.type >= ixgbe_mac_X550) in ixgbe_disable_port_vlan()
1600 switch (hw->mac.type) { in ixgbe_set_vf_rate_limit()
[all …]

1...<<11121314151617181920>>...76