Home
last modified time | relevance | path

Searched refs:mac_addr (Results 1 – 25 of 77) sorted by relevance

1234

/openbmc/u-boot/drivers/net/ti/
H A Dcpsw-common.c20 int slave, u8 *mac_addr) in davinci_emac_3517_get_macid() argument
49 mac_addr[0] = (macid_msb >> 16) & 0xff; in davinci_emac_3517_get_macid()
50 mac_addr[1] = (macid_msb >> 8) & 0xff; in davinci_emac_3517_get_macid()
51 mac_addr[2] = macid_msb & 0xff; in davinci_emac_3517_get_macid()
52 mac_addr[3] = (macid_lsb >> 16) & 0xff; in davinci_emac_3517_get_macid()
53 mac_addr[4] = (macid_lsb >> 8) & 0xff; in davinci_emac_3517_get_macid()
54 mac_addr[5] = macid_lsb & 0xff; in davinci_emac_3517_get_macid()
60 u8 *mac_addr) in cpsw_am33xx_cm_get_macid() argument
89 mac_addr[5] = (macid_lo >> 8) & 0xff; in cpsw_am33xx_cm_get_macid()
90 mac_addr[4] = macid_lo & 0xff; in cpsw_am33xx_cm_get_macid()
[all …]
/openbmc/u-boot/board/grinn/chiliboard/
H A Dboard.c107 uint8_t mac_addr[6]; in board_late_init() local
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()
117 mac_addr[4] = mac_lo & 0xFF; in board_late_init()
118 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_late_init()
123 if (is_valid_ethaddr(mac_addr)) in board_late_init()
124 eth_env_set_enetaddr("ethaddr", mac_addr); in board_late_init()
129 mac_addr[0] = mac_hi & 0xFF; in board_late_init()
[all …]
/openbmc/u-boot/board/vscom/baltos/
H A Dboard.c275 unsigned char mac_addr[6]; in ft_board_setup() local
283 mac_addr[0] = header.MAC1[0]; in ft_board_setup()
284 mac_addr[1] = header.MAC1[1]; in ft_board_setup()
285 mac_addr[2] = header.MAC1[2]; in ft_board_setup()
286 mac_addr[3] = header.MAC1[3]; in ft_board_setup()
287 mac_addr[4] = header.MAC1[4]; in ft_board_setup()
288 mac_addr[5] = header.MAC1[5]; in ft_board_setup()
297 ret = fdt_setprop(blob, node, "mac-address", &mac_addr, 6); in ft_board_setup()
304 mac_addr[0] = header.MAC2[0]; in ft_board_setup()
305 mac_addr[1] = header.MAC2[1]; in ft_board_setup()
[all …]
/openbmc/u-boot/board/tcl/sl50/
H A Dboard.c309 uint8_t mac_addr[6]; in board_eth_init() local
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()
319 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
320 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
327 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
328 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
335 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
[all …]
/openbmc/u-boot/board/ti/ti814x/
H A Devm.c166 uint8_t mac_addr[6]; in board_eth_init() local
169 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { 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()
178 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
179 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
181 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
182 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
/openbmc/u-boot/board/ti/ti816x/
H A Devm.c37 uint8_t mac_addr[6]; in board_eth_init() local
41 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { 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()
50 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
51 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
53 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
54 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
/openbmc/u-boot/board/silica/pengwyn/
H A Dboard.c171 uint8_t mac_addr[6]; in board_eth_init() local
174 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { 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()
183 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
184 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
186 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
187 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
/openbmc/u-boot/board/amlogic/odroid-c2/
H A Dodroid-c2.c22 u8 mac_addr[EFUSE_MAC_SIZE]; in misc_init_r() local
28 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { in misc_init_r()
30 mac_addr, EFUSE_MAC_SIZE); in misc_init_r()
31 if (len == EFUSE_MAC_SIZE && is_valid_ethaddr(mac_addr)) in misc_init_r()
32 eth_env_set_enetaddr("ethaddr", mac_addr); in misc_init_r()
/openbmc/u-boot/board/amlogic/p212/
H A Dp212.c23 u8 mac_addr[EFUSE_MAC_SIZE]; in misc_init_r() local
30 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { in misc_init_r()
32 mac_addr, EFUSE_MAC_SIZE); in misc_init_r()
33 if (len == EFUSE_MAC_SIZE && is_valid_ethaddr(mac_addr)) in misc_init_r()
34 eth_env_set_enetaddr("ethaddr", mac_addr); in misc_init_r()
/openbmc/u-boot/board/amlogic/q200/
H A Dq200.c23 u8 mac_addr[EFUSE_MAC_SIZE]; in misc_init_r() local
35 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { in misc_init_r()
37 mac_addr, EFUSE_MAC_SIZE); in misc_init_r()
38 if (len == EFUSE_MAC_SIZE && is_valid_ethaddr(mac_addr)) in misc_init_r()
39 eth_env_set_enetaddr("ethaddr", mac_addr); in misc_init_r()
/openbmc/u-boot/drivers/net/fm/
H A Dtgec.c69 static void tgec_set_mac_addr(struct fsl_enet_mac *mac, u8 *mac_addr) in tgec_set_mac_addr() argument
78 mac_addr0 = (mac_addr[3] << 24) | (mac_addr[2] << 16) | \ in tgec_set_mac_addr()
79 (mac_addr[1] << 8) | (mac_addr[0]); in tgec_set_mac_addr()
82 mac_addr1 = ((mac_addr[5] << 8) | mac_addr[4]) & 0x0000ffff; in tgec_set_mac_addr()
H A Dmemac.c50 static void memac_set_mac_addr(struct fsl_enet_mac *mac, u8 *mac_addr) in memac_set_mac_addr() argument
59 mac_addr0 = (mac_addr[3] << 24) | (mac_addr[2] << 16) | \ in memac_set_mac_addr()
60 (mac_addr[1] << 8) | (mac_addr[0]); in memac_set_mac_addr()
63 mac_addr1 = ((mac_addr[5] << 8) | mac_addr[4]) & 0x0000ffff; in memac_set_mac_addr()
H A Ddtsec.c92 static void dtsec_set_mac_addr(struct fsl_enet_mac *mac, u8 *mac_addr) in dtsec_set_mac_addr() argument
101 mac_addr1 = (mac_addr[5] << 24) | (mac_addr[4] << 16) | \ in dtsec_set_mac_addr()
102 (mac_addr[3] << 8) | (mac_addr[2]); in dtsec_set_mac_addr()
105 mac_addr2 = ((mac_addr[1] << 24) | (mac_addr[0] << 16)) & 0xffff0000; in dtsec_set_mac_addr()
/openbmc/u-boot/board/phytec/pcm051/
H A Dboard.c216 uint8_t mac_addr[6]; in board_eth_init() local
219 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { 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()
228 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
229 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
231 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
232 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
/openbmc/u-boot/include/fsl-mc/
H A Dfsl_dpni.h179 #define DPNI_CMD_SET_PRIMARY_MAC_ADDR(cmd, mac_addr) \ argument
181 MC_CMD_OP(cmd, 0, 16, 8, uint8_t, mac_addr[5]); \
182 MC_CMD_OP(cmd, 0, 24, 8, uint8_t, mac_addr[4]); \
183 MC_CMD_OP(cmd, 0, 32, 8, uint8_t, mac_addr[3]); \
184 MC_CMD_OP(cmd, 0, 40, 8, uint8_t, mac_addr[2]); \
185 MC_CMD_OP(cmd, 0, 48, 8, uint8_t, mac_addr[1]); \
186 MC_CMD_OP(cmd, 0, 56, 8, uint8_t, mac_addr[0]); \
190 #define DPNI_RSP_GET_PRIMARY_MAC_ADDR(cmd, mac_addr) \ argument
192 MC_RSP_OP(cmd, 0, 16, 8, uint8_t, mac_addr[5]); \
193 MC_RSP_OP(cmd, 0, 24, 8, uint8_t, mac_addr[4]); \
[all …]
/openbmc/u-boot/board/birdland/bav335x/
H A Dboard.c370 uint8_t mac_addr[6]; in board_eth_init() local
376 mac_addr[0] = 0; in board_eth_init()
377 mac_addr[1] = 0x20; in board_eth_init()
378 mac_addr[2] = 0x18; in board_eth_init()
379 mac_addr[3] = 0x1C; in board_eth_init()
380 mac_addr[4] = 0x00; in board_eth_init()
381 mac_addr[5] = 0x01; in board_eth_init()
386 is_valid_ethaddr((const u8 *)&header.mac_addr[0][0])) { in board_eth_init()
387 memcpy(mac_addr, (const void *)&header.mac_addr[0][0], 6); in board_eth_init()
397 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
[all …]
/openbmc/u-boot/board/gumstix/pepper/
H A Dboard.c237 uint8_t mac_addr[6]; in board_eth_init() local
241 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { 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()
249 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
250 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
251 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
252 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
/openbmc/u-boot/board/isee/igep003x/
H A Dboard.c263 uint8_t mac_addr[6]; in board_eth_init() local
266 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { 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()
274 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
275 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
276 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
277 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
/openbmc/u-boot/board/ti/am335x/
H A Dboard.c795 uint8_t mac_addr[6]; in board_late_init() local
835 mac_addr[0] = mac_hi & 0xFF; in board_late_init()
836 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_late_init()
837 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_late_init()
838 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_late_init()
839 mac_addr[4] = mac_lo & 0xFF; in board_late_init()
840 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_late_init()
845 if (is_valid_ethaddr(mac_addr)) in board_late_init()
846 eth_env_set_enetaddr("ethaddr", mac_addr); in board_late_init()
851 mac_addr[0] = mac_hi & 0xFF; in board_late_init()
[all …]
/openbmc/u-boot/board/siemens/common/
H A Dfactoryset.c271 uint8_t mac_addr[6]; in factoryset_mac_env_set() local
275 memcpy(mac_addr, factory_dat.mac, 6); 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()
287 mac_addr[4] = mac_lo & 0xFF; in factoryset_mac_env_set()
288 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in factoryset_mac_env_set()
289 if (!is_valid_ethaddr(mac_addr)) { in factoryset_mac_env_set()
295 eth_env_set_enetaddr("ethaddr", mac_addr); in factoryset_mac_env_set()
/openbmc/u-boot/board/ti/am43xx/
H A Dboard.c893 uint8_t mac_addr[6]; in board_eth_init() local
899 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
900 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
901 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
902 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
903 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
904 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
908 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
909 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
914 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
[all …]
/openbmc/u-boot/board/ti/am57xx/
H A Dboard.c960 uint8_t mac_addr[6]; in board_eth_init() local
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()
974 mac_addr[3] = (mac_lo & 0xFF0000) >> 16; in board_eth_init()
975 mac_addr[4] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
976 mac_addr[5] = mac_lo & 0xFF; in board_eth_init()
981 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
982 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
987 mac_addr[0] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
[all …]
/openbmc/u-boot/board/ti/common/
H A Dboard_detect.c235 memcpy(ep->mac_addr, am_ep.mac_addr, in ti_i2c_eeprom_am_get()
334 u8 mac_addr[TI_EEPROM_HDR_ETH_ALEN]) in board_ti_get_eth_mac_addr()
344 memcpy(mac_addr, ep->mac_addr[index], TI_EEPROM_HDR_ETH_ALEN); in board_ti_get_eth_mac_addr()
348 memset(mac_addr, 0, TI_EEPROM_HDR_ETH_ALEN); in board_ti_get_eth_mac_addr()
419 uint8_t mac_addr[6]; in board_ti_set_ethaddr() local
447 u64_to_mac(mac1 + i, mac_addr); in board_ti_set_ethaddr()
448 if (is_valid_ethaddr(mac_addr)) { in board_ti_set_ethaddr()
450 mac_addr); in board_ti_set_ethaddr()
H A Dboard_detect.h43 char mac_addr[TI_EEPROM_HDR_NO_OF_MAC_ADDR][TI_EEPROM_HDR_ETH_ALEN]; member
94 char mac_addr[TI_EEPROM_HDR_NO_OF_MAC_ADDR][TI_EEPROM_HDR_ETH_ALEN]; member
171 void board_ti_get_eth_mac_addr(int index, u8 mac_addr[TI_EEPROM_HDR_ETH_ALEN]);
/openbmc/google-misc/subprojects/nemora-postd/src/
H A Dnemora.cpp41 bool Nemora::ParseMac(const std::string& mac_addr, MacAddr* mac) in ParseMac() argument
43 int ret = sscanf(mac_addr.c_str(), MAC_FORMAT, mac->octet, mac->octet + 1, in ParseMac()
76 auto mac_addr = std::get<std::string>(result); in GetMacAddr() local
77 if (!ParseMac(mac_addr, mac)) in GetMacAddr()

1234