Home
last modified time | relevance | path

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

123456

/external/u-boot/drivers/net/
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 …]
/external/u-boot/board/grinn/chiliboard/
Dboard.c115 uint8_t mac_addr[6]; in board_late_init() local
121 mac_addr[0] = mac_hi & 0xFF; in board_late_init()
122 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_late_init()
123 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_late_init()
124 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_late_init()
125 mac_addr[4] = mac_lo & 0xFF; in board_late_init()
126 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_late_init()
131 if (is_valid_ethaddr(mac_addr)) in board_late_init()
132 eth_env_set_enetaddr("ethaddr", mac_addr); in board_late_init()
137 mac_addr[0] = mac_hi & 0xFF; in board_late_init()
[all …]
/external/u-boot/board/vscom/baltos/
Dboard.c280 unsigned char mac_addr[6]; in ft_board_setup() local
288 mac_addr[0] = header.MAC1[0]; in ft_board_setup()
289 mac_addr[1] = header.MAC1[1]; in ft_board_setup()
290 mac_addr[2] = header.MAC1[2]; in ft_board_setup()
291 mac_addr[3] = header.MAC1[3]; in ft_board_setup()
292 mac_addr[4] = header.MAC1[4]; in ft_board_setup()
293 mac_addr[5] = header.MAC1[5]; in ft_board_setup()
302 ret = fdt_setprop(blob, node, "mac-address", &mac_addr, 6); in ft_board_setup()
309 mac_addr[0] = header.MAC2[0]; in ft_board_setup()
310 mac_addr[1] = header.MAC2[1]; in ft_board_setup()
[all …]
/external/u-boot/board/tcl/sl50/
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 …]
/external/u-boot/board/ti/ti814x/
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()
/external/u-boot/board/ti/ti816x/
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()
/external/u-boot/include/fsl-mc/
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 …]
/external/u-boot/board/silica/pengwyn/
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()
/external/u-boot/board/ti/am335x/
Dboard.c704 uint8_t mac_addr[6]; in board_late_init() local
742 mac_addr[0] = mac_hi & 0xFF; in board_late_init()
743 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_late_init()
744 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_late_init()
745 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_late_init()
746 mac_addr[4] = mac_lo & 0xFF; in board_late_init()
747 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_late_init()
752 if (is_valid_ethaddr(mac_addr)) in board_late_init()
753 eth_env_set_enetaddr("ethaddr", mac_addr); in board_late_init()
758 mac_addr[0] = mac_hi & 0xFF; in board_late_init()
[all …]
/external/u-boot/board/birdland/bav335x/
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 …]
/external/u-boot/board/phytec/pcm051/
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()
/external/u-boot/board/isee/igep003x/
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()
/external/u-boot/board/gumstix/pepper/
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()
/external/u-boot/drivers/net/fm/
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()
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()
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()
/external/u-boot/board/bosch/shc/
Dboard.c461 if (is_valid_ethaddr(header.mac_addr)) in board_late_init()
462 eth_env_set_enetaddr("ethaddr", header.mac_addr); in board_late_init()
532 uint8_t mac_addr[6]; in board_eth_init() local
538 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
539 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
540 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
541 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
542 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
543 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
550 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
[all …]
/external/u-boot/board/amlogic/khadas-vim/
Dkhadas-vim.c28 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()
/external/u-boot/board/amlogic/libretech-cc/
Dlibretech-cc.c28 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()
/external/u-boot/board/amlogic/p212/
Dp212.c28 u8 mac_addr[EFUSE_MAC_SIZE]; in misc_init_r() local
34 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { in misc_init_r()
36 mac_addr, EFUSE_MAC_SIZE); in misc_init_r()
37 if (len == EFUSE_MAC_SIZE && is_valid_ethaddr(mac_addr)) in misc_init_r()
38 eth_env_set_enetaddr("ethaddr", mac_addr); in misc_init_r()
/external/u-boot/board/ti/am43xx/
Dboard.c846 uint8_t mac_addr[6]; in board_eth_init() local
852 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
853 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
854 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
855 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
856 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
857 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
861 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
862 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
867 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
[all …]
/external/u-boot/board/amlogic/odroid-c2/
Dodroid-c2.c27 u8 mac_addr[EFUSE_MAC_SIZE]; in misc_init_r() local
39 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { in misc_init_r()
41 mac_addr, EFUSE_MAC_SIZE); in misc_init_r()
42 if (len == EFUSE_MAC_SIZE && is_valid_ethaddr(mac_addr)) in misc_init_r()
43 eth_env_set_enetaddr("ethaddr", mac_addr); in misc_init_r()
/external/u-boot/board/siemens/common/
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()
/external/iw/
Dstation.c126 char mac_addr[20], state_name[10], dev[20]; in print_sta_handler() local
173 mac_addr_n2a(mac_addr, nla_data(tb[NL80211_ATTR_MAC])); in print_sta_handler()
175 printf("Station %s (on %s)", mac_addr, dev); in print_sta_handler()
355 unsigned char mac_addr[ETH_ALEN]; in handle_station_get() local
360 if (mac_addr_a2n(mac_addr, argv[0])) { in handle_station_get()
371 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, mac_addr); in handle_station_get()
410 unsigned char mac_addr[ETH_ALEN]; in handle_station_set_plink() local
415 if (mac_addr_a2n(mac_addr, argv[0])) { in handle_station_set_plink()
441 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, mac_addr); in handle_station_set_plink()
459 unsigned char mac_addr[ETH_ALEN]; in handle_station_set_vlan() local
[all …]
/external/wpa_supplicant_8/hs20/server/
Dsql.txt26 mac_addr TEXT,
61 mac_addr TEXT,
81 mac_addr TEXT PRIMARY KEY,
86 mac_addr TEXT PRIMARY KEY,
96 mac_addr TEXT PRIMARY KEY,
105 mac_addr TEXT,

123456