/openbmc/u-boot/board/CZ.NIC/turris_mox/ |
H A D | mox_sp.c | 98 static inline void res_to_mac(u8 *mac, u32 t1, u32 t2) in res_to_mac() argument 100 mac[0] = t1 >> 8; in res_to_mac() 101 mac[1] = t1; in res_to_mac() 102 mac[2] = t2 >> 24; in res_to_mac() 103 mac[3] = t2 >> 16; in res_to_mac() 104 mac[4] = t2 >> 8; in res_to_mac() 105 mac[5] = t2; in res_to_mac()
|
/openbmc/linux/include/linux/mlx5/ |
H A D | mpfs.h | 11 int mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac); 12 int mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac); 14 static inline int mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac) { return 0; } in mlx5_mpfs_add_mac() argument 15 static inline int mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac) { return 0; } in mlx5_mpfs_del_mac() argument
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
H A D | fw.c | 478 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_set_fw_rsvdpagepkt() local 497 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl8723be_set_fw_rsvdpagepkt() 498 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt() 506 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt() 507 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl8723be_set_fw_rsvdpagepkt() 516 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt() 518 SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt() 538 SET_80211_HDR_ADDRESS1(qosnull, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt() 540 SET_80211_HDR_ADDRESS3(qosnull, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt() 549 SET_80211_HDR_ADDRESS1(btqosnull, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_pci.c | 300 ether_addr_copy(hw->mac.addr, hw->mac.perm_addr); in fm10k_handle_reset() 306 if (hw->mac.vlan_override) in fm10k_handle_reset() 816 item->mac.glort, in fm10k_macvlan_task() 817 item->mac.addr, in fm10k_macvlan_task() 818 item->mac.vid, in fm10k_macvlan_task() 823 item->mac.glort, in fm10k_macvlan_task() 824 item->mac.addr, in fm10k_macvlan_task() 825 item->mac.vid, in fm10k_macvlan_task() 1473 !ether_addr_equal(hw->mac.perm_addr, hw->mac.addr)) in fm10k_mbx_mac_addr() 1990 memcpy(&hw->mac.ops, fi->mac_ops, sizeof(hw->mac.ops)); in fm10k_sw_init() [all …]
|
H A D | fm10k_iov.c | 38 u8 mac[ETH_ALEN]; in fm10k_iov_msg_queue_mac_vlan() local 92 err = fm10k_tlv_attr_get_mac_vlan(result, mac, &vlan); in fm10k_iov_msg_queue_mac_vlan() 97 if (is_valid_ether_addr(vf_info->mac) && in fm10k_iov_msg_queue_mac_vlan() 98 !ether_addr_equal(mac, vf_info->mac)) in fm10k_iov_msg_queue_mac_vlan() 112 mac, vlan, set); in fm10k_iov_msg_queue_mac_vlan() 119 err = fm10k_tlv_attr_get_mac_vlan(result, mac, &vlan); in fm10k_iov_msg_queue_mac_vlan() 138 mac, vlan, set); in fm10k_iov_msg_queue_mac_vlan() 359 hw->mac.ops.configure_dglort_map(hw, &dglort); in fm10k_iov_resume() 578 if (!is_zero_ether_addr(mac) && !is_valid_ether_addr(mac)) in fm10k_ndo_set_vf_mac() 583 ether_addr_copy(vf_info->mac, mac); in fm10k_ndo_set_vf_mac() [all …]
|
/openbmc/u-boot/board/freescale/common/ |
H A D | sys_eeprom.c | 44 u8 mac[MAX_NUM_PORTS][6]; /* 0x42 - 0x71 MAC addresses */ member 118 u8 *p = e.mac[i]; in show_eeprom() 315 e.mac[index][i] = simple_strtoul(p, &p, 16); in set_mac_address() 460 memset(e.mac[8], 0xff, 6); in mac_read_from_eeprom() 464 if (memcmp(&e.mac[i], "\0\0\0\0\0\0", 6) && in mac_read_from_eeprom() 470 e.mac[i][0], in mac_read_from_eeprom() 471 e.mac[i][1], in mac_read_from_eeprom() 472 e.mac[i][2], in mac_read_from_eeprom() 473 e.mac[i][3], in mac_read_from_eeprom() 474 e.mac[i][4], in mac_read_from_eeprom() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_fltr.c | 227 const u8 *mac, enum ice_sw_fwd_act_type action) in ice_fltr_add_mac_to_list() argument 237 ether_addr_copy(info.l_data.mac.mac_addr, mac); in ice_fltr_add_mac_to_list() 306 ice_fltr_prepare_mac(struct ice_vsi *vsi, const u8 *mac, in ice_fltr_prepare_mac() argument 313 if (ice_fltr_add_mac_to_list(vsi, &tmp_list, mac, action)) { in ice_fltr_prepare_mac() 331 ice_fltr_prepare_mac_and_broadcast(struct ice_vsi *vsi, const u8 *mac, in ice_fltr_prepare_mac_and_broadcast() argument 341 if (ice_fltr_add_mac_to_list(vsi, &tmp_list, mac, action) || in ice_fltr_prepare_mac_and_broadcast() 403 int ice_fltr_add_mac(struct ice_vsi *vsi, const u8 *mac, in ice_fltr_add_mac() argument 406 return ice_fltr_prepare_mac(vsi, mac, action, ice_fltr_add_mac_list); in ice_fltr_add_mac() 416 ice_fltr_add_mac_and_broadcast(struct ice_vsi *vsi, const u8 *mac, in ice_fltr_add_mac_and_broadcast() argument 419 return ice_fltr_prepare_mac_and_broadcast(vsi, mac, action, in ice_fltr_add_mac_and_broadcast() [all …]
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/network/ |
H A D | phosphor-network_git.bb | 14 PACKAGECONFIG ??= "uboot-env default-link-local-autoconf default-ipv6-accept-ra persist-mac" 18 PACKAGECONFIG[sync-mac] = "-Dsync-mac=true,-Dsync-mac=false,nlohmann-json," 20 PACKAGECONFIG[persist-mac] = "-Dpersist-mac=true, -persist-mac=false,,"
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | cxgb2.c | 118 struct cmac *mac = adapter->port[dev->if_port].mac; in t1_set_rxmode() local 122 mac->ops->set_rx_mode(mac, &rm); in t1_set_rxmode() 177 struct cmac *mac = p->mac; in link_start() local 179 mac->ops->reset(mac); in link_start() 181 mac->ops->macaddress_set(mac, p->dev->dev_addr); in link_start() 270 struct cmac *mac = p->mac; in cxgb_close() local 300 pstats = p->mac->ops->statistics_update(p->mac, in t1_get_stats() 457 struct cmac *mac = adapter->port[dev->if_port].mac; in get_stats() local 845 if ((ret = mac->ops->set_mtu(mac, new_mtu))) in t1_change_mtu() 861 mac->ops->macaddress_set(mac, dev->dev_addr); in t1_set_mac_addr() [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ethtool.c | 394 s->fragments = enetc_port_rd(hw, ENETC_PM_RFRG(mac)); in enetc_rmon_stats() 395 s->jabbers = enetc_port_rd(hw, ENETC_PM_RJBR(mac)); in enetc_rmon_stats() 397 s->hist[0] = enetc_port_rd(hw, ENETC_PM_R64(mac)); in enetc_rmon_stats() 398 s->hist[1] = enetc_port_rd(hw, ENETC_PM_R127(mac)); in enetc_rmon_stats() 399 s->hist[2] = enetc_port_rd(hw, ENETC_PM_R255(mac)); in enetc_rmon_stats() 400 s->hist[3] = enetc_port_rd(hw, ENETC_PM_R511(mac)); in enetc_rmon_stats() 401 s->hist[4] = enetc_port_rd(hw, ENETC_PM_R1023(mac)); in enetc_rmon_stats() 402 s->hist[5] = enetc_port_rd(hw, ENETC_PM_R1522(mac)); in enetc_rmon_stats() 403 s->hist[6] = enetc_port_rd(hw, ENETC_PM_R1523X(mac)); in enetc_rmon_stats() 405 s->hist_tx[0] = enetc_port_rd(hw, ENETC_PM_T64(mac)); in enetc_rmon_stats() [all …]
|
/openbmc/phosphor-networkd/src/ |
H A D | types.hpp | 33 std::optional<stdplus::EtherAddr> mac = std::nullopt; member 42 mac == rhs.mac && mtu == rhs.mtu && in operator ==() 73 std::optional<stdplus::EtherAddr> mac; member 78 mac == rhs.mac; in operator ==()
|
/openbmc/qemu/hw/xen/ |
H A D | xen_devconfig.c | 52 char mac[20]; in xen_config_dev_nic() local 56 snprintf(mac, sizeof(mac), "%02x:%02x:%02x:%02x:%02x:%02x", in xen_config_dev_nic() 59 xen_pv_printf(NULL, 1, "config nic %d: mac=\"%s\"\n", vlan_id, mac); in xen_config_dev_nic() 64 xenstore_write_str(fe, "mac", mac); in xen_config_dev_nic() 68 xenstore_write_str(be, "mac", mac); in xen_config_dev_nic()
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/ |
H A D | base.c | 643 bw_40 = mac->bw_40; in _rtl_query_shortgi() 644 bw_80 = mac->bw_80; in _rtl_query_shortgi() 890 if (!mac->bw_80 || in _rtl_query_bandwidth_mode() 1385 if (mac->act_scanning) in rtl_action_proc() 2000 if (!mac->act_scanning) in rtl_collect_scan_list() 2071 mac->cnt_after_linked++; in rtl_watchdog_wq_callback() 2073 mac->cnt_after_linked = 0; in rtl_watchdog_wq_callback() 2648 mac->vendor = PEER_UNKNOWN; in rtl_recognize_peer() 2652 if (mac->cnt_after_linked > 2) in rtl_recognize_peer() 2668 vendor = mac->vendor; in rtl_recognize_peer() [all …]
|
H A D | rc.c | 118 struct rtl_mac *mac = rtl_mac(rtlpriv); in _rtl_rc_rate_set_series() local 136 if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_rc_rate_set_series() 137 mac->opmode == NL80211_IFTYPE_ADHOC) { in _rtl_rc_rate_set_series() 144 if (mac->bw_80) in _rtl_rc_rate_set_series() 146 else if (mac->bw_40) in _rtl_rc_rate_set_series() 192 struct rtl_mac *mac = rtl_mac(rtlpriv); in _rtl_tx_aggr_check() local 194 if (mac->act_scanning) in _rtl_tx_aggr_check() 197 if (mac->opmode == NL80211_IFTYPE_STATION && in _rtl_tx_aggr_check() 198 mac->cnt_after_linked < 3) in _rtl_tx_aggr_check() 214 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl_tx_status() local [all …]
|
H A D | ps.c | 199 if (mac->p2p_in_use) in rtl_ips_nic_off_wq_callback() 202 if (mac->link_state > MAC80211_NOLINK) in rtl_ips_nic_off_wq_callback() 230 !mac->act_scanning) { in rtl_ips_nic_off_wq_callback() 315 if (mac->link_state != MAC80211_LINKED) in rtl_get_fwlps_doze() 318 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl_get_fwlps_doze() 335 if (mac->link_state != MAC80211_LINKED) in rtl_lps_set_psmode() 408 if (mac->cnt_after_linked < 5) in rtl_lps_enter_core() 414 if (mac->link_state != MAC80211_LINKED) in rtl_lps_enter_core() 551 if (mac->link_state != MAC80211_LINKED) in rtl_swlps_rf_awake() 589 if ((mac->link_state != MAC80211_LINKED) || (mac->cnt_after_linked < 5)) in rtl_swlps_rf_sleep() [all …]
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwxgmac2_core.c | 1699 mac->pcsr = priv->ioaddr; in dwxgmac2_setup() 1702 mac->mcast_bits_log2 = 0; in dwxgmac2_setup() 1705 mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); in dwxgmac2_setup() 1710 mac->link.duplex = 0; in dwxgmac2_setup() 1722 mac->mii.addr_shift = 16; in dwxgmac2_setup() 1724 mac->mii.reg_shift = 0; in dwxgmac2_setup() 1739 mac->pcsr = priv->ioaddr; in dwxlgmac2_setup() 1742 mac->mcast_bits_log2 = 0; in dwxlgmac2_setup() 1745 mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); in dwxlgmac2_setup() 1752 mac->link.duplex = 0; in dwxlgmac2_setup() [all …]
|
/openbmc/linux/arch/mips/boot/dts/cavium-octeon/ |
H A D | octeon_3xxx.dts | 162 local-mac-address = [ 00 00 00 00 00 00 ]; 174 local-mac-address = [ 00 00 00 00 00 00 ]; 209 local-mac-address = [ 00 00 00 00 00 00 ]; 216 local-mac-address = [ 00 00 00 00 00 00 ]; 221 local-mac-address = [ 00 00 00 00 00 00 ]; 226 local-mac-address = [ 00 00 00 00 00 00 ]; 231 local-mac-address = [ 00 00 00 00 00 00 ]; 236 local-mac-address = [ 00 00 00 00 00 00 ]; 241 local-mac-address = [ 00 00 00 00 00 00 ]; 246 local-mac-address = [ 00 00 00 00 00 00 ]; [all …]
|
/openbmc/linux/drivers/net/ethernet/wangxun/libwx/ |
H A D | wx_hw.c | 23 if (wx->mac.type == wx_mac_sp) { in wx_intr_disable() 37 if (wx->mac.type == wx_mac_sp) { in wx_intr_enable() 463 if (wx->mac.type == wx_mac_sp) { in wx_init_eeprom_params() 529 if (wx->mac.type == wx_mac_sp) in wx_set_rar() 933 memset(&wx->mac.mta_shadow, 0, sizeof(wx->mac.mta_shadow)); in wx_update_mc_addr_list() 944 wx->mac.mta_shadow[i]); in wx_update_mc_addr_list() 1015 wx->mac.set_lben = true; in wx_disable_rx() 1017 wx->mac.set_lben = false; in wx_disable_rx() 1043 if (wx->mac.set_lben) { in wx_enable_rx() 1047 wx->mac.set_lben = false; in wx_enable_rx() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | utils.c | 871 int mac) in iwl_mvm_check_uapsd_agg_expected_tpt() argument 934 int ac, mac, i; in iwl_mvm_calc_tcm_stats() local 951 for (mac = 0; mac < NUM_MAC_INDEX_DRIVER; mac++) { in iwl_mvm_calc_tcm_stats() 957 band_airtime[band[mac]] += airtime; in iwl_mvm_calc_tcm_stats() 960 mvm->tcm.result.change[mac] = load != mvm->tcm.result.load[mac]; in iwl_mvm_calc_tcm_stats() 961 mvm->tcm.result.load[mac] = load; in iwl_mvm_calc_tcm_stats() 962 mvm->tcm.result.airtime[mac] = airtime; in iwl_mvm_calc_tcm_stats() 983 mac); in iwl_mvm_calc_tcm_stats() 1087 int mac; in iwl_mvm_resume_tcm() local 1093 for (mac = 0; mac < NUM_MAC_INDEX_DRIVER; mac++) { in iwl_mvm_resume_tcm() [all …]
|
/openbmc/linux/drivers/net/ethernet/i825xx/ |
H A D | sni_82596.c | 81 u8 mac[ETH_ALEN]; in sni_82596_probe() local 113 mac[0] = readb(eth_addr + 0x0b); in sni_82596_probe() 114 mac[1] = readb(eth_addr + 0x0a); in sni_82596_probe() 115 mac[2] = readb(eth_addr + 0x09); in sni_82596_probe() 116 mac[3] = readb(eth_addr + 0x08); in sni_82596_probe() 117 mac[4] = readb(eth_addr + 0x07); in sni_82596_probe() 118 mac[5] = readb(eth_addr + 0x06); in sni_82596_probe() 119 eth_hw_addr_set(netdevice, mac); in sni_82596_probe()
|
/openbmc/phosphor-networkd/ |
H A D | meson_options.txt | 9 option('sync-mac', type: 'boolean', 10 description: 'Sync mac address with phosphor-inventory-manager') 13 option('persist-mac', type: 'boolean', 15 option('force-sync-mac', type: 'boolean', 16 description: 'Force sync mac address no matter is first boot or not')
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | engleder,tsnep.yaml | 29 - const: mac 39 is named "mac". "txrx-[1-7]" are the interrupts for additional TX/RX 44 local-mac-address: true 46 mac-address: true 85 local-mac-address = [00 00 00 00 00 00]; 103 interrupt-names = "mac", "txrx-1", "txrx-2", "txrx-3"; 105 local-mac-address = [00 00 00 00 00 00];
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | ef10_sriov.c | 133 if (!is_zero_ether_addr(vf->mac)) { in efx_ef10_sriov_free_vf_vports() 135 eth_zero_addr(vf->mac); in efx_ef10_sriov_free_vf_vports() 174 eth_zero_addr(vf->mac); in efx_ef10_sriov_assign_vf_vport() 471 u8 *mac) in efx_ef10_vport_del_vf_mac() argument 515 if (!is_zero_ether_addr(vf->mac)) { in efx_ef10_sriov_set_vf_mac() 521 if (!is_zero_ether_addr(mac)) { in efx_ef10_sriov_set_vf_mac() 530 ether_addr_copy(vf->mac, mac); in efx_ef10_sriov_set_vf_mac() 549 eth_zero_addr(vf->mac); in efx_ef10_sriov_set_vf_mac() 598 if (!is_zero_ether_addr(vf->mac)) { in efx_ef10_sriov_set_vf_vlan() 625 eth_zero_addr(vf->mac); in efx_ef10_sriov_set_vf_vlan() [all …]
|
/openbmc/u-boot/arch/arm/mach-snapdragon/ |
H A D | misc.c | 39 void msm_generate_mac_addr(u8 *mac) in msm_generate_mac_addr() argument 47 mac[0] = 0x02; in msm_generate_mac_addr() 48 mac[1] = 00; in msm_generate_mac_addr() 50 mac[i + 2] = simple_strtoul(&sn[2 * i], NULL, 16); in msm_generate_mac_addr()
|
/openbmc/linux/include/linux/ |
H A D | of_net.h | 16 extern int of_get_mac_address(struct device_node *np, u8 *mac); 17 extern int of_get_mac_address_nvmem(struct device_node *np, u8 *mac); 27 static inline int of_get_mac_address(struct device_node *np, u8 *mac) in of_get_mac_address() argument 32 static inline int of_get_mac_address_nvmem(struct device_node *np, u8 *mac) in of_get_mac_address_nvmem() argument
|