| /rk3399_rockchip-uboot/net/ |
| H A D | cdp.c | 100 if (csum != htons(csum)) /* little endian */ in cdp_compute_csum() 101 csum = htons(csum); in cdp_compute_csum() 140 *s++ = htons(0); in cdp_send_trigger() 144 *s++ = htons(CDP_DEVICE_ID_TLV); in cdp_send_trigger() 145 *s++ = htons(CONFIG_CDP_DEVICE_ID); in cdp_send_trigger() 152 *s++ = htons(CDP_PORT_ID_TLV); in cdp_send_trigger() 158 *s++ = htons(len + 4); in cdp_send_trigger() 164 *s++ = htons(CDP_CAPABILITIES_TLV); in cdp_send_trigger() 165 *s++ = htons(8); in cdp_send_trigger() 171 *s++ = htons(CDP_VERSION_TLV); in cdp_send_trigger() [all …]
|
| H 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()
|
| H A D | net.c | 978 localip->ip_len = htons(total_len); in __net_defragment() 1402 et->et_protlen = htons(prot); in net_set_ether() 1408 vet->vet_vlan_type = htons(PROT_VLAN); in net_set_ether() 1409 vet->vet_tag = htons((0 << 5) | (myvlanid & VLAN_IDMASK)); in net_set_ether() 1410 vet->vet_type = htons(prot); in net_set_ether() 1425 vet->vet_type = htons(prot); in net_update_ether() 1428 et->et_protlen = htons(prot); in net_update_ether() 1433 et802->et_prot = htons(prot); in net_update_ether() 1448 ip->ip_len = htons(IP_HDR_SIZE); in net_set_ip_header() 1449 ip->ip_id = htons(net_ip_id++); in net_set_ip_header() [all …]
|
| H A D | arp.c | 68 arp->ar_hrd = htons(ARP_ETHER); in arp_raw_request() 69 arp->ar_pro = htons(PROT_IP); in arp_raw_request() 72 arp->ar_op = htons(ARPOP_REQUEST); in arp_raw_request() 166 arp->ar_op = htons(ARPOP_REPLY); in arp_receive()
|
| H A D | fastboot.c | 82 .seq = htons(fb_sequence_number) in fastboot_send_info() 139 fb_response_header.seq = htons(fb_response_header.seq); in fastboot_send() 145 tmp = htons(fb_sequence_number); in fastboot_send() 150 tmp = htons(fb_udp_version); in fastboot_send() 153 tmp = htons(fb_packet_size); in fastboot_send() 193 fb_response_header.seq = htons(fb_sequence_number); in fastboot_send()
|
| H A D | tftp.c | 353 *s++ = htons(tftp_state == STATE_SEND_RRQ ? TFTP_RRQ : in tftp_send() 356 *s++ = htons(TFTP_RRQ); in tftp_send() 404 s[0] = htons(TFTP_ACK); in tftp_send() 405 s[1] = htons(tftp_cur_block); in tftp_send() 412 s[0] = htons(TFTP_DATA); in tftp_send() 423 *s++ = htons(TFTP_ERROR); in tftp_send() 424 *s++ = htons(3); in tftp_send() 435 *s++ = htons(TFTP_ERROR); in tftp_send() 436 *s++ = htons(2); in tftp_send()
|
| H A D | ping.c | 30 ip->ip_len = htons(IP_ICMP_HDR_SIZE); in set_icmp_header() 38 icmp->un.echo.sequence = htons(ping_seq_number++); in set_icmp_header()
|
| H A D | link_local.c | 260 if (arp->ar_op != htons(ARPOP_REQUEST) && in link_local_receive_arp() 261 arp->ar_op != htons(ARPOP_REPLY)) { in link_local_receive_arp() 280 if (arp->ar_op == htons(ARPOP_REQUEST) && in link_local_receive_arp()
|
| H A D | dns.c | 53 header->flags = htons(0x100); /* standard query */ in dns_send() 54 header->nqueries = htons(1); /* Just one query */ in dns_send()
|
| H A D | bootp.c | 764 bp->bp_secs = htons(get_timer(bootp_start) / 1000); in bootp_request() 978 bp->bp_secs = htons(get_timer(bootp_start) / 1000); in dhcp_send_request_packet()
|
| /rk3399_rockchip-uboot/drivers/net/ |
| H A D | sandbox-raw.c | 88 arp->ar_hrd = htons(ARP_ETHER); in sb_eth_raw_recv() 89 arp->ar_pro = htons(PROT_IP); in sb_eth_raw_recv() 92 arp->ar_op = htons(ARPOP_REPLY); in sb_eth_raw_recv() 115 eth->et_protlen = htons(reply_arp ? PROT_ARP : PROT_IP); in sb_eth_raw_recv()
|
| H A D | sandbox.c | 95 eth_recv->et_protlen = htons(PROT_ARP); in sb_eth_send() 99 arp_recv->ar_hrd = htons(ARP_ETHER); in sb_eth_send() 100 arp_recv->ar_pro = htons(PROT_IP); in sb_eth_send() 103 arp_recv->ar_op = htons(ARPOP_REPLY); in sb_eth_send()
|
| H A D | bcm-sf2-eth-gmac.c | 766 writew(htons(*(uint32_t *)&mac[4]), UNIMAC0_MAC_LSB_ADDR); in gmac_set_mac_addr()
|
| /rk3399_rockchip-uboot/include/linux/byteorder/ |
| H A D | generic.h | 143 #undef htons 157 extern unsigned short int htons(unsigned short int); 174 #define htons(x) ___htons(x) macro
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | ncb.c | 24 addr.sin_port = htons (port); in main()
|
| H A D | mxsimage.c | 1327 hdr->product_version.major = htons(0x999); in sb_prefill_image_header() 1328 hdr->product_version.minor = htons(0x999); in sb_prefill_image_header() 1329 hdr->product_version.revision = htons(0x999); in sb_prefill_image_header() 1331 hdr->component_version.major = htons(0x999); in sb_prefill_image_header() 1332 hdr->component_version.minor = htons(0x999); in sb_prefill_image_header() 1333 hdr->component_version.revision = htons(0x999); in sb_prefill_image_header()
|
| /rk3399_rockchip-uboot/arch/sandbox/cpu/ |
| H A D | eth-raw-os.c | 46 device->sll_halen = htons(6); in _raw_packet_start() 49 priv->sd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in _raw_packet_start()
|
| /rk3399_rockchip-uboot/drivers/video/ |
| H A D | lg4573.c | 17 unsigned short buf16 = htons(val); in lb043wv_spi_write_u16()
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | net.c | 403 if (cdp_appliance_vlan != htons(-1)) { in cdp_update_env() 411 if (cdp_native_vlan != htons(-1)) { in cdp_update_env()
|