/openbmc/linux/arch/mips/boot/dts/cavium-octeon/ |
H A D | octeon_68xx.dts | 251 local-mac-address = [ 00 00 00 00 00 00 ]; 270 local-mac-address = [ 00 00 00 00 00 00 ]; 276 local-mac-address = [ 00 00 00 00 00 00 ]; 282 local-mac-address = [ 00 00 00 00 00 00 ]; 288 local-mac-address = [ 00 00 00 00 00 00 ]; 302 local-mac-address = [ 00 00 00 00 00 00 ]; 308 local-mac-address = [ 00 00 00 00 00 00 ]; 314 local-mac-address = [ 00 00 00 00 00 00 ]; 320 local-mac-address = [ 00 00 00 00 00 00 ]; 334 local-mac-address = [ 00 00 00 00 00 00 ]; [all …]
|
/openbmc/u-boot/board/ti/common/ |
H A D | board_detect.c | 394 static u64 mac_to_u64(u8 mac[6]) in mac_to_u64() 401 addr |= mac[i]; in mac_to_u64() 407 static void u64_to_mac(u64 addr, u8 mac[6]) in u64_to_mac() 409 mac[5] = addr; in u64_to_mac() 410 mac[4] = addr >> 8; in u64_to_mac() 411 mac[3] = addr >> 16; in u64_to_mac() 412 mac[2] = addr >> 24; in u64_to_mac() 413 mac[1] = addr >> 32; in u64_to_mac() 414 mac[0] = addr >> 40; in u64_to_mac()
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
H A D | hw.c | 153 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92de_set_hw_reg() local 171 if (mac->vendor == PEER_CISCO && in rtl92de_set_hw_reg() 197 if (!mac->ht_enable) in rtl92de_set_hw_reg() 220 reg_tmp = (mac->cur_40_prime_sc) << 5; in rtl92de_set_hw_reg() 235 mac->min_space_cfg = ((mac->min_space_cfg & 0xf8) | in rtl92de_set_hw_reg() 240 mac->min_space_cfg); in rtl92de_set_hw_reg() 242 mac->min_space_cfg); in rtl92de_set_hw_reg() 250 mac->min_space_cfg = rtlpriv->rtlhal.minspace_cfg; in rtl92de_set_hw_reg() 251 mac->min_space_cfg |= (density_to_set << 3); in rtl92de_set_hw_reg() 254 mac->min_space_cfg); in rtl92de_set_hw_reg() [all …]
|
H A D | fw.c | 598 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92d_set_fw_rsvdpagepkt() local 612 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl92d_set_fw_rsvdpagepkt() 613 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl92d_set_fw_rsvdpagepkt() 618 SET_80211_PS_POLL_AID(p_pspoll, (mac->assoc_id | 0xc000)); in rtl92d_set_fw_rsvdpagepkt() 619 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl92d_set_fw_rsvdpagepkt() 620 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl92d_set_fw_rsvdpagepkt() 626 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl92d_set_fw_rsvdpagepkt() 627 SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); in rtl92d_set_fw_rsvdpagepkt() 628 SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); in rtl92d_set_fw_rsvdpagepkt() 634 SET_80211_HDR_ADDRESS1(p_probersp, mac->bssid); in rtl92d_set_fw_rsvdpagepkt() [all …]
|
/openbmc/openbmc/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/ |
H A D | mac-address_%.bbappend | 5 FILES:${PN}:append:olympus-nuvoton = " ${datadir}/mac-address/config.txt" 8 install -d ${D}${datadir}/mac-address 10 ${D}${datadir}/mac-address/config.txt
|
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | util.h | 15 const u8 *mac); 19 const u8 *mac); 20 bool qtnf_sta_list_del(struct qtnf_vif *vif, const u8 *mac);
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
H A D | dm.c | 15 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92cu_dm_dynamic_txpower() local 26 if ((mac->link_state < MAC80211_LINKED) && in rtl92cu_dm_dynamic_txpower() 37 if (mac->link_state >= MAC80211_LINKED) { in rtl92cu_dm_dynamic_txpower() 38 if (mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92cu_dm_dynamic_txpower()
|
/openbmc/linux/drivers/scsi/fcoe/ |
H A D | fcoe_ctlr.c | 179 memcpy(temp->mac, new->fcf_mac, ETH_ALEN); in fcoe_sysfs_fcf_add() 383 struct fip_mac_desc mac; in fcoe_ctlr_solicit() member 409 sol->desc.mac.fd_desc.fip_dtype = FIP_DT_MAC; in fcoe_ctlr_solicit() 410 sol->desc.mac.fd_desc.fip_dlen = sizeof(sol->desc.mac) / FIP_BPW; in fcoe_ctlr_solicit() 411 memcpy(sol->desc.mac.fd_mac, fip->ctl_src_addr, ETH_ALEN); in fcoe_ctlr_solicit() 537 struct fip_mac_desc mac; in fcoe_ctlr_send_keep_alive() member 563 kal->fip.fip_dl_len = htons((sizeof(kal->mac) + in fcoe_ctlr_send_keep_alive() 569 kal->mac.fd_desc.fip_dtype = FIP_DT_MAC; in fcoe_ctlr_send_keep_alive() 570 kal->mac.fd_desc.fip_dlen = sizeof(kal->mac) / FIP_BPW; in fcoe_ctlr_send_keep_alive() 571 memcpy(kal->mac.fd_mac, fip->ctl_src_addr, ETH_ALEN); in fcoe_ctlr_send_keep_alive() [all …]
|
/openbmc/openbmc/meta-quanta/meta-common/recipes-quanta/network/ |
H A D | mac-address_git.bb | 10 SRC_URI = "git://github.com/quanta-bmc/mac-address.git;protocol=https;branch=master" 14 FILES:${PN} += "${bindir}/mac-address" 17 SYSTEMD_SERVICE:${PN} = "mac-address.service"
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_sriov.c | 64 int nfp_app_set_vf_mac(struct net_device *netdev, int vf, u8 *mac) in nfp_app_set_vf_mac() argument 74 if (is_multicast_ether_addr(mac)) { in nfp_app_set_vf_mac() 77 mac, vf); in nfp_app_set_vf_mac() 83 writel(get_unaligned_be32(mac), app->pf->vfcfg_tbl2 + vf_offset); in nfp_app_set_vf_mac() 84 writew(get_unaligned_be16(mac + 4), in nfp_app_set_vf_mac() 91 mac, vf); in nfp_app_set_vf_mac() 285 put_unaligned_be32(mac_hi, &ivi->mac[0]); in nfp_app_get_vf_config() 286 put_unaligned_be16(mac_lo, &ivi->mac[4]); in nfp_app_get_vf_config()
|
/openbmc/linux/drivers/scsi/qedf/ |
H A D | qedf_fip.c | 36 ether_addr_copy(vlan->eth.h_source, qedf->mac); in qedf_fcoe_send_vlan_req() 45 vlan->desc.mac.fd_desc.fip_dtype = FIP_DT_MAC; in qedf_fcoe_send_vlan_req() 46 vlan->desc.mac.fd_desc.fip_dlen = sizeof(vlan->desc.mac) / FIP_BPW; in qedf_fcoe_send_vlan_req() 47 ether_addr_copy(vlan->desc.mac.fd_mac, qedf->mac); in qedf_fcoe_send_vlan_req() 199 if (!ether_addr_equal(eth_hdr->h_dest, qedf->mac) && in qedf_fip_recv() 204 op, eth_hdr->h_dest, qedf->mac, in qedf_fip_recv()
|
/openbmc/linux/drivers/s390/net/ |
H A D | qeth_l2_main.c | 74 static int qeth_l2_send_setdelmac(struct qeth_card *card, const __u8 *mac, in qeth_l2_send_setdelmac() argument 87 ether_addr_copy(cmd->data.setdelmac.mac, mac); in qeth_l2_send_setdelmac() 91 static int qeth_l2_send_setmac(struct qeth_card *card, const __u8 *mac) in qeth_l2_send_setmac() argument 96 rc = qeth_l2_send_setdelmac(card, mac, IPA_CMD_SETVMAC); in qeth_l2_send_setmac() 99 "MAC address %pM successfully registered\n", mac); in qeth_l2_send_setmac() 104 "MAC address %pM already exists\n", mac); in qeth_l2_send_setmac() 108 "MAC address %pM is not authorized\n", mac); in qeth_l2_send_setmac() 115 static int qeth_l2_write_mac(struct qeth_card *card, u8 *mac) in qeth_l2_write_mac() argument 117 enum qeth_ipa_cmds cmd = is_multicast_ether_addr(mac) ? in qeth_l2_write_mac() 122 rc = qeth_l2_send_setdelmac(card, mac, cmd); in qeth_l2_write_mac() [all …]
|
/openbmc/openbmc/meta-phosphor/dynamic-layers/aspeed-layer/recipes-bsp/u-boot/files/ |
H A D | 0002-board-aspeed-aspeednic-Use-MAC2-for-networking.patch | 28 #define _PHY_SETTING_CONCAT(mac) CONFIG_MAC##mac##_PHY_SETTING 29 #define _GET_MAC_PHY_SETTING(mac) _PHY_SETTING_CONCAT(mac)
|
/openbmc/openbmc/meta-yadro/meta-vegman/recipes-yadro/fru/vegman-fru-handler/ |
H A D | baseboard-fru-handler.sh | 21 local mac="$2" 30 ip link set dev "${iface}" address "${mac}" ||: 38 local mac="$2" 51 if ! fw_setenv "$envname" "$mac"; then
|
/openbmc/linux/drivers/net/dsa/hirschmann/ |
H A D | hellcreek.c | 724 "OBT=%d, PASS_BLOCKED=%d, REPRIO_EN=%d, PRIO=%d\n", entry->mac, in __hellcreek_fdb_add() 729 hellcreek_write(hellcreek, entry->mac[1] | (entry->mac[0] << 8), HR_FDBWDH); in __hellcreek_fdb_add() 730 hellcreek_write(hellcreek, entry->mac[3] | (entry->mac[2] << 8), HR_FDBWDM); in __hellcreek_fdb_add() 731 hellcreek_write(hellcreek, entry->mac[5] | (entry->mac[4] << 8), HR_FDBWDL); in __hellcreek_fdb_add() 755 dev_dbg(hellcreek->dev, "Delete FDB entry: MAC=%pM!\n", entry->mac); in __hellcreek_fdb_del() 769 u16 meta, mac; in hellcreek_populate_fdb_entry() local 773 mac = hellcreek_read(hellcreek, HR_FDBRDL); in hellcreek_populate_fdb_entry() 774 addr[5] = mac & 0xff; in hellcreek_populate_fdb_entry() 775 addr[4] = (mac & 0xff00) >> 8; in hellcreek_populate_fdb_entry() 776 mac = hellcreek_read(hellcreek, HR_FDBRDM); in hellcreek_populate_fdb_entry() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | cxgb3_main.c | 184 t3_set_reg_field(adapter, A_XGM_TXFIFO_CFG + pi->mac.offset, 0, in enable_tx_fifo_drain() 186 t3_write_reg(adapter, A_XGM_RX_CTRL + pi->mac.offset, 0); in enable_tx_fifo_drain() 187 t3_write_reg(adapter, A_XGM_TX_CTRL + pi->mac.offset, F_TXEN); in enable_tx_fifo_drain() 188 t3_write_reg(adapter, A_XGM_RX_CTRL + pi->mac.offset, F_RXEN); in enable_tx_fifo_drain() 194 t3_set_reg_field(adapter, A_XGM_TXFIFO_CFG + pi->mac.offset, in disable_tx_fifo_drain() 207 struct cmac *mac = &pi->mac; in t3_os_link_fault() local 216 pi->mac.offset); in t3_os_link_fault() 218 A_XGM_INT_CAUSE + pi->mac.offset, in t3_os_link_fault() 223 pi->mac.offset, in t3_os_link_fault() 227 t3_mac_enable(mac, MAC_DIRECTION_TX); in t3_os_link_fault() [all …]
|
H A D | t3_hw.c | 1133 static void t3_gate_rx_traffic(struct cmac *mac, u32 *rx_cfg, in t3_gate_rx_traffic() argument 1137 t3_mac_disable_exact_filters(mac); in t3_gate_rx_traffic() 1140 *rx_cfg = t3_read_reg(mac->adapter, A_XGM_RX_CFG); in t3_gate_rx_traffic() 1141 t3_set_reg_field(mac->adapter, A_XGM_RX_CFG, in t3_gate_rx_traffic() 1145 *rx_hash_high = t3_read_reg(mac->adapter, A_XGM_RX_HASH_HIGH); in t3_gate_rx_traffic() 1146 t3_write_reg(mac->adapter, A_XGM_RX_HASH_HIGH, 0); in t3_gate_rx_traffic() 1148 *rx_hash_low = t3_read_reg(mac->adapter, A_XGM_RX_HASH_LOW); in t3_gate_rx_traffic() 1149 t3_write_reg(mac->adapter, A_XGM_RX_HASH_LOW, 0); in t3_gate_rx_traffic() 1155 static void t3_open_rx_traffic(struct cmac *mac, u32 rx_cfg, in t3_open_rx_traffic() argument 1158 t3_mac_enable_exact_filters(mac); in t3_open_rx_traffic() [all …]
|
H A D | common.h | 677 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc); 703 int t3_mac_reset(struct cmac *mac); 704 void t3b_pcs_reset(struct cmac *mac); 705 void t3_mac_disable_exact_filters(struct cmac *mac); 706 void t3_mac_enable_exact_filters(struct cmac *mac); 707 int t3_mac_enable(struct cmac *mac, int which); 708 int t3_mac_disable(struct cmac *mac, int which); 709 int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu); 710 int t3_mac_set_rx_mode(struct cmac *mac, struct net_device *dev); 711 int t3_mac_set_address(struct cmac *mac, unsigned int idx, const u8 addr[6]); [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_phy.c | 104 if (lock && hw->mac.ops.acquire_swfw_sync(hw, swfw_mask)) in ixgbe_read_i2c_combined_generic_int() 138 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_read_i2c_combined_generic_int() 145 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_read_i2c_combined_generic_int() 181 if (lock && hw->mac.ops.acquire_swfw_sync(hw, swfw_mask)) in ixgbe_write_i2c_combined_generic_int() 204 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_write_i2c_combined_generic_int() 210 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_write_i2c_combined_generic_int() 318 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_check_reset_blocked() 555 if (hw->mac.ops.acquire_swfw_sync(hw, gssr) == 0) { in ixgbe_read_phy_reg_generic() 558 hw->mac.ops.release_swfw_sync(hw, gssr); in ixgbe_read_phy_reg_generic() 653 if (hw->mac.ops.acquire_swfw_sync(hw, gssr) == 0) { in ixgbe_write_phy_reg_generic() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
H A D | hw.c | 130 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_set_hw_reg() local 175 if (!mac->ht_enable) in rtl92ce_set_hw_reg() 202 reg_tmp = (mac->cur_40_prime_sc) << 5; in rtl92ce_set_hw_reg() 220 mac->min_space_cfg = ((mac->min_space_cfg & in rtl92ce_set_hw_reg() 228 mac->min_space_cfg); in rtl92ce_set_hw_reg() 231 mac->min_space_cfg); in rtl92ce_set_hw_reg() 239 mac->min_space_cfg |= (density_to_set << 3); in rtl92ce_set_hw_reg() 243 mac->min_space_cfg); in rtl92ce_set_hw_reg() 246 mac->min_space_cfg); in rtl92ce_set_hw_reg() 310 (union aci_aifsn *)(&(mac->ac[0].aifs)); in rtl92ce_set_hw_reg() [all …]
|
/openbmc/linux/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00config.c | 22 const u8 *mac, const u8 *bssid) in rt2x00lib_config_intf() argument 51 memset(conf.mac, 0, sizeof(conf.mac)); in rt2x00lib_config_intf() 52 if (mac) in rt2x00lib_config_intf() 53 memcpy(conf.mac, mac, ETH_ALEN); in rt2x00lib_config_intf() 60 if (mac || (!rt2x00dev->intf_ap_count && !rt2x00dev->intf_sta_count)) in rt2x00lib_config_intf()
|
/openbmc/google-misc/subprojects/ncsid/src/ |
H A D | ncsi_state_machine.cpp | 142 mac_addr_t mac; in poll_l2_config() local 143 net_config_->get_mac_addr(&mac); in poll_l2_config() 145 &ncsi_state_, &network_debug_, &ncsi_buf_, &mac); in poll_l2_config() 160 net_config_->set_mac_addr(mac); in poll_l2_config() 180 mac_addr_t mac; in poll_simple() local 181 net_config_->get_mac_addr(&mac); in poll_simple() 185 poll_func(&ncsi_state_, &network_debug_, &ncsi_buf_, &mac, 0, rx_port); in poll_simple()
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
H A D | hw.c | 135 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723e_set_hw_reg() local 179 if (!mac->ht_enable) in rtl8723e_set_hw_reg() 206 reg_tmp = (mac->cur_40_prime_sc) << 5; in rtl8723e_set_hw_reg() 224 mac->min_space_cfg = ((mac->min_space_cfg & in rtl8723e_set_hw_reg() 232 mac->min_space_cfg); in rtl8723e_set_hw_reg() 235 mac->min_space_cfg); in rtl8723e_set_hw_reg() 243 mac->min_space_cfg |= (density_to_set << 3); in rtl8723e_set_hw_reg() 247 mac->min_space_cfg); in rtl8723e_set_hw_reg() 250 mac->min_space_cfg); in rtl8723e_set_hw_reg() 312 (union aci_aifsn *)(&mac->ac[0].aifs); in rtl8723e_set_hw_reg() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/igb/ |
H A D | igb_main.c | 163 static int igb_ndo_set_vf_mac(struct net_device *netdev, int vf, u8 *mac); 706 switch (adapter->hw.mac.type) { in igb_cache_ring_register() 797 switch (hw->mac.type) { in igb_assign_vector() 878 switch (hw->mac.type) { in igb_configure_msix() 1262 if (adapter->hw.mac.type == e1000_82575) in igb_alloc_q_vector() 1297 if (adapter->hw.mac.type >= e1000_82576) in igb_alloc_q_vector() 1303 if (adapter->hw.mac.type >= e1000_i350) in igb_alloc_q_vector() 1607 WARN_ON(hw->mac.type != e1000_i210); in enable_fqtss() 1628 WARN_ON(hw->mac.type != e1000_i210); in set_tx_desc_fetch_prio() 1645 WARN_ON(hw->mac.type != e1000_i210); in set_queue_mode() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
H A D | hw.c | 355 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88ee_set_hw_reg() local 396 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() 463 mac->min_space_cfg |= (density_to_set << 3); 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() 523 (union aci_aifsn *)(&(mac->ac[0].aifs)); in rtl88ee_set_hw_reg() 694 mac->assoc_id)); in rtl88ee_set_hw_reg() [all …]
|