/openbmc/linux/Documentation/devicetree/bindings/pci/ |
H A D | mediatek-pcie-gen3.yaml | 62 - const: pcie-mac 85 enum: [ phy, mac ] 207 reg-names = "pcie-mac"; 228 reset-names = "phy", "mac";
|
/openbmc/linux/drivers/nvmem/ |
H A D | brcm_nvram.c | 101 u8 mac[ETH_ALEN]; in brcm_nvram_read_post_process_macaddr() local 106 if (!mac_pton(buf, mac)) in brcm_nvram_read_post_process_macaddr() 110 eth_addr_add(mac, index); in brcm_nvram_read_post_process_macaddr() 112 ether_addr_copy(buf, mac); in brcm_nvram_read_post_process_macaddr()
|
H A D | u-boot-env.c | 75 u8 mac[ETH_ALEN]; in u_boot_env_read_post_process_ethaddr() local 80 if (!mac_pton(buf, mac)) in u_boot_env_read_post_process_ethaddr() 84 eth_addr_add(mac, index); in u_boot_env_read_post_process_ethaddr() 86 ether_addr_copy(buf, mac); in u_boot_env_read_post_process_ethaddr()
|
/openbmc/linux/arch/arm/boot/dts/mediatek/ |
H A D | mt7629-rfb.dts | 69 gmac0: mac@0 { 70 compatible = "mediatek,eth-mac"; 80 gmac1: mac@1 { 81 compatible = "mediatek,eth-mac";
|
/openbmc/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot.c | 25 u8 mac[ETH_ALEN]; member 59 mach |= mac[0] << 8; in ocelot_mact_select() 60 mach |= mac[1] << 0; in ocelot_mact_select() 61 macl |= mac[2] << 24; in ocelot_mact_select() 62 macl |= mac[3] << 16; in ocelot_mact_select() 63 macl |= mac[4] << 8; in ocelot_mact_select() 64 macl |= mac[5] << 0; in ocelot_mact_select() 84 mc_ports = (mac[1] << 8) | mac[2]; in __ocelot_mact_learn() 86 mc_ports = (mac[0] << 8) | mac[1]; in __ocelot_mact_learn() 1355 char mac[ETH_ALEN]; in ocelot_mact_read() local [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
H A D | dm_common.c | 371 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92c_dm_initial_gain_multi_sta() local 375 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl92c_dm_initial_gain_multi_sta() 491 if (mac->act_scanning) in rtl92c_dm_ctrl_initgain_by_twoport() 494 if (mac->link_state >= MAC80211_LINKED) in rtl92c_dm_ctrl_initgain_by_twoport() 577 if (mac->link_state != MAC80211_LINKED) in rtl92c_dm_pwdb_monitor() 580 if (mac->opmode == NL80211_IFTYPE_ADHOC || in rtl92c_dm_pwdb_monitor() 581 mac->opmode == NL80211_IFTYPE_AP) { in rtl92c_dm_pwdb_monitor() 647 if (mac->link_state != MAC80211_LINKED) { in rtl92c_dm_check_edca_turbo() 1282 if (mac->link_state == MAC80211_LINKED) { in rtl92c_dm_dynamic_bb_powersaving() 1351 if ((mac->link_state < MAC80211_LINKED) && in rtl92c_dm_dynamic_txpower() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | bcm-sf2-eth-gmac.c | 759 int gmac_set_mac_addr(unsigned char *mac) in gmac_set_mac_addr() argument 763 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); in gmac_set_mac_addr() 764 writel(htonl(*(uint32_t *)mac), UNIMAC0_MAC_MSB_ADDR); in gmac_set_mac_addr() 765 writew(htons(*(uint32_t *)&mac[4]), UNIMAC0_MAC_LSB_ADDR); in gmac_set_mac_addr()
|
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | util.c | 515 mwifiex_get_sta_entry(struct mwifiex_private *priv, const u8 *mac) in mwifiex_get_sta_entry() argument 519 if (!mac) in mwifiex_get_sta_entry() 523 if (!memcmp(node->mac_addr, mac, ETH_ALEN)) in mwifiex_get_sta_entry() 595 mwifiex_add_sta_entry(struct mwifiex_private *priv, const u8 *mac) in mwifiex_add_sta_entry() argument 599 if (!mac) in mwifiex_add_sta_entry() 603 node = mwifiex_get_sta_entry(priv, mac); in mwifiex_add_sta_entry() 611 memcpy(node->mac_addr, mac, ETH_ALEN); in mwifiex_add_sta_entry() 649 void mwifiex_del_sta_entry(struct mwifiex_private *priv, const u8 *mac) in mwifiex_del_sta_entry() argument 655 node = mwifiex_get_sta_entry(priv, mac); in mwifiex_del_sta_entry()
|
/openbmc/linux/drivers/net/phy/ |
H A D | dp83869.c | 250 const u8 *mac; in dp83869_set_wol() local 268 mac = (const u8 *)ndev->dev_addr; in dp83869_set_wol() 270 if (!is_valid_ether_addr(mac)) in dp83869_set_wol() 275 mac[1] << 8 | mac[0]); in dp83869_set_wol() 281 mac[3] << 8 | mac[2]); in dp83869_set_wol() 287 mac[5] << 8 | mac[4]); in dp83869_set_wol()
|
/openbmc/qemu/hw/m68k/ |
H A D | q800.c | 275 MACAddr mac; in q800_machine_init() local 391 memcpy(mac.a, nd->macaddr.a, sizeof(mac.a)); in q800_machine_init() 393 qemu_macaddr_default_if_unset(&mac); in q800_machine_init() 395 mac.a[0] = 0x08; in q800_machine_init() 396 mac.a[1] = 0x00; in q800_machine_init() 397 mac.a[2] = 0x07; in q800_machine_init() 398 qdev_prop_set_macaddr(dev, "mac", mac.a); in q800_machine_init() 420 prom[i] = revbit8(mac.a[i]); in q800_machine_init()
|
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/ |
H A D | ncsi_server.c | 98 const mac_addr_t* mac) { in ncsi_build_oem_get_mac_ack() argument 102 memcpy(response->mac, mac->octet, MAC_ADDR_SIZE); in ncsi_build_oem_get_mac_ack()
|
/openbmc/linux/drivers/net/wireless/st/cw1200/ |
H A D | txrx.h | 97 int cw1200_find_link_id(struct cw1200_common *priv, const u8 *mac); 98 int cw1200_alloc_link_id(struct cw1200_common *priv, const u8 *mac);
|
/openbmc/linux/net/bridge/netfilter/ |
H A D | ebt_snat.c | 28 ether_addr_copy(eth_hdr(skb)->h_source, info->mac); in ebt_snat_tg() 39 if (skb_store_bits(skb, sizeof(_ah), info->mac, ETH_ALEN)) in ebt_snat_tg()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | Makefile | 3 iwlmvm-y += fw.o mac80211.o nvm.o ops.o phy-ctxt.o mac-ctxt.o 10 iwlmvm-y += mld-key.o mld-mac.o link.o mld-sta.o mld-mac80211.o
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | sriov.c | 11 int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac) in efx_sriov_set_vf_mac() argument 16 return efx->type->sriov_set_vf_mac(efx, vf_i, mac); in efx_sriov_set_vf_mac()
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | sriov.h | 15 int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac) in efx_sriov_set_vf_mac() argument 20 return efx->type->sriov_set_vf_mac(efx, vf_i, mac); in efx_sriov_set_vf_mac()
|
/openbmc/linux/arch/mips/ar7/ |
H A D | platform.c | 285 char name[5], *mac; in cpmac_get_mac() local 288 mac = prom_getenv(name); in cpmac_get_mac() 289 if (!mac && instance) { in cpmac_get_mac() 291 mac = prom_getenv(name); in cpmac_get_mac() 294 if (mac) { in cpmac_get_mac() 295 if (!mac_pton(mac, dev_addr)) { in cpmac_get_mac()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | port.c | 113 struct mlx4_mac_table *table, u64 mac) in find_index() argument 119 (MLX4_MAC_MASK & mac) == in find_index() 196 (unsigned long long)mac, port, in __mlx4_register_mac() 261 if ((MLX4_MAC_MASK & mac) == in __mlx4_register_mac() 271 mac, dup_port, i); in __mlx4_register_mac() 304 (unsigned long long) mac); in __mlx4_register_mac() 349 err = mlx4_cmd_imm(dev, mac, &out_param, in mlx4_register_mac() 368 return __mlx4_register_mac(dev, port, mac); in mlx4_register_mac() 407 index = find_index(dev, table, mac); in __mlx4_unregister_mac() 469 __mlx4_unregister_mac(dev, port, mac); in mlx4_unregister_mac() [all …]
|
/openbmc/linux/drivers/firmware/broadcom/ |
H A D | bcm47xx_sprom.c | 483 static bool bcm47xx_is_valid_mac(u8 *mac) in bcm47xx_is_valid_mac() argument 485 return mac && !(mac[0] == 0x00 && mac[1] == 0x90 && mac[2] == 0x4c); in bcm47xx_is_valid_mac() 488 static int bcm47xx_increase_mac_addr(u8 *mac, u8 num) in bcm47xx_increase_mac_addr() argument 490 u8 *oui = mac + ETH_ALEN/2 - 1; in bcm47xx_increase_mac_addr() 491 u8 *p = mac + ETH_ALEN - 1; in bcm47xx_increase_mac_addr() 541 u8 mac[6]; in bcm47xx_fill_sprom_ethernet() local 543 nvram_read_macaddr(NULL, "et0macaddr", mac, false); in bcm47xx_fill_sprom_ethernet() 544 if (bcm47xx_is_valid_mac(mac)) { in bcm47xx_fill_sprom_ethernet() 545 int err = bcm47xx_increase_mac_addr(mac, mac_addr_used); in bcm47xx_fill_sprom_ethernet() 548 ether_addr_copy(sprom->il0mac, mac); in bcm47xx_fill_sprom_ethernet()
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ethtool.c | 512 hw->mac.autotry_restart = true; in ixgbe_set_link_ksettings() 681 switch (hw->mac.type) { in ixgbe_get_regs() 783 switch (hw->mac.type) { in ixgbe_get_regs() 1122 switch (adapter->hw.mac.type) { in ixgbe_get_max_rxd() 1140 switch (adapter->hw.mac.type) { in ixgbe_get_max_txd() 1899 hw->mac.ops.disable_rx(hw); in ixgbe_setup_desc_rings() 1907 hw->mac.ops.enable_rx(hw); in ixgbe_setup_desc_rings() 1942 if (hw->mac.orig_autoc) { in ixgbe_setup_loopback_test() 2367 if (!hw->mac.ops.led_on || !hw->mac.ops.led_off) in ixgbe_set_phys_id() 2376 hw->mac.ops.led_on(hw, hw->mac.led_link_act); in ixgbe_set_phys_id() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
H A D | trx.c | 198 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92se_translate_rx_signal_stuff() local 216 ether_addr_equal(mac->bssid, in _rtl92se_translate_rx_signal_stuff() 320 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92se_tx_fill_desc() local 340 if (mac->opmode == NL80211_IFTYPE_STATION) { in rtl92se_tx_fill_desc() 341 bw_40 = mac->bw_40; in rtl92se_tx_fill_desc() 342 } else if (mac->opmode == NL80211_IFTYPE_AP || in rtl92se_tx_fill_desc() 343 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92se_tx_fill_desc() 421 mac->cur_40_prime_sc); in rtl92se_tx_fill_desc()
|
/openbmc/linux/drivers/vdpa/mlx5/net/ |
H A D | mlx5_vnet.c | 1604 ether_addr_copy(dmac_v, mac); in mlx5_vdpa_add_mac_vlan_rules() 1671 (u64)mac[0] << 40 | in search_val() 1672 (u64)mac[1] << 32 | in search_val() 1673 (u64)mac[2] << 24 | in search_val() 1674 (u64)mac[3] << 16 | in search_val() 1675 (u64)mac[4] << 8 | in search_val() 1676 (u64)mac[5]; in search_val() 1812 if (!memcmp(ndev->config.mac, mac, 6)) { in handle_ctrl_mac() 1830 mac); in handle_ctrl_mac() 1839 memcpy(ndev->config.mac, mac, ETH_ALEN); in handle_ctrl_mac() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_nve.c | 801 u8 mac[ETH_ALEN]; member 832 mlxsw_sp_nve_ipv6_ht_node_lookup(struct mlxsw_sp *mlxsw_sp, const char *mac, in mlxsw_sp_nve_ipv6_ht_node_lookup() argument 837 ether_addr_copy(key.mac, mac); in mlxsw_sp_nve_ipv6_ht_node_lookup() 844 const char *mac, u16 fid_index, in mlxsw_sp_nve_ipv6_ht_insert() argument 855 ether_addr_copy(ipv6_ht_node->key.mac, mac); in mlxsw_sp_nve_ipv6_ht_insert() 886 mlxsw_sp_nve_ipv6_addr_map_replace(struct mlxsw_sp *mlxsw_sp, const char *mac, in mlxsw_sp_nve_ipv6_addr_map_replace() argument 894 ipv6_ht_node = mlxsw_sp_nve_ipv6_ht_node_lookup(mlxsw_sp, mac, in mlxsw_sp_nve_ipv6_addr_map_replace() 897 return mlxsw_sp_nve_ipv6_ht_insert(mlxsw_sp, mac, fid_index, in mlxsw_sp_nve_ipv6_addr_map_replace() 905 void mlxsw_sp_nve_ipv6_addr_map_del(struct mlxsw_sp *mlxsw_sp, const char *mac, in mlxsw_sp_nve_ipv6_addr_map_del() argument 912 ipv6_ht_node = mlxsw_sp_nve_ipv6_ht_node_lookup(mlxsw_sp, mac, in mlxsw_sp_nve_ipv6_addr_map_del()
|
/openbmc/linux/drivers/net/ethernet/wangxun/ngbe/ |
H A D | ngbe_hw.c | 89 wx_get_mac_addr(wx, wx->mac.perm_addr); in ngbe_reset_hw() 92 wx->mac.num_rar_entries = NGBE_RAR_ENTRIES; in ngbe_reset_hw()
|
/openbmc/linux/Documentation/devicetree/bindings/nvmem/layouts/ |
H A D | onie,tlv-layout.yaml | 17 number, hardware version, mac addresses, etc). The underlying device type 40 mac-address: 140 mac-address {
|