Home
last modified time | relevance | path

Searched refs:mac (Results 176 – 200 of 1876) sorted by relevance

12345678910>>...76

/openbmc/u-boot/arch/arm/mach-imx/imx8/
H A Dcpu.c482 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 Ddp83tc811.c101 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 Dhw.c1672 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 Ddm.c15 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 Dixgbe_fcoe.c71 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/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_hw.c260 } 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/openbmc/meta-quanta/meta-common/recipes-quanta/network/
H A Dmac-address_git.bb10 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/u-boot/board/keymile/common/
H A Divm.c193 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 Dfib_lookup.c153 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/Documentation/devicetree/bindings/net/
H A Dfaraday,ftgmac100.yaml21 - 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 Dstm32-dwmac.yaml69 - 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 Dlitex,liteeth.yaml34 - const: mac
59 mac-address: true
60 local-mac-address: true
76 mac: ethernet@8020000 {
81 reg-names = "mac", "mdio", "buffer";
/openbmc/linux/drivers/net/ethernet/micrel/
H A Dks8842.c355 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 Dfixed-layout.yaml47 mac@100 {
48 compatible = "mac-base";
53 mac@110 {
54 compatible = "mac-base";
/openbmc/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_rx_filter.c56 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 Dmac-fcc.c191 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 Dpch_gbe_main.c395 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 Dcn23xx_pf_regs.h131 #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 Dpoly1305-armv4.pl447 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 Dchacha20poly1305.c134 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 Dice_eswitch_br.c183 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 Dfw.c409 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 Dqca8k-common.c141 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 …]
/openbmc/linux/drivers/net/ethernet/amd/
H A Dau1000_eth.c370 reg = readl(&aup->mac->control); in au1000_hard_stop()
372 writel(reg, &aup->mac->control); in au1000_hard_stop()
384 reg = readl(&aup->mac->control); in au1000_enable_rx_tx()
386 writel(reg, &aup->mac->control); in au1000_enable_rx_tx()
702 writel(0, &aup->mac->control); in au1000_init()
708 &aup->mac->mac_addr_high); in au1000_init()
711 &aup->mac->mac_addr_low); in au1000_init()
1144 aup->mac = (struct mac_reg *) in au1000_probe()
1146 if (!aup->mac) { in au1000_probe()
1310 iounmap(aup->mac); in au1000_probe()
[all …]
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dlib.sh1287 | jq -e ".[] | select(.mac == \"$mac\")" &> /dev/null
1298 flower dst_mac $mac action drop
1300 $MZ $host2_if -c 1 -p 64 -b $mac -t ip -q
1308 $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q
1315 $MZ $host2_if -c 1 -p 64 -b $mac -t ip -q
1334 $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q
1355 local mac=$2
1366 flower dst_mac $mac action drop
1391 local mac=de:ad:be:ef:13:37
1414 local mac=01:00:5e:00:00:01
[all …]

12345678910>>...76