/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | xdp_redirect_multi_kern.c | 81 __be64 *mac; in xdp_devmap_prog() local 87 mac = bpf_map_lookup_elem(&mac_map, &key); in xdp_devmap_prog() 88 if (mac) in xdp_devmap_prog() 89 __builtin_memcpy(eth->h_source, mac, ETH_ALEN); in xdp_devmap_prog()
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | keystone-netcp.txt | 98 - mac<->mac auto negotiate mode: 0 99 - mac<->phy mode: 1 100 - mac<->mac forced mode: 2 101 - mac<->fiber mode: 3 102 - mac<->phy mode with no mdio: 4 103 - 10Gb mac<->phy mode : 10 104 - 10Gb mac<->mac forced mode : 11 154 when it obtains the mac address from efuse. 238 efuse-mac = <1>; 250 efuse-mac = <0>; [all …]
|
H A D | faraday,ftgmac100.yaml | 21 - aspeed,ast2400-mac 22 - aspeed,ast2500-mac 23 - aspeed,ast2600-mac 79 compatible = "aspeed,ast2500-mac", "faraday,ftgmac100"; 86 compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
|
H A D | stm32-dwmac.yaml | 69 - mac-clk-tx 70 - mac-clk-rx 118 "mac-clk-tx", 119 "mac-clk-rx", 142 clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx"; 158 clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
|
H A D | litex,liteeth.yaml | 34 - const: mac 59 mac-address: true 60 local-mac-address: true 76 mac: ethernet@8020000 { 81 reg-names = "mac", "mdio", "buffer";
|
/openbmc/u-boot/arch/arm/mach-imx/imx8/ |
H A D | cpu.c | 482 void imx_get_mac_from_fuse(int dev_id, unsigned char *mac) in imx_get_mac_from_fuse() argument 501 mac[0] = val[0]; in imx_get_mac_from_fuse() 502 mac[1] = val[0] >> 8; in imx_get_mac_from_fuse() 503 mac[2] = val[0] >> 16; in imx_get_mac_from_fuse() 504 mac[3] = val[0] >> 24; in imx_get_mac_from_fuse() 505 mac[4] = val[1]; in imx_get_mac_from_fuse() 506 mac[5] = val[1] >> 8; in imx_get_mac_from_fuse() 509 __func__, dev_id, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); in imx_get_mac_from_fuse()
|
/openbmc/linux/drivers/net/phy/ |
H A D | dp83tc811.c | 101 const u8 *mac; in dp83811_set_wol() local 105 mac = (const u8 *)ndev->dev_addr; in dp83811_set_wol() 107 if (!is_valid_ether_addr(mac)) in dp83811_set_wol() 114 (mac[1] << 8) | mac[0]); in dp83811_set_wol() 116 (mac[3] << 8) | mac[2]); in dp83811_set_wol() 118 (mac[5] << 8) | mac[4]); in dp83811_set_wol()
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
H A D | hw.c | 1672 mac->min_space_cfg = ((mac->min_space_cfg & in rtl92cu_set_hw_reg() 1678 mac->min_space_cfg); in rtl92cu_set_hw_reg() 1680 mac->min_space_cfg); in rtl92cu_set_hw_reg() 1689 mac->min_space_cfg &= 0x07; in rtl92cu_set_hw_reg() 1693 mac->min_space_cfg); in rtl92cu_set_hw_reg() 1695 mac->min_space_cfg); in rtl92cu_set_hw_reg() 1916 u8 nmode = mac->ht_enable; in rtl92cu_update_hal_rate_table() 1920 u8 curtxbw_40mhz = mac->bw_40; in rtl92cu_update_hal_rate_table() 2022 curtxbw_40mhz = mac->bw_40; in rtl92cu_update_hal_rate_mask() 2161 &mac->slot_time); in rtl92cu_update_channel_access_setting() [all …]
|
H A D | dm.c | 15 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92cu_dm_dynamic_txpower() local 26 if ((mac->link_state < MAC80211_LINKED) && in rtl92cu_dm_dynamic_txpower() 37 if (mac->link_state >= MAC80211_LINKED) { in rtl92cu_dm_dynamic_txpower() 38 if (mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92cu_dm_dynamic_txpower()
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_fcoe.c | 71 if (hw->mac.type == ixgbe_mac_X550) { in ixgbe_fcoe_ddp_put() 289 if (hw->mac.type == ixgbe_mac_X550) { in ixgbe_fcoe_ddp_setup() 931 struct ixgbe_mac_info *mac = &adapter->hw.mac; in ixgbe_fcoe_get_wwn() local 935 prefix = mac->wwnn_prefix; in ixgbe_fcoe_get_wwn() 938 prefix = mac->wwpn_prefix; in ixgbe_fcoe_get_wwn() 947 ((u64) mac->san_addr[0] << 40) | in ixgbe_fcoe_get_wwn() 948 ((u64) mac->san_addr[1] << 32) | in ixgbe_fcoe_get_wwn() 949 ((u64) mac->san_addr[2] << 24) | in ixgbe_fcoe_get_wwn() 950 ((u64) mac->san_addr[3] << 16) | in ixgbe_fcoe_get_wwn() 951 ((u64) mac->san_addr[4] << 8) | in ixgbe_fcoe_get_wwn() [all …]
|
/openbmc/openbmc/meta-quanta/meta-common/recipes-quanta/network/ |
H A D | mac-address_git.bb | 10 SRC_URI = "git://github.com/quanta-bmc/mac-address.git;protocol=https;branch=master" 14 FILES:${PN} += "${bindir}/mac-address" 17 SYSTEMD_SERVICE:${PN} = "mac-address.service"
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_hw.c | 260 } mac; member 322 } mac; member 875 evt->port_evt.data.mac.fc = hw_evt->param.mac.fc; in prestera_fw_parse_port_evt() 876 evt->port_evt.data.mac.fec = hw_evt->param.mac.fec; in prestera_fw_parse_port_evt() 1048 ether_addr_copy(req.param.mac, mac); in prestera_hw_switch_mac_set() 1239 ether_addr_copy(req.param.mac, mac); in prestera_hw_port_mac_set() 1798 ether_addr_copy(req.mac, mac); in prestera_hw_fdb_add() 1815 ether_addr_copy(req.mac, mac); in prestera_hw_fdb_del() 1833 ether_addr_copy(req.mac, mac); in prestera_hw_lag_fdb_add() 1850 ether_addr_copy(req.mac, mac); in prestera_hw_lag_fdb_del() [all …]
|
/openbmc/u-boot/board/keymile/common/ |
H A D | ivm.c | 193 unsigned char mac[6]; in process_mac() local 199 memcpy(mac, buf+1, 6); in process_mac() 206 mac[0] |= 0x2; in process_mac() 210 mac[3] = (val >> 16) & 0xff; in process_mac() 211 mac[4] = (val >> 8) & 0xff; in process_mac() 212 mac[5] = val & 0xff; in process_mac() 215 sprintf((char *)valbuf, "%pM", mac); in process_mac()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | fib_lookup.c | 153 static void mac_str(char *b, const __u8 *mac) in mac_str() argument 156 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); in mac_str()
|
/openbmc/linux/drivers/net/ethernet/micrel/ |
H A D | ks8842.c | 355 u16 mac; in ks8842_init_mac_addr() local 367 mac = ks8842_read16(adapter, 2, REG_MARL); in ks8842_init_mac_addr() 369 mac = ks8842_read16(adapter, 2, REG_MARM); in ks8842_init_mac_addr() 371 mac = ks8842_read16(adapter, 2, REG_MARH); in ks8842_init_mac_addr() 376 mac = ks8842_read16(adapter, 2, REG_MARL); in ks8842_init_mac_addr() 378 mac = ks8842_read16(adapter, 2, REG_MARM); in ks8842_init_mac_addr() 380 mac = ks8842_read16(adapter, 2, REG_MARH); in ks8842_init_mac_addr() 404 u16 mac; in ks8842_write_mac_addr() local 1062 char *mac = (u8 *)addr->sa_data; in ks8842_set_mac() local 1069 eth_hw_addr_set(netdev, mac); in ks8842_set_mac() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/nvmem/layouts/ |
H A D | fixed-layout.yaml | 47 mac@100 { 48 compatible = "mac-base"; 53 mac@110 { 54 compatible = "mac-base";
|
/openbmc/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_rx_filter.c | 56 err, ac->mac.addr); in ionic_rx_filter_replay() 62 ac->mac.addr); in ionic_rx_filter_replay() 141 key = *(u32 *)ac->mac.addr; in ionic_rx_filter_save() 142 f = ionic_rx_filter_by_addr(lif, ac->mac.addr); in ionic_rx_filter_save() 217 if (memcmp(addr, f->cmd.mac.addr, ETH_ALEN) == 0) in ionic_rx_filter_by_addr() 249 return ionic_rx_filter_by_addr(lif, ac->mac.addr); in ionic_rx_filter_find() 352 __func__, ctx.cmd.rx_filter_add.mac.addr); in ionic_lif_filter_add() 408 ctx.cmd.rx_filter_add.mac.addr); in ionic_lif_filter_add() 452 memcpy(&ac.mac.addr, addr, ETH_ALEN); in ionic_lif_addr_add() 496 __func__, ac->mac.addr, f->filter_id); in ionic_lif_filter_del() [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mac-fcc.c | 191 static void set_multicast_one(struct net_device *dev, const u8 *mac) in set_multicast_one() argument 197 taddrh = ((u16)mac[5] << 8) | mac[4]; in set_multicast_one() 198 taddrm = ((u16)mac[3] << 8) | mac[2]; in set_multicast_one() 199 taddrl = ((u16)mac[1] << 8) | mac[0]; in set_multicast_one() 251 const unsigned char *mac; in restart() local 327 mac = dev->dev_addr; in restart() 328 paddrh = ((u16)mac[5] << 8) | mac[4]; in restart() 329 paddrm = ((u16)mac[3] << 8) | mac[2]; in restart() 330 paddrl = ((u16)mac[1] << 8) | mac[0]; in restart()
|
/openbmc/linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_main.c | 395 struct pch_gbe_mac_info *mac = &hw->mac; in pch_gbe_mac_force_mac_fc() local 402 switch (mac->fc) { in pch_gbe_mac_force_mac_fc() 405 mac->tx_fc_enable = false; in pch_gbe_mac_force_mac_fc() 409 mac->tx_fc_enable = false; in pch_gbe_mac_force_mac_fc() 413 mac->tx_fc_enable = true; in pch_gbe_mac_force_mac_fc() 417 mac->tx_fc_enable = true; in pch_gbe_mac_force_mac_fc() 511 tmp2 = hw->mac.addr[1]; in pch_gbe_mac_set_pause_packet() 515 tmp3 = hw->mac.addr[5]; in pch_gbe_mac_set_pause_packet() 1037 hw->mac.link_duplex); in pch_gbe_watchdog() 1040 hw->mac.link_speed, in pch_gbe_watchdog() [all …]
|
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | cn23xx_pf_regs.h | 131 #define CN23XX_SLI_PKT_MAC_RINFO64(mac, pf) \ argument 133 ((mac) * CN23XX_MAC_RINFO_OFFSET) + \ 343 #define CN23XX_SLI_MAC_PF_MBOX_INT(mac, pf) \ argument 345 ((mac) * CN23XX_MAC_INT_OFFSET + \ 407 #define CN23XX_SLI_MAC_PF_INT_SUM64(mac, pf) \ argument 409 ((mac) * CN23XX_MAC_INT_OFFSET) + \ 412 #define CN23XX_SLI_MAC_PF_INT_ENB64(mac, pf) \ argument 414 ((mac) * CN23XX_MAC_INT_OFFSET) + \
|
/openbmc/linux/arch/arm/crypto/ |
H A D | poly1305-armv4.pl | 447 str $h0,[$mac,#0] 448 str $h1,[$mac,#4] 449 str $h2,[$mac,#8] 450 str $h3,[$mac,#12] 452 strb $h0,[$mac,#0] 454 strb $h1,[$mac,#4] 456 strb $h2,[$mac,#8] 461 strb $h0,[$mac,#1] 463 strb $h1,[$mac,#5] 465 strb $h2,[$mac,#9] [all …]
|
/openbmc/linux/lib/crypto/ |
H A D | chacha20poly1305.c | 134 u8 mac[POLY1305_DIGEST_SIZE]; in __chacha20poly1305_decrypt() member 157 poly1305_final(&poly1305_state, b.mac); in __chacha20poly1305_decrypt() 159 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE); in __chacha20poly1305_decrypt() 231 u8 mac[2][POLY1305_DIGEST_SIZE]; in chacha20poly1305_crypt_sg_inplace() member 310 poly1305_final(&poly1305_state, b.mac[0]); in chacha20poly1305_crypt_sg_inplace() 311 ret = !crypto_memneq(b.mac[0], in chacha20poly1305_crypt_sg_inplace() 320 poly1305_final(&poly1305_state, b.mac[1]); in chacha20poly1305_crypt_sg_inplace() 321 scatterwalk_map_and_copy(b.mac[encrypt], src, src_len, in chacha20poly1305_crypt_sg_inplace() 322 sizeof(b.mac[1]), encrypt); in chacha20poly1305_crypt_sg_inplace() 324 !crypto_memneq(b.mac[0], b.mac[1], POLY1305_DIGEST_SIZE); in chacha20poly1305_crypt_sg_inplace()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_eswitch_br.c | 183 const unsigned char *mac, u16 vid) in ice_eswitch_br_guard_rule_create() argument 280 ether_addr_copy(data.addr, mac); in ice_eswitch_br_fdb_find() 349 .addr = mac, in ice_eswitch_br_fdb_offload_notify() 379 mac, vid); in ice_eswitch_br_fdb_entry_find_and_delete() 428 br_port->type, mac, vid); in ice_eswitch_br_fdb_entry_create() 492 added_by_user, mac, vid); in ice_eswitch_br_fdb_event_work() 496 mac, vid); in ice_eswitch_br_fdb_event_work() 514 unsigned char *mac; in ice_eswitch_br_fdb_work_alloc() local 523 mac = kzalloc(ETH_ALEN, GFP_ATOMIC); in ice_eswitch_br_fdb_work_alloc() 524 if (!mac) { in ice_eswitch_br_fdb_work_alloc() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
H A D | fw.c | 409 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88e_set_fw_ap_off_load_cmd() local 541 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88e_set_fw_rsvdpagepkt() local 557 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl88e_set_fw_rsvdpagepkt() 558 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl88e_set_fw_rsvdpagepkt() 566 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl88e_set_fw_rsvdpagepkt() 567 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl88e_set_fw_rsvdpagepkt() 576 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl88e_set_fw_rsvdpagepkt() 577 SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); in rtl88e_set_fw_rsvdpagepkt() 578 SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); in rtl88e_set_fw_rsvdpagepkt() 587 SET_80211_HDR_ADDRESS1(p_probersp, mac->bssid); in rtl88e_set_fw_rsvdpagepkt() [all …]
|
/openbmc/linux/drivers/net/dsa/qca/ |
H A D | qca8k-common.c | 141 const u8 *mac, u8 aging) in qca8k_fdb_write() argument 152 reg[1] |= FIELD_PREP(QCA8K_ATU_ADDR0_MASK, mac[0]); in qca8k_fdb_write() 153 reg[1] |= FIELD_PREP(QCA8K_ATU_ADDR1_MASK, mac[1]); in qca8k_fdb_write() 154 reg[0] |= FIELD_PREP(QCA8K_ATU_ADDR2_MASK, mac[2]); in qca8k_fdb_write() 219 qca8k_fdb_write(priv, vid, port_mask, mac, aging); in qca8k_fdb_add() 232 qca8k_fdb_write(priv, vid, port_mask, mac, 0); in qca8k_fdb_del() 247 const u8 *mac, u16 vid, u8 aging) in qca8k_fdb_search_and_insert() argument 254 qca8k_fdb_write(priv, vid, 0, mac, 0); in qca8k_fdb_search_and_insert() 284 const u8 *mac, u16 vid) in qca8k_fdb_search_and_del() argument 291 qca8k_fdb_write(priv, vid, 0, mac, 0); in qca8k_fdb_search_and_del() [all …]
|