Home
last modified time | relevance | path

Searched refs:mac (Results 1 – 25 of 261) sorted by relevance

1234567891011

/u-boot/drivers/net/fm/
A Dtgec.c31 struct tgec *regs = mac->base; in tgec_init_mac()
58 struct tgec *regs = mac->base; in tgec_enable_mac()
65 struct tgec *regs = mac->base; in tgec_disable_mac()
72 struct tgec *regs = mac->base; in tgec_set_mac_addr()
97 mac->base = base; in init_tgec()
98 mac->phyregs = phyregs; in init_tgec()
99 mac->max_rx_len = max_rx_len; in init_tgec()
100 mac->init_mac = tgec_init_mac; in init_tgec()
101 mac->enable_mac = tgec_enable_mac; in init_tgec()
102 mac->disable_mac = tgec_disable_mac; in init_tgec()
[all …]
A Dmemac.c21 struct memac *regs = mac->base; in memac_init_mac()
38 struct memac *regs = mac->base; in memac_enable_mac()
46 struct memac *regs = mac->base; in memac_disable_mac()
53 struct memac *regs = mac->base; in memac_set_mac_addr()
73 struct memac *regs = mac->base; in memac_set_interface_mode()
143 mac->base = base; in init_memac()
144 mac->phyregs = phyregs; in init_memac()
145 mac->max_rx_len = max_rx_len; in init_memac()
146 mac->init_mac = memac_init_mac; in init_memac()
147 mac->enable_mac = memac_enable_mac; in init_memac()
[all …]
A Ddtsec.c29 struct dtsec *regs = mac->base; in dtsec_init_mac()
67 struct dtsec *regs = mac->base; in dtsec_enable_mac()
81 struct dtsec *regs = mac->base; in dtsec_disable_mac()
95 struct dtsec *regs = mac->base; in dtsec_set_mac_addr()
113 struct dtsec *regs = mac->base; in dtsec_set_interface_mode()
159 mac->base = base; in init_dtsec()
160 mac->phyregs = phyregs; in init_dtsec()
161 mac->max_rx_len = max_rx_len; in init_dtsec()
162 mac->init_mac = dtsec_init_mac; in init_dtsec()
163 mac->enable_mac = dtsec_enable_mac; in init_dtsec()
[all …]
A Deth.c422 mac = fm_eth->mac; in fm_eth_startup()
429 mac->init_mac(mac); in fm_eth_startup()
436 mac->set_if_mode(mac, fm_eth->enet_if, SPEED_100); in fm_eth_startup()
484 mac = fm_eth->mac; in fm_eth_open()
498 mac->set_mac_addr(mac, enetaddr); in fm_eth_open()
503 mac->enable_mac(mac); in fm_eth_open()
555 mac = fm_eth->mac; in fm_eth_halt()
562 mac->disable_mac(mac); in fm_eth_halt()
767 if (!mac) in fm_eth_init_mac()
772 fm_eth->mac = mac; in fm_eth_init_mac()
[all …]
A Dfm.h126 void (*init_mac)(struct fsl_enet_mac *mac);
127 void (*enable_mac)(struct fsl_enet_mac *mac);
128 void (*disable_mac)(struct fsl_enet_mac *mac);
129 void (*set_mac_addr)(struct fsl_enet_mac *mac, u8 *mac_addr);
130 void (*set_if_mode)(struct fsl_enet_mac *mac, phy_interface_t type,
142 struct fsl_enet_mac *mac; /* MAC controller */ member
/u-boot/arch/arm/mach-imx/
A Dmac.c39 mac[0] = value >> 24; in imx_get_mac_from_fuse()
40 mac[1] = value >> 16; in imx_get_mac_from_fuse()
41 mac[2] = value >> 8; in imx_get_mac_from_fuse()
42 mac[3] = value; in imx_get_mac_from_fuse()
45 mac[4] = value >> 24; in imx_get_mac_from_fuse()
46 mac[5] = value >> 16; in imx_get_mac_from_fuse()
51 mac[0] = value >> 8; in imx_get_mac_from_fuse()
52 mac[1] = value; in imx_get_mac_from_fuse()
55 mac[2] = value >> 24; in imx_get_mac_from_fuse()
57 mac[4] = value >> 8; in imx_get_mac_from_fuse()
[all …]
/u-boot/drivers/net/
A Dep93xx_eth.c157 value = readl(&mac->selfctl); in ep93xx_mac_reset()
159 writel(value, &mac->selfctl); in ep93xx_mac_reset()
210 writel(BMCTL_TXEN, &mac->bmctl); in ep93xx_eth_open()
227 writel(BMCTL_RXEN, &mac->bmctl); in ep93xx_eth_open()
262 &mac->indad); in ep93xx_eth_open()
292 writel(0x00000000, &mac->rxctl); in ep93xx_eth_close()
358 writel(1, &mac->rxdqenq); in ep93xx_eth_rcv_packet()
359 writel(1, &mac->rxstsqenq); in ep93xx_eth_rcv_packet()
399 writel(1, &mac->txdqenq); in ep93xx_eth_send_packet()
590 &mac->miicmd); in ep93xx_miiphy_read()
[all …]
A Dftmac100.c58 const unsigned char *mac) in ftmac100_set_mac() argument
61 unsigned int maddr = mac[0] << 8 | mac[1]; in ftmac100_set_mac()
62 unsigned int laddr = mac[2] << 24 | mac[3] << 16 | mac[4] << 8 | mac[5]; in ftmac100_set_mac()
373 const char *mac; in dtbmacaddr() local
390 mac = fdt_getprop(gd->fdt_blob, node, "mac-address", &len); in dtbmacaddr()
391 if (mac && is_valid_ethaddr((u8 *)mac)) in dtbmacaddr()
392 return mac; in dtbmacaddr()
401 const char *mac; in ftmac100_of_to_plat() local
404 mac = dtbmacaddr(0); in ftmac100_of_to_plat()
405 if (mac) in ftmac100_of_to_plat()
[all …]
/u-boot/arch/arm/cpu/arm926ejs/mxs/
A Dmxs.c236 mac[0] = 0x00; in mx28_adjust_mac()
240 mac[5] += 1; in mx28_adjust_mac()
246 void imx_get_mac_from_fuse(int dev_id, unsigned char *mac) in imx_get_mac_from_fuse() argument
252 memset(mac, 0, 6); in imx_get_mac_from_fuse()
264 mac[2] = (data >> 24) & 0xff; in imx_get_mac_from_fuse()
265 mac[3] = (data >> 16) & 0xff; in imx_get_mac_from_fuse()
266 mac[4] = (data >> 8) & 0xff; in imx_get_mac_from_fuse()
267 mac[5] = data & 0xff; in imx_get_mac_from_fuse()
268 mx28_adjust_mac(dev_id, mac); in imx_get_mac_from_fuse()
271 void imx_get_mac_from_fuse(int dev_id, unsigned char *mac) in imx_get_mac_from_fuse() argument
[all …]
/u-boot/drivers/net/mscc_eswitch/
A Dmscc_mac_table.c50 const unsigned char mac[ETH_LEN], int pgid) in mscc_mac_table_add()
58 mach |= ((u32)mac[0]) << 8; in mscc_mac_table_add()
59 mach |= ((u32)mac[1]) << 0; in mscc_mac_table_add()
60 macl |= ((u32)mac[2]) << 24; in mscc_mac_table_add()
61 macl |= ((u32)mac[3]) << 16; in mscc_mac_table_add()
62 macl |= ((u32)mac[4]) << 8; in mscc_mac_table_add()
63 macl |= ((u32)mac[5]) << 0; in mscc_mac_table_add()
/u-boot/board/varisys/common/
A Dsys_eeprom.c398 mac[0], in mac_read_from_generic_eeprom()
399 mac[1], in mac_read_from_generic_eeprom()
400 mac[2], in mac_read_from_generic_eeprom()
401 mac[3], in mac_read_from_generic_eeprom()
402 mac[4], in mac_read_from_generic_eeprom()
403 mac[5]); in mac_read_from_generic_eeprom()
481 e.mac[i][0], in mac_read_from_eeprom_common()
482 e.mac[i][1], in mac_read_from_eeprom_common()
483 e.mac[i][2], in mac_read_from_eeprom_common()
484 e.mac[i][3], in mac_read_from_eeprom_common()
[all …]
/u-boot/board/CZ.NIC/turris_omnia/
A Dturris_omnia.c488 mac[i] += 1; in increment_mac()
489 if (mac[i]) in increment_mac()
519 mac[0] = mac0[1]; in misc_init_r()
520 mac[1] = mac0[2]; in misc_init_r()
521 mac[2] = mac0[3]; in misc_init_r()
522 mac[3] = mac1[1]; in misc_init_r()
523 mac[4] = mac1[2]; in misc_init_r()
524 mac[5] = mac1[3]; in misc_init_r()
526 if (is_valid_ethaddr(mac)) in misc_init_r()
529 increment_mac(mac); in misc_init_r()
[all …]
/u-boot/board/qualcomm/dragonboard410c/
A Ddragonboard410c.c180 u8 mac[ARP_HLEN]; in ft_board_setup() local
184 if (!eth_env_get_enetaddr("wlanaddr", mac)) { in ft_board_setup()
185 msm_generate_mac_addr(mac); in ft_board_setup()
189 "local-mac-address", mac, ARP_HLEN, 1); in ft_board_setup()
192 if (!eth_env_get_enetaddr("btaddr", mac)) { in ft_board_setup()
193 msm_generate_mac_addr(mac); in ft_board_setup()
198 mac[0] ^= 0x01; in ft_board_setup()
202 "local-bd-address", mac, ARP_HLEN, 1); in ft_board_setup()
/u-boot/board/gateworks/venice/
A Dgsc.c27 u64 mac; in gsc_getmac() local
31 maclow = som_info.mac[5]; in gsc_getmac()
35 machigh = som_info.mac[1]; in gsc_getmac()
37 mac = machigh; in gsc_getmac()
38 mac <<= 32; in gsc_getmac()
39 mac |= maclow; in gsc_getmac()
46 maclow = base_info.mac[5]; in gsc_getmac()
52 mac = machigh; in gsc_getmac()
53 mac <<= 32; in gsc_getmac()
54 mac |= maclow; in gsc_getmac()
[all …]
/u-boot/arch/arm/mach-omap2/
A Dutils.c219 unsigned char mac[6] = { 0 }; in omap_die_id_usbethaddr() local
228 mac[0] = 0x02; in omap_die_id_usbethaddr()
229 mac[1] = die_id[3] & 0xff; in omap_die_id_usbethaddr()
230 mac[2] = die_id[2] & 0xff; in omap_die_id_usbethaddr()
231 mac[3] = die_id[1] & 0xff; in omap_die_id_usbethaddr()
232 mac[4] = die_id[0] & 0xff; in omap_die_id_usbethaddr()
233 mac[5] = (die_id[0] >> 8) & 0xff; in omap_die_id_usbethaddr()
235 eth_env_set_enetaddr("usbethaddr", mac); in omap_die_id_usbethaddr()
238 eth_env_set_enetaddr("ethaddr", mac); in omap_die_id_usbethaddr()
/u-boot/board/sifive/fu540/
A Dfu540.c78 unsigned char mac[6] = { 0x70, 0xb3, 0xd5, 0x92, 0xf0, 0x00 }; in fu540_setup_macaddr() local
87 mac[5] |= (serialnum >> 0) & 0xff; in fu540_setup_macaddr()
88 mac[4] |= (serialnum >> 8) & 0xff; in fu540_setup_macaddr()
89 mac[3] |= (serialnum >> 16) & 0xff; in fu540_setup_macaddr()
92 eth_env_set_enetaddr("ethaddr", mac); in fu540_setup_macaddr()
/u-boot/arch/arm/mach-snapdragon/
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()
/u-boot/board/CZ.NIC/turris_mox/
A Dmox_sp.c102 static inline void res_to_mac(u8 *mac, u32 t1, u32 t2) in res_to_mac() argument
104 mac[0] = t1 >> 8; in res_to_mac()
105 mac[1] = t1; in res_to_mac()
106 mac[2] = t2 >> 24; in res_to_mac()
107 mac[3] = t2 >> 16; in res_to_mac()
108 mac[4] = t2 >> 8; in res_to_mac()
109 mac[5] = t2; in res_to_mac()
/u-boot/board/phytec/pcm052/
A Dpcm052.c334 mac[0] = value >> 8; in imx_get_mac_from_fuse()
335 mac[1] = value; in imx_get_mac_from_fuse()
338 mac[2] = value >> 24; in imx_get_mac_from_fuse()
339 mac[3] = value >> 16; in imx_get_mac_from_fuse()
340 mac[4] = value >> 8; in imx_get_mac_from_fuse()
341 mac[5] = value; in imx_get_mac_from_fuse()
346 mac[0] = value >> 24; in imx_get_mac_from_fuse()
347 mac[1] = value >> 16; in imx_get_mac_from_fuse()
348 mac[2] = value >> 8; in imx_get_mac_from_fuse()
349 mac[3] = value; in imx_get_mac_from_fuse()
[all …]
/u-boot/board/siemens/common/
A Dfactoryset.c326 static int get_mac_from_efuse(uint8_t mac[6]) in get_mac_from_efuse()
335 mac[0] = mac_hi & 0xFF; in get_mac_from_efuse()
336 mac[1] = (mac_hi & 0xFF00) >> 8; in get_mac_from_efuse()
337 mac[2] = (mac_hi & 0xFF0000) >> 16; in get_mac_from_efuse()
338 mac[3] = (mac_hi & 0xFF000000) >> 24; in get_mac_from_efuse()
339 mac[4] = mac_lo & 0xFF; in get_mac_from_efuse()
340 mac[5] = (mac_lo & 0xFF00) >> 8; in get_mac_from_efuse()
343 memset(mac, 0, 6); in get_mac_from_efuse()
345 if (!is_valid_ethaddr(mac)) { in get_mac_from_efuse()
359 if (is_valid_ethaddr(factory_dat.mac)) { in factoryset_mac_env_set()
[all …]
/u-boot/board/nvidia/p2771-0000/
A Dp2771-0000.c65 uint8_t mac[ETH_ALEN], local_mac[ETH_ALEN]; in ft_mac_address_setup() local
92 if (eth_env_get_enetaddr("ethaddr", mac)) { in ft_mac_address_setup()
93 if (memcmp(local_mac, mac, ETH_ALEN) != 0) { in ft_mac_address_setup()
94 err = fdt_setprop(fdt, offset, "mac-address", mac, in ft_mac_address_setup()
97 debug("MAC address set: %pM\n", mac); in ft_mac_address_setup()
/u-boot/arch/arm/cpu/arm926ejs/spear/
A Dspr_misc.c161 static int write_mac(uchar *mac) in write_mac() argument
176 i2c_write(CONFIG_I2C_CHIPADDRESS, MAC_OFF, 1, mac, MAC_LEN); in write_mac()
192 unsigned char mac[6]; in do_chip_config() local
225 mac[reg] = s ? simple_strtoul(s, &e, 16) : 0; in do_chip_config()
229 write_mac(mac); in do_chip_config()
235 if (!i2c_read_mac(mac)) { in do_chip_config()
236 printf("Ethaddr (from i2c mem) = %pM\n", mac); in do_chip_config()
/u-boot/board/Marvell/mvebu_armada-37xx/
A Dboard.c94 const char *mac; in board_late_init() local
110 mac = env_get("ethaddr"); in board_late_init()
111 if (mac && strlen(mac) <= 17) in board_late_init()
112 ptr += sprintf(ptr, "ethaddr=%s", mac) + 1; in board_late_init()
116 mac = env_get(eth); in board_late_init()
117 if (mac && strlen(mac) <= 17) in board_late_init()
118 ptr += sprintf(ptr, "%s=%s", eth, mac) + 1; in board_late_init()
/u-boot/board/compulab/common/
A Deeprom.c403 { "MAC address", 6, NULL, DEFINE_PRINT_UPDATE(mac) },
418 { "1st MAC Address", 6, NULL, DEFINE_PRINT_UPDATE(mac) },
419 { "2nd MAC Address", 6, NULL, DEFINE_PRINT_UPDATE(mac) },
437 { "1st MAC Address", 6, NULL, DEFINE_PRINT_UPDATE(mac) },
438 { "2nd MAC Address", 6, NULL, DEFINE_PRINT_UPDATE(mac) },
441 { "3rd MAC Address (WIFI)", 6, NULL, DEFINE_PRINT_UPDATE(mac) },
442 { "4th MAC Address (Bluetooth)", 6, NULL, DEFINE_PRINT_UPDATE(mac) },
456 { "1st MAC Address", 6, NULL, DEFINE_PRINT_UPDATE(mac) },
457 { "2nd MAC Address", 6, NULL, DEFINE_PRINT_UPDATE(mac) },
460 { "3rd MAC Address (WIFI)", 6, NULL, DEFINE_PRINT_UPDATE(mac) },
[all …]
/u-boot/board/freescale/common/
A Dsys_eeprom.c48 u8 mac[MAX_NUM_PORTS][6]; /* 0x42 - 0x71 MAC addresses */ member
122 u8 *p = e.mac[i]; in show_eeprom()
381 e.mac[index][i] = simple_strtoul(p, &p, 16); in set_mac_address()
526 memset(e.mac[8], 0xff, 6); in mac_read_from_eeprom()
530 if (memcmp(&e.mac[i], "\0\0\0\0\0\0", 6) && in mac_read_from_eeprom()
536 e.mac[i][0], in mac_read_from_eeprom()
537 e.mac[i][1], in mac_read_from_eeprom()
538 e.mac[i][2], in mac_read_from_eeprom()
539 e.mac[i][3], in mac_read_from_eeprom()
540 e.mac[i][4], in mac_read_from_eeprom()
[all …]

Completed in 28 milliseconds

1234567891011