/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_base.c | 130 struct igc_mac_info *mac = &hw->mac; in igc_init_mac_params_base() local 133 mac->mta_reg_count = 128; in igc_init_mac_params_base() 134 mac->rar_entry_count = IGC_RAR_ENTRIES; in igc_init_mac_params_base() 137 mac->ops.reset_hw = igc_reset_hw_base; in igc_init_mac_params_base() 143 if (mac->type == igc_i225) in igc_init_mac_params_base() 191 struct igc_mac_info *mac = &hw->mac; in igc_get_invariants_base() local 211 mac->type = igc_i225; in igc_get_invariants_base() 226 switch (hw->mac.type) { in igc_get_invariants_base() 268 hw->mac.ops.release_swfw_sync(hw, mask); in igc_release_phy_base() 279 struct igc_mac_info *mac = &hw->mac; in igc_init_hw_base() local [all …]
|
H A D | igc_mac.c | 66 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in igc_init_rx_addrs() 71 hw->mac.ops.rar_set(hw, mac_addr, i); in igc_init_rx_addrs() 357 struct igc_mac_info *mac = &hw->mac; in igc_check_for_copper_link() local 366 if (!mac->get_link_status) { in igc_check_for_copper_link() 382 mac->get_link_status = false; in igc_check_for_copper_link() 392 if (!mac->autoneg) { in igc_check_for_copper_link() 455 struct igc_mac_info *mac = &hw->mac; in igc_config_fc_after_link_up() local 463 if (mac->autoneg_failed) in igc_config_fc_after_link_up() 476 if (mac->autoneg) { in igc_config_fc_after_link_up() 692 if (hw->mac.type == igc_i225 && in igc_get_speed_and_duplex_copper() [all …]
|
/openbmc/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_eth_soc.c | 676 mcr_cur = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id)); in mtk_mac_finish() 683 mtk_w32(mac->hw, mcr_new, MTK_MAC_MCR(mac->id)); in mtk_mac_finish() 693 u32 mcr = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id)); in mtk_mac_link_down() 696 mtk_w32(mac->hw, mcr, MTK_MAC_MCR(mac->id)); in mtk_mac_link_down() 777 mcr = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id)); in mtk_mac_link_up() 805 mtk_w32(mac->hw, mcr, MTK_MAC_MCR(mac->id)); in mtk_mac_link_up() 1036 if (!eth->mac[i] || !eth->mac[i]->hw_stats) in mtk_stats_update() 2046 if (unlikely(mac < 0 || mac >= MTK_MAX_DEVS || in mtk_poll_rx() 2916 mac->hwlro_ip_cnt = mtk_hwlro_get_ip_cnt(mac); in mtk_hwlro_add_ipaddr() 2938 mac->hwlro_ip_cnt = mtk_hwlro_get_ip_cnt(mac); in mtk_hwlro_del_ipaddr() [all …]
|
/openbmc/u-boot/board/varisys/common/ |
H A D | sys_eeprom.c | 395 mac[0], in mac_read_from_generic_eeprom() 396 mac[1], in mac_read_from_generic_eeprom() 397 mac[2], in mac_read_from_generic_eeprom() 398 mac[3], in mac_read_from_generic_eeprom() 399 mac[4], in mac_read_from_generic_eeprom() 400 mac[5]); in mac_read_from_generic_eeprom() 478 e.mac[i][0], in mac_read_from_eeprom_common() 479 e.mac[i][1], in mac_read_from_eeprom_common() 480 e.mac[i][2], in mac_read_from_eeprom_common() 481 e.mac[i][3], in mac_read_from_eeprom_common() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | pm3393.c | 418 #define RMON_UPDATE(mac, name, stat_name) \ argument 423 (mac)->stats.stat_name = (u64)(val0 & 0xffff) | \ 426 ((mac)->stats.stat_name & \ 430 (mac)->stats.stat_name += 1ULL << 40; \ 440 pmwrite(mac, SUNI1x10GEXP_REG_MSTAT_CONTROL, in pm3393_update_statistics() 452 RMON_UPDATE(mac, RxOctetsReceivedOK, RxOctetsOK); in pm3393_update_statistics() 460 RMON_UPDATE(mac, RxSymbolErrors, RxSymbolErrors); in pm3393_update_statistics() 463 RMON_UPDATE(mac, RxJabbers, RxJabberErrors); in pm3393_update_statistics() 464 RMON_UPDATE(mac, RxFragments, RxRuntErrors); in pm3393_update_statistics() 465 RMON_UPDATE(mac, RxUndersizedFrames, RxRuntErrors); in pm3393_update_statistics() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_82598.c | 71 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_82598() local 76 mac->mcft_size = IXGBE_82598_MC_TBL_SIZE; in ixgbe_get_invariants_82598() 98 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_phy_ops_82598() local 109 mac->ops.get_link_capabilities = in ixgbe_init_phy_ops_82598() 184 if (hw->mac.orig_link_settings_stored) in ixgbe_get_link_capabilities_82598() 185 autoc = hw->mac.orig_autoc; in ixgbe_get_link_capabilities_82598() 321 hw->mac.ops.fc_autoneg(hw); in ixgbe_fc_enable_82598() 757 hw->mac.orig_autoc = autoc; in ixgbe_reset_hw_82598() 764 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_82598() 770 hw->mac.ops.init_rx_addrs(hw); in ixgbe_reset_hw_82598() [all …]
|
H A D | ixgbe_x550.c | 17 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X550_x() local 46 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X550_a() local 1282 hw->mac.set_lben = true; in ixgbe_disable_rx_x550() 1556 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_ixfi_x550em() local 1696 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_sfi_x550a() local 1955 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_sgmii() local 2027 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_sgmii_fw() local 2144 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_X550em_a() local 2176 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_X550em() local 3490 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_X550em() [all …]
|
/openbmc/linux/arch/arm64/crypto/ |
H A D | aes-ce-ccm-glue.c | 34 u32 const rk[], u32 rounds, u8 mac[], 38 u32 const rk[], u32 rounds, u8 mac[], 151 u8 __aligned(8) mac[AES_BLOCK_SIZE]; in ccm_encrypt() 156 err = ccm_init_mac(req, mac, len); in ccm_encrypt() 168 ccm_calculate_auth_mac(req, mac); in ccm_encrypt() 179 num_rounds(ctx), mac, walk.iv); in ccm_encrypt() 205 u8 __aligned(8) mac[AES_BLOCK_SIZE]; in ccm_decrypt() 210 err = ccm_init_mac(req, mac, len); in ccm_decrypt() 222 ccm_calculate_auth_mac(req, mac); in ccm_decrypt() 233 num_rounds(ctx), mac, walk.iv); in ccm_decrypt() [all …]
|
/openbmc/u-boot/board/renesas/ecovec/ |
H A D | ecovec.c | 32 u8 mac[6]; in board_late_init() local 52 i2c_read(0x50, 0x10, 0, mac, 6); in board_late_init() 56 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); in board_late_init()
|
/openbmc/linux/fs/nls/ |
H A D | Makefile | 46 obj-$(CONFIG_NLS_MAC_CELTIC) += mac-celtic.o 47 obj-$(CONFIG_NLS_MAC_CENTEURO) += mac-centeuro.o 48 obj-$(CONFIG_NLS_MAC_CROATIAN) += mac-croatian.o 49 obj-$(CONFIG_NLS_MAC_CYRILLIC) += mac-cyrillic.o 50 obj-$(CONFIG_NLS_MAC_GAELIC) += mac-gaelic.o 51 obj-$(CONFIG_NLS_MAC_GREEK) += mac-greek.o 52 obj-$(CONFIG_NLS_MAC_ICELAND) += mac-iceland.o 53 obj-$(CONFIG_NLS_MAC_INUIT) += mac-inuit.o 54 obj-$(CONFIG_NLS_MAC_ROMANIAN) += mac-romanian.o 55 obj-$(CONFIG_NLS_MAC_ROMAN) += mac-roman.o [all …]
|
/openbmc/u-boot/board/freescale/mpc8569mds/ |
H A D | README | 38 The command - "mac", is introduced to set on-board system EEPROM in the format 40 addresses for the MPC8569MDS's 8 Ethernet ports and save it by "mac save" when 42 => mac i NXID /* Set NXID to this EEPROM */ 43 => mac e 01 /* Set Errata, this value is not defined by hardware 45 => mac n a0 /* Set Serial Number. This is not defined by hardware 47 => mac date 090512080000 /* Set the date in YYMMDDhhmmss format */ 49 => mac p 8 /* Set the number of mac ports, it should be 8 */ 50 => mac 0 xx:xx:xx:xx:xx:xx /* xx:xx:xx:xx:xx:xx should be the real mac 55 => mac 7 xx:xx:xx:xx:xx:xx 56 => mac read [all …]
|
/openbmc/linux/include/scsi/fc/ |
H A D | fc_fcoe.h | 86 static inline void fc_fcoe_set_mac(u8 *mac, u8 *did) in fc_fcoe_set_mac() argument 88 mac[0] = (u8) (FC_FCOE_OUI >> 16); in fc_fcoe_set_mac() 89 mac[1] = (u8) (FC_FCOE_OUI >> 8); in fc_fcoe_set_mac() 90 mac[2] = (u8) FC_FCOE_OUI; in fc_fcoe_set_mac() 91 mac[3] = did[0]; in fc_fcoe_set_mac() 92 mac[4] = did[1]; in fc_fcoe_set_mac() 93 mac[5] = did[2]; in fc_fcoe_set_mac()
|
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | util.c | 17 const u8 *mac) in qtnf_sta_list_lookup() argument 21 if (unlikely(!mac)) in qtnf_sta_list_lookup() 25 if (ether_addr_equal(node->mac_addr, mac)) in qtnf_sta_list_lookup() 49 const u8 *mac) in qtnf_sta_list_add() argument 54 if (unlikely(!mac)) in qtnf_sta_list_add() 57 node = qtnf_sta_list_lookup(list, mac); in qtnf_sta_list_add() 66 ether_addr_copy(node->mac_addr, mac); in qtnf_sta_list_add() 75 bool qtnf_sta_list_del(struct qtnf_vif *vif, const u8 *mac) in qtnf_sta_list_del() argument 81 node = qtnf_sta_list_lookup(list, mac); in qtnf_sta_list_del()
|
/openbmc/u-boot/board/CZ.NIC/turris_omnia/ |
H A D | turris_omnia.c | 488 mac[i] += 1; in increment_mac() 489 if (mac[i]) in increment_mac() 520 mac[0] = mac0[1]; in misc_init_r() 521 mac[1] = mac0[2]; in misc_init_r() 522 mac[2] = mac0[3]; in misc_init_r() 523 mac[3] = mac1[1]; in misc_init_r() 524 mac[4] = mac1[2]; in misc_init_r() 525 mac[5] = mac1[3]; in misc_init_r() 527 if (is_valid_ethaddr(mac)) in misc_init_r() 530 increment_mac(mac); in misc_init_r() [all …]
|
/openbmc/linux/drivers/staging/rtl8712/ |
H A D | usb_intf.c | 392 u8 mac[6]; in r871xu_drv_init() local 540 ((mac[0] == 0xff) && (mac[1] == 0xff) && in r871xu_drv_init() 541 (mac[2] == 0xff) && (mac[3] == 0xff) && in r871xu_drv_init() 542 (mac[4] == 0xff) && (mac[5] == 0xff)) || in r871xu_drv_init() 543 ((mac[0] == 0x00) && (mac[1] == 0x00) && in r871xu_drv_init() 544 (mac[2] == 0x00) && (mac[3] == 0x00) && in r871xu_drv_init() 545 (mac[4] == 0x00) && (mac[5] == 0x00))) { in r871xu_drv_init() 546 mac[0] = 0x00; in r871xu_drv_init() 547 mac[1] = 0xe0; in r871xu_drv_init() 548 mac[2] = 0x4c; in r871xu_drv_init() [all …]
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/misc/ |
H A D | phosphor-misc_git.bb | 9 first-boot-set-mac \ 14 PACKAGECONFIG[first-boot-set-mac] = "-Dfirst-boot-set-mac=enabled, -Dfirst-boot-set-mac=disabled" 25 SYSTEMD_SERVICE:${PN}-first-boot-set-mac = "first-boot-set-mac@.service" 39 RDEPENDS:${PN}-first-boot-set-mac += "bash" 44 # first-boot-set-mac 45 FILES:${PN}-first-boot-set-mac = "${bindir}/first-boot-set-mac.sh" 53 … ${@bb.utils.contains('PACKAGECONFIG', 'first-boot-set-mac', '${PN}-first-boot-set-mac', '', d)} \
|
/openbmc/u-boot/drivers/net/fm/ |
H A D | eth.c | 394 mac = fm_eth->mac; in fm_eth_startup() 401 mac->init_mac(mac); in fm_eth_startup() 408 mac->set_if_mode(mac, fm_eth->enet_if, SPEED_100); in fm_eth_startup() 447 mac = fm_eth->mac; in fm_eth_open() 454 mac->set_mac_addr(mac, dev->enetaddr); in fm_eth_open() 459 mac->enable_mac(mac); in fm_eth_open() 483 mac->set_if_mode(mac, fm_eth->enet_if, fm_eth->phydev->speed); in fm_eth_open() 497 mac = fm_eth->mac; in fm_eth_halt() 504 mac->disable_mac(mac); in fm_eth_halt() 663 if (!mac) in fm_eth_init_mac() [all …]
|
/openbmc/u-boot/drivers/net/mscc_eswitch/ |
H A D | mscc_mac_table.c | 49 const unsigned char mac[ETH_LEN], int pgid) in mscc_mac_table_add() 57 mach |= ((u32)mac[0]) << 8; in mscc_mac_table_add() 58 mach |= ((u32)mac[1]) << 0; in mscc_mac_table_add() 59 macl |= ((u32)mac[2]) << 24; in mscc_mac_table_add() 60 macl |= ((u32)mac[3]) << 16; in mscc_mac_table_add() 61 macl |= ((u32)mac[4]) << 8; in mscc_mac_table_add() 62 macl |= ((u32)mac[5]) << 0; in mscc_mac_table_add()
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_pf.c | 39 hw->mac.reset_while_pending++; in fm10k_reset_hw_pf() 322 ((u32)mac[4] << 8) | in fm10k_update_xc_addr_pf() 323 ((u32)mac[5])); in fm10k_update_xc_addr_pf() 325 ((u16)mac[1])); in fm10k_update_xc_addr_pf() 917 ((u32)vf_info->mac[2]); in fm10k_iov_assign_default_mac_vlan_pf() 1057 hw->mac.itr_scale << in fm10k_iov_reset_resources_pf() 1197 u8 mac[ETH_ALEN]; in fm10k_iov_msg_mac_vlan_pf() local 1257 !ether_addr_equal(mac, vf_info->mac)) in fm10k_iov_msg_mac_vlan_pf() 1297 mac, vlan, set); in fm10k_iov_msg_mac_vlan_pf() 1760 fm10k_record_global_table_data(&err_msg.mac, &hw->swapi.mac); in fm10k_msg_err_pf() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | manage.c | 43 if (!hw->mac.arc_subsystem_valid) { in e1000_mng_enable_host_if() 100 hw->mac.tx_pkt_filtering = true; in e1000e_enable_tx_pkt_filtering() 104 hw->mac.tx_pkt_filtering = false; in e1000e_enable_tx_pkt_filtering() 105 return hw->mac.tx_pkt_filtering; in e1000e_enable_tx_pkt_filtering() 113 hw->mac.tx_pkt_filtering = false; in e1000e_enable_tx_pkt_filtering() 114 return hw->mac.tx_pkt_filtering; in e1000e_enable_tx_pkt_filtering() 132 hw->mac.tx_pkt_filtering = true; in e1000e_enable_tx_pkt_filtering() 133 return hw->mac.tx_pkt_filtering; in e1000e_enable_tx_pkt_filtering() 138 hw->mac.tx_pkt_filtering = false; in e1000e_enable_tx_pkt_filtering() 140 return hw->mac.tx_pkt_filtering; in e1000e_enable_tx_pkt_filtering() [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_bridge_1q.sh | 484 local mac=$1; shift 523 local mac=$1; shift 531 vxlan_flood_test $mac $dst $vid "${expects[@]}" 548 local mac=$1; shift 559 local mac=$1; shift 617 local mac=de:ad:be:ef:13:37 686 local mac=$1; shift 795 local mac=de:ad:be:ef:13:37 809 __test_learning $mac $dst $vid 1 3 813 mac=ca:fe:be:ef:13:37 [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | faraday,ftmac.txt | 8 "moxa,moxart-mac" 10 - interrupts : Should contain the mac interrupt number 14 mac0: mac@90900000 { 15 compatible = "moxa,moxart-mac"; 20 mac1: mac@92000000 { 21 compatible = "moxa,moxart-mac";
|
/openbmc/linux/net/core/ |
H A D | of_net.c | 65 const void *mac; in of_get_mac_address_nvmem() local 82 mac = nvmem_cell_read(cell, &len); in of_get_mac_address_nvmem() 85 if (IS_ERR(mac)) in of_get_mac_address_nvmem() 86 return PTR_ERR(mac); in of_get_mac_address_nvmem() 88 if (len != ETH_ALEN || !is_valid_ether_addr(mac)) { in of_get_mac_address_nvmem() 89 kfree(mac); in of_get_mac_address_nvmem() 93 memcpy(addr, mac, ETH_ALEN); in of_get_mac_address_nvmem() 94 kfree(mac); in of_get_mac_address_nvmem()
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | hwif.h | 425 stmmac_do_void_callback(__priv, mac, core_init, __args) 429 stmmac_do_void_callback(__priv, mac, set_mac, __args) 431 stmmac_do_callback(__priv, mac, rx_ipc, __args) 451 stmmac_do_void_callback(__priv, mac, dump_regs, __args) 453 stmmac_do_callback(__priv, mac, host_irq_status, __args) 459 stmmac_do_void_callback(__priv, mac, flow_ctrl, __args) 461 stmmac_do_void_callback(__priv, mac, pmt, __args) 491 stmmac_do_callback(__priv, mac, rxp_config, __args) 497 stmmac_do_callback(__priv, mac, rss_configure, __args) 519 stmmac_do_callback(__priv, mac, est_configure, __args) [all …]
|
/openbmc/u-boot/board/renesas/sh7757lcr/ |
H A D | sh7757lcr.c | 135 unsigned char mac[6]; in set_mac_to_sh_eth_register() local 138 eth_parse_enetaddr(mac_string, mac); in set_mac_to_sh_eth_register() 145 val = (mac[0] << 24) | (mac[1] << 16) | (mac[2] << 8) | mac[3]; in set_mac_to_sh_eth_register() 147 val = (mac[4] << 8) | mac[5]; in set_mac_to_sh_eth_register() 154 unsigned char mac[6]; in set_mac_to_sh_giga_eth_register() local 157 eth_parse_enetaddr(mac_string, mac); in set_mac_to_sh_giga_eth_register() 164 val = (mac[0] << 24) | (mac[1] << 16) | (mac[2] << 8) | mac[3]; in set_mac_to_sh_giga_eth_register() 166 val = (mac[4] << 8) | mac[5]; in set_mac_to_sh_giga_eth_register()
|