Home
last modified time | relevance | path

Searched refs:ARP_HLEN (Results 1 – 18 of 18) sorted by relevance

/external/u-boot/include/
Dnet.h38 #define ARP_HLEN 6 macro
43 #define ARP_HLEN_ASCII (ARP_HLEN * 2) + (ARP_HLEN - 1)
97 unsigned char enetaddr[ARP_HLEN];
169 unsigned char enetaddr[ARP_HLEN];
305 u8 et_dest[ARP_HLEN]; /* Destination node */
306 u8 et_src[ARP_HLEN]; /* Source node */
316 u8 et_dest[ARP_HLEN]; /* Destination node */
317 u8 et_src[ARP_HLEN]; /* Source node */
335 u8 vet_dest[ARP_HLEN]; /* Destination node */
336 u8 vet_src[ARP_HLEN]; /* Source node */
[all …]
/external/u-boot/tools/
Dgen_ethaddr_crc.c15 #define ARP_HLEN 6 /* Length of hardware address */ macro
16 #define ARP_HLEN_ASCII (ARP_HLEN * 2) + (ARP_HLEN - 1) /* with separators */
17 #define ARP_HLEN_LAZY (ARP_HLEN * 2) /* separatorless hardware address length */
26 uint8_t ethaddr[ARP_HLEN + 1] = { 0x00 }; in process_mac()
41 for (i = 0; i < ARP_HLEN; i++) in process_mac()
43 printf("%.2x\n", crc8(0, ethaddr, ARP_HLEN)); in process_mac()
/external/u-boot/drivers/net/
Dsandbox.c26 uchar fake_host_hwaddr[ARP_HLEN];
64 ARP_HLEN); in sb_eth_start()
91 memcpy(eth_recv->et_dest, eth->et_src, ARP_HLEN); in sb_eth_send()
93 ARP_HLEN); in sb_eth_send()
100 arp_recv->ar_hln = ARP_HLEN; in sb_eth_send()
104 ARP_HLEN); in sb_eth_send()
106 memcpy(&arp_recv->ar_tha, &arp->ar_sha, ARP_HLEN); in sb_eth_send()
131 ARP_HLEN); in sb_eth_send()
133 ARP_HLEN); in sb_eth_send()
Dsandbox-raw.c89 arp->ar_hln = ARP_HLEN; in sb_eth_raw_recv()
93 memset(&arp->ar_sha, 0x01, ARP_HLEN); in sb_eth_raw_recv()
96 memcpy(&arp->ar_tha, pdata->enetaddr, ARP_HLEN); in sb_eth_raw_recv()
112 memcpy(eth->et_dest, pdata->enetaddr, ARP_HLEN); in sb_eth_raw_recv()
113 memset(eth->et_src, 0x01, ARP_HLEN); in sb_eth_raw_recv()
/external/u-boot/net/
Darp.c70 arp->ar_hln = ARP_HLEN; in arp_raw_request()
74 memcpy(&arp->ar_sha, net_ethaddr, ARP_HLEN); /* source ET addr */ in arp_raw_request()
76 memcpy(&arp->ar_tha, target_ethaddr, ARP_HLEN); /* target ET addr */ in arp_raw_request()
150 if (arp->ar_hln != ARP_HLEN) in arp_receive()
167 memcpy(&arp->ar_tha, &arp->ar_sha, ARP_HLEN); in arp_receive()
169 memcpy(&arp->ar_sha, net_ethaddr, ARP_HLEN); in arp_receive()
213 &arp->ar_sha, ARP_HLEN); in arp_receive()
221 &arp->ar_sha, ARP_HLEN); in arp_receive()
Dnet_rand.h19 unsigned char enetaddr[ARP_HLEN]; in seed_mac()
23 memcpy(enetaddr, eth_get_ethaddr(), ARP_HLEN); in seed_mac()
Deth_legacy.c123 memset(dev->enetaddr, 0, ARP_HLEN); in on_ethaddr()
136 unsigned char env_enetaddr[ARP_HLEN]; in eth_write_hwaddr()
143 memcmp(dev->enetaddr, env_enetaddr, ARP_HLEN)) { in eth_write_hwaddr()
152 memcpy(dev->enetaddr, env_enetaddr, ARP_HLEN); in eth_write_hwaddr()
301 u8 mcast_mac[ARP_HLEN]; in eth_mcast_join()
Deth-uclass.c233 memset(pdata->enetaddr, 0, ARP_HLEN); in on_ethaddr()
461 unsigned char env_enetaddr[ARP_HLEN]; in eth_post_probe()
500 memcmp(pdata->enetaddr, env_enetaddr, ARP_HLEN)) { in eth_post_probe()
510 memcpy(pdata->enetaddr, env_enetaddr, ARP_HLEN); in eth_post_probe()
538 memset(pdata->enetaddr, 0, ARP_HLEN); in eth_pre_remove()
Dwol.c34 if (memcmp(&wol->wol_dest[i * ARP_HLEN], in wol_check_magic()
35 net_ethaddr, ARP_HLEN) != 0) in wol_check_magic()
Dwol.h33 u8 wol_dest[WOL_MAC_REPETITIONS * ARP_HLEN]; /* 16x MAC */
Dlink_local.c270 memcmp(&arp->ar_sha, net_ethaddr, ARP_HLEN) != 0) in link_local_receive_arp()
283 memcmp(&arp->ar_sha, net_ethaddr, ARP_HLEN) != 0) { in link_local_receive_arp()
/external/u-boot/lib/efi_selftest/
Defi_selftest_snp.c108 boottime->copy_mem(p.eth_hdr.et_dest, (void *)BROADCAST_MAC, ARP_HLEN); in send_dhcp_discover()
110 ARP_HLEN); in send_dhcp_discover()
141 &net->mode->current_address, ARP_HLEN); in send_dhcp_discover()
219 if (net->mode->hwaddr_size != ARP_HLEN) { in setup()
221 net->mode->hwaddr_size, ARP_HLEN); in setup()
338 ARP_HLEN) && in execute()
339 efi_st_memcmp(&destaddr, BROADCAST_MAC, ARP_HLEN)) in execute()
363 if (!efi_st_memcmp(&destaddr, BROADCAST_MAC, ARP_HLEN)) in execute()
Defi_selftest_console.c29 for (i = 0; i < ARP_HLEN; ++i) { in mac()
/external/u-boot/lib/efi_loader/
Defi_net.c262 memcpy(dest_addr, eth_hdr->et_dest, ARP_HLEN); in efi_net_receive()
264 memcpy(src_addr, eth_hdr->et_src, ARP_HLEN); in efi_net_receive()
362 netobj->net_mode.hwaddr_size = ARP_HLEN; in efi_net_register()
Defi_device_path.c502 memcpy(&dp->mac, &pdata->enetaddr, ARP_HLEN); in dp_fill()
882 memcpy(ndp->mac.addr, eth_get_ethaddr(), ARP_HLEN); in efi_dp_from_eth()
/external/u-boot/board/qualcomm/dragonboard410c/
Ddragonboard410c.c180 fix[i].property, mac, ARP_HLEN, 1); in ft_board_setup()
/external/u-boot/drivers/net/fsl-mc/
Dmc.c170 unsigned char env_enetaddr[ARP_HLEN]; in mc_fixup_mac_addr()
171 unsigned int enetaddr_32[ARP_HLEN]; in mc_fixup_mac_addr()
177 for (i = 0; i < ARP_HLEN; i++) in mc_fixup_mac_addr()
185 len = ARP_HLEN; in mc_fixup_mac_addr()
/external/u-boot/common/
Dfdt_support.c488 unsigned char mac_addr[ARP_HLEN]; in fdt_fixup_ethernet()