Home
last modified time | relevance | path

Searched refs:mac (Results 76 – 100 of 1888) sorted by relevance

12345678910>>...76

/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_x550.c17 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 …]
H A Dixgbe_common.c302 switch (hw->mac.type) { in ixgbe_start_hw_generic()
472 if (hw->mac.type == ixgbe_mac_X550 || hw->mac.type == ixgbe_mac_X540) { in ixgbe_clear_hw_cntrs_generic()
764 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_led_link_act_generic() local
776 mac->led_link_act = i; in ixgbe_init_led_link_act_generic()
784 switch (hw->mac.type) { in ixgbe_init_led_link_act_generic()
786 mac->led_link_act = 0; in ixgbe_init_led_link_act_generic()
789 mac->led_link_act = 1; in ixgbe_init_led_link_act_generic()
792 mac->led_link_act = 2; in ixgbe_init_led_link_act_generic()
1932 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbe_init_rx_addrs_generic()
1940 hw->mac.ops.set_rar(hw, 0, hw->mac.addr, 0, IXGBE_RAH_AV); in ixgbe_init_rx_addrs_generic()
[all …]
/openbmc/u-boot/board/qualcomm/dragonboard410c/
H A Ddragonboard410c.c174 u8 mac[ARP_HLEN]; in ft_board_setup() local
178 if (!eth_env_get_enetaddr("wlanaddr", mac)) { in ft_board_setup()
179 msm_generate_mac_addr(mac); in ft_board_setup()
183 "local-mac-address", mac, ARP_HLEN, 1); in ft_board_setup()
186 if (!eth_env_get_enetaddr("btaddr", mac)) { in ft_board_setup()
187 msm_generate_mac_addr(mac); in ft_board_setup()
192 mac[0] ^= 0x01; in ft_board_setup()
196 "local-bd-address", mac, ARP_HLEN, 1); in ft_board_setup()
/openbmc/linux/Documentation/devicetree/bindings/net/
H A Dingenic,mac.yaml4 $id: http://devicetree.org/schemas/net/ingenic,mac.yaml#
18 - ingenic,jz4775-mac
19 - ingenic,x1000-mac
20 - ingenic,x1600-mac
21 - ingenic,x1830-mac
22 - ingenic,x2000-mac
64 mac: ethernet@134b0000 {
65 compatible = "ingenic,x1000-mac";
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A Dich8lan.c329 switch (hw->mac.type) { in e1000_init_phy_workarounds_pchlan()
476 switch (hw->mac.type) { in e1000_init_phy_params_pchlan()
692 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_ich8lan() local
704 mac->has_fwsm = true; in e1000_init_mac_params_ich8lan()
711 switch (mac->type) { in e1000_init_mac_params_ich8lan()
1458 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_copper_link_ich8lan() local
1695 if (!mac->autoneg) in e1000_check_for_copper_link_ich8lan()
4675 struct e1000_mac_info *mac = &hw->mac; in e1000_id_led_init_pchlan() local
4687 mac->ledctl_mode1 = mac->ledctl_default; in e1000_id_led_init_pchlan()
4688 mac->ledctl_mode2 = mac->ledctl_default; in e1000_id_led_init_pchlan()
[all …]
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/
H A Dcommands.h15 int qtnf_cmd_get_mac_info(struct qtnf_wmac *mac);
23 int qtnf_cmd_band_info_get(struct qtnf_wmac *mac,
25 int qtnf_cmd_send_regulatory_config(struct qtnf_wmac *mac, const char *alpha2);
36 int qtnf_cmd_send_phy_params(struct qtnf_wmac *mac, u16 cmd_action,
45 int qtnf_cmd_send_add_sta(struct qtnf_vif *vif, const u8 *mac,
47 int qtnf_cmd_send_change_sta(struct qtnf_vif *vif, const u8 *mac,
51 int qtnf_cmd_send_scan(struct qtnf_wmac *mac);
60 int qtnf_cmd_reg_notify(struct qtnf_wmac *mac, struct regulatory_request *req,
62 int qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u32 chan_freq,
/openbmc/u-boot/arch/arm/mach-omap2/
H A Dutils.c205 unsigned char mac[6] = { 0 }; in omap_die_id_usbethaddr() local
214 mac[0] = 0x02; in omap_die_id_usbethaddr()
215 mac[1] = die_id[3] & 0xff; in omap_die_id_usbethaddr()
216 mac[2] = die_id[2] & 0xff; in omap_die_id_usbethaddr()
217 mac[3] = die_id[1] & 0xff; in omap_die_id_usbethaddr()
218 mac[4] = die_id[0] & 0xff; in omap_die_id_usbethaddr()
219 mac[5] = (die_id[0] >> 8) & 0xff; in omap_die_id_usbethaddr()
221 eth_env_set_enetaddr("usbethaddr", mac); in omap_die_id_usbethaddr()
224 eth_env_set_enetaddr("ethaddr", mac); in omap_die_id_usbethaddr()
/openbmc/qemu/tests/tcg/sh4/
H A Dtest-macw.c7 int64_t mac_w(int64_t mac, const int16_t *a, const int16_t *b) in mac_w() argument
9 register uint32_t macl __asm__("macl") = mac; in mac_w()
10 register uint32_t mach __asm__("mach") = mac >> 32; in mac_w()
19 int64_t mac; member
34 res = mac_w(t->mac, &t->a, &t->b); in test()
38 t->mac, t->a, t->b, t->res[sat], res); in test()
H A Dtest-macl.c10 int64_t mac_l(int64_t mac, const int32_t *a, const int32_t *b) in mac_l() argument
12 register uint32_t macl __asm__("macl") = mac; in mac_l()
13 register uint32_t mach __asm__("mach") = mac >> 32; in mac_l()
22 int64_t mac; member
37 res = mac_l(t->mac, &t->a, &t->b); in test()
41 t->mac, t->a, t->b, t->res[sat], res); in test()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A De1000_82575.c404 struct e1000_mac_info *mac = &hw->mac; in igb_init_mac_params_82575() local
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()
442 if ((hw->mac.type == e1000_i350) || (hw->mac.type == e1000_i354)) in igb_init_mac_params_82575()
467 if (mac->type == e1000_82580 || mac->type == e1000_i350) { in igb_init_mac_params_82575()
554 struct e1000_mac_info *mac = &hw->mac; in igb_get_invariants_82575() local
693 switch (mac->type) { in igb_get_invariants_82575()
1301 hw->mac.get_link_status = !hw->mac.serdes_has_link; in igb_check_for_link_82575()
1358 struct e1000_mac_info *mac = &hw->mac; in igb_get_pcs_speed_and_duplex_82575() local
1511 struct e1000_mac_info *mac = &hw->mac; in igb_init_hw_82575() local
[all …]
/openbmc/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_common.c153 struct fm10k_mac_info *mac = &hw->mac; in fm10k_get_invariants_generic() local
156 mac->dglort_map = FM10K_DGLORTMAP_NONE; in fm10k_get_invariants_generic()
174 hw->mac.tx_ready = true; in fm10k_start_hw_generic()
191 hw->mac.tx_ready = false; in fm10k_disable_queues_generic()
477 struct fm10k_mac_info *mac = &hw->mac; in fm10k_get_host_state_generic() local
486 mac->get_host_state = true; in fm10k_get_host_state_generic()
489 if (!mac->get_host_state || !(~txdctl)) in fm10k_get_host_state_generic()
510 if (mac->ops.request_lport_map) in fm10k_get_host_state_generic()
511 ret_val = mac->ops.request_lport_map(hw); in fm10k_get_host_state_generic()
519 mac->get_host_state = false; in fm10k_get_host_state_generic()
[all …]
/openbmc/linux/drivers/net/wireless/ath/wil6210/
H A Dtxrx.h468 struct vring_tx_mac mac; member
478 struct vring_rx_mac mac; member
506 return WIL_GET_BITS(d->mac.d0, 0, 3); in wil_rxdesc_tid()
511 return WIL_GET_BITS(d->mac.d0, 4, 6); in wil_rxdesc_cid()
517 WIL_GET_BITS(d->mac.d0, 8, 9) : 0; in wil_rxdesc_mid()
522 return WIL_GET_BITS(d->mac.d0, 10, 11); in wil_rxdesc_ftype()
527 return WIL_GET_BITS(d->mac.d0, 12, 15); in wil_rxdesc_subtype()
538 return WIL_GET_BITS(d->mac.d0, 16, 27); in wil_rxdesc_seq()
553 return WIL_GET_BITS(d->mac.d1, 4, 5); in wil_rxdesc_key_id()
558 return WIL_GET_BITS(d->mac.d1, 7, 7); in wil_rxdesc_security()
[all …]
/openbmc/linux/arch/s390/kernel/
H A Dsthyi.c123 struct mac_sctn mac; member
193 memcpy(sctns->mac.infmtype, sysinfo->type, sizeof(sctns->mac.infmtype)); in fill_stsi_mac()
194 memcpy(sctns->mac.infmmanu, sysinfo->manufacturer, sizeof(sctns->mac.infmmanu)); in fill_stsi_mac()
195 memcpy(sctns->mac.infmpman, sysinfo->plant, sizeof(sctns->mac.infmpman)); in fill_stsi_mac()
196 memcpy(sctns->mac.infmseq, sysinfo->sequence, sizeof(sctns->mac.infmseq)); in fill_stsi_mac()
198 sctns->mac.infmval1 |= MAC_ID_VLD; in fill_stsi_mac()
238 sctns->mac.infmdcps++; in fill_diag_mac()
240 sctns->mac.infmscps++; in fill_diag_mac()
244 sctns->mac.infmdifl++; in fill_diag_mac()
246 sctns->mac.infmsifl++; in fill_diag_mac()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmpfs.c42 static int set_l2table_entry_cmd(struct mlx5_core_dev *dev, u32 index, u8 *mac) in set_l2table_entry_cmd() argument
51 ether_addr_copy(&in_mac_addr[2], mac); in set_l2table_entry_cmd()
133 int mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac) in mlx5_mpfs_add_mac() argument
145 l2addr = l2addr_hash_find(mpfs->hash, mac, struct l2table_node); in mlx5_mpfs_add_mac()
155 l2addr = l2addr_hash_add(mpfs->hash, mac, struct l2table_node, GFP_KERNEL); in mlx5_mpfs_add_mac()
161 err = set_l2table_entry_cmd(dev, index, mac); in mlx5_mpfs_add_mac()
168 mlx5_core_dbg(dev, "MPFS mac added %pM, index (%d)\n", mac, index); in mlx5_mpfs_add_mac()
181 int mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac) in mlx5_mpfs_del_mac() argument
193 l2addr = l2addr_hash_find(mpfs->hash, mac, struct l2table_node); in mlx5_mpfs_del_mac()
206 mlx5_core_dbg(dev, "MPFS mac deleted %pM, index (%d)\n", mac, index); in mlx5_mpfs_del_mac()
H A Dmpfs.h52 #define l2addr_hash_find(hash, mac, type) ({ \ argument
53 int ix = MLX5_L2_ADDR_HASH(mac); \
58 if (ether_addr_equal(ptr->node.addr, mac)) {\
67 #define l2addr_hash_add(hash, mac, type, gfp) ({ \ argument
68 int ix = MLX5_L2_ADDR_HASH(mac); \
73 ether_addr_copy(ptr->node.addr, mac); \
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dflowring.c50 if (memcmp(search->mac, mac, ETH_ALEN) == 0) in brcmf_flowring_is_tdls_mac()
68 u8 *mac; in brcmf_flowring_lookup() local
72 mac = da; in brcmf_flowring_lookup()
74 mac = (u8 *)ALLFFMAC; in brcmf_flowring_lookup()
87 if ((sta || (memcmp(hash[hash_idx].mac, mac, ETH_ALEN) == 0)) && in brcmf_flowring_lookup()
113 u8 *mac; in brcmf_flowring_create() local
117 mac = da; in brcmf_flowring_create()
119 mac = (u8 *)ALLFFMAC; in brcmf_flowring_create()
152 memcpy(hash[hash_idx].mac, mac, ETH_ALEN); in brcmf_flowring_create()
246 eth_zero_addr(flow->hash[hash_idx].mac); in brcmf_flowring_delete()
[all …]
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac1000_core.c534 mac->pcsr = priv->ioaddr; in dwmac1000_setup()
537 mac->mcast_bits_log2 = 0; in dwmac1000_setup()
539 if (mac->multicast_filter_bins) in dwmac1000_setup()
540 mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); in dwmac1000_setup()
547 mac->link.speed1000 = 0; in dwmac1000_setup()
549 mac->mii.addr = GMAC_MII_ADDR; in dwmac1000_setup()
550 mac->mii.data = GMAC_MII_DATA; in dwmac1000_setup()
551 mac->mii.addr_shift = 11; in dwmac1000_setup()
553 mac->mii.reg_shift = 6; in dwmac1000_setup()
554 mac->mii.reg_mask = 0x000007C0; in dwmac1000_setup()
[all …]
/openbmc/openbmc/meta-google/recipes-google/networking/
H A Dgbmc-mac-config.bb9 file://gbmc-mac-config.service \
10 file://gbmc-mac-config.sh.in \
23 SYSTEMD_SERVICE:${PN} += "gbmc-mac-config.service"
41 sed gbmc-mac-config.sh.in \
44 >gbmc-mac-config.sh
47 install -m0755 gbmc-mac-config.sh ${D}${libexecdir}/
50 install -m0644 gbmc-mac-config.service ${D}${systemd_system_unitdir}/
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_mdio.c127 struct hclge_mac *mac = &hdev->hw.mac; in hclge_mac_mdio_config() local
132 if (hdev->hw.mac.phy_addr == PHY_INEXISTENT) { in hclge_mac_mdio_config()
138 hdev->hw.mac.phy_addr); in hclge_mac_mdio_config()
154 mdio_bus->phy_mask = ~(1 << mac->phy_addr); in hclge_mac_mdio_config()
169 mac->phydev = phydev; in hclge_mac_mdio_config()
170 mac->mdio_bus = mdio_bus; in hclge_mac_mdio_config()
194 hdev->hw.mac.req_speed = (u32)speed; in hclge_mac_adjust_link()
195 hdev->hw.mac.req_duplex = (u8)duplex; in hclge_mac_adjust_link()
207 struct phy_device *phydev = hdev->hw.mac.phydev; in hclge_mac_connect_phy()
226 linkmode_copy(mask, hdev->hw.mac.supported); in hclge_mac_connect_phy()
[all …]
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_dmac_flt.c10 static int otx2_dmacflt_do_add(struct otx2_nic *pf, const u8 *mac, in otx2_dmacflt_do_add() argument
25 ether_addr_copy(req->mac_addr, mac); in otx2_dmacflt_do_add()
79 int otx2_dmacflt_add(struct otx2_nic *pf, const u8 *mac, u32 bit_pos) in otx2_dmacflt_add() argument
88 if (ether_addr_equal(mac, pf->netdev->dev_addr)) in otx2_dmacflt_add()
91 return otx2_dmacflt_do_add(pf, mac, dmacindex); in otx2_dmacflt_add()
94 static int otx2_dmacflt_do_remove(struct otx2_nic *pfvf, const u8 *mac, in otx2_dmacflt_do_remove() argument
134 int otx2_dmacflt_remove(struct otx2_nic *pf, const u8 *mac, in otx2_dmacflt_remove() argument
139 if (ether_addr_equal(mac, pf->netdev->dev_addr)) in otx2_dmacflt_remove()
142 return otx2_dmacflt_do_remove(pf, mac, dmacindex); in otx2_dmacflt_remove()
182 int otx2_dmacflt_update(struct otx2_nic *pf, u8 *mac, u32 bit_pos) in otx2_dmacflt_update() argument
[all …]
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dvxlan_bridge_1d.sh385 local mac=$1; shift
417 local mac=$1; shift
423 vxlan_flood_test $mac $dst 10 10 10
436 local mac=$1; shift
447 local mac=$1; shift
680 local mac=de:ad:be:ef:13:37
692 vxlan_flood_test $mac $dst 10 10 10
714 vxlan_flood_test $mac $dst 0 10 0
725 vxlan_flood_test $mac $dst 10 10 10
741 vxlan_flood_test $mac $dst 0 10 0
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dfw.c575 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_set_fw_ap_off_load_cmd() local
1520 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl8812ae_set_fw_rsvdpagepkt() local
1540 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt()
1573 SET_80211_HDR_ADDRESS1(qosnull, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt()
1575 SET_80211_HDR_ADDRESS3(qosnull, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt()
1599 SET_80211_HDR_ADDRESS1(arpresp, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt()
1601 SET_80211_HDR_ADDRESS3(arpresp, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt()
1657 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_set_fw_rsvdpagepkt() local
1677 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl8821ae_set_fw_rsvdpagepkt()
1710 SET_80211_HDR_ADDRESS1(qosnull, mac->bssid); in rtl8821ae_set_fw_rsvdpagepkt()
[all …]
/openbmc/u-boot/drivers/net/
H A Dftmac100.c54 const unsigned char *mac) in ftmac100_set_mac() argument
57 unsigned int maddr = mac[0] << 8 | mac[1]; in ftmac100_set_mac()
58 unsigned int laddr = mac[2] << 24 | mac[3] << 16 | mac[4] << 8 | mac[5]; in ftmac100_set_mac()
369 const char *mac; in dtbmacaddr() local
386 mac = fdt_getprop(gd->fdt_blob, node, "mac-address", &len); in dtbmacaddr()
387 if (mac && is_valid_ethaddr((u8 *)mac)) in dtbmacaddr()
388 return mac; in dtbmacaddr()
397 const char *mac; in ftmac100_ofdata_to_platdata() local
400 mac = dtbmacaddr(0); in ftmac100_ofdata_to_platdata()
401 if (mac) in ftmac100_ofdata_to_platdata()
[all …]
/openbmc/qemu/pc-bios/s390-ccw/
H A Dnetmain.c55 static uint8_t mac[6]; variable
121 static void seed_rng(uint8_t mac[]) in seed_rng() argument
126 seed ^= (mac[2] << 24) | (mac[3] << 16) | (mac[4] << 8) | mac[5]; in seed_rng()
162 rc = virtio_net_init(mac); in net_init()
170 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); in net_init()
172 set_mac_address(mac); /* init ethernet layer */ in net_init()
173 seed_rng(mac); in net_init()
332 num_ent = pxelinux_load_parse_cfg(fn_ip, mac, get_uuid(), in net_try_pxelinux_cfg()
/openbmc/openbmc/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/
H A Dmac-check17 SOFS_MACDIR=${SOFS_MNT}/factory-settings/network/mac
26 local mac="$2"
30 ip link set dev "$iface" address "$mac"
46 local mac="$2"
47 fw_setenv "$envname" "$mac"
58 local mac[i]=${tmp:2}
59 local mac_str=$mac_str:${mac[$i]}

12345678910>>...76