Home
last modified time | relevance | path

Searched refs:mac_hi (Results 1 – 25 of 28) sorted by relevance

12

/openbmc/u-boot/board/grinn/chiliboard/
H A Dboard.c108 uint32_t mac_hi, mac_lo; in board_late_init() local
112 mac_hi = readl(&cdev->macid0h); in board_late_init()
113 mac_addr[0] = mac_hi & 0xFF; in board_late_init()
114 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_late_init()
115 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_late_init()
116 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_late_init()
128 mac_hi = readl(&cdev->macid1h); in board_late_init()
129 mac_addr[0] = mac_hi & 0xFF; in board_late_init()
130 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_late_init()
131 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_late_init()
[all …]
/openbmc/u-boot/board/tcl/sl50/
H A Dboard.c310 uint32_t mac_hi, mac_lo; in board_eth_init() local
314 mac_hi = readl(&cdev->macid0h); in board_eth_init()
315 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
316 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
317 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
318 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
334 mac_hi = readl(&cdev->macid1h); in board_eth_init()
335 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
336 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
337 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
[all …]
/openbmc/u-boot/board/ti/ti816x/
H A Devm.c38 uint32_t mac_hi, mac_lo; in board_eth_init() local
45 mac_hi = readl(&cdev->macid0h); in board_eth_init()
46 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
47 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
48 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
49 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
/openbmc/u-boot/board/ti/ti814x/
H A Devm.c167 uint32_t mac_hi, mac_lo; in board_eth_init() local
173 mac_hi = readl(&cdev->macid0h); in board_eth_init()
174 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
175 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
176 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
177 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
/openbmc/u-boot/board/compulab/cm_t335/
H A Dcm_t335.c87 uint32_t mac_hi, mac_lo; in get_efuse_mac_addr() local
91 mac_hi = readl(&cdev->macid0h); in get_efuse_mac_addr()
92 enetaddr[0] = mac_hi & 0xFF; in get_efuse_mac_addr()
93 enetaddr[1] = (mac_hi & 0xFF00) >> 8; in get_efuse_mac_addr()
94 enetaddr[2] = (mac_hi & 0xFF0000) >> 16; in get_efuse_mac_addr()
95 enetaddr[3] = (mac_hi & 0xFF000000) >> 24; in get_efuse_mac_addr()
/openbmc/u-boot/board/silica/pengwyn/
H A Dboard.c172 uint32_t mac_hi, mac_lo; in board_eth_init() local
178 mac_hi = readl(&cdev->macid0h); in board_eth_init()
179 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
180 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
181 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
182 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
/openbmc/u-boot/board/compulab/cl-som-am57x/
H A Deth.c66 uint32_t mac_hi, mac_lo; in cl_som_am57x_efuse_read_mac_addr() local
70 mac_hi = readl((*ctrl)->control_core_mac_id_1_hi); in cl_som_am57x_efuse_read_mac_addr()
73 mac_hi = readl((*ctrl)->control_core_mac_id_0_hi); in cl_som_am57x_efuse_read_mac_addr()
76 buff[0] = (mac_hi & 0xFF0000) >> 16; in cl_som_am57x_efuse_read_mac_addr()
77 buff[1] = (mac_hi & 0xFF00) >> 8; in cl_som_am57x_efuse_read_mac_addr()
78 buff[2] = mac_hi & 0xFF; in cl_som_am57x_efuse_read_mac_addr()
/openbmc/u-boot/board/ti/am335x/
H A Dboard.c796 uint32_t mac_hi, mac_lo; in board_late_init() local
834 mac_hi = readl(&cdev->macid0h); in board_late_init()
835 mac_addr[0] = mac_hi & 0xFF; in board_late_init()
836 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_late_init()
850 mac_hi = readl(&cdev->macid1h); in board_late_init()
851 mac_addr[0] = mac_hi & 0xFF; in board_late_init()
852 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_late_init()
945 uint32_t mac_hi, mac_lo; in board_eth_init() local
952 mac_hi = readl(&cdev->macid0h); in board_eth_init()
953 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
[all …]
/openbmc/u-boot/board/phytec/pcm051/
H A Dboard.c217 uint32_t mac_hi, mac_lo; in board_eth_init() local
223 mac_hi = readl(&cdev->macid0h); in board_eth_init()
224 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
225 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
226 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
227 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
/openbmc/u-boot/board/gumstix/pepper/
H A Dboard.c238 uint32_t mac_hi, mac_lo; in board_eth_init() local
244 mac_hi = readl(&cdev->macid0h); in board_eth_init()
245 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
246 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
247 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
248 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
/openbmc/u-boot/board/isee/igep003x/
H A Dboard.c264 uint32_t mac_hi, mac_lo; in board_eth_init() local
269 mac_hi = readl(&cdev->macid0h); in board_eth_init()
270 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
271 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
272 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
273 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
/openbmc/u-boot/board/ti/am43xx/
H A Dboard.c893 uint32_t mac_hi, mac_lo; in board_eth_init() local
897 mac_hi = readl(&cdev->macid0h); in board_eth_init()
898 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
899 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
900 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
901 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
912 mac_hi = readl(&cdev->macid1h); in board_eth_init()
913 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
914 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
915 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
[all …]
/openbmc/u-boot/board/siemens/common/
H A Dfactoryset.c277 uint32_t mac_hi, mac_lo; in factoryset_mac_env_set() local
281 mac_hi = readl(&cdev->macid0h); in factoryset_mac_env_set()
283 mac_addr[0] = mac_hi & 0xFF; in factoryset_mac_env_set()
284 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in factoryset_mac_env_set()
285 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in factoryset_mac_env_set()
286 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in factoryset_mac_env_set()
/openbmc/u-boot/board/vscom/baltos/
H A Dboard.c429 uint32_t mac_hi, mac_lo; in board_eth_init() local
440 mac_hi = readl(&cdev->macid1h); in board_eth_init()
441 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
442 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
443 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
444 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
/openbmc/u-boot/drivers/net/
H A Daltera_tse.c456 u32 mac_lo, mac_hi; in altera_tse_write_hwaddr() local
460 mac_hi = (hwaddr[5] << 8) | hwaddr[4]; in altera_tse_write_hwaddr()
461 debug("Set MAC address to 0x%04x%08x\n", mac_hi, mac_lo); in altera_tse_write_hwaddr()
464 writel(mac_hi, &mac_dev->mac_addr_1); in altera_tse_write_hwaddr()
466 writel(mac_hi, &mac_dev->supp_mac_addr_0_1); in altera_tse_write_hwaddr()
468 writel(mac_hi, &mac_dev->supp_mac_addr_1_1); in altera_tse_write_hwaddr()
470 writel(mac_hi, &mac_dev->supp_mac_addr_2_1); in altera_tse_write_hwaddr()
472 writel(mac_hi, &mac_dev->supp_mac_addr_3_1); in altera_tse_write_hwaddr()
/openbmc/u-boot/board/ti/am57xx/
H A Dboard.c961 uint32_t mac_hi, mac_lo; in board_eth_init() local
970 mac_hi = readl((*ctrl)->control_core_mac_id_0_hi); in board_eth_init()
971 mac_addr[0] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
972 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
973 mac_addr[2] = mac_hi & 0xFF; in board_eth_init()
986 mac_hi = readl((*ctrl)->control_core_mac_id_1_hi); in board_eth_init()
987 mac_addr[0] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
988 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
989 mac_addr[2] = mac_hi & 0xFF; in board_eth_init()
/openbmc/u-boot/board/ti/dra7xx/
H A Devm.c982 uint32_t mac_hi, mac_lo; in board_eth_init() local
987 mac_hi = readl((*ctrl)->control_core_mac_id_0_hi); in board_eth_init()
988 mac_addr[0] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
989 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
990 mac_addr[2] = mac_hi & 0xFF; in board_eth_init()
1003 mac_hi = readl((*ctrl)->control_core_mac_id_1_hi); in board_eth_init()
1004 mac_addr[0] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
1005 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
1006 mac_addr[2] = mac_hi & 0xFF; in board_eth_init()
/openbmc/linux/drivers/net/ethernet/ti/
H A Dcpsw.h13 #define mac_hi(mac) (((mac)[0] << 0) | ((mac)[1] << 8) | \ macro
H A Dam65-cpsw-nuss.c142 u32 mac_hi = (dev_addr[0] << 0) | (dev_addr[1] << 8) | in am65_cpsw_port_set_sl_mac() local
146 writel(mac_hi, slave->port_base + AM65_CPSW_PORTN_REG_SA_H); in am65_cpsw_port_set_sl_mac()
1938 u32 mac_lo, mac_hi, offset; in am65_cpsw_am654_get_efuse_macid() local
1955 regmap_read(syscon, offset + 4, &mac_hi); in am65_cpsw_am654_get_efuse_macid()
1957 mac_addr[0] = (mac_hi >> 8) & 0xff; in am65_cpsw_am654_get_efuse_macid()
1958 mac_addr[1] = mac_hi & 0xff; in am65_cpsw_am654_get_efuse_macid()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_sriov.c264 u32 vf_offset, mac_hi, rate; in nfp_app_get_vf_config() local
276 mac_hi = readl(app->pf->vfcfg_tbl2 + vf_offset); in nfp_app_get_vf_config()
285 put_unaligned_be32(mac_hi, &ivi->mac[0]); in nfp_app_get_vf_config()
/openbmc/linux/drivers/net/dsa/microchip/
H A Dksz9477.c673 u32 mac_hi, mac_lo; in ksz9477_mdb_add() local
679 mac_hi = ((mdb->addr[0] << 8) | mdb->addr[1]); in ksz9477_mdb_add()
704 ((static_table[2] & ALU_V_MAC_ADDR_HI) == mac_hi) && in ksz9477_mdb_add()
727 static_table[2] |= mac_hi; in ksz9477_mdb_add()
753 u32 mac_hi, mac_lo; in ksz9477_mdb_del() local
758 mac_hi = ((mdb->addr[0] << 8) | mdb->addr[1]); in ksz9477_mdb_del()
784 ((static_table[2] & ALU_V_MAC_ADDR_HI) == mac_hi) && in ksz9477_mdb_del()
/openbmc/u-boot/drivers/net/ti/
H A Ddavinci_emac.c112 unsigned long mac_hi; in davinci_eth_set_mac_addr() local
121 mac_hi = (dev->enetaddr[3] << 24) | in davinci_eth_set_mac_addr()
128 writel(mac_hi, &adap_emac->MACADDRHI); in davinci_eth_set_mac_addr()
140 writel(mac_hi, &adap_emac->MACSRCADDRHI); in davinci_eth_set_mac_addr()
H A Dkeystone_net.c55 #define mac_hi(mac) (((mac)[0] << 0) | ((mac)[1] << 8) | \ macro
521 writel(mac_hi(pdata->enetaddr), in ks2_eth_write_hwaddr()
H A Dcpsw.c466 #define mac_hi(mac) (((mac)[0] << 0) | ((mac)[1] << 8) | \ macro
476 writel(mac_hi(pdata->enetaddr), &slave->regs->sa_hi); in cpsw_set_slave_mac()
479 __raw_writel(mac_hi(priv->dev->enetaddr), &slave->regs->sa_hi); in cpsw_set_slave_mac()
/openbmc/linux/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_hw.c409 u32 mac_hi, mac_lo; in netxen_p2_nic_set_mac_addr() local
418 mac_hi = addr[2] | ((u32)addr[3] << 8) | in netxen_p2_nic_set_mac_addr()
425 if (NXWR32(adapter, reg_lo, mac_lo) || NXWR32(adapter, reg_hi, mac_hi)) in netxen_p2_nic_set_mac_addr()
427 if (NXWR32(adapter, reg_lo, mac_lo) || NXWR32(adapter, reg_hi, mac_hi)) in netxen_p2_nic_set_mac_addr()
1025 uint32_t crbaddr, mac_hi, mac_lo; in netxen_p3_get_mac_addr() local
1032 mac_hi = NXRD32(adapter, crbaddr+4); in netxen_p3_get_mac_addr()
1035 *mac = le64_to_cpu((mac_lo >> 16) | ((u64)mac_hi << 16)); in netxen_p3_get_mac_addr()
1037 *mac = le64_to_cpu((u64)mac_lo | ((u64)mac_hi << 32)); in netxen_p3_get_mac_addr()

12