Home
last modified time | relevance | path

Searched refs:mac (Results 376 – 400 of 1882) sorted by relevance

1...<<11121314151617181920>>...76

/openbmc/linux/arch/arm/boot/dts/mediatek/
H A Dmt7629-rfb.dts69 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 Docelot.c25 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 Ddm_common.c371 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 Dbcm-sf2-eth-gmac.c759 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 Dutil.c515 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 Ddp83869.c250 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 Dq800.c275 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 Dncsi_server.c98 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 Dtxrx.h97 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 Debt_snat.c28 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 DMakefile3 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 Dsriov.c11 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 Dsriov.h15 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 Dplatform.c285 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 Dport.c113 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 Dbcm47xx_sprom.c483 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 Dixgbe_ethtool.c512 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 Dtrx.c198 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 Dmlx5_vnet.c1604 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 Dspectrum_nve.c801 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 Dngbe_hw.c89 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/drivers/net/ethernet/agere/
H A Det131x.c867 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/Documentation/devicetree/bindings/nvmem/layouts/
H A Donie,tlv-layout.yaml17 number, hardware version, mac addresses, etc). The underlying device type
40 mac-address:
140 mac-address {
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.h163 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/broadcom/
H A Dbgmac-bcma.c130 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()

1...<<11121314151617181920>>...76