Home
last modified time | relevance | path

Searched refs:htons (Results 1 – 19 of 19) sorted by relevance

/rk3399_rockchip-uboot/net/
H A Dcdp.c100 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 Drarp.c84 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 Dnet.c978 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 Darp.c68 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 Dfastboot.c82 .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 Dtftp.c353 *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 Dping.c30 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 Dlink_local.c260 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 Ddns.c53 header->flags = htons(0x100); /* standard query */ in dns_send()
54 header->nqueries = htons(1); /* Just one query */ in dns_send()
H A Dbootp.c764 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 Dsandbox-raw.c88 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 Dsandbox.c95 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 Dbcm-sf2-eth-gmac.c766 writew(htons(*(uint32_t *)&mac[4]), UNIMAC0_MAC_LSB_ADDR); in gmac_set_mac_addr()
/rk3399_rockchip-uboot/include/linux/byteorder/
H A Dgeneric.h143 #undef htons
157 extern unsigned short int htons(unsigned short int);
174 #define htons(x) ___htons(x) macro
/rk3399_rockchip-uboot/tools/
H A Dncb.c24 addr.sin_port = htons (port); in main()
H A Dmxsimage.c1327 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 Deth-raw-os.c46 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 Dlg4573.c17 unsigned short buf16 = htons(val); in lb043wv_spi_write_u16()
/rk3399_rockchip-uboot/cmd/
H A Dnet.c403 if (cdp_appliance_vlan != htons(-1)) { in cdp_update_env()
411 if (cdp_native_vlan != htons(-1)) { in cdp_update_env()