/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/ |
H A D | ps.c | 199 if (mac->p2p_in_use) in rtl_ips_nic_off_wq_callback() 202 if (mac->link_state > MAC80211_NOLINK) in rtl_ips_nic_off_wq_callback() 230 !mac->act_scanning) { in rtl_ips_nic_off_wq_callback() 315 if (mac->link_state != MAC80211_LINKED) in rtl_get_fwlps_doze() 318 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl_get_fwlps_doze() 335 if (mac->link_state != MAC80211_LINKED) in rtl_lps_set_psmode() 408 if (mac->cnt_after_linked < 5) in rtl_lps_enter_core() 414 if (mac->link_state != MAC80211_LINKED) in rtl_lps_enter_core() 551 if (mac->link_state != MAC80211_LINKED) in rtl_swlps_rf_awake() 589 if ((mac->link_state != MAC80211_LINKED) || (mac->cnt_after_linked < 5)) in rtl_swlps_rf_sleep() [all …]
|
/openbmc/u-boot/drivers/net/fm/ |
H A D | fm.h | 109 void (*init_mac)(struct fsl_enet_mac *mac); 110 void (*enable_mac)(struct fsl_enet_mac *mac); 111 void (*disable_mac)(struct fsl_enet_mac *mac); 112 void (*set_mac_addr)(struct fsl_enet_mac *mac, u8 *mac_addr); 113 void (*set_if_mode)(struct fsl_enet_mac *mac, phy_interface_t type, 125 struct fsl_enet_mac *mac; /* MAC controller */ member
|
/openbmc/phosphor-networkd/src/ |
H A D | types.hpp | 33 std::optional<stdplus::EtherAddr> mac = std::nullopt; member 42 mac == rhs.mac && mtu == rhs.mtu && in operator ==() 73 std::optional<stdplus::EtherAddr> mac; member 78 mac == rhs.mac; in operator ==()
|
/openbmc/linux/drivers/net/wireless/purelifi/plfxlc/ |
H A D | mac.h | 68 #define plfxlc_mac_dev(mac) plfxlc_chip_dev(&(mac)->chip) argument 100 u8 mac[ETH_ALEN]; member 165 static inline u8 *plfxlc_mac_get_perm_addr(struct plfxlc_mac *mac) in plfxlc_mac_get_perm_addr() argument 167 return mac->hw->wiphy->perm_addr; in plfxlc_mac_get_perm_addr() 171 void plfxlc_mac_release(struct plfxlc_mac *mac); 182 int plfxlc_restore_settings(struct plfxlc_mac *mac);
|
H A D | usb.c | 705 struct plfxlc_mac *mac; in disconnect() local 714 mac = plfxlc_hw_mac(hw); in disconnect() 715 usb = &mac->chip.usb; in disconnect() 731 plfxlc_mac_release(mac); in disconnect() 774 struct plfxlc_mac *mac; in pre_reset() local 780 mac = plfxlc_hw_mac(hw); in pre_reset() 781 usb = &mac->chip.usb; in pre_reset() 793 struct plfxlc_mac *mac; in post_reset() local 800 usb = &mac->chip.usb; in post_reset() 813 struct plfxlc_mac *mac; in get_plfxlc_usb() local [all …]
|
/openbmc/linux/include/rdma/ |
H A D | ib_addr.h | 206 static inline void rdma_get_ll_mac(struct in6_addr *addr, u8 *mac) in rdma_get_ll_mac() argument 208 memcpy(mac, &addr->s6_addr[8], 3); in rdma_get_ll_mac() 209 memcpy(mac + 3, &addr->s6_addr[13], 3); in rdma_get_ll_mac() 210 mac[0] ^= 2; in rdma_get_ll_mac() 224 static inline void rdma_get_mcast_mac(struct in6_addr *addr, u8 *mac) in rdma_get_mcast_mac() argument 228 mac[0] = 0x33; in rdma_get_mcast_mac() 229 mac[1] = 0x33; in rdma_get_mcast_mac() 231 mac[i] = addr->s6_addr[i + 10]; in rdma_get_mcast_mac()
|
/openbmc/google-misc/subprojects/ncsid/src/ |
H A D | ncsid_lib.sh | 254 local mac="$4" 260 'Neighbor' ss "$ip" "$mac" >/dev/null 414 local mac="$4" 424 [ "$(normalize_mac "$MACAddress")" = "$(normalize_mac "$mac")" ]; then 439 echo "Not adding neighbor: $ip $mac" >&2 441 echo "Adding neighbor: $ip $mac" >&2 442 AddNeighbor "$service" "$netdev" "$ip" "$mac" || return $? 469 local mac="$(echo "$output" | grep 'Source link-layer' | ParseMACFromLine)" 472 "$ip" "$mac" "$staddr"
|
H A D | net_config.h | 48 virtual int get_mac_addr(mac_addr_t* mac) = 0; 50 virtual int set_mac_addr(const mac_addr_t& mac) = 0; 66 int get_mac_addr(mac_addr_t* mac) override; 71 int set_mac_addr(const mac_addr_t& mac) override;
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | subr.c | 156 struct cmac *mac = adapter->port[port_id].mac; in t1_link_changed() local 158 mac->ops->set_speed_duplex_fc(mac, speed, duplex, fc); in t1_link_changed() 648 mac->ops->set_speed_duplex_fc(mac, lc->speed, in t1_link_start() 660 mac->ops->set_speed_duplex_fc(mac, -1, -1, fc); in t1_link_start() 738 struct cmac *mac = adapter->port[0].mac; in t1_elmer0_ext_intr_handler() local 740 mac->ops->interrupt_handler(mac); in t1_elmer0_ext_intr_handler() 1030 struct cmac *mac = adapter->port[i].mac; in t1_free_sw_modules() local 1033 if (mac) in t1_free_sw_modules() 1034 mac->ops->destroy(mac); in t1_free_sw_modules() 1117 if (!mac) { in t1_init_sw_modules() [all …]
|
/openbmc/linux/crypto/ |
H A D | ccm.c | 21 struct crypto_ahash_spawn mac; member 25 struct crypto_ahash *mac; member 92 struct crypto_ahash *mac = ctx->mac; in crypto_ccm_setkey() local 397 struct crypto_ahash *mac; in crypto_ccm_init_tfm() local 402 mac = crypto_spawn_ahash(&ictx->mac); in crypto_ccm_init_tfm() 403 if (IS_ERR(mac)) in crypto_ccm_init_tfm() 404 return PTR_ERR(mac); in crypto_ccm_init_tfm() 411 ctx->mac = mac; in crypto_ccm_init_tfm() 424 crypto_free_ahash(mac); in crypto_ccm_init_tfm() 470 mac = crypto_spawn_ahash_alg(&ictx->mac); in crypto_ccm_create_common() [all …]
|
/openbmc/linux/drivers/net/ethernet/altera/ |
H A D | altera_tse.h | 487 u32 csrrd32(void __iomem *mac, size_t offs) in csrrd32() argument 489 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrrd32() 494 u16 csrrd16(void __iomem *mac, size_t offs) in csrrd16() argument 496 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrrd16() 501 u8 csrrd8(void __iomem *mac, size_t offs) in csrrd8() argument 503 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrrd8() 508 void csrwr32(u32 val, void __iomem *mac, size_t offs) in csrwr32() argument 510 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrwr32() 516 void csrwr16(u16 val, void __iomem *mac, size_t offs) in csrwr16() argument 518 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrwr16() [all …]
|
/openbmc/u-boot/board/compulab/common/ |
H A D | eeprom.c | 402 { "MAC address", 6, NULL, DEFINE_PRINT_UPDATE(mac) }, 417 { "1st MAC Address", 6, NULL, DEFINE_PRINT_UPDATE(mac) }, 418 { "2nd MAC Address", 6, NULL, DEFINE_PRINT_UPDATE(mac) }, 436 { "1st MAC Address", 6, NULL, DEFINE_PRINT_UPDATE(mac) }, 437 { "2nd MAC Address", 6, NULL, DEFINE_PRINT_UPDATE(mac) }, 440 { "3rd MAC Address (WIFI)", 6, NULL, DEFINE_PRINT_UPDATE(mac) }, 441 { "4th MAC Address (Bluetooth)", 6, NULL, DEFINE_PRINT_UPDATE(mac) }, 455 { "1st MAC Address", 6, NULL, DEFINE_PRINT_UPDATE(mac) }, 456 { "2nd MAC Address", 6, NULL, DEFINE_PRINT_UPDATE(mac) }, 459 { "3rd MAC Address (WIFI)", 6, NULL, DEFINE_PRINT_UPDATE(mac) }, [all …]
|
/openbmc/openbmc/meta-facebook/recipes-fb/network-wait-ipv6-ll/network-wait-ipv6-ll/ |
H A D | check-ipv6-ll | 36 mac=$(cat /sys/class/net/"$eth_intf"/address) 37 if ! is_local_mac "$mac"; then 38 exp_ll=$(mac_to_ll "$mac") 39 echo "$eth_intf mac: $mac"
|
/openbmc/linux/arch/mips/crypto/ |
H A D | poly1305-mips.pl | 505 sb $in0,0($mac) 507 sb $tmp0,1($mac) 509 sb $tmp1,2($mac) 511 sb $tmp2,3($mac) 513 sb $tmp3,4($mac) 515 sb $tmp0,5($mac) 517 sb $tmp1,6($mac) 519 sb $tmp2,7($mac) 521 sb $in1,8($mac) 523 sb $tmp3,9($mac) [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | nvidia,tegra234-mgbe.yaml | 23 - const: mac 43 - const: mac 44 - const: mac-divider 60 - const: mac 121 reg-names = "hypervisor", "mac", "xpcs"; 136 clock-names = "mgbe", "mac", "mac-divider", "ptp-ref", "rx-input-m", 141 reset-names = "mac", "pcs";
|
/openbmc/u-boot/arch/arm/cpu/arm926ejs/spear/ |
H A D | spr_misc.c | 158 static int write_mac(uchar *mac) in write_mac() argument 173 i2c_write(CONFIG_I2C_CHIPADDRESS, MAC_OFF, 1, mac, MAC_LEN); in write_mac() 188 unsigned char mac[6]; in do_chip_config() local 221 mac[reg] = s ? simple_strtoul(s, &e, 16) : 0; in do_chip_config() 225 write_mac(mac); in do_chip_config() 231 if (!i2c_read_mac(mac)) { in do_chip_config() 232 printf("Ethaddr (from i2c mem) = %pM\n", mac); in do_chip_config()
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
H A D | dm.c | 49 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92s_dm_check_edca_turbo() local 56 u32 edca_be_ul = edca_setting_ul[mac->vendor]; in _rtl92s_dm_check_edca_turbo() 57 u32 edca_be_dl = edca_setting_dl[mac->vendor]; in _rtl92s_dm_check_edca_turbo() 60 if (mac->link_state != MAC80211_LINKED) { in _rtl92s_dm_check_edca_turbo() 82 if (mac->mode == WIRELESS_MODE_G || in _rtl92s_dm_check_edca_turbo() 83 mac->mode == WIRELESS_MODE_B) in _rtl92s_dm_check_edca_turbo() 99 if (mac->mode == WIRELESS_MODE_G || in _rtl92s_dm_check_edca_turbo() 100 mac->mode == WIRELESS_MODE_B) in _rtl92s_dm_check_edca_turbo() 273 sta = rtl_find_sta(hw, mac->bssid); in _rtl92s_dm_refresh_rateadaptive_mask() 305 if (mac->link_state >= MAC80211_LINKED) { in _rtl92s_dm_switch_baseband_mrc() [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | xdp_router_ipv4_user.c | 103 __be64 mac; in read_route() member 106 __be64 mac; in read_route() member 113 __be64 mac; in read_route() member 170 direct_entry.mac = route.mac & 0xffffffffffff; in read_route() 172 direct_entry.arp.mac = 0; in read_route() 319 char dsts[24], mac[24]; in read_arp() local 324 __be64 mac; in read_arp() member 330 __be64 mac; in read_arp() member 345 sprintf(mac, "%lld", in read_arp() 353 arp_entry.mac = atol(mac); in read_arp() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
H A D | fw.c | 658 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ee_set_fw_rsvdpagepkt() local 676 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl92ee_set_fw_rsvdpagepkt() 677 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl92ee_set_fw_rsvdpagepkt() 685 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl92ee_set_fw_rsvdpagepkt() 686 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl92ee_set_fw_rsvdpagepkt() 695 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl92ee_set_fw_rsvdpagepkt() 697 SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); in rtl92ee_set_fw_rsvdpagepkt() 717 SET_80211_HDR_ADDRESS1(qosnull, mac->bssid); in rtl92ee_set_fw_rsvdpagepkt() 719 SET_80211_HDR_ADDRESS3(qosnull, mac->bssid); in rtl92ee_set_fw_rsvdpagepkt() 728 SET_80211_HDR_ADDRESS1(btqosnull, mac->bssid); in rtl92ee_set_fw_rsvdpagepkt() [all …]
|
/openbmc/linux/arch/mips/bcm63xx/ |
H A D | nvram.c | 56 int bcm63xx_nvram_get_mac_address(u8 *mac) in bcm63xx_nvram_get_mac_address() argument 66 memcpy(mac, nvram.mac_addr_base, ETH_ALEN); in bcm63xx_nvram_get_mac_address() 67 oui = mac + ETH_ALEN/2 - 1; in bcm63xx_nvram_get_mac_address() 71 u8 *p = mac + ETH_ALEN - 1; in bcm63xx_nvram_get_mac_address()
|
/openbmc/linux/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mac-scc.c | 179 static void set_multicast_one(struct net_device *dev, const u8 * mac) in set_multicast_one() argument 185 taddrh = ((u16) mac[5] << 8) | mac[4]; in set_multicast_one() 186 taddrm = ((u16) mac[3] << 8) | mac[2]; in set_multicast_one() 187 taddrl = ((u16) mac[1] << 8) | mac[0]; in set_multicast_one() 240 const unsigned char *mac; in restart() local 302 mac = dev->dev_addr; in restart() 303 paddrh = ((u16) mac[5] << 8) | mac[4]; in restart() 304 paddrm = ((u16) mac[3] << 8) | mac[2]; in restart() 305 paddrl = ((u16) mac[1] << 8) | mac[0]; in restart()
|
/openbmc/u-boot/board/renesas/sh7752evb/ |
H A D | sh7752evb.c | 93 unsigned char mac[6]; in set_mac_to_sh_giga_eth_register() local 96 eth_parse_enetaddr(mac_string, mac); in set_mac_to_sh_giga_eth_register() 103 val = (mac[0] << 24) | (mac[1] << 16) | (mac[2] << 8) | mac[3]; in set_mac_to_sh_giga_eth_register() 105 val = (mac[4] << 8) | mac[5]; in set_mac_to_sh_giga_eth_register()
|
/openbmc/linux/drivers/net/wireless/zydas/zd1211rw/ |
H A D | zd_mac.h | 140 u8 mac[ETH_ALEN]; member 288 static inline u8 *zd_mac_get_perm_addr(struct zd_mac *mac) in zd_mac_get_perm_addr() argument 290 return mac->hw->wiphy->perm_addr; in zd_mac_get_perm_addr() 293 #define zd_mac_dev(mac) (zd_chip_dev(&(mac)->chip)) argument 296 void zd_mac_clear(struct zd_mac *mac); 307 int zd_restore_settings(struct zd_mac *mac);
|
/openbmc/qemu/net/ |
H A D | announce.c | 126 static const char *qemu_ether_ntoa(const MACAddr *mac) in qemu_ether_ntoa() argument 131 mac->a[0], mac->a[1], mac->a[2], mac->a[3], mac->a[4], mac->a[5]); in qemu_ether_ntoa()
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_netdev.c | 380 if (hw->mac.type != fm10k_mac_pf) in fm10k_restore_udp_port_info() 701 request->mac.glort = glort; in fm10k_queue_mac_request() 702 request->mac.vid = vid; in fm10k_queue_mac_request() 738 if (r->mac.glort != glort) in fm10k_clear_macvlan_queue() 814 if (set && hw->mac.vlan_override) in fm10k_update_vid() 836 if (hw->mac.vlan_override) in fm10k_update_vid() 1120 hw->mac.addr, vid, true); in fm10k_restore_rx_state() 1163 hw->mac.default_vid, true); in fm10k_restore_rx_state() 1431 hw->mac.default_vid, true); in fm10k_dfwd_add_station() 1477 hw->mac.default_vid, false); in fm10k_dfwd_del_station() [all …]
|