/openbmc/u-boot/board/qualcomm/dragonboard410c/ |
H A D | dragonboard410c.c | 174 u8 mac[ARP_HLEN]; in ft_board_setup() local 178 if (!eth_env_get_enetaddr("wlanaddr", mac)) { in ft_board_setup() 179 msm_generate_mac_addr(mac); in ft_board_setup() 183 "local-mac-address", mac, ARP_HLEN, 1); in ft_board_setup() 186 if (!eth_env_get_enetaddr("btaddr", mac)) { in ft_board_setup() 187 msm_generate_mac_addr(mac); in ft_board_setup() 192 mac[0] ^= 0x01; in ft_board_setup() 196 "local-bd-address", mac, ARP_HLEN, 1); in ft_board_setup()
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | ingenic,mac.yaml | 4 $id: http://devicetree.org/schemas/net/ingenic,mac.yaml# 18 - ingenic,jz4775-mac 19 - ingenic,x1000-mac 20 - ingenic,x1600-mac 21 - ingenic,x1830-mac 22 - ingenic,x2000-mac 64 mac: ethernet@134b0000 { 65 compatible = "ingenic,x1000-mac";
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | ich8lan.c | 329 switch (hw->mac.type) { in e1000_init_phy_workarounds_pchlan() 476 switch (hw->mac.type) { in e1000_init_phy_params_pchlan() 692 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_ich8lan() local 704 mac->has_fwsm = true; in e1000_init_mac_params_ich8lan() 711 switch (mac->type) { in e1000_init_mac_params_ich8lan() 1412 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_copper_link_ich8lan() local 1649 if (!mac->autoneg) in e1000_check_for_copper_link_ich8lan() 4629 struct e1000_mac_info *mac = &hw->mac; in e1000_id_led_init_pchlan() local 4641 mac->ledctl_mode1 = mac->ledctl_default; in e1000_id_led_init_pchlan() 4642 mac->ledctl_mode2 = mac->ledctl_default; in e1000_id_led_init_pchlan() [all …]
|
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | commands.h | 15 int qtnf_cmd_get_mac_info(struct qtnf_wmac *mac); 23 int qtnf_cmd_band_info_get(struct qtnf_wmac *mac, 25 int qtnf_cmd_send_regulatory_config(struct qtnf_wmac *mac, const char *alpha2); 36 int qtnf_cmd_send_phy_params(struct qtnf_wmac *mac, u16 cmd_action, 45 int qtnf_cmd_send_add_sta(struct qtnf_vif *vif, const u8 *mac, 47 int qtnf_cmd_send_change_sta(struct qtnf_vif *vif, const u8 *mac, 51 int qtnf_cmd_send_scan(struct qtnf_wmac *mac); 60 int qtnf_cmd_reg_notify(struct qtnf_wmac *mac, struct regulatory_request *req, 62 int qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u32 chan_freq,
|
H A D | core.h | 65 struct qtnf_wmac *mac; member 124 struct qtnf_vif *qtnf_mac_get_free_vif(struct qtnf_wmac *mac); 125 struct qtnf_vif *qtnf_mac_get_base_vif(struct qtnf_wmac *mac); 126 void qtnf_mac_iface_comb_free(struct qtnf_wmac *mac); 127 void qtnf_mac_ext_caps_free(struct qtnf_wmac *mac); 132 int qtnf_core_net_attach(struct qtnf_wmac *mac, struct qtnf_vif *priv, 135 int qtnf_cmd_send_update_phy_params(struct qtnf_wmac *mac, u32 changed); 144 void qtnf_scan_done(struct qtnf_wmac *mac, bool aborted);
|
/openbmc/u-boot/arch/arm/mach-omap2/ |
H A D | utils.c | 205 unsigned char mac[6] = { 0 }; in omap_die_id_usbethaddr() local 214 mac[0] = 0x02; in omap_die_id_usbethaddr() 215 mac[1] = die_id[3] & 0xff; in omap_die_id_usbethaddr() 216 mac[2] = die_id[2] & 0xff; in omap_die_id_usbethaddr() 217 mac[3] = die_id[1] & 0xff; in omap_die_id_usbethaddr() 218 mac[4] = die_id[0] & 0xff; in omap_die_id_usbethaddr() 219 mac[5] = (die_id[0] >> 8) & 0xff; in omap_die_id_usbethaddr() 221 eth_env_set_enetaddr("usbethaddr", mac); in omap_die_id_usbethaddr() 224 eth_env_set_enetaddr("ethaddr", mac); in omap_die_id_usbethaddr()
|
/openbmc/linux/drivers/net/ethernet/intel/igb/ |
H A D | e1000_82575.c | 404 struct e1000_mac_info *mac = &hw->mac; in igb_init_mac_params_82575() local 410 mac->uta_reg_count = (hw->mac.type == e1000_82575) ? 0 : 128; in igb_init_mac_params_82575() 412 switch (mac->type) { in igb_init_mac_params_82575() 442 if ((hw->mac.type == e1000_i350) || (hw->mac.type == e1000_i354)) in igb_init_mac_params_82575() 467 if (mac->type == e1000_82580 || mac->type == e1000_i350) { in igb_init_mac_params_82575() 554 struct e1000_mac_info *mac = &hw->mac; in igb_get_invariants_82575() local 693 switch (mac->type) { in igb_get_invariants_82575() 1301 hw->mac.get_link_status = !hw->mac.serdes_has_link; in igb_check_for_link_82575() 1358 struct e1000_mac_info *mac = &hw->mac; in igb_get_pcs_speed_and_duplex_82575() local 1511 struct e1000_mac_info *mac = &hw->mac; in igb_init_hw_82575() local [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_common.c | 153 struct fm10k_mac_info *mac = &hw->mac; in fm10k_get_invariants_generic() local 156 mac->dglort_map = FM10K_DGLORTMAP_NONE; in fm10k_get_invariants_generic() 174 hw->mac.tx_ready = true; in fm10k_start_hw_generic() 191 hw->mac.tx_ready = false; in fm10k_disable_queues_generic() 477 struct fm10k_mac_info *mac = &hw->mac; in fm10k_get_host_state_generic() local 486 mac->get_host_state = true; in fm10k_get_host_state_generic() 489 if (!mac->get_host_state || !(~txdctl)) in fm10k_get_host_state_generic() 510 if (mac->ops.request_lport_map) in fm10k_get_host_state_generic() 511 ret_val = mac->ops.request_lport_map(hw); in fm10k_get_host_state_generic() 519 mac->get_host_state = false; in fm10k_get_host_state_generic() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/wil6210/ |
H A D | txrx.h | 468 struct vring_tx_mac mac; member 478 struct vring_rx_mac mac; member 506 return WIL_GET_BITS(d->mac.d0, 0, 3); in wil_rxdesc_tid() 511 return WIL_GET_BITS(d->mac.d0, 4, 6); in wil_rxdesc_cid() 517 WIL_GET_BITS(d->mac.d0, 8, 9) : 0; in wil_rxdesc_mid() 522 return WIL_GET_BITS(d->mac.d0, 10, 11); in wil_rxdesc_ftype() 527 return WIL_GET_BITS(d->mac.d0, 12, 15); in wil_rxdesc_subtype() 538 return WIL_GET_BITS(d->mac.d0, 16, 27); in wil_rxdesc_seq() 553 return WIL_GET_BITS(d->mac.d1, 4, 5); in wil_rxdesc_key_id() 558 return WIL_GET_BITS(d->mac.d1, 7, 7); in wil_rxdesc_security() [all …]
|
/openbmc/linux/arch/s390/kernel/ |
H A D | sthyi.c | 123 struct mac_sctn mac; member 193 memcpy(sctns->mac.infmtype, sysinfo->type, sizeof(sctns->mac.infmtype)); in fill_stsi_mac() 194 memcpy(sctns->mac.infmmanu, sysinfo->manufacturer, sizeof(sctns->mac.infmmanu)); in fill_stsi_mac() 195 memcpy(sctns->mac.infmpman, sysinfo->plant, sizeof(sctns->mac.infmpman)); in fill_stsi_mac() 196 memcpy(sctns->mac.infmseq, sysinfo->sequence, sizeof(sctns->mac.infmseq)); in fill_stsi_mac() 198 sctns->mac.infmval1 |= MAC_ID_VLD; in fill_stsi_mac() 238 sctns->mac.infmdcps++; in fill_diag_mac() 240 sctns->mac.infmscps++; in fill_diag_mac() 244 sctns->mac.infmdifl++; in fill_diag_mac() 246 sctns->mac.infmsifl++; in fill_diag_mac() [all …]
|
/openbmc/openbmc/meta-google/recipes-google/networking/ |
H A D | gbmc-mac-config.bb | 9 file://gbmc-mac-config.service \ 10 file://gbmc-mac-config.sh.in \ 22 SYSTEMD_SERVICE:${PN} += "gbmc-mac-config.service" 40 sed gbmc-mac-config.sh.in \ 43 >gbmc-mac-config.sh 46 install -m0755 gbmc-mac-config.sh ${D}${libexecdir}/ 49 install -m0644 gbmc-mac-config.service ${D}${systemd_system_unitdir}/
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_common.c | 302 switch (hw->mac.type) { in ixgbe_start_hw_generic() 472 if (hw->mac.type == ixgbe_mac_X550 || hw->mac.type == ixgbe_mac_X540) { in ixgbe_clear_hw_cntrs_generic() 764 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_led_link_act_generic() local 776 mac->led_link_act = i; in ixgbe_init_led_link_act_generic() 784 switch (hw->mac.type) { in ixgbe_init_led_link_act_generic() 786 mac->led_link_act = 0; in ixgbe_init_led_link_act_generic() 789 mac->led_link_act = 1; in ixgbe_init_led_link_act_generic() 792 mac->led_link_act = 2; in ixgbe_init_led_link_act_generic() 1932 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbe_init_rx_addrs_generic() 1940 hw->mac.ops.set_rar(hw, 0, hw->mac.addr, 0, IXGBE_RAH_AV); in ixgbe_init_rx_addrs_generic() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | mpfs.c | 42 static int set_l2table_entry_cmd(struct mlx5_core_dev *dev, u32 index, u8 *mac) in set_l2table_entry_cmd() argument 51 ether_addr_copy(&in_mac_addr[2], mac); in set_l2table_entry_cmd() 133 int mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac) in mlx5_mpfs_add_mac() argument 145 l2addr = l2addr_hash_find(mpfs->hash, mac, struct l2table_node); in mlx5_mpfs_add_mac() 155 l2addr = l2addr_hash_add(mpfs->hash, mac, struct l2table_node, GFP_KERNEL); in mlx5_mpfs_add_mac() 161 err = set_l2table_entry_cmd(dev, index, mac); in mlx5_mpfs_add_mac() 168 mlx5_core_dbg(dev, "MPFS mac added %pM, index (%d)\n", mac, index); in mlx5_mpfs_add_mac() 181 int mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac) in mlx5_mpfs_del_mac() argument 193 l2addr = l2addr_hash_find(mpfs->hash, mac, struct l2table_node); in mlx5_mpfs_del_mac() 206 mlx5_core_dbg(dev, "MPFS mac deleted %pM, index (%d)\n", mac, index); in mlx5_mpfs_del_mac()
|
H A D | mpfs.h | 52 #define l2addr_hash_find(hash, mac, type) ({ \ argument 53 int ix = MLX5_L2_ADDR_HASH(mac); \ 58 if (ether_addr_equal(ptr->node.addr, mac)) {\ 67 #define l2addr_hash_add(hash, mac, type, gfp) ({ \ argument 68 int ix = MLX5_L2_ADDR_HASH(mac); \ 73 ether_addr_copy(ptr->node.addr, mac); \
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | flowring.c | 50 if (memcmp(search->mac, mac, ETH_ALEN) == 0) in brcmf_flowring_is_tdls_mac() 68 u8 *mac; in brcmf_flowring_lookup() local 72 mac = da; in brcmf_flowring_lookup() 74 mac = (u8 *)ALLFFMAC; in brcmf_flowring_lookup() 87 if ((sta || (memcmp(hash[hash_idx].mac, mac, ETH_ALEN) == 0)) && in brcmf_flowring_lookup() 113 u8 *mac; in brcmf_flowring_create() local 117 mac = da; in brcmf_flowring_create() 119 mac = (u8 *)ALLFFMAC; in brcmf_flowring_create() 152 memcpy(hash[hash_idx].mac, mac, ETH_ALEN); in brcmf_flowring_create() 246 eth_zero_addr(flow->hash[hash_idx].mac); in brcmf_flowring_delete() [all …]
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac1000_core.c | 534 mac->pcsr = priv->ioaddr; in dwmac1000_setup() 537 mac->mcast_bits_log2 = 0; in dwmac1000_setup() 539 if (mac->multicast_filter_bins) in dwmac1000_setup() 540 mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); in dwmac1000_setup() 547 mac->link.speed1000 = 0; in dwmac1000_setup() 549 mac->mii.addr = GMAC_MII_ADDR; in dwmac1000_setup() 550 mac->mii.data = GMAC_MII_DATA; in dwmac1000_setup() 551 mac->mii.addr_shift = 11; in dwmac1000_setup() 553 mac->mii.reg_shift = 6; in dwmac1000_setup() 554 mac->mii.reg_mask = 0x000007C0; in dwmac1000_setup() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_mdio.c | 127 struct hclge_mac *mac = &hdev->hw.mac; in hclge_mac_mdio_config() local 132 if (hdev->hw.mac.phy_addr == PHY_INEXISTENT) { in hclge_mac_mdio_config() 138 hdev->hw.mac.phy_addr); in hclge_mac_mdio_config() 154 mdio_bus->phy_mask = ~(1 << mac->phy_addr); in hclge_mac_mdio_config() 169 mac->phydev = phydev; in hclge_mac_mdio_config() 170 mac->mdio_bus = mdio_bus; in hclge_mac_mdio_config() 194 hdev->hw.mac.req_speed = (u32)speed; in hclge_mac_adjust_link() 195 hdev->hw.mac.req_duplex = (u8)duplex; in hclge_mac_adjust_link() 207 struct phy_device *phydev = hdev->hw.mac.phydev; in hclge_mac_connect_phy() 226 linkmode_copy(mask, hdev->hw.mac.supported); in hclge_mac_connect_phy() [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_bridge_1d.sh | 385 local mac=$1; shift 417 local mac=$1; shift 423 vxlan_flood_test $mac $dst 10 10 10 436 local mac=$1; shift 447 local mac=$1; shift 680 local mac=de:ad:be:ef:13:37 692 vxlan_flood_test $mac $dst 10 10 10 714 vxlan_flood_test $mac $dst 0 10 0 725 vxlan_flood_test $mac $dst 10 10 10 741 vxlan_flood_test $mac $dst 0 10 0 [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_dmac_flt.c | 10 static int otx2_dmacflt_do_add(struct otx2_nic *pf, const u8 *mac, in otx2_dmacflt_do_add() argument 25 ether_addr_copy(req->mac_addr, mac); in otx2_dmacflt_do_add() 74 int otx2_dmacflt_add(struct otx2_nic *pf, const u8 *mac, u32 bit_pos) in otx2_dmacflt_add() argument 83 if (ether_addr_equal(mac, pf->netdev->dev_addr)) in otx2_dmacflt_add() 86 return otx2_dmacflt_do_add(pf, mac, dmacindex); in otx2_dmacflt_add() 89 static int otx2_dmacflt_do_remove(struct otx2_nic *pfvf, const u8 *mac, in otx2_dmacflt_do_remove() argument 129 int otx2_dmacflt_remove(struct otx2_nic *pf, const u8 *mac, in otx2_dmacflt_remove() argument 134 if (ether_addr_equal(mac, pf->netdev->dev_addr)) in otx2_dmacflt_remove() 137 return otx2_dmacflt_do_remove(pf, mac, dmacindex); in otx2_dmacflt_remove() 177 int otx2_dmacflt_update(struct otx2_nic *pf, u8 *mac, u32 bit_pos) in otx2_dmacflt_update() argument [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
H A D | fw.c | 575 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_set_fw_ap_off_load_cmd() local 1520 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl8812ae_set_fw_rsvdpagepkt() local 1540 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt() 1573 SET_80211_HDR_ADDRESS1(qosnull, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt() 1575 SET_80211_HDR_ADDRESS3(qosnull, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt() 1599 SET_80211_HDR_ADDRESS1(arpresp, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt() 1601 SET_80211_HDR_ADDRESS3(arpresp, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt() 1657 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_set_fw_rsvdpagepkt() local 1677 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl8821ae_set_fw_rsvdpagepkt() 1710 SET_80211_HDR_ADDRESS1(qosnull, mac->bssid); in rtl8821ae_set_fw_rsvdpagepkt() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ftmac100.c | 54 const unsigned char *mac) in ftmac100_set_mac() argument 57 unsigned int maddr = mac[0] << 8 | mac[1]; in ftmac100_set_mac() 58 unsigned int laddr = mac[2] << 24 | mac[3] << 16 | mac[4] << 8 | mac[5]; in ftmac100_set_mac() 369 const char *mac; in dtbmacaddr() local 386 mac = fdt_getprop(gd->fdt_blob, node, "mac-address", &len); in dtbmacaddr() 387 if (mac && is_valid_ethaddr((u8 *)mac)) in dtbmacaddr() 388 return mac; in dtbmacaddr() 397 const char *mac; in ftmac100_ofdata_to_platdata() local 400 mac = dtbmacaddr(0); in ftmac100_ofdata_to_platdata() 401 if (mac) in ftmac100_ofdata_to_platdata() [all …]
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | netmain.c | 57 static uint8_t mac[6]; variable 123 static void seed_rng(uint8_t mac[]) in seed_rng() argument 128 seed ^= (mac[2] << 24) | (mac[3] << 16) | (mac[4] << 8) | mac[5]; in seed_rng() 164 rc = virtio_net_init(mac); in net_init() 172 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); in net_init() 174 set_mac_address(mac); /* init ethernet layer */ in net_init() 175 seed_rng(mac); in net_init() 334 num_ent = pxelinux_load_parse_cfg(fn_ip, mac, get_uuid(), in net_try_pxelinux_cfg()
|
/openbmc/openbmc/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/ |
H A D | mac-check | 17 SOFS_MACDIR=${SOFS_MNT}/factory-settings/network/mac 26 local mac="$2" 30 ip link set dev "$iface" address "$mac" 46 local mac="$2" 47 fw_setenv "$envname" "$mac" 58 local mac[i]=${tmp:2} 59 local mac_str=$mac_str:${mac[$i]}
|
/openbmc/linux/drivers/staging/rtl8712/ |
H A D | sta_info.h | 105 static inline u32 wifi_mac_hash(u8 *mac) in wifi_mac_hash() argument 109 x = mac[0]; in wifi_mac_hash() 110 x = (x << 2) ^ mac[1]; in wifi_mac_hash() 111 x = (x << 2) ^ mac[2]; in wifi_mac_hash() 112 x = (x << 2) ^ mac[3]; in wifi_mac_hash() 113 x = (x << 2) ^ mac[4]; in wifi_mac_hash() 114 x = (x << 2) ^ mac[5]; in wifi_mac_hash()
|
/openbmc/linux/drivers/net/ethernet/ti/icssg/ |
H A D | icssg_classifier.c | 277 void icssg_class_set_host_mac_addr(struct regmap *miig_rt, const u8 *mac) in icssg_class_set_host_mac_addr() argument 279 regmap_write(miig_rt, MAC_INTERFACE_0, (u32)(mac[0] | mac[1] << 8 | in icssg_class_set_host_mac_addr() 280 mac[2] << 16 | mac[3] << 24)); in icssg_class_set_host_mac_addr() 281 regmap_write(miig_rt, MAC_INTERFACE_1, (u32)(mac[4] | mac[5] << 8)); in icssg_class_set_host_mac_addr() 284 void icssg_class_set_mac_addr(struct regmap *miig_rt, int slice, u8 *mac) in icssg_class_set_mac_addr() argument 286 regmap_write(miig_rt, offs[slice].mac0, (u32)(mac[0] | mac[1] << 8 | in icssg_class_set_mac_addr() 287 mac[2] << 16 | mac[3] << 24)); in icssg_class_set_mac_addr() 288 regmap_write(miig_rt, offs[slice].mac1, (u32)(mac[4] | mac[5] << 8)); in icssg_class_set_mac_addr()
|