/u-boot/net/ |
A D | cdp.c | 101 csum = htons(csum); in cdp_compute_csum() 140 *s++ = htons(0); in cdp_send_trigger() 158 *s++ = htons(len + 4); in cdp_send_trigger() 165 *s++ = htons(8); in cdp_send_trigger() 177 *s++ = htons(len + 4); in cdp_send_trigger() 189 *s++ = htons(len + 4); in cdp_send_trigger() 196 *s++ = htons(8); in cdp_send_trigger() 203 *s++ = htons(6); in cdp_send_trigger() 216 *cp = htons(chksum); in cdp_send_trigger() 275 vlan = htons(-1); in cdp_receive() [all …]
|
A D | rarp.c | 84 rarp->ar_hrd = htons(ARP_ETHER); in rarp_request() 85 rarp->ar_pro = htons(PROT_IP); in rarp_request() 88 rarp->ar_op = htons(RARPOP_REQUEST); in rarp_request()
|
A D | fastboot.c | 64 .seq = htons(sequence_number) in fastboot_udp_send_info() 150 response_header.seq = htons(response_header.seq); in fastboot_send() 156 tmp = htons(sequence_number); in fastboot_send() 161 tmp = htons(udp_version); in fastboot_send() 164 tmp = htons(packet_size); in fastboot_send() 195 response_header.seq = htons(sequence_number); in fastboot_send()
|
A D | tftp.c | 362 *s++ = htons(tftp_state == STATE_SEND_RRQ ? TFTP_RRQ : in tftp_send() 365 *s++ = htons(TFTP_RRQ); in tftp_send() 401 s[0] = htons(TFTP_ACK); in tftp_send() 402 s[1] = htons(tftp_cur_block); in tftp_send() 409 s[0] = htons(TFTP_DATA); in tftp_send() 420 *s++ = htons(TFTP_ERROR); in tftp_send() 421 *s++ = htons(3); in tftp_send() 433 *s++ = htons(TFTP_ERROR); in tftp_send() 434 *s++ = htons(2); in tftp_send() 445 *s++ = htons(TFTP_ERROR); in tftp_send() [all …]
|
A D | arp.c | 71 arp->ar_hrd = htons(ARP_ETHER); in arp_raw_request() 72 arp->ar_pro = htons(PROT_IP); in arp_raw_request() 75 arp->ar_op = htons(ARPOP_REQUEST); in arp_raw_request() 170 arp->ar_op = htons(ARPOP_REPLY); in arp_receive()
|
A D | net.c | 1440 et->et_protlen = htons(prot); in net_set_ether() 1448 vet->vet_type = htons(prot); in net_set_ether() 1463 vet->vet_type = htons(prot); in net_update_ether() 1466 et->et_protlen = htons(prot); in net_update_ether() 1471 et802->et_prot = htons(prot); in net_update_ether() 1487 ip->ip_len = htons(pkt_len); in net_set_ip_header() 1489 ip->ip_id = htons(net_ip_id++); in net_set_ip_header() 1517 ip->udp_src = htons(sport); in net_set_udp_header() 1518 ip->udp_dst = htons(dport); in net_set_udp_header() 1589 return htons(VLAN_NONE); in string_to_vlan() [all …]
|
A D | link_local.c | 263 if (arp->ar_op != htons(ARPOP_REQUEST) && in link_local_receive_arp() 264 arp->ar_op != htons(ARPOP_REPLY)) { in link_local_receive_arp() 283 if (arp->ar_op == htons(ARPOP_REQUEST) && in link_local_receive_arp()
|
A D | dns.c | 65 header->flags = htons(0x100); /* standard query */ in dns_send() 66 header->nqueries = htons(1); /* Just one query */ in dns_send()
|
A D | ping.c | 35 icmp->un.echo.sequence = htons(ping_seq_number++); in set_icmp_header()
|
A D | bootp.c | 789 bp->bp_secs = htons(get_timer(bootp_start) / 1000); in bootp_request() 1006 bp->bp_secs = htons(get_timer(bootp_start) / 1000); in dhcp_send_request_packet()
|
/u-boot/tools/ |
A D | update_octeon_header.c | 380 header.maj_rev = htons(BOOTLOADER_HEADER_CURRENT_MAJOR_REV); in main() 381 header.min_rev = htons(BOOTLOADER_HEADER_CURRENT_MINOR_REV); in main() 384 header.board_type = htons(board_type); in main() 392 header.image_type = htons(BL_HEADER_IMAGE_PCIBOOT); in main() 394 header.image_type = htons(BL_HEADER_IMAGE_STAGE2); in main() 396 header.image_type = htons(BL_HEADER_IMAGE_STAGE1); in main() 398 header.image_type = htons(BL_HEADER_IMAGE_UBOOT_ENV); in main() 400 header.image_type = htons(BL_HEADER_IMAGE_PRE_UBOOT); in main() 402 header.image_type = htons(BL_HEADER_IMAGE_NOR); in main() 437 header.hlen = htons(hdr_size); in main()
|
A D | ncb.c | 24 addr.sin_port = htons (port); in main()
|
A D | mxsimage.c | 1328 hdr->product_version.major = htons(0x999); in sb_prefill_image_header() 1329 hdr->product_version.minor = htons(0x999); in sb_prefill_image_header() 1330 hdr->product_version.revision = htons(0x999); in sb_prefill_image_header() 1332 hdr->component_version.major = htons(0x999); in sb_prefill_image_header() 1333 hdr->component_version.minor = htons(0x999); in sb_prefill_image_header() 1334 hdr->component_version.revision = htons(0x999); in sb_prefill_image_header()
|
/u-boot/drivers/net/ |
A D | sandbox.c | 87 eth_recv->et_protlen = htons(PROT_ARP); in sandbox_eth_arp_req_to_reply() 90 arp_recv->ar_hrd = htons(ARP_ETHER); in sandbox_eth_arp_req_to_reply() 91 arp_recv->ar_pro = htons(PROT_IP); in sandbox_eth_arp_req_to_reply() 94 arp_recv->ar_op = htons(ARPOP_REPLY); in sandbox_eth_arp_req_to_reply() 186 eth_recv->et_protlen = htons(PROT_ARP); in sandbox_eth_recv_arp_req() 189 arp_recv->ar_hrd = htons(ARP_ETHER); in sandbox_eth_recv_arp_req() 190 arp_recv->ar_pro = htons(PROT_IP); in sandbox_eth_recv_arp_req() 229 eth_recv->et_protlen = htons(PROT_IP); in sandbox_eth_recv_ping_req() 233 ipr->ip_len = htons(IP_ICMP_HDR_SIZE); in sandbox_eth_recv_ping_req() 234 ipr->ip_off = htons(IP_FLAGS_DFRAG); in sandbox_eth_recv_ping_req() [all …]
|
A D | sandbox-raw.c | 87 arp->ar_hrd = htons(ARP_ETHER); in sb_eth_raw_recv() 88 arp->ar_pro = htons(PROT_IP); in sb_eth_raw_recv() 91 arp->ar_op = htons(ARPOP_REPLY); in sb_eth_raw_recv() 114 eth->et_protlen = htons(reply_arp ? PROT_ARP : PROT_IP); in sb_eth_raw_recv()
|
A D | bcm-sf2-eth-gmac.c | 770 writew(htons(*(uint32_t *)&mac[4]), UNIMAC0_MAC_LSB_ADDR); in gmac_set_mac_addr()
|
/u-boot/lib/efi_selftest/ |
A D | efi_selftest_snp.c | 112 p.eth_hdr.et_protlen = htons(PROT_IP); in send_dhcp_discover() 117 p.ip_udp.ip_len = htons(sizeof(struct dhcp) - in send_dhcp_discover() 119 p.ip_udp.ip_id = htons(++net_ip_id); in send_dhcp_discover() 120 p.ip_udp.ip_off = htons(IP_FLAGS_DFRAG); in send_dhcp_discover() 129 p.ip_udp.udp_src = htons(68); in send_dhcp_discover() 130 p.ip_udp.udp_dst = htons(67); in send_dhcp_discover() 131 p.ip_udp.udp_len = htons(sizeof(struct dhcp) - in send_dhcp_discover() 140 p.dhcp_hdr.flags = htons(DHCP_FLAGS_UNICAST); in send_dhcp_discover()
|
/u-boot/lib/ |
A D | crc16.c | 82 crc = htons(crc); in crc16_ccitt_wd_buf()
|
/u-boot/include/linux/byteorder/ |
A D | generic.h | 132 #undef htons 141 #define htons(x) ___htons(x) macro
|
/u-boot/test/dm/ |
A D | eth.c | 288 ut_assert(eth->et_protlen == htons(PROT_ARP)); in sb_check_arp_reply() 290 ut_assert(arp->ar_hrd == htons(ARP_ETHER)); in sb_check_arp_reply() 291 ut_assert(arp->ar_pro == htons(PROT_IP)); in sb_check_arp_reply() 379 ut_assert(eth->et_protlen == htons(PROT_IP)); in sb_check_ping_reply()
|
/u-boot/arch/sandbox/cpu/ |
A D | eth-raw-os.c | 86 device->sll_halen = htons(6); in _raw_packet_start() 89 priv->sd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in _raw_packet_start()
|
/u-boot/cmd/ |
A D | net.c | 322 if (cdp_appliance_vlan != htons(-1)) { in cdp_update_env() 330 if (cdp_native_vlan != htons(-1)) { in cdp_update_env()
|
/u-boot/drivers/video/ |
A D | lg4573.c | 24 unsigned short buf16 = htons(val); in lb043wv_spi_write_u16()
|
/u-boot/lib/efi_loader/ |
A D | efi_net.c | 539 header->et_protlen = htons(*protocol); in efi_net_transmit()
|
/u-boot/drivers/net/phy/ |
A D | ncsi.c | 544 hdr->length = htons(len); in ncsi_send_command()
|