/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() 77 mac->vft_size = IXGBE_82598_VFT_TBL_SIZE; in ixgbe_get_invariants_82598() 78 mac->num_rar_entries = IXGBE_82598_RAR_ENTRIES; in ixgbe_get_invariants_82598() 79 mac->rx_pb_size = IXGBE_82598_RX_PB_SIZE; in ixgbe_get_invariants_82598() 80 mac->max_rx_queues = IXGBE_82598_MAX_RX_QUEUES; in ixgbe_get_invariants_82598() 81 mac->max_tx_queues = IXGBE_82598_MAX_TX_QUEUES; in ixgbe_get_invariants_82598() 82 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); in ixgbe_get_invariants_82598() 98 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_phy_ops_82598() local 107 if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) { in ixgbe_init_phy_ops_82598() [all …]
|
H A D | ixgbe_x550.c | 17 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X550_x() local 24 if (mac->ops.get_media_type(hw) != ixgbe_media_type_copper) in ixgbe_get_invariants_X550_x() 46 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X550_a() local 52 if (mac->ops.get_media_type(hw) != ixgbe_media_type_copper) in ixgbe_get_invariants_X550_a() 233 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227() 249 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227() 254 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227() 273 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227() 275 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227() 286 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227() [all …]
|
/openbmc/u-boot/board/varisys/common/ |
H A D | sys_eeprom.c | 45 u8 mac[MAX_NUM_PORTS][6]; /* 0x42 - x MAC addresses */ member 104 u8 *p = e.mac[i]; in show_eeprom() 299 e.mac[index][i] = simple_strtoul(p, &p, 16); in set_mac_address() 383 unsigned char mac[6]; in mac_read_from_generic_eeprom() local 389 ret = i2c_read(chip, address, 1, mac, 6); in mac_read_from_generic_eeprom() 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() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | pm3393.c | 418 #define RMON_UPDATE(mac, name, stat_name) \ argument 420 t1_tpi_read((mac)->adapter, OFFSET(name), &val0); \ 421 t1_tpi_read((mac)->adapter, OFFSET((name)+1), &val1); \ 422 t1_tpi_read((mac)->adapter, OFFSET((name)+2), &val2); \ 423 (mac)->stats.stat_name = (u64)(val0 & 0xffff) | \ 426 ((mac)->stats.stat_name & \ 430 (mac)->stats.stat_name += 1ULL << 40; \ 433 static const struct cmac_statistics *pm3393_update_statistics(struct cmac *mac, in pm3393_update_statistics() argument 440 pmwrite(mac, SUNI1x10GEXP_REG_MSTAT_CONTROL, in pm3393_update_statistics() 444 pmread(mac, SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_0, &val0); in pm3393_update_statistics() [all …]
|
/openbmc/openbmc/meta-google/recipes-google/networking/files/ |
H A D | gbmc-mac-config.sh.in | 44 mac=("${internal[@]:3:6}") 63 lower=$(((mac[3] << 16) | (mac[4] << 8) | mac[5])) 71 mac[3]=$(((lower >> 16) & 0xff)) 72 mac[4]=$(((lower >> 8) & 0xff)) 73 mac[5]=$(((lower >> 0) & 0xff)) 78 printf '[Link]\nMACAddress=%s\n' "$macstr" >"$override"/50-mac.conf 82 printf '[NetDev]\nMACAddress=%s\n' "$macstr" >"$override"/50-mac.conf
|
/openbmc/linux/arch/arm64/crypto/ |
H A D | aes-ce-ccm-glue.c | 30 asmlinkage u32 ce_aes_ccm_auth_data(u8 mac[], u8 const in[], u32 abytes, 34 u32 const rk[], u32 rounds, u8 mac[], 38 u32 const rk[], u32 rounds, u8 mac[], 41 asmlinkage void ce_aes_ccm_final(u8 mac[], u8 const ctr[], u32 const rk[], 97 static void ccm_calculate_auth_mac(struct aead_request *req, u8 mac[]) in ccm_calculate_auth_mac() argument 116 macp = ce_aes_ccm_auth_data(mac, (u8 *)<ag, ltag.len, macp, in ccm_calculate_auth_mac() 131 macp = ce_aes_ccm_auth_data(mac, p, n, macp, ctx->key_enc, in ccm_calculate_auth_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() [all …]
|
/openbmc/openbmc/meta-google/recipes-google/networking/gbmc-net-common/ |
H A D | gbmc-ra.sh | 34 local mac="$2" 46 "$rtr" "$ROUTE_METRIC" "$mac" "$rtr" >"$file.d"/10-gateway.conf 52 ip -6 neigh replace "$rtr" dev "$RA_IF" lladdr "$mac") || \ 85 mac= 93 mac="${BASH_REMATCH[1]}" 123 rtrs["$rtr"]="$mac $dl $pfx $fqdn" 128 if [[ "$rtr" != "$old_rtr" && "$mac" != "$old_mac" ]]; then 129 echo "Got defgw $rtr at $mac on $RA_IF" >&2 130 update_rtr "$rtr" "$mac" || true 132 old_mac="$mac" [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/drivers/staging/rtl8712/ |
H A D | usb_intf.c | 392 u8 mac[6]; in r871xu_drv_init() local 441 if (!r8712_initmac || !mac_pton(r8712_initmac, mac)) { in r871xu_drv_init() 445 ether_addr_copy(mac, &pdata[0x12]); in r871xu_drv_init() 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() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/igc/ |
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() 144 ret_val = hw->mac.ops.setup_physical_interface(hw); in igc_setup_link() 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() [all …]
|
/openbmc/u-boot/board/CZ.NIC/turris_omnia/ |
H A D | turris_omnia.c | 483 static void increment_mac(u8 *mac) in increment_mac() argument 488 mac[i] += 1; in increment_mac() 489 if (mac[i]) in increment_mac() 499 u8 mac0[4], mac1[4], mac[6]; in misc_init_r() local 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() [all …]
|
/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/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_pf.c | 39 hw->mac.reset_while_pending++; in fm10k_reset_hw_pf() 114 (hw->mac.default_vid << FM10K_TXQCTL_VID_SHIFT); in fm10k_init_hw_pf() 142 hw->mac.itr_scale = FM10K_TDLEN_ITR_SCALE_GEN1; in fm10k_init_hw_pf() 146 hw->mac.itr_scale = FM10K_TDLEN_ITR_SCALE_GEN2; in fm10k_init_hw_pf() 150 hw->mac.itr_scale = FM10K_TDLEN_ITR_SCALE_GEN3; in fm10k_init_hw_pf() 155 hw->mac.itr_scale = FM10K_TDLEN_ITR_SCALE_GEN3; in fm10k_init_hw_pf() 175 hw->mac.max_queues = FM10K_MAX_QUEUES_PF; in fm10k_init_hw_pf() 273 ether_addr_copy(hw->mac.perm_addr, perm_addr); in fm10k_read_mac_addr_pf() 274 ether_addr_copy(hw->mac.addr, perm_addr); in fm10k_read_mac_addr_pf() 288 glort &= hw->mac.dglort_map >> FM10K_DGLORTMAP_MASK_SHIFT; in fm10k_glort_valid_pf() [all …]
|
/openbmc/u-boot/drivers/net/fm/ |
H A D | eth.c | 40 bus.priv = priv->mac->phyregs; in dtsec_configure_serdes() 85 struct dtsec *regs = priv->mac->base; in dtsec_configure_serdes() 86 struct tsec_mii_mng *phyregs = priv->mac->phyregs; in dtsec_configure_serdes() 391 struct fsl_enet_mac *mac; in fm_eth_startup() local 394 mac = fm_eth->mac; in fm_eth_startup() 401 mac->init_mac(mac); in fm_eth_startup() 407 mac->set_if_mode) in fm_eth_startup() 408 mac->set_if_mode(mac, fm_eth->enet_if, SPEED_100); in fm_eth_startup() 441 struct fsl_enet_mac *mac; in fm_eth_open() local 447 mac = fm_eth->mac; in fm_eth_open() [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_bridge_1q.sh | 484 local mac=$1; shift 503 $MZ $h1 -Q $vid -c 10 -d 100msec -p 64 -b $mac -B $dst -t icmp -q 523 local mac=$1; shift 531 vxlan_flood_test $mac $dst $vid "${expects[@]}" 548 local mac=$1; shift 552 bridge fdb $add_del dev $dev $mac self static permanent \ 554 bridge fdb $add_del dev $dev $mac master static vlan $vid 2>/dev/null 559 local mac=$1; shift 570 vxlan_flood_test $mac $dst $vid "${expects[@]}" 617 local mac=de:ad:be:ef:13:37 [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/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/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/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() 103 if (!hw->mac.ops.check_mng_mode(hw)) { 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() [all …]
|
H A D | ich8lan.c | 211 if (hw->mac.type < e1000_pch_lpt) { in e1000_phy_is_accessible_pchlan() 222 if (hw->mac.type >= e1000_pch_lpt) { in e1000_phy_is_accessible_pchlan() 275 if (hw->mac.type < e1000_pch_lpt) { in e1000_toggle_lanphypc_pch_lpt() 329 switch (hw->mac.type) { in e1000_init_phy_workarounds_pchlan() 362 if ((hw->mac.type == e1000_pchlan) && in e1000_init_phy_workarounds_pchlan() 374 if (hw->mac.type >= e1000_pch_lpt) { in e1000_init_phy_workarounds_pchlan() 428 if ((hw->mac.type == e1000_pch2lan) && in e1000_init_phy_workarounds_pchlan() 466 if (hw->mac.type == e1000_pch_mtp) { in e1000_init_phy_params_pchlan() 476 switch (hw->mac.type) { in e1000_init_phy_params_pchlan() 627 if (hw->mac.type >= e1000_pch_spt) { in e1000_init_nvm_params_ich8lan() [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/ethernet/stmicro/stmmac/ |
H A D | hwif.h | 425 stmmac_do_void_callback(__priv, mac, core_init, __args) 427 stmmac_do_void_callback(__priv, mac, phylink_get_caps, __priv) 429 stmmac_do_void_callback(__priv, mac, set_mac, __args) 431 stmmac_do_callback(__priv, mac, rx_ipc, __args) 433 stmmac_do_void_callback(__priv, mac, rx_queue_enable, __args) 435 stmmac_do_void_callback(__priv, mac, rx_queue_prio, __args) 437 stmmac_do_void_callback(__priv, mac, tx_queue_prio, __args) 439 stmmac_do_void_callback(__priv, mac, rx_queue_routing, __args) 441 stmmac_do_void_callback(__priv, mac, prog_mtl_rx_algorithms, __args) 443 stmmac_do_void_callback(__priv, mac, prog_mtl_tx_algorithms, __args) [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/igb/ |
H A D | e1000_82575.c | 93 switch (hw->mac.type) { in igb_sgmii_uses_mdio_82575() 209 switch (hw->mac.type) { in igb_init_phy_params_82575() 268 hw->mac.ops.check_for_link = in igb_init_phy_params_82575() 381 switch (hw->mac.type) { in igb_init_nvm_params_82575() 404 struct e1000_mac_info *mac = &hw->mac; in igb_init_mac_params_82575() local 408 mac->mta_reg_count = 128; in igb_init_mac_params_82575() 410 mac->uta_reg_count = (hw->mac.type == e1000_82575) ? 0 : 128; in igb_init_mac_params_82575() 412 switch (mac->type) { in igb_init_mac_params_82575() 414 mac->rar_entry_count = E1000_RAR_ENTRIES_82576; in igb_init_mac_params_82575() 417 mac->rar_entry_count = E1000_RAR_ENTRIES_82580; in igb_init_mac_params_82575() [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()
|
/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()
|