/openbmc/linux/drivers/net/ethernet/sunplus/ |
H A D | spl2sw_mac.h | 11 int spl2sw_mac_addr_add(struct spl2sw_mac *mac); 12 int spl2sw_mac_addr_del(struct spl2sw_mac *mac); 14 void spl2sw_mac_rx_mode_set(struct spl2sw_mac *mac);
|
/openbmc/linux/drivers/net/ethernet/ibm/ |
H A D | ibmveth.h | 40 #define h_register_logical_lan(ua, buflst, rxq, fltlst, mac) \ argument 41 plpar_hcall_norets(H_REGISTER_LOGICAL_LAN, ua, buflst, rxq, fltlst, mac) 87 #define h_multicast_ctrl(ua, cmd, mac) \ argument 88 plpar_hcall_norets(H_MULTICAST_CTRL, ua, cmd, mac) 90 #define h_change_logical_lan_mac(ua, mac) \ argument 91 plpar_hcall_norets(H_CHANGE_LOGICAL_LAN_MAC, ua, mac)
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | fsl-ls1028a-kontron-kbox-a-230-ls.dts | 60 nvmem-cell-names = "mac-address"; 66 nvmem-cell-names = "mac-address"; 88 nvmem-cell-names = "mac-address"; 98 nvmem-cell-names = "mac-address"; 108 nvmem-cell-names = "mac-address"; 118 nvmem-cell-names = "mac-address";
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
H A D | dm.c | 20 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl8723e_dm_initial_gain_min_pwdb() local 23 if (mac->link_state == MAC80211_LINKED && in rtl8723e_dm_initial_gain_min_pwdb() 24 mac->opmode == NL80211_IFTYPE_STATION && in rtl8723e_dm_initial_gain_min_pwdb() 169 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl8723e_dm_initial_gain_multi_sta() 310 if (mac->act_scanning) in rtl8723e_dm_ctrl_initgain_by_twoport() 313 if (mac->link_state >= MAC80211_LINKED) in rtl8723e_dm_ctrl_initgain_by_twoport() 355 if ((mac->link_state < MAC80211_LINKED) && in rtl8723e_dm_dynamic_txpower() 366 if (mac->link_state >= MAC80211_LINKED) { in rtl8723e_dm_dynamic_txpower() 473 if (mac->link_state != MAC80211_LINKED) { in rtl8723e_dm_check_edca_turbo() 575 if (mac->link_state == MAC80211_LINKED && in rtl8723e_dm_refresh_rate_adaptive_mask() [all …]
|
H A D | fw.c | 389 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723e_set_fw_rsvdpagepkt() local 405 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl8723e_set_fw_rsvdpagepkt() 406 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl8723e_set_fw_rsvdpagepkt() 414 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl8723e_set_fw_rsvdpagepkt() 415 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl8723e_set_fw_rsvdpagepkt() 424 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl8723e_set_fw_rsvdpagepkt() 425 SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); in rtl8723e_set_fw_rsvdpagepkt() 426 SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); in rtl8723e_set_fw_rsvdpagepkt() 435 SET_80211_HDR_ADDRESS1(p_probersp, mac->bssid); in rtl8723e_set_fw_rsvdpagepkt() 436 SET_80211_HDR_ADDRESS2(p_probersp, mac->mac_addr); in rtl8723e_set_fw_rsvdpagepkt() [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | ef10_sriov.h | 26 u8 mac[ETH_ALEN]; member 40 int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf, const u8 *mac); 61 unsigned int port_id, const u8 *mac); 63 unsigned int port_id, const u8 *mac);
|
/openbmc/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bna_tx_rx.c | 350 struct bna_mac *mac; in bna_rxf_mcmac_get() local 354 return mac; in bna_rxf_mcmac_get() 358 return mac; in bna_rxf_mcmac_get() 413 mac->handle = NULL; in bna_rxf_mcast_del() 469 struct bna_mac *mac; in bna_rxf_mcast_cfg_reset() local 653 struct bna_mac *mac; in bna_rxf_uninit() local 750 struct bna_mac *mac; in bna_rx_mcast_add() local 761 if (mac == NULL) in bna_rx_mcast_add() 806 if (mac == NULL) in bna_rx_ucast_listset() 857 mac->handle = NULL; in bna_rx_mcast_listset() [all …]
|
/openbmc/u-boot/board/renesas/sh7753evb/ |
H A D | sh7753evb.c | 100 unsigned char mac[6]; in set_mac_to_sh_giga_eth_register() local 103 eth_parse_enetaddr(mac_string, mac); in set_mac_to_sh_giga_eth_register() 110 val = (mac[0] << 24) | (mac[1] << 16) | (mac[2] << 8) | mac[3]; in set_mac_to_sh_giga_eth_register() 112 val = (mac[4] << 8) | mac[5]; in set_mac_to_sh_giga_eth_register()
|
/openbmc/linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_ethtool.c | 135 hw->mac.link_speed = speed; in pch_gbe_set_link_ksettings() 136 hw->mac.link_duplex = copy_ecmd.base.duplex; in pch_gbe_set_link_ksettings() 140 hw->mac.autoneg = copy_ecmd.base.autoneg; in pch_gbe_set_link_ksettings() 389 if (hw->mac.fc == PCH_GBE_FC_RX_PAUSE) { in pch_gbe_get_pauseparam() 393 } else if (hw->mac.fc == PCH_GBE_FC_FULL) { in pch_gbe_get_pauseparam() 414 hw->mac.fc_autoneg = pause->autoneg; in pch_gbe_set_pauseparam() 416 hw->mac.fc = PCH_GBE_FC_FULL; in pch_gbe_set_pauseparam() 418 hw->mac.fc = PCH_GBE_FC_RX_PAUSE; in pch_gbe_set_pauseparam() 420 hw->mac.fc = PCH_GBE_FC_TX_PAUSE; in pch_gbe_set_pauseparam() 422 hw->mac.fc = PCH_GBE_FC_NONE; in pch_gbe_set_pauseparam() [all …]
|
/openbmc/openbmc/meta-security/recipes-security/libmhash/files/ |
H A D | mhash.c | 12 unsigned char mac[16]; in main() local 18 mhash_hmac_deinit(td, mac); in main() 27 printf("%.2x", mac[j]); in main()
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | 80003es2lan.c | 116 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_80003es2lan() local 123 mac->ops.setup_physical_interface = in e1000_init_mac_params_80003es2lan() 129 mac->ops.setup_physical_interface = in e1000_init_mac_params_80003es2lan() 135 mac->mta_reg_count = 128; in e1000_init_mac_params_80003es2lan() 139 mac->has_fwsm = true; in e1000_init_mac_params_80003es2lan() 143 mac->adaptive_ifs = false; in e1000_init_mac_params_80003es2lan() 146 hw->mac.ops.set_lan_id(hw); in e1000_init_mac_params_80003es2lan() 729 struct e1000_mac_info *mac = &hw->mac; in e1000_init_hw_80003es2lan() local 745 mac->ops.clear_vfta(hw); in e1000_init_hw_80003es2lan() 756 ret_val = mac->ops.setup_link(hw); in e1000_init_hw_80003es2lan() [all …]
|
H A D | ethtool.c | 213 struct e1000_mac_info *mac = &adapter->hw.mac; in e1000_set_spd_dplx() local 215 mac->autoneg = 0; in e1000_set_spd_dplx() 244 mac->autoneg = 1; in e1000_set_spd_dplx() 311 hw->mac.autoneg = 1; in e1000_set_link_ksettings() 840 struct e1000_mac_info *mac = &adapter->hw.mac; in e1000_reg_test() local 853 switch (mac->type) { in e1000_reg_test() 908 switch (mac->type) { in e1000_reg_test() 1339 hw->mac.autoneg = 0; in e1000_integrated_phy_loopback() 1580 switch (hw->mac.type) { in e1000_loopback_cleanup() 1617 hw->mac.autoneg = 1; in e1000_loopback_cleanup() [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | xdp_router_ipv4.bpf.c | 31 __be64 mac; member 38 __be64 mac; member 121 if (direct_entry && direct_entry->mac && in xdp_router_ipv4_prog() 122 direct_entry->arp.mac) { in xdp_router_ipv4_prog() 123 src_mac = &direct_entry->mac; in xdp_router_ipv4_prog() 124 dest_mac = &direct_entry->arp.mac; in xdp_router_ipv4_prog()
|
/openbmc/linux/net/llc/ |
H A D | llc_s_ac.c | 60 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_ui() 85 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_xid_c() 141 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_test_c()
|
/openbmc/linux/drivers/net/ethernet/freescale/fs_enet/ |
H A D | Makefile | 8 fs_enet-$(CONFIG_FS_ENET_HAS_SCC) += mac-scc.o 9 fs_enet-$(CONFIG_FS_ENET_HAS_FEC) += mac-fec.o 10 fs_enet-$(CONFIG_FS_ENET_HAS_FCC) += mac-fcc.o
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_fltr.h | 24 const u8 *mac, enum ice_sw_fwd_act_type action); 26 ice_fltr_add_mac(struct ice_vsi *vsi, const u8 *mac, 29 ice_fltr_add_mac_and_broadcast(struct ice_vsi *vsi, const u8 *mac, 33 ice_fltr_remove_mac(struct ice_vsi *vsi, const u8 *mac,
|
/openbmc/linux/drivers/net/wireless/ath/carl9170/ |
H A D | mac.c | 258 const u32 reg, const u8 *mac) in carl9170_set_mac_reg() argument 262 if (!mac) in carl9170_set_mac_reg() 263 mac = zero; in carl9170_set_mac_reg() 267 carl9170_regwrite(reg, get_unaligned_le32(mac)); in carl9170_set_mac_reg() 268 carl9170_regwrite(reg + 4, get_unaligned_le16(mac + 4)); in carl9170_set_mac_reg() 276 const u8 *mac) in carl9170_mod_virtual_mac() argument 282 AR9170_MAC_REG_ACK_TABLE + (id - 1) * 8, mac); in carl9170_mod_virtual_mac() 470 int carl9170_upload_key(struct ar9170 *ar, const u8 id, const u8 *mac, in carl9170_upload_key() argument 478 mac = mac ? : bcast; in carl9170_upload_key() 483 memcpy(&key.macAddr, mac, ETH_ALEN); in carl9170_upload_key()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch.c | 322 mac, vport, err); in esw_add_uc_addr() 355 mac, vport, err); in esw_del_uc_addr() 379 mac, in update_allmulti_vports() 395 mac, vport_num); in update_allmulti_vports() 401 mac, in update_allmulti_vports() 469 mac, vport); in esw_del_mc_addr() 631 u8 *mac = node->addr; in esw_update_vport_mc_promisc() local 729 u8 mac[ETH_ALEN]; in esw_vport_change_handle_locked() local 736 vport->vport, mac); in esw_vport_change_handle_locked() 1977 ether_addr_copy(evport->info.mac, mac); in mlx5_esw_set_vport_mac_locked() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ |
H A D | key.c | 99 if (mac != NULL) { in ath_hw_keysetmac() 107 if (is_multicast_ether_addr(mac)) in ath_hw_keysetmac() 110 macLo = get_unaligned_le32(mac); in ath_hw_keysetmac() 111 macHi = get_unaligned_le16(mac + 4); in ath_hw_keysetmac() 131 const u8 *mac) in ath_hw_set_keycache_entry() argument 220 (void) ath_hw_keysetmac(common, entry, mac); in ath_hw_set_keycache_entry() 479 const u8 *mac = NULL; in ath_key_config() local 513 mac = gmac; in ath_key_config() 523 mac = gmac; in ath_key_config() 533 mac = sta->addr; in ath_key_config() [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/realtek/rtlwifi/rtl8192se/ |
H A D | fw.c | 554 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92s_set_fw_pwrmode_cmd() local 575 max_wakeup_period = mac->vif->bss_conf.beacon_int; in rtl92s_set_fw_pwrmode_cmd() 578 mac->vif->bss_conf.dtim_period; in rtl92s_set_fw_pwrmode_cmd() 598 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92s_set_fw_joinbss_report_cmd() local 603 joinbss_rpt.bssid[0] = mac->bssid[0]; in rtl92s_set_fw_joinbss_report_cmd() 604 joinbss_rpt.bssid[1] = mac->bssid[1]; in rtl92s_set_fw_joinbss_report_cmd() 605 joinbss_rpt.bssid[2] = mac->bssid[2]; in rtl92s_set_fw_joinbss_report_cmd() 606 joinbss_rpt.bssid[3] = mac->bssid[3]; in rtl92s_set_fw_joinbss_report_cmd() 607 joinbss_rpt.bssid[4] = mac->bssid[4]; in rtl92s_set_fw_joinbss_report_cmd() 608 joinbss_rpt.bssid[5] = mac->bssid[5]; in rtl92s_set_fw_joinbss_report_cmd() [all …]
|
/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/ethernet/stmicro/stmmac/ |
H A D | dwmac-sun8i.c | 1086 struct mac_device_info *mac; in sun8i_dwmac_setup() local 1089 mac = devm_kzalloc(priv->device, sizeof(*mac), GFP_KERNEL); in sun8i_dwmac_setup() 1090 if (!mac) in sun8i_dwmac_setup() 1093 mac->pcsr = priv->ioaddr; in sun8i_dwmac_setup() 1094 mac->mac = &sun8i_dwmac_ops; in sun8i_dwmac_setup() 1110 mac->mii.addr = EMAC_MDIO_CMD; in sun8i_dwmac_setup() 1111 mac->mii.data = EMAC_MDIO_DATA; in sun8i_dwmac_setup() 1112 mac->mii.reg_shift = 4; in sun8i_dwmac_setup() 1114 mac->mii.addr_shift = 12; in sun8i_dwmac_setup() 1116 mac->mii.clk_csr_shift = 20; in sun8i_dwmac_setup() [all …]
|
/openbmc/linux/net/bridge/netfilter/ |
H A D | ebt_dnat.c | 27 ether_addr_copy(eth_hdr(skb)->h_dest, info->mac); in ebt_dnat_tg() 29 if (is_multicast_ether_addr(info->mac)) { in ebt_dnat_tg() 30 if (is_broadcast_ether_addr(info->mac)) in ebt_dnat_tg() 52 if (ether_addr_equal(info->mac, dev->dev_addr)) in ebt_dnat_tg()
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
H A D | dm.c | 18 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_dm_dynamic_txpower() local 29 if ((mac->link_state < MAC80211_LINKED) && in rtl92ce_dm_dynamic_txpower() 40 if (mac->link_state >= MAC80211_LINKED) { in rtl92ce_dm_dynamic_txpower() 41 if (mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92ce_dm_dynamic_txpower()
|