Home
last modified time | relevance | path

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

/lk-master/external/lib/lwip/include/ipv4/lwip/
A Dip.h146 #define IPH_V(hdr) ((hdr)->_v_hl >> 4) argument
147 #define IPH_HL(hdr) ((hdr)->_v_hl & 0x0f) argument
148 #define IPH_TOS(hdr) ((hdr)->_tos) argument
149 #define IPH_LEN(hdr) ((hdr)->_len) argument
150 #define IPH_ID(hdr) ((hdr)->_id) argument
151 #define IPH_OFFSET(hdr) ((hdr)->_offset) argument
152 #define IPH_TTL(hdr) ((hdr)->_ttl) argument
153 #define IPH_PROTO(hdr) ((hdr)->_proto) argument
154 #define IPH_CHKSUM(hdr) ((hdr)->_chksum) argument
157 #define IPH_TOS_SET(hdr, tos) (hdr)->_tos = (tos) argument
[all …]
A Dicmp.h91 #define ICMPH_TYPE(hdr) ((hdr)->type) argument
92 #define ICMPH_CODE(hdr) ((hdr)->code) argument
95 #define ICMPH_TYPE_SET(hdr, t) ((hdr)->type = (t)) argument
96 #define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c)) argument
A Dautoip.h104 void autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr);
/lk-master/tools/
A Dliblkboot.c42 msg_hdr_t hdr; in upload() local
73 hdr.extra = 0; in upload()
75 if (write(s, &hdr, sizeof(hdr)) != sizeof(hdr)) { in upload()
89 hdr.extra = 0; in upload()
90 hdr.length = 0; in upload()
91 if (write(s, &hdr, sizeof(hdr)) != sizeof(hdr)) { in upload()
181 msg_hdr_t hdr; in lkboot_txn() local
248 hdr.extra = 0; in lkboot_txn()
250 if (write(fd_out, &hdr, sizeof(hdr)) != sizeof(hdr)) goto iofail; in lkboot_txn()
254 if (readx(fd_in, &hdr, sizeof(hdr))) goto iofail; in lkboot_txn()
[all …]
/lk-master/lib/devicetree/
A Ddevicetree.c122 dt->hdr.magic = su32(&s); in dt_init()
123 dt->hdr.size = su32(&s); in dt_init()
124 dt->hdr.off_struct = su32(&s); in dt_init()
127 dt->hdr.version = su32(&s); in dt_init()
129 dt->hdr.boot_cpuid = su32(&s); in dt_init()
130 dt->hdr.sz_strings = su32(&s); in dt_init()
131 dt->hdr.sz_struct = su32(&s); in dt_init()
133 if (dt->hdr.magic != DT_MAGIC) in dt_init()
137 if (dt->hdr.version != 17) in dt_init()
139 if (sslice(&dt->top, &dt->dt, dt->hdr.off_struct, dt->hdr.sz_struct)) in dt_init()
[all …]
A Ddevicetreedump.c87 printf("magic %x\n", dt.hdr.magic); in main()
88 printf("size %d\n", dt.hdr.size); in main()
89 printf("off_struct %d (%d)\n", dt.hdr.off_struct, dt.hdr.sz_struct); in main()
90 printf("off_strings %d (%d)\n", dt.hdr.off_strings, dt.hdr.sz_strings); in main()
91 printf("version %d (min %d)\n", dt.hdr.version, dt.hdr.version_compat); in main()
/lk-master/app/lkboot/
A Dlkboot.c77 msg_hdr_t hdr; in lkb_send() local
109 hdr.opcode = opcode; in lkb_send()
110 hdr.extra = 0; in lkb_send()
112 if (lkb->write(lkb->cookie, &hdr, sizeof(hdr)) != sizeof(&hdr)) { in lkb_send()
150 msg_hdr_t hdr; in lkb_read() local
151 if (lkb->read(lkb->cookie, &hdr, sizeof(hdr))) goto fail; in lkb_read()
180 msg_hdr_t hdr; in lkboot_process_command() local
187 if (lkb->read(lkb->cookie, &hdr, sizeof(hdr))) goto fail; in lkboot_process_command()
188 if (hdr.opcode != MSG_CMD) goto fail; in lkboot_process_command()
189 if (hdr.length > 127) goto fail; in lkboot_process_command()
[all …]
/lk-master/dev/virtio/gpu/
A Dvirtio_gpu.h96 struct virtio_gpu_ctrl_hdr hdr; member
115 struct virtio_gpu_ctrl_hdr hdr; member
122 struct virtio_gpu_ctrl_hdr hdr; member
131 struct virtio_gpu_ctrl_hdr hdr; member
139 struct virtio_gpu_ctrl_hdr hdr; member
147 struct virtio_gpu_ctrl_hdr hdr; member
162 struct virtio_gpu_ctrl_hdr hdr; member
169 struct virtio_gpu_ctrl_hdr hdr; member
177 struct virtio_gpu_ctrl_hdr hdr; member
A Dvirtio-gpu.c130 if (info->hdr.type != VIRTIO_GPU_RESP_OK_DISPLAY_INFO) { in get_display_info()
170 req.hdr.type = VIRTIO_GPU_CMD_RESOURCE_CREATE_2D; in allocate_2d_resource()
210 req.req.hdr.type = VIRTIO_GPU_CMD_RESOURCE_ATTACH_BACKING; in attach_backing()
250 req.hdr.type = VIRTIO_GPU_CMD_SET_SCANOUT; in set_scanout()
284 req.hdr.type = VIRTIO_GPU_CMD_RESOURCE_FLUSH; in flush_resource()
317 req.hdr.type = VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D; in transfer_to_host_2d()
/lk-master/external/lib/lwip/netif/
A Detharp.c690 struct etharp_hdr *hdr; local
728 hdr->hwtype, hdr->hwlen, hdr->proto, hdr->protolen));
740 autoip_arp_reply(netif, hdr);
765 switch (hdr->opcode) {
782 IPADDR2_COPY(&hdr->dipaddr, &hdr->sipaddr);
794 ETHADDR16_COPY(&hdr->dhwaddr, &hdr->shwaddr);
1184 struct etharp_hdr *hdr; local
1206 hdr->opcode = htons(opcode);
1232 hdr->proto = PP_HTONS(ETHTYPE_IP);
1234 hdr->hwlen = ETHARP_HWADDR_LEN;
[all …]
/lk-master/app/mdebug/
A Dswd-m0sub.c124 int swd_write(unsigned hdr, unsigned data) { in swd_write() argument
127 if (hdr == WR_BUFFER) { in swd_write()
132 writel((hdr << 8) | (p << 16), COMM_ARG1); in swd_write()
143 int swd_read(unsigned hdr, unsigned *val) { in swd_read() argument
146 writel(hdr << 8, COMM_ARG1); in swd_read()
A Dswd-sgpio.c196 static int sgpio_swd_header(unsigned div, uint32_t hdr) { in sgpio_swd_header() argument
214 writel(hdr << 8, SLICE_REG(SLC_O)); in sgpio_swd_header()
259 static int sgpio_swd_read(unsigned div, uint32_t hdr, uint32_t *_data) { in sgpio_swd_read() argument
263 if (sgpio_swd_header(div, hdr)) { in sgpio_swd_read()
297 static int sgpio_swd_write(unsigned div, uint32_t hdr, uint32_t data) { in sgpio_swd_write() argument
301 if (sgpio_swd_header(div, hdr)) { in sgpio_swd_write()
/lk-master/external/lib/lwip/core/
A Ddns.c563 struct dns_hdr *hdr; in dns_send() local
581 hdr = (struct dns_hdr*)p->payload; in dns_send()
582 memset(hdr, 0, SIZEOF_DNS_HDR); in dns_send()
583 hdr->id = htons(id); in dns_send()
584 hdr->flags1 = DNS_FLAG1_RD; in dns_send()
585 hdr->numquestions = PP_HTONS(1); in dns_send()
586 query = (char*)hdr + SIZEOF_DNS_HDR; in dns_send()
737 struct dns_hdr *hdr; in dns_recv() local
764 hdr = (struct dns_hdr*)dns_payload; in dns_recv()
765 i = htons(hdr->id); in dns_recv()
[all …]
/lk-master/dev/virtio/net/
A Dvirtio-net.c199 struct virtio_net_hdr *hdr = pktbuf_append(p, sizeof(struct virtio_net_hdr) - 2); in virtio_net_queue_tx_pktbuf() local
200 memset(hdr, 0, p->dlen); in virtio_net_queue_tx_pktbuf()
283 struct virtio_net_hdr *hdr = (struct virtio_net_hdr *)p->data; in virtio_net_queue_rx() local
284 memset(hdr, 0, sizeof(struct virtio_net_hdr) - 2); in virtio_net_queue_rx()
403 struct virtio_net_hdr *hdr = pktbuf_consume(p, sizeof(struct virtio_net_hdr) - 2); in virtio_net_rx_worker() local
404 if (hdr) { in virtio_net_rx_worker()
/lk-master/external/lib/lwip/core/ipv4/
A Dautoip.c478 autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr) in autoip_arp_reply() argument
494 IPADDR2_COPY(&sipaddr, &hdr->sipaddr); in autoip_arp_reply()
495 IPADDR2_COPY(&dipaddr, &hdr->dipaddr); in autoip_arp_reply()
508 !eth_addr_cmp(&netifaddr, &hdr->shwaddr))) { in autoip_arp_reply()
519 !eth_addr_cmp(&netifaddr, &hdr->shwaddr)) { in autoip_arp_reply()
/lk-master/lib/devicetree/include/lib/
A Ddevicetree.h34 struct devicetree_header hdr; member
/lk-master/external/lib/lwip/include/ipv6/lwip/
A Dip.h99 #define IPH_PROTO(hdr) (iphdr->nexthdr) argument
/lk-master/external/lib/miniz/
A Dminiz.c3948 mz_uint8 hdr[MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE]; in mz_zip_writer_finalize_archive() local
3973 MZ_CLEAR_OBJ(hdr); in mz_zip_writer_finalize_archive()
3974 MZ_WRITE_LE32(hdr + MZ_ZIP_ECDH_SIG_OFS, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIG); in mz_zip_writer_finalize_archive()
3975 MZ_WRITE_LE16(hdr + MZ_ZIP_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS, pZip->m_total_files); in mz_zip_writer_finalize_archive()
3976 MZ_WRITE_LE16(hdr + MZ_ZIP_ECDH_CDIR_TOTAL_ENTRIES_OFS, pZip->m_total_files); in mz_zip_writer_finalize_archive()
3977 MZ_WRITE_LE32(hdr + MZ_ZIP_ECDH_CDIR_SIZE_OFS, central_dir_size); in mz_zip_writer_finalize_archive()
3978 MZ_WRITE_LE32(hdr + MZ_ZIP_ECDH_CDIR_OFS_OFS, central_dir_ofs); in mz_zip_writer_finalize_archive()
3980 if (pZip->m_pWrite(pZip->m_pIO_opaque, pZip->m_archive_size, hdr, sizeof(hdr)) != sizeof(hdr)) in mz_zip_writer_finalize_archive()
3987 pZip->m_archive_size += sizeof(hdr); in mz_zip_writer_finalize_archive()

Completed in 39 milliseconds