Home
last modified time | relevance | path

Searched refs:mac (Results 351 – 375 of 1888) sorted by relevance

1...<<11121314151617181920>>...76

/openbmc/u-boot/arch/arm/mach-imx/mx5/
H A Dsoc.c74 void imx_get_mac_from_fuse(int dev_id, unsigned char *mac) in imx_get_mac_from_fuse() argument
83 mac[i] = readl(&fuse->mac_addr[i]) & 0xff; in imx_get_mac_from_fuse()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A DMakefile10 fsl-dpaa2-eth-objs := dpaa2-eth.o dpaa2-ethtool.o dpni.o dpaa2-mac.o dpmac.o dpaa2-eth-devlink.o dp…
14 …itch-objs := dpaa2-switch.o dpaa2-switch-ethtool.o dpsw.o dpaa2-switch-flower.o dpaa2-mac.o dpmac.o
/openbmc/u-boot/drivers/net/
H A Dfec_mxc.c393 imx_get_mac_from_fuse(dev_id, mac); in fec_get_hwaddr()
394 return !is_valid_ethaddr(mac); in fec_get_hwaddr()
406 uchar *mac = pdata->enetaddr; in fecmxc_set_hwaddr() local
408 uchar *mac = dev->enetaddr; in fecmxc_set_hwaddr()
418 writel((mac[0] << 24) + (mac[1] << 16) + (mac[2] << 8) + mac[3], in fecmxc_set_hwaddr()
420 writel((mac[4] << 24) + (mac[5] << 16) + 0x8808, &fec->eth->paddr2); in fecmxc_set_hwaddr()
1092 char mac[16]; in fec_probe() local
1162 sprintf(mac, "eth%daddr", fec->dev_id); in fec_probe()
1164 strcpy(mac, "ethaddr"); in fec_probe()
1165 if (!env_get(mac)) in fec_probe()
[all …]
/openbmc/linux/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_main.c87 priv->hw->mac->set_eee_mode(priv->ioaddr); in sxgbe_enable_eee_mode()
93 priv->hw->mac->reset_eee_mode(priv->ioaddr); in sxgbe_disable_eee_mode()
138 priv->hw->mac->set_eee_timer(priv->ioaddr, in sxgbe_eee_init()
236 priv->hw->mac->set_speed(priv->ioaddr, speed); in sxgbe_adjust_link()
936 priv->hw->mac->get_umac_addr((void __iomem *) in sxgbe_check_ether_addr()
1100 priv->hw->mac->core_init(priv->ioaddr); in sxgbe_open()
1155 priv->hw->mac->enable_tx(priv->ioaddr, true); in sxgbe_open()
1156 priv->hw->mac->enable_rx(priv->ioaddr, true); in sxgbe_open()
1238 priv->hw->mac->enable_tx(priv->ioaddr, false); in sxgbe_release()
1980 ops_ptr->mac = sxgbe_get_core_ops(); in sxgbe_get_ops()
[all …]
/openbmc/u-boot/doc/device-tree-bindings/net/
H A Dethernet.txt3 - local-mac-address: array of 6 bytes, specifies the MAC address that was
5 - mac-address: array of 6 bytes, specifies the MAC address that was last used by
7 the device by the boot program is different from the "local-mac-address"
/openbmc/linux/arch/mips/boot/dts/ingenic/
H A Dcu1000-neo.dts154 &mac {
216 pins_mac: mac {
217 function = "mac";
218 groups = "mac";
H A Dcu1830-neo.dts157 &mac {
219 pins_mac: mac {
220 function = "mac";
221 groups = "mac";
/openbmc/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_ethtool.c68 FM10K_STAT("mac_rules_used", hw.swapi.mac.used),
69 FM10K_STAT("mac_rules_avail", hw.swapi.mac.avail),
168 if (interface->hw.mac.type != fm10k_mac_vf) in fm10k_get_stat_strings()
171 for (i = 0; i < interface->hw.mac.max_queues; i++) { in fm10k_get_stat_strings()
210 if (hw->mac.type != fm10k_mac_vf) in fm10k_get_sset_count()
278 if (interface->hw.mac.type != fm10k_mac_vf) { in fm10k_get_ethtool_stats()
362 switch (hw->mac.type) { in fm10k_get_regs()
412 if (i < hw->mac.max_queues) in fm10k_get_regs()
436 switch (hw->mac.type) { in fm10k_get_regs_len()
479 if (hw->mac.type == fm10k_mac_pf) in fm10k_set_pauseparam()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A Digb_ethtool.c189 if (hw->mac.autoneg == 1) in igb_get_link_ksettings()
194 if (hw->mac.autoneg != 1) in igb_get_link_ksettings()
235 hw->mac.autoneg) in igb_get_link_ksettings()
298 hw->mac.autoneg = 1; in igb_set_link_ksettings()
361 struct e1000_mac_info *mac = &adapter->hw.mac; in igb_get_link() local
723 if (hw->mac.type == e1000_i210 || hw->mac.type == e1000_i211) in igb_get_regs()
1376 switch (hw->mac.type) { in igb_eeprom_test()
1445 switch (hw->mac.type) { in igb_intr_test()
1779 hw->mac.autoneg = true; in igb_loopback_cleanup()
2004 if (hw->mac.autoneg) in igb_link_test()
[all …]
H A Digb_ptp.c171 switch (adapter->hw.mac.type) { in igb_ptp_systim_to_hwtstamp()
880 if (hw->mac.type != e1000_82576) in igb_ptp_rx_hang()
960 if (hw->mac.type == e1000_i210 || hw->mac.type == e1000_i211) { in igb_ptp_tx_hwtstamp()
1026 if (hw->mac.type == e1000_i210 || hw->mac.type == e1000_i211) { in igb_ptp_rx_pktstamp()
1194 if (hw->mac.type != e1000_82576) { in igb_ptp_set_timestamp_mode()
1205 if (hw->mac.type == e1000_82575) { in igb_ptp_set_timestamp_mode()
1222 if ((hw->mac.type == e1000_i210) || in igb_ptp_set_timestamp_mode()
1265 if (hw->mac.type == e1000_82576) { in igb_ptp_set_timestamp_mode()
1324 switch (hw->mac.type) { in igb_ptp_init()
1487 switch (adapter->hw.mac.type) { in igb_ptp_reset()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dhw.c558 mac->min_space_cfg = ((mac->min_space_cfg & in rtl8821ae_set_hw_reg()
566 mac->min_space_cfg); in rtl8821ae_set_hw_reg()
569 mac->min_space_cfg); in rtl8821ae_set_hw_reg()
580 mac->min_space_cfg); in rtl8821ae_set_hw_reg()
583 mac->min_space_cfg); in rtl8821ae_set_hw_reg()
743 mac->assoc_id)); in rtl8821ae_set_hw_reg()
3302 u8 b_nmode = mac->ht_enable; in rtl8821ae_update_hal_rate_table()
3306 u8 curtxbw_40mhz = mac->bw_40; in rtl8821ae_update_hal_rate_table()
3534 curtxbw_40mhz = mac->bw_40; in rtl8821ae_update_hal_rate_mask()
3725 u16 wireless_mode = mac->mode; in rtl8821ae_update_channel_access_setting()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf_main.c1507 hw->mac.get_link_status = 1; in ixgbevf_msix_other()
2317 hw->mac.ops.set_rar(hw, 0, hw->mac.addr, 0); in ixgbevf_up_complete()
2319 hw->mac.ops.set_rar(hw, 0, hw->mac.perm_addr, 0); in ixgbevf_up_complete()
2342 hw->mac.get_link_status = 1; in ixgbevf_up_complete()
2560 hw->mac.ops.init_hw(hw); in ixgbevf_reset()
3057 hw->mac.max_tx_queues = 2; in ixgbevf_sw_init()
3058 hw->mac.max_rx_queues = 2; in ixgbevf_sw_init()
3074 err = hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbevf_sw_init()
4585 memcpy(&hw->mac.ops, ii->mac_ops, sizeof(hw->mac.ops)); in ixgbevf_probe()
4586 hw->mac.type = ii->mac; in ixgbevf_probe()
[all …]
/openbmc/linux/net/batman-adv/
H A Dbridge_loop_avoidance.c389 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim()
398 ether_addr_copy(hw_src, mac); in batadv_bla_send_claim()
407 ether_addr_copy(hw_src, mac); in batadv_bla_send_claim()
417 ether_addr_copy(hw_src, mac); in batadv_bla_send_claim()
418 ether_addr_copy(ethhdr->h_dest, mac); in batadv_bla_send_claim()
425 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim()
666 u8 mac[ETH_ALEN]; in batadv_bla_send_announce() local
669 memcpy(mac, batadv_announce_mac, 4); in batadv_bla_send_announce()
673 memcpy(&mac[4], &crc, 2); in batadv_bla_send_announce()
706 ether_addr_copy(claim->addr, mac); in batadv_bla_add_claim()
[all …]
/openbmc/linux/drivers/media/pci/cx23885/
H A Dnetup-eeprom.c89 cinfo->port[0].mac[j] = netup_eeprom_read(i2c_adap, i); in netup_get_card_info()
92 cinfo->port[1].mac[j] = netup_eeprom_read(i2c_adap, i); in netup_get_card_info()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb.c147 if ((hw->mac.type == ixgbe_mac_82598EB) && in ixgbe_dcb_calculate_tc_credits()
268 switch (hw->mac.type) { in ixgbe_dcb_hw_config()
288 switch (hw->mac.type) { in ixgbe_dcb_hw_pfc_config()
340 switch (hw->mac.type) { in ixgbe_dcb_hw_ets_config()
379 switch (hw->mac.type) { in ixgbe_dcb_read_rtrup2tc()
/openbmc/linux/arch/x86/crypto/
H A Dpoly1305_glue.c22 asmlinkage void poly1305_emit_x86_64(void *ctx, u8 mac[POLY1305_DIGEST_SIZE],
24 asmlinkage void poly1305_emit_avx(void *ctx, u8 mac[POLY1305_DIGEST_SIZE],
123 static void poly1305_simd_emit(void *ctx, u8 mac[POLY1305_DIGEST_SIZE], in poly1305_simd_emit()
127 poly1305_emit_x86_64(ctx, mac, nonce); in poly1305_simd_emit()
129 poly1305_emit_avx(ctx, mac, nonce); in poly1305_simd_emit()
/openbmc/linux/include/linux/qed/
H A Dqed_eth_if.h139 unsigned char mac[ETH_ALEN]; member
145 unsigned char mac[64][ETH_ALEN]; member
164 void (*force_mac) (void *dev, u8 *mac, bool forced);
275 bool(*check_mac) (struct qed_dev *cdev, u8 *mac);
334 int (*req_bulletin_update_mac)(struct qed_dev *cdev, const u8 *mac);
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
H A Dtrx.c272 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92de_process_pwdb() local
275 if (mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl92de_process_pwdb()
276 mac->opmode == NL80211_IFTYPE_AP) in _rtl92de_process_pwdb()
373 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92de_translate_rx_signal_stuff() local
389 ether_addr_equal(mac->bssid, in _rtl92de_translate_rx_signal_stuff()
478 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92de_tx_fill_desc() local
495 if (mac->opmode == NL80211_IFTYPE_STATION) { in rtl92de_tx_fill_desc()
496 bw_40 = mac->bw_40; in rtl92de_tx_fill_desc()
498 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92de_tx_fill_desc()
579 mac->cur_40_prime_sc); in rtl92de_tx_fill_desc()
[all …]
/openbmc/linux/drivers/net/dsa/microchip/
H A Dksz8795.c499 alu->mac[5] = (u8)data_lo; in ksz8_r_sta_mac_table()
500 alu->mac[4] = (u8)(data_lo >> 8); in ksz8_r_sta_mac_table()
501 alu->mac[3] = (u8)(data_lo >> 16); in ksz8_r_sta_mac_table()
502 alu->mac[2] = (u8)(data_lo >> 24); in ksz8_r_sta_mac_table()
503 alu->mac[1] = (u8)data_hi; in ksz8_r_sta_mac_table()
504 alu->mac[0] = (u8)(data_hi >> 8); in ksz8_r_sta_mac_table()
538 ((u32)alu->mac[3] << 16) | in ksz8_w_sta_mac_table()
539 ((u32)alu->mac[4] << 8) | alu->mac[5]; in ksz8_w_sta_mac_table()
540 data_hi = ((u32)alu->mac[0] << 8) | alu->mac[1]; in ksz8_w_sta_mac_table()
984 u8 mac[ETH_ALEN]; in ksz8_fdb_dump() local
[all …]
/openbmc/u-boot/drivers/net/ti/
H A Dkeystone_net.c55 #define mac_hi(mac) (((mac)[0] << 0) | ((mac)[1] << 8) | \ argument
56 ((mac)[2] << 16) | ((mac)[3] << 24))
57 #define mac_lo(mac) (((mac)[4] << 0) | ((mac)[5] << 8)) argument
/openbmc/linux/Documentation/devicetree/bindings/net/
H A Dsunplus,sp7021-emac.yaml69 - const: mac-address
118 nvmem-cell-names = "mac-address";
126 nvmem-cell-names = "mac-address";
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
H A Dphy.c292 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_phy_set_bw_mode_callback() local
317 (reg_prsr_rsc & 0x90) | (mac->cur_40_prime_sc << 5); in rtl92ce_phy_set_bw_mode_callback()
336 (mac->cur_40_prime_sc >> 1)); in rtl92ce_phy_set_bw_mode_callback()
337 rtl_set_bbreg(hw, ROFDM1_LSTF, 0xC00, mac->cur_40_prime_sc); in rtl92ce_phy_set_bw_mode_callback()
341 (mac->cur_40_prime_sc == in rtl92ce_phy_set_bw_mode_callback()
404 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92ce_phy_set_rf_power_state() local
433 if (mac->link_state == MAC80211_LINKED) { in _rtl92ce_phy_set_rf_power_state()
/openbmc/pam-ipmi/src/pam_ipmisave/
H A Dpam_ipmisave.c150 unsigned char *mac, unsigned int *maclen) in encrypt_decrypt_data() argument
159 outbytes == NULL || mac == NULL || inbyteslen == 0 || in encrypt_decrypt_data()
179 (memcmp(calmac, mac, calmaclen) == 0))) { in encrypt_decrypt_data()
222 mac, maclen)) { in encrypt_decrypt_data()
299 unsigned char mac[EVP_MAX_MD_SIZE] = { 0 }; in update_pass_special_file() local
533 pwptextlen, pwctext, &pwctextlen, mac, in update_pass_special_file()
568 if (fwrite(mac, 1, maclen, pwfile) != maclen) { in update_pass_special_file()
/openbmc/linux/drivers/firmware/
H A Dturris-mox-rwtm.c184 static void reply_to_mac_addr(u8 *mac, u32 t1, u32 t2) in reply_to_mac_addr() argument
186 mac[0] = t1 >> 8; in reply_to_mac_addr()
187 mac[1] = t1; in reply_to_mac_addr()
188 mac[2] = t2 >> 24; in reply_to_mac_addr()
189 mac[3] = t2 >> 16; in reply_to_mac_addr()
190 mac[4] = t2 >> 8; in reply_to_mac_addr()
191 mac[5] = t2; in reply_to_mac_addr()
/openbmc/linux/drivers/vdpa/pds/
H A Dcmds.c79 int pds_vdpa_cmd_set_mac(struct pds_vdpa_device *pdsv, u8 *mac) in pds_vdpa_cmd_set_mac() argument
92 ether_addr_copy(cmd.vdpa_setattr.mac, mac); in pds_vdpa_cmd_set_mac()
97 mac, comp.status, ERR_PTR(err)); in pds_vdpa_cmd_set_mac()

1...<<11121314151617181920>>...76