Home
last modified time | relevance | path

Searched refs:mac (Results 101 – 125 of 1888) sorted by relevance

12345678910>>...76

/openbmc/linux/drivers/staging/rtl8712/
H A Dsta_info.h105 static inline u32 wifi_mac_hash(u8 *mac) in wifi_mac_hash() argument
109 x = mac[0]; in wifi_mac_hash()
110 x = (x << 2) ^ mac[1]; in wifi_mac_hash()
111 x = (x << 2) ^ mac[2]; in wifi_mac_hash()
112 x = (x << 2) ^ mac[3]; in wifi_mac_hash()
113 x = (x << 2) ^ mac[4]; in wifi_mac_hash()
114 x = (x << 2) ^ mac[5]; in wifi_mac_hash()
/openbmc/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_classifier.c277 void icssg_class_set_host_mac_addr(struct regmap *miig_rt, const u8 *mac) in icssg_class_set_host_mac_addr() argument
279 regmap_write(miig_rt, MAC_INTERFACE_0, (u32)(mac[0] | mac[1] << 8 | in icssg_class_set_host_mac_addr()
280 mac[2] << 16 | mac[3] << 24)); in icssg_class_set_host_mac_addr()
281 regmap_write(miig_rt, MAC_INTERFACE_1, (u32)(mac[4] | mac[5] << 8)); in icssg_class_set_host_mac_addr()
284 void icssg_class_set_mac_addr(struct regmap *miig_rt, int slice, u8 *mac) in icssg_class_set_mac_addr() argument
286 regmap_write(miig_rt, offs[slice].mac0, (u32)(mac[0] | mac[1] << 8 | in icssg_class_set_mac_addr()
287 mac[2] << 16 | mac[3] << 24)); in icssg_class_set_mac_addr()
288 regmap_write(miig_rt, offs[slice].mac1, (u32)(mac[4] | mac[5] << 8)); in icssg_class_set_mac_addr()
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/
H A Dcore.h65 struct qtnf_wmac *mac; member
124 struct qtnf_vif *qtnf_mac_get_free_vif(struct qtnf_wmac *mac);
125 struct qtnf_vif *qtnf_mac_get_base_vif(struct qtnf_wmac *mac);
126 void qtnf_mac_iface_comb_free(struct qtnf_wmac *mac);
127 void qtnf_mac_ext_caps_free(struct qtnf_wmac *mac);
132 int qtnf_core_net_attach(struct qtnf_wmac *mac, struct qtnf_vif *priv,
135 int qtnf_cmd_send_update_phy_params(struct qtnf_wmac *mac, u32 changed);
144 void qtnf_scan_done(struct qtnf_wmac *mac, bool aborted);
/openbmc/u-boot/board/CZ.NIC/turris_mox/
H A Dmox_sp.c98 static inline void res_to_mac(u8 *mac, u32 t1, u32 t2) in res_to_mac() argument
100 mac[0] = t1 >> 8; in res_to_mac()
101 mac[1] = t1; in res_to_mac()
102 mac[2] = t2 >> 24; in res_to_mac()
103 mac[3] = t2 >> 16; in res_to_mac()
104 mac[4] = t2 >> 8; in res_to_mac()
105 mac[5] = t2; in res_to_mac()
/openbmc/linux/include/linux/mlx5/
H A Dmpfs.h11 int mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac);
12 int mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac);
14 static inline int mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac) { return 0; } in mlx5_mpfs_add_mac() argument
15 static inline int mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac) { return 0; } in mlx5_mpfs_del_mac() argument
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Dfw.c478 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_set_fw_rsvdpagepkt() local
497 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl8723be_set_fw_rsvdpagepkt()
498 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt()
506 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt()
507 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl8723be_set_fw_rsvdpagepkt()
516 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt()
518 SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt()
538 SET_80211_HDR_ADDRESS1(qosnull, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt()
540 SET_80211_HDR_ADDRESS3(qosnull, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt()
549 SET_80211_HDR_ADDRESS1(btqosnull, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_pci.c300 ether_addr_copy(hw->mac.addr, hw->mac.perm_addr); in fm10k_handle_reset()
306 if (hw->mac.vlan_override) in fm10k_handle_reset()
816 item->mac.glort, in fm10k_macvlan_task()
817 item->mac.addr, in fm10k_macvlan_task()
818 item->mac.vid, in fm10k_macvlan_task()
823 item->mac.glort, in fm10k_macvlan_task()
824 item->mac.addr, in fm10k_macvlan_task()
825 item->mac.vid, in fm10k_macvlan_task()
1473 !ether_addr_equal(hw->mac.perm_addr, hw->mac.addr)) in fm10k_mbx_mac_addr()
1990 memcpy(&hw->mac.ops, fi->mac_ops, sizeof(hw->mac.ops)); in fm10k_sw_init()
[all …]
H A Dfm10k_iov.c38 u8 mac[ETH_ALEN]; in fm10k_iov_msg_queue_mac_vlan() local
92 err = fm10k_tlv_attr_get_mac_vlan(result, mac, &vlan); in fm10k_iov_msg_queue_mac_vlan()
97 if (is_valid_ether_addr(vf_info->mac) && in fm10k_iov_msg_queue_mac_vlan()
98 !ether_addr_equal(mac, vf_info->mac)) in fm10k_iov_msg_queue_mac_vlan()
112 mac, vlan, set); in fm10k_iov_msg_queue_mac_vlan()
119 err = fm10k_tlv_attr_get_mac_vlan(result, mac, &vlan); in fm10k_iov_msg_queue_mac_vlan()
138 mac, vlan, set); in fm10k_iov_msg_queue_mac_vlan()
359 hw->mac.ops.configure_dglort_map(hw, &dglort); in fm10k_iov_resume()
578 if (!is_zero_ether_addr(mac) && !is_valid_ether_addr(mac)) in fm10k_ndo_set_vf_mac()
583 ether_addr_copy(vf_info->mac, mac); in fm10k_ndo_set_vf_mac()
[all …]
/openbmc/u-boot/board/freescale/common/
H A Dsys_eeprom.c44 u8 mac[MAX_NUM_PORTS][6]; /* 0x42 - 0x71 MAC addresses */ member
118 u8 *p = e.mac[i]; in show_eeprom()
315 e.mac[index][i] = simple_strtoul(p, &p, 16); in set_mac_address()
460 memset(e.mac[8], 0xff, 6); in mac_read_from_eeprom()
464 if (memcmp(&e.mac[i], "\0\0\0\0\0\0", 6) && in mac_read_from_eeprom()
470 e.mac[i][0], in mac_read_from_eeprom()
471 e.mac[i][1], in mac_read_from_eeprom()
472 e.mac[i][2], in mac_read_from_eeprom()
473 e.mac[i][3], in mac_read_from_eeprom()
474 e.mac[i][4], in mac_read_from_eeprom()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_fltr.c227 const u8 *mac, enum ice_sw_fwd_act_type action) in ice_fltr_add_mac_to_list() argument
237 ether_addr_copy(info.l_data.mac.mac_addr, mac); in ice_fltr_add_mac_to_list()
306 ice_fltr_prepare_mac(struct ice_vsi *vsi, const u8 *mac, in ice_fltr_prepare_mac() argument
313 if (ice_fltr_add_mac_to_list(vsi, &tmp_list, mac, action)) { in ice_fltr_prepare_mac()
331 ice_fltr_prepare_mac_and_broadcast(struct ice_vsi *vsi, const u8 *mac, in ice_fltr_prepare_mac_and_broadcast() argument
341 if (ice_fltr_add_mac_to_list(vsi, &tmp_list, mac, action) || in ice_fltr_prepare_mac_and_broadcast()
403 int ice_fltr_add_mac(struct ice_vsi *vsi, const u8 *mac, in ice_fltr_add_mac() argument
406 return ice_fltr_prepare_mac(vsi, mac, action, ice_fltr_add_mac_list); in ice_fltr_add_mac()
416 ice_fltr_add_mac_and_broadcast(struct ice_vsi *vsi, const u8 *mac, in ice_fltr_add_mac_and_broadcast() argument
419 return ice_fltr_prepare_mac_and_broadcast(vsi, mac, action, in ice_fltr_add_mac_and_broadcast()
[all …]
/openbmc/openbmc/meta-phosphor/recipes-phosphor/network/
H A Dphosphor-network_git.bb14 PACKAGECONFIG ??= "uboot-env default-link-local-autoconf default-ipv6-accept-ra persist-mac"
18 PACKAGECONFIG[sync-mac] = "-Dsync-mac=true,-Dsync-mac=false,nlohmann-json,"
20 PACKAGECONFIG[persist-mac] = "-Dpersist-mac=true, -persist-mac=false,,"
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dcxgb2.c118 struct cmac *mac = adapter->port[dev->if_port].mac; in t1_set_rxmode() local
122 mac->ops->set_rx_mode(mac, &rm); in t1_set_rxmode()
177 struct cmac *mac = p->mac; in link_start() local
179 mac->ops->reset(mac); in link_start()
181 mac->ops->macaddress_set(mac, p->dev->dev_addr); in link_start()
270 struct cmac *mac = p->mac; in cxgb_close() local
300 pstats = p->mac->ops->statistics_update(p->mac, in t1_get_stats()
457 struct cmac *mac = adapter->port[dev->if_port].mac; in get_stats() local
845 if ((ret = mac->ops->set_mtu(mac, new_mtu))) in t1_change_mtu()
861 mac->ops->macaddress_set(mac, dev->dev_addr); in t1_set_mac_addr()
[all …]
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c394 s->fragments = enetc_port_rd(hw, ENETC_PM_RFRG(mac)); in enetc_rmon_stats()
395 s->jabbers = enetc_port_rd(hw, ENETC_PM_RJBR(mac)); in enetc_rmon_stats()
397 s->hist[0] = enetc_port_rd(hw, ENETC_PM_R64(mac)); in enetc_rmon_stats()
398 s->hist[1] = enetc_port_rd(hw, ENETC_PM_R127(mac)); in enetc_rmon_stats()
399 s->hist[2] = enetc_port_rd(hw, ENETC_PM_R255(mac)); in enetc_rmon_stats()
400 s->hist[3] = enetc_port_rd(hw, ENETC_PM_R511(mac)); in enetc_rmon_stats()
401 s->hist[4] = enetc_port_rd(hw, ENETC_PM_R1023(mac)); in enetc_rmon_stats()
402 s->hist[5] = enetc_port_rd(hw, ENETC_PM_R1522(mac)); in enetc_rmon_stats()
403 s->hist[6] = enetc_port_rd(hw, ENETC_PM_R1523X(mac)); in enetc_rmon_stats()
405 s->hist_tx[0] = enetc_port_rd(hw, ENETC_PM_T64(mac)); in enetc_rmon_stats()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/
H A Dbase.c643 bw_40 = mac->bw_40; in _rtl_query_shortgi()
644 bw_80 = mac->bw_80; in _rtl_query_shortgi()
890 if (!mac->bw_80 || in _rtl_query_bandwidth_mode()
1385 if (mac->act_scanning) in rtl_action_proc()
2000 if (!mac->act_scanning) in rtl_collect_scan_list()
2071 mac->cnt_after_linked++; in rtl_watchdog_wq_callback()
2073 mac->cnt_after_linked = 0; in rtl_watchdog_wq_callback()
2648 mac->vendor = PEER_UNKNOWN; in rtl_recognize_peer()
2652 if (mac->cnt_after_linked > 2) in rtl_recognize_peer()
2668 vendor = mac->vendor; in rtl_recognize_peer()
[all …]
H A Drc.c118 struct rtl_mac *mac = rtl_mac(rtlpriv); in _rtl_rc_rate_set_series() local
136 if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_rc_rate_set_series()
137 mac->opmode == NL80211_IFTYPE_ADHOC) { in _rtl_rc_rate_set_series()
144 if (mac->bw_80) in _rtl_rc_rate_set_series()
146 else if (mac->bw_40) in _rtl_rc_rate_set_series()
192 struct rtl_mac *mac = rtl_mac(rtlpriv); in _rtl_tx_aggr_check() local
194 if (mac->act_scanning) in _rtl_tx_aggr_check()
197 if (mac->opmode == NL80211_IFTYPE_STATION && in _rtl_tx_aggr_check()
198 mac->cnt_after_linked < 3) in _rtl_tx_aggr_check()
214 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl_tx_status() local
[all …]
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwxgmac2_core.c1699 mac->pcsr = priv->ioaddr; in dwxgmac2_setup()
1702 mac->mcast_bits_log2 = 0; in dwxgmac2_setup()
1705 mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); in dwxgmac2_setup()
1710 mac->link.duplex = 0; in dwxgmac2_setup()
1722 mac->mii.addr_shift = 16; in dwxgmac2_setup()
1724 mac->mii.reg_shift = 0; in dwxgmac2_setup()
1739 mac->pcsr = priv->ioaddr; in dwxlgmac2_setup()
1742 mac->mcast_bits_log2 = 0; in dwxlgmac2_setup()
1745 mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); in dwxlgmac2_setup()
1752 mac->link.duplex = 0; in dwxlgmac2_setup()
[all …]
/openbmc/linux/arch/mips/boot/dts/cavium-octeon/
H A Docteon_3xxx.dts162 local-mac-address = [ 00 00 00 00 00 00 ];
174 local-mac-address = [ 00 00 00 00 00 00 ];
209 local-mac-address = [ 00 00 00 00 00 00 ];
216 local-mac-address = [ 00 00 00 00 00 00 ];
221 local-mac-address = [ 00 00 00 00 00 00 ];
226 local-mac-address = [ 00 00 00 00 00 00 ];
231 local-mac-address = [ 00 00 00 00 00 00 ];
236 local-mac-address = [ 00 00 00 00 00 00 ];
241 local-mac-address = [ 00 00 00 00 00 00 ];
246 local-mac-address = [ 00 00 00 00 00 00 ];
[all …]
/openbmc/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_hw.c23 if (wx->mac.type == wx_mac_sp) { in wx_intr_disable()
37 if (wx->mac.type == wx_mac_sp) { in wx_intr_enable()
463 if (wx->mac.type == wx_mac_sp) { in wx_init_eeprom_params()
529 if (wx->mac.type == wx_mac_sp) in wx_set_rar()
933 memset(&wx->mac.mta_shadow, 0, sizeof(wx->mac.mta_shadow)); in wx_update_mc_addr_list()
944 wx->mac.mta_shadow[i]); in wx_update_mc_addr_list()
1015 wx->mac.set_lben = true; in wx_disable_rx()
1017 wx->mac.set_lben = false; in wx_disable_rx()
1043 if (wx->mac.set_lben) { in wx_enable_rx()
1047 wx->mac.set_lben = false; in wx_enable_rx()
[all …]
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dutils.c871 int mac) in iwl_mvm_check_uapsd_agg_expected_tpt() argument
934 int ac, mac, i; in iwl_mvm_calc_tcm_stats() local
951 for (mac = 0; mac < NUM_MAC_INDEX_DRIVER; mac++) { in iwl_mvm_calc_tcm_stats()
957 band_airtime[band[mac]] += airtime; in iwl_mvm_calc_tcm_stats()
960 mvm->tcm.result.change[mac] = load != mvm->tcm.result.load[mac]; in iwl_mvm_calc_tcm_stats()
961 mvm->tcm.result.load[mac] = load; in iwl_mvm_calc_tcm_stats()
962 mvm->tcm.result.airtime[mac] = airtime; in iwl_mvm_calc_tcm_stats()
983 mac); in iwl_mvm_calc_tcm_stats()
1087 int mac; in iwl_mvm_resume_tcm() local
1093 for (mac = 0; mac < NUM_MAC_INDEX_DRIVER; mac++) { in iwl_mvm_resume_tcm()
[all …]
/openbmc/linux/drivers/net/ethernet/i825xx/
H A Dsni_82596.c81 u8 mac[ETH_ALEN]; in sni_82596_probe() local
113 mac[0] = readb(eth_addr + 0x0b); in sni_82596_probe()
114 mac[1] = readb(eth_addr + 0x0a); in sni_82596_probe()
115 mac[2] = readb(eth_addr + 0x09); in sni_82596_probe()
116 mac[3] = readb(eth_addr + 0x08); in sni_82596_probe()
117 mac[4] = readb(eth_addr + 0x07); in sni_82596_probe()
118 mac[5] = readb(eth_addr + 0x06); in sni_82596_probe()
119 eth_hw_addr_set(netdevice, mac); in sni_82596_probe()
/openbmc/phosphor-networkd/
H A Dmeson_options.txt9 option('sync-mac', type: 'boolean',
10 description: 'Sync mac address with phosphor-inventory-manager')
13 option('persist-mac', type: 'boolean',
15 option('force-sync-mac', type: 'boolean',
16 description: 'Force sync mac address no matter is first boot or not')
/openbmc/linux/Documentation/devicetree/bindings/net/
H A Dengleder,tsnep.yaml29 - const: mac
39 is named "mac". "txrx-[1-7]" are the interrupts for additional TX/RX
44 local-mac-address: true
46 mac-address: true
85 local-mac-address = [00 00 00 00 00 00];
103 interrupt-names = "mac", "txrx-1", "txrx-2", "txrx-3";
105 local-mac-address = [00 00 00 00 00 00];
/openbmc/linux/drivers/net/ethernet/sfc/
H A Def10_sriov.c133 if (!is_zero_ether_addr(vf->mac)) { in efx_ef10_sriov_free_vf_vports()
135 eth_zero_addr(vf->mac); in efx_ef10_sriov_free_vf_vports()
174 eth_zero_addr(vf->mac); in efx_ef10_sriov_assign_vf_vport()
471 u8 *mac) in efx_ef10_vport_del_vf_mac() argument
515 if (!is_zero_ether_addr(vf->mac)) { in efx_ef10_sriov_set_vf_mac()
521 if (!is_zero_ether_addr(mac)) { in efx_ef10_sriov_set_vf_mac()
530 ether_addr_copy(vf->mac, mac); in efx_ef10_sriov_set_vf_mac()
549 eth_zero_addr(vf->mac); in efx_ef10_sriov_set_vf_mac()
598 if (!is_zero_ether_addr(vf->mac)) { in efx_ef10_sriov_set_vf_vlan()
625 eth_zero_addr(vf->mac); in efx_ef10_sriov_set_vf_vlan()
[all …]
/openbmc/u-boot/arch/arm/mach-snapdragon/
H A Dmisc.c39 void msm_generate_mac_addr(u8 *mac) in msm_generate_mac_addr() argument
47 mac[0] = 0x02; in msm_generate_mac_addr()
48 mac[1] = 00; in msm_generate_mac_addr()
50 mac[i + 2] = simple_strtoul(&sn[2 * i], NULL, 16); in msm_generate_mac_addr()
/openbmc/linux/include/linux/
H A Dof_net.h16 extern int of_get_mac_address(struct device_node *np, u8 *mac);
17 extern int of_get_mac_address_nvmem(struct device_node *np, u8 *mac);
27 static inline int of_get_mac_address(struct device_node *np, u8 *mac) in of_get_mac_address() argument
32 static inline int of_get_mac_address_nvmem(struct device_node *np, u8 *mac) in of_get_mac_address_nvmem() argument

12345678910>>...76