/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch.h | 163 struct dpaa2_mac *mac; member 235 return dpaa2_mac_is_type_phy(port_priv->mac); in dpaa2_switch_port_is_type_phy() 240 return port_priv->mac ? true : false; in dpaa2_switch_port_has_mac()
|
/openbmc/linux/drivers/net/ethernet/agere/ |
H A D | et131x.c | 867 struct mac_regs __iomem *mac = &adapter->regs->mac; in et1310_config_mac_regs2() local 875 cfg1 = readl(&mac->cfg1); in et1310_config_mac_regs2() 876 cfg2 = readl(&mac->cfg2); in et1310_config_mac_regs2() 877 ifctrl = readl(&mac->if_ctrl); in et1310_config_mac_regs2() 895 writel(cfg1, &mac->cfg1); in et1310_config_mac_regs2() 915 writel(ifctrl, &mac->if_ctrl); in et1310_config_mac_regs2() 916 writel(cfg2, &mac->cfg2); in et1310_config_mac_regs2() 921 cfg1 = readl(&mac->cfg1); in et1310_config_mac_regs2() 1172 struct mac_regs __iomem *mac = &adapter->regs->mac; in et131x_phy_mii_read() local 1186 writel(0, &mac->mii_mgmt_cmd); in et131x_phy_mii_read() [all …]
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | bgmac-bcma.c | 130 const u8 *mac; in bgmac_probe() local 151 mac = sprom->et0mac; in bgmac_probe() 154 mac = sprom->et1mac; in bgmac_probe() 157 mac = sprom->et2mac; in bgmac_probe() 165 eth_hw_addr_set(bgmac->net_dev, mac); in bgmac_probe()
|
/openbmc/qemu/target/sh4/ |
H A D | op_helper.c | 166 int64_t mac = env->mac; in helper_macl() local 170 res = mac + mul; in helper_macl() 171 } else if (sadd64_overflow(mac, mul, &res)) { in helper_macl() 172 res = mac < 0 ? min : max; in helper_macl() 177 env->mac = res; in helper_macl() 201 env->mac += mul; in helper_macw()
|
/openbmc/u-boot/drivers/net/ |
H A D | sh_eth.c | 362 unsigned char *mac) in sh_eth_write_hwaddr() argument 366 val = (mac[0] << 24) | (mac[1] << 16) | (mac[2] << 8) | mac[3]; in sh_eth_write_hwaddr() 369 val = (mac[4] << 8) | mac[5]; in sh_eth_write_hwaddr() 373 static void sh_eth_mac_regs_config(struct sh_eth_dev *eth, unsigned char *mac) in sh_eth_mac_regs_config() argument 395 sh_eth_write_hwaddr(port_info, mac); in sh_eth_mac_regs_config() 480 static int sh_eth_init_common(struct sh_eth_dev *eth, unsigned char *mac) in sh_eth_init_common() argument 492 sh_eth_mac_regs_config(eth, mac); in sh_eth_init_common()
|
H A D | ftgmac100.c | 264 const unsigned char *mac) in ftgmac100_set_mac() argument 267 unsigned int maddr = mac[0] << 8 | mac[1]; in ftgmac100_set_mac() 268 unsigned int laddr = mac[2] << 24 | mac[3] << 16 | mac[4] << 8 | mac[5]; in ftgmac100_set_mac()
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ptp.c | 406 switch (adapter->hw.mac.type) { in ixgbe_ptp_convert_to_hwtstamp() 460 switch (hw->mac.type) { in ixgbe_ptp_adjfine_82599() 558 switch (adapter->hw.mac.type) { in ixgbe_ptp_gettimex() 671 switch (hw->mac.type) { in ixgbe_ptp_check_pps_event() 1036 if (hw->mac.type >= ixgbe_mac_X550) { in ixgbe_ptp_set_timestamp_mode() 1054 if (hw->mac.type == ixgbe_mac_82598EB) { in ixgbe_ptp_set_timestamp_mode() 1066 switch (hw->mac.type) { in ixgbe_ptp_set_timestamp_mode() 1220 switch (hw->mac.type) { in ixgbe_ptp_start_cyclecounter() 1279 switch (hw->mac.type) { in ixgbe_ptp_init_systime() 1333 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_ptp_reset() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
H A D | hw.c | 441 if (!mac->ht_enable) in rtl92ee_set_hw_reg() 637 (u2btmp | mac->assoc_id)); in rtl92ee_set_hw_reg() 649 (u32)(mac->tsf & 0xffffffff)); in rtl92ee_set_hw_reg() 651 (u32)((mac->tsf >> 32) & 0xffffffff)); in rtl92ee_set_hw_reg() 1658 mac->link_state = MAC80211_NOLINK; in rtl92ee_card_disable() 1694 bcn_interval = mac->beacon_interval; in rtl92ee_set_beacon_related_registers() 1711 u16 bcn_interval = mac->beacon_interval; in rtl92ee_set_beacon_interval() 2274 curtxbw_40mhz = mac->bw_40; in rtl92ee_update_hal_rate_mask() 2276 mac->opmode == NL80211_IFTYPE_ADHOC) in rtl92ee_update_hal_rate_mask() 2401 (u8 *)&mac->slot_time); in rtl92ee_update_channel_access_setting() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/nvmem/ |
H A D | fsl,scu-ocotp.yaml | 25 '^mac@[0-9a-f]*$': 53 fec_mac0: mac@2c4 {
|
/openbmc/linux/arch/arm/boot/dts/hisilicon/ |
H A D | hisi-x5hd2-dkb.dts | 58 mac-address = [00 00 00 00 00 00]; 72 mac-address = [00 00 00 00 00 00];
|
/openbmc/linux/drivers/net/ethernet/ |
H A D | ethoc.c | 592 u8 *mac = (u8 *)addr; in ethoc_get_mac_address() local 596 mac[2] = (reg >> 24) & 0xff; in ethoc_get_mac_address() 597 mac[3] = (reg >> 16) & 0xff; in ethoc_get_mac_address() 598 mac[4] = (reg >> 8) & 0xff; in ethoc_get_mac_address() 599 mac[5] = (reg >> 0) & 0xff; in ethoc_get_mac_address() 602 mac[0] = (reg >> 8) & 0xff; in ethoc_get_mac_address() 603 mac[1] = (reg >> 0) & 0xff; in ethoc_get_mac_address() 805 const unsigned char *mac = dev->dev_addr; in ethoc_do_set_mac_address() local 808 ethoc_write(priv, MAC_ADDR0, (mac[2] << 24) | (mac[3] << 16) | in ethoc_do_set_mac_address() 809 (mac[4] << 8) | (mac[5] << 0)); in ethoc_do_set_mac_address() [all …]
|
/openbmc/linux/drivers/vdpa/pds/ |
H A D | vdpa_dev.c | 474 pds_vdpa_cmd_set_mac(pdsv, pdsv->mac); in pds_vdpa_set_status() 700 ether_addr_copy(pdsv->mac, add_config->net.mac); in pds_vdpa_dev_add() 705 memcpy_fromio(pdsv->mac, vc->mac, sizeof(pdsv->mac)); in pds_vdpa_dev_add() 706 if (is_zero_ether_addr(pdsv->mac) && in pds_vdpa_dev_add() 708 eth_random_addr(pdsv->mac); in pds_vdpa_dev_add() 709 dev_info(dev, "setting random mac %pM\n", pdsv->mac); in pds_vdpa_dev_add() 712 pds_vdpa_cmd_set_mac(pdsv, pdsv->mac); in pds_vdpa_dev_add()
|
/openbmc/u-boot/board/ti/am57xx/ |
H A D | board.c | 934 static u64 mac_to_u64(u8 mac[6]) in mac_to_u64() 941 addr |= mac[i]; in mac_to_u64() 947 static void u64_to_mac(u64 addr, u8 mac[6]) in u64_to_mac() 949 mac[5] = addr; in u64_to_mac() 950 mac[4] = addr >> 8; in u64_to_mac() 951 mac[3] = addr >> 16; in u64_to_mac() 952 mac[2] = addr >> 24; in u64_to_mac() 953 mac[1] = addr >> 32; in u64_to_mac() 954 mac[0] = addr >> 40; in u64_to_mac()
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_bridge_1d_ipv6.sh | 506 local mac=$1; shift 519 $MZ -6 $h1 -c 10 -d 100msec -p 64 -b $mac -B $dst -t icmp6 type=128 -q 538 local mac=$1; shift 544 vxlan_flood_test $mac $dst 10 10 10 557 local mac=$1; shift 561 bridge fdb $add_del dev $dev $mac self static permanent \ 563 bridge fdb $add_del dev $dev $mac master static 2>/dev/null 568 local mac=$1; shift 578 vxlan_flood_test $mac $dst "${expects[@]}"
|
/openbmc/linux/drivers/net/phy/ |
H A D | dp83867.c | 196 const u8 *mac; in dp83867_set_wol() local 207 mac = (const u8 *)ndev->dev_addr; in dp83867_set_wol() 209 if (!is_valid_ether_addr(mac)) in dp83867_set_wol() 213 (mac[1] << 8 | mac[0])); in dp83867_set_wol() 215 (mac[3] << 8 | mac[2])); in dp83867_set_wol() 217 (mac[5] << 8 | mac[4])); in dp83867_set_wol()
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
H A D | trx.c | 194 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl8723be_translate_rx_signal_stuff() local 213 (ether_addr_equal(mac->bssid, (fc & IEEE80211_FCTL_TODS) ? in _rtl8723be_translate_rx_signal_stuff() 409 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_tx_fill_desc() local 427 if (mac->opmode == NL80211_IFTYPE_STATION) { in rtl8723be_tx_fill_desc() 428 bw_40 = mac->bw_40; in rtl8723be_tx_fill_desc() 429 } else if (mac->opmode == NL80211_IFTYPE_AP || in rtl8723be_tx_fill_desc() 430 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl8723be_tx_fill_desc() 509 set_tx_desc_tx_sub_carrier(pdesc, mac->cur_40_prime_sc); in rtl8723be_tx_fill_desc() 551 if (mac->rdg_en) { in rtl8723be_tx_fill_desc()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_netdev.c | 574 memcpy(&gid[10], mac, ETH_ALEN); in mlx4_en_uc_steer_add() 614 const unsigned char *mac, in mlx4_en_uc_steer_release() argument 626 memcpy(&gid[10], mac, ETH_ALEN); in mlx4_en_uc_steer_release() 1143 u64 mac; in mlx4_en_do_uc_filter() local 1173 mac = ether_addr_to_u64(entry->mac); in mlx4_en_do_uc_filter() 1182 entry->mac, priv->port); in mlx4_en_do_uc_filter() 1216 mac = ether_addr_to_u64(ha->addr); in mlx4_en_do_uc_filter() 1323 memcpy(entry->mac, priv->dev->dev_addr, sizeof(entry->mac)); in mlx4_en_set_rss_steer_rules() 1342 u64 mac; in mlx4_en_delete_rss_steer_rules() local 1352 mac = ether_addr_to_u64(entry->mac); in mlx4_en_delete_rss_steer_rules() [all …]
|
/openbmc/linux/drivers/net/ethernet/nxp/ |
H A D | lpc_eth.c | 427 tmp = mac[0] | ((u32)mac[1] << 8); in __lpc_set_mac() 429 tmp = mac[2] | ((u32)mac[3] << 8); in __lpc_set_mac() 431 tmp = mac[4] | ((u32)mac[5] << 8); in __lpc_set_mac() 434 netdev_dbg(pldat->ndev, "Ethernet MAC address %pM\n", mac); in __lpc_set_mac() 437 static void __lpc_get_mac(struct netdata_local *pldat, u8 *mac) in __lpc_get_mac() argument 443 mac[0] = tmp & 0xFF; in __lpc_get_mac() 444 mac[1] = tmp >> 8; in __lpc_get_mac() 446 mac[2] = tmp & 0xFF; in __lpc_get_mac() 447 mac[3] = tmp >> 8; in __lpc_get_mac() 449 mac[4] = tmp & 0xFF; in __lpc_get_mac() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
H A D | phy.c | 268 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92cu_phy_set_bw_mode_callback() local 290 (reg_prsr_rsc & 0x90) | (mac->cur_40_prime_sc << 5); in rtl92cu_phy_set_bw_mode_callback() 308 (mac->cur_40_prime_sc >> 1)); in rtl92cu_phy_set_bw_mode_callback() 309 rtl_set_bbreg(hw, ROFDM1_LSTF, 0xC00, mac->cur_40_prime_sc); in rtl92cu_phy_set_bw_mode_callback() 312 (mac->cur_40_prime_sc == in rtl92cu_phy_set_bw_mode_callback() 378 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92cu_phy_set_rf_power_state() local 407 if (mac->link_state == MAC80211_LINKED) { in _rtl92cu_phy_set_rf_power_state()
|
H A D | mac.c | 197 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92c_set_key() local 254 if (mac->opmode == NL80211_IFTYPE_AP || in rtl92c_set_key() 255 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in rtl92c_set_key() 273 if (mac->opmode == NL80211_IFTYPE_AP || in rtl92c_set_key() 274 mac->opmode == NL80211_IFTYPE_MESH_POINT) in rtl92c_set_key() 304 if (mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92c_set_key() 715 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92c_translate_rx_signal_stuff() local 732 ether_addr_equal(mac->bssid, in rtl92c_translate_rx_signal_stuff()
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | hisilicon-hns-nic.txt | 67 - local-mac-address: mac addr of the ethernet interface 75 local-mac-address = [a2 14 e4 4b 56 76];
|
H A D | brcm,bcmgenet.yaml | 80 mac-address = [ 00 10 18 36 23 1a ]; 105 mac-address = [ 00 10 18 36 24 1a ]; 124 mac-address = [ 00 10 18 36 26 1a ];
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | flowring.h | 14 u8 mac[ETH_ALEN]; member 34 u8 mac[ETH_ALEN]; member
|
/openbmc/linux/drivers/media/pci/pluto2/ |
H A D | pluto2.c | 532 static void pluto_read_mac(struct pluto *pluto, u8 *mac) in pluto_read_mac() argument 535 mac[0] = (val >> 8) & 0xff; in pluto_read_mac() 536 mac[1] = (val >> 0) & 0xff; in pluto_read_mac() 539 mac[2] = (val >> 8) & 0xff; in pluto_read_mac() 540 mac[3] = (val >> 0) & 0xff; in pluto_read_mac() 543 mac[4] = (val >> 8) & 0xff; in pluto_read_mac() 544 mac[5] = (val >> 0) & 0xff; in pluto_read_mac() 546 dev_info(&pluto->pdev->dev, "MAC %pM\n", mac); in pluto_read_mac()
|
/openbmc/phosphor-host-ipmid/ |
H A D | transporthandler.hpp | 129 stdplus::EtherAddr mac; member 380 ret.mac = stdplus::fromStr<stdplus::EtherAddr>( in findStaticNeighbor() 397 stdplus::EtherAddr mac) in createNeighbor() argument 405 newreq.append(addrToStr(address), macToStr(mac)); in createNeighbor() 447 createNeighbor<family>(bus, params, address, neighbor->mac); in setGatewayProperty()
|