Home
last modified time | relevance | path

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

12

/lib/
A Dtrace.c109 if (hdr->depth > hdr->depth_limit) { in add_ftrace()
113 if (hdr->ftrace_count < hdr->ftrace_size) { in add_ftrace()
155 if (hdr->depth > hdr->max_depth) in __cyg_profile_func_enter()
156 hdr->max_depth = hdr->depth; in __cyg_profile_func_enter()
174 if (hdr->depth < hdr->min_depth) in __cyg_profile_func_exit()
175 hdr->min_depth = hdr->depth; in __cyg_profile_func_exit()
321 if (hdr->ftrace_count > hdr->ftrace_size) { in trace_print_stats()
328 hdr->max_depth - hdr->min_depth); in trace_print_stats()
387 hdr->ftrace_count = hdr->ftrace_size; in trace_init_()
406 hdr->call_accum = (uintptr_t *)(hdr + 1); in trace_init_()
[all …]
A Dasn1_decoder.c184 unsigned char tag = 0, csp = 0, jsp = 0, optag = 0, hdr = 0; in asn1_ber_decoder() local
232 hdr = 2; in asn1_ber_decoder()
283 hdr += n; in asn1_ber_decoder()
303 cons_hdrlen_stack[csp] = hdr; in asn1_ber_decoder()
354 ret = actions[act](context, hdr, tag, data + dp, len); in asn1_ber_decoder()
404 hdr = cons_hdrlen_stack[csp]; in asn1_ber_decoder()
447 ret = actions[act](context, hdr, 0, data + tdp, len); in asn1_ber_decoder()
462 ret = actions[machine[pc + 1]](context, hdr, tag, data + tdp, len); in asn1_ber_decoder()
A Dsmbios-parser.c95 const struct smbios_header *hdr; in smbios_update_version_full() local
101 hdr = smbios_header(smbios_tab, SMBIOS_BIOS_INFORMATION); in smbios_update_version_full()
102 if (!hdr) in smbios_update_version_full()
104 bios = (struct smbios_type0 *)hdr; in smbios_update_version_full()
105 ptr = smbios_string(hdr, bios->bios_ver); in smbios_update_version_full()
/lib/lwip/lwip/src/include/lwip/prot/
A Dip4.h104 #define IPH_V(hdr) ((hdr)->_v_hl >> 4) argument
105 #define IPH_HL(hdr) ((hdr)->_v_hl & 0x0f) argument
107 #define IPH_TOS(hdr) ((hdr)->_tos) argument
108 #define IPH_LEN(hdr) ((hdr)->_len) argument
109 #define IPH_ID(hdr) ((hdr)->_id) argument
110 #define IPH_OFFSET(hdr) ((hdr)->_offset) argument
112 #define IPH_TTL(hdr) ((hdr)->_ttl) argument
113 #define IPH_PROTO(hdr) ((hdr)->_proto) argument
114 #define IPH_CHKSUM(hdr) ((hdr)->_chksum) argument
118 #define IPH_TOS_SET(hdr, tos) (hdr)->_tos = (tos) argument
[all …]
A Dip6.h102 #define IP6H_PLEN(hdr) (lwip_ntohs((hdr)->_plen)) argument
103 #define IP6H_NEXTH(hdr) ((hdr)->_nexth) argument
104 #define IP6H_NEXTH_P(hdr) ((u8_t *)(hdr) + 6) argument
105 #define IP6H_HOPLIM(hdr) ((hdr)->_hoplim) argument
137 #define IP6_OPT_TYPE(hdr) ((hdr)->_opt_type) argument
138 #define IP6_OPT_DLEN(hdr) ((hdr)->_opt_dlen) argument
157 #define IP6_HBH_NEXTH(hdr) ((hdr)->_nexth) argument
176 #define IP6_DEST_NEXTH(hdr) ((hdr)->_nexth) argument
200 #define IP6_ROUT_NEXTH(hdr) ((hdr)->_nexth) argument
201 #define IP6_ROUT_TYPE(hdr) ((hdr)->_routing_type) argument
[all …]
A Dicmp.h77 #define ICMPH_TYPE(hdr) ((hdr)->type) argument
78 #define ICMPH_CODE(hdr) ((hdr)->code) argument
79 #define ICMPH_TYPE_SET(hdr, t) ((hdr)->type = (t)) argument
80 #define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c)) argument
A Ddns.h96 #define DNS_HDR_GET_OPCODE(hdr) ((((hdr)->flags1) >> 3) & 0xF) argument
/lib/mbedtls/external/mbedtls/library/
A Dmemory_buffer_alloc.c79 (size_t) hdr, (size_t) hdr->prev, (size_t) hdr->next, in debug_header()
80 hdr->alloc, hdr->size); in debug_header()
136 if (hdr->prev != NULL && hdr->prev == hdr->next) { in verify_header()
143 if (hdr->prev_free != NULL && hdr->prev_free == hdr->next_free) { in verify_header()
412 hdr->prev->next = hdr->next; in buffer_alloc_free()
414 hdr = hdr->prev; in buffer_alloc_free()
417 hdr->next->prev = hdr; in buffer_alloc_free()
431 hdr->next = hdr->next->next; in buffer_alloc_free()
449 hdr->prev_free->next_free = hdr; in buffer_alloc_free()
455 hdr->next_free->prev_free = hdr; in buffer_alloc_free()
[all …]
/lib/optee/
A Doptee.c23 static int optee_verify_image(struct optee_header *hdr, unsigned long image_len) in optee_verify_image() argument
27 tee_file_size = hdr->init_size + hdr->paged_size + in optee_verify_image()
30 if (hdr->magic != OPTEE_MAGIC || in optee_verify_image()
31 hdr->version != OPTEE_VERSION || in optee_verify_image()
43 struct optee_header *hdr = (struct optee_header *)image_addr; in optee_verify_bootm_image() local
46 ret = optee_verify_image(hdr, image_len); in optee_verify_bootm_image()
50 if (image_load_addr + sizeof(*hdr) != hdr->init_load_addr_lo) { in optee_verify_bootm_image()
57 printf(optee_hdr_err_msg, hdr, image_addr, hdr->magic, in optee_verify_bootm_image()
58 hdr->init_load_addr_lo, in optee_verify_bootm_image()
59 hdr->init_load_addr_hi, image_len, hdr->arch, image_load_addr, in optee_verify_bootm_image()
/lib/efi_selftest/
A Defi_selftest_crc32.c24 struct efi_table_hdr *hdr = (struct efi_table_hdr *)table; in check_table() local
26 if (!hdr->signature) { in check_table()
30 if (!hdr->revision) { in check_table()
34 if (hdr->headersize <= sizeof(struct efi_table_hdr)) { in check_table()
38 if (hdr->reserved) { in check_table()
43 crc32 = hdr->crc32; in check_table()
48 hdr->crc32 = 0; in check_table()
49 ret = bs_crc32(table, hdr->headersize, &res); in check_table()
51 hdr->crc32 = crc32; in check_table()
A Defi_selftest_config_table.c44 struct efi_table_hdr *hdr = (struct efi_table_hdr *)table; in check_table() local
46 crc32 = hdr->crc32; in check_table()
51 hdr->crc32 = 0; in check_table()
52 ret = boottime->calculate_crc32(table, hdr->headersize, &res); in check_table()
54 hdr->crc32 = crc32; in check_table()
A Defi_selftest_variables_runtime.c86 struct efi_var_file *hdr; in execute() local
269 hdr = (struct efi_var_file *)data2; in execute()
270 if (hdr->magic != EFI_VAR_FILE_MAGIC || in execute()
271 len != hdr->length || in execute()
272 hdr->crc32 != crc32(0, (u8 *)((uintptr_t)data2 + sizeof(struct efi_var_file)), in execute()
/lib/lwip/lwip/contrib/addons/tcp_md5/
A Dtcp_md5.c235 LWIP_ASSERT("hdr != NULL", hdr != NULL); in tcp_md5_options_singlebuf()
237 opts = (const u8_t *)hdr + TCP_HLEN; in tcp_md5_options_singlebuf()
279 tmp16 = lwip_htons(TCPH_HDRLEN_BYTES(hdr) + (p ? p->tot_len : 0)); in tcp_md5_create_digest()
362 opts = tcp_md5_options_singlebuf(hdr, optlen, opt1len, opt2); in tcp_md5_check_listen()
366 tcp_md5_dup_tcphdr(&tcphdr_copy, hdr, 1); in tcp_md5_check_listen()
400 opts = tcp_md5_options_singlebuf(hdr, optlen, opt1len, opt2); in tcp_md5_check_inpacket()
404 tcp_md5_dup_tcphdr(&hdr_copy, hdr, 1); in tcp_md5_check_inpacket()
427 LWIP_ASSERT("hdr != NULL", hdr != NULL); in tcp_md5_add_tx_options()
439 size_t hdrsize = TCPH_HDRLEN_BYTES(hdr); in tcp_md5_add_tx_options()
440 tcp_md5_dup_tcphdr(&hdr_copy, hdr, 0); in tcp_md5_add_tx_options()
[all …]
A DREADME9 …#define LWIP_HOOK_TCP_INPACKET_PCB(pcb, hdr, optlen, opt1len, opt2, p) tcp_md5_check_inpacket(pcb,…
11 …#define LWIP_HOOK_TCP_ADD_TX_OPTIONS(p, hdr, pcb, opts) tcp_md5_add_tx_options(p, h…
A Dtcp_md5.h76 err_t tcp_md5_check_inpacket(struct tcp_pcb* pcb, struct tcp_hdr *hdr, u16_t optlen, u16_t opt1len,…
78 u32_t *tcp_md5_add_tx_options(struct pbuf *p, struct tcp_hdr *hdr, const struct tcp_pcb *pcb, u32_t…
/lib/acpi/
A Dacpi.c43 struct acpi_table_header *hdr; in acpi_find_table() local
46 hdr = nomap_sysmem(xsdt->entry[i], 0); in acpi_find_table()
48 hdr = nomap_sysmem(rsdt->entry[i], 0); in acpi_find_table()
49 if (!memcmp(hdr->signature, sig, ACPI_NAME_LEN)) in acpi_find_table()
50 return hdr; in acpi_find_table()
51 if (!memcmp(hdr->signature, "FACP", ACPI_NAME_LEN)) { in acpi_find_table()
52 struct acpi_fadt *fadt = (struct acpi_fadt *)hdr; in acpi_find_table()
/lib/lwip/lwip/src/core/ipv4/
A Detharp.c644 struct etharp_hdr *hdr; local
653 hdr = (struct etharp_hdr *)p->payload;
657 (hdr->hwlen != ETH_HWADDR_LEN) ||
662 hdr->hwtype, (u16_t)hdr->hwlen, hdr->proto, (u16_t)hdr->protolen));
678 acd_arp_reply(netif, hdr);
706 switch (hdr->opcode) {
1118 struct etharp_hdr *hdr; local
1136 hdr->opcode = lwip_htons(opcode);
1150 hdr->proto = PP_HTONS(ETHTYPE_IP);
1152 hdr->hwlen = ETH_HWADDR_LEN;
[all …]
A Dacd.c376 acd_arp_reply(struct netif *netif, struct etharp_hdr *hdr) in acd_arp_reply() argument
387 IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&sipaddr, &hdr->sipaddr); in acd_arp_reply()
388 IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&dipaddr, &hdr->dipaddr); in acd_arp_reply()
413 !eth_addr_eq(&netifaddr, &hdr->shwaddr))) { in acd_arp_reply()
428 !eth_addr_eq(&netifaddr, &hdr->shwaddr)) { in acd_arp_reply()
/lib/efi_loader/
A Defi_var_mem.c264 hdr.length = sizeof(struct efi_var_file); in efi_var_collect_mem()
280 hdr.length += len; in efi_var_collect_mem()
282 if (buf && hdr.length <= *lenp) { in efi_var_collect_mem()
289 if (!buf && hdr.length <= *lenp) { in efi_var_collect_mem()
290 *lenp = hdr.length; in efi_var_collect_mem()
294 if (!buf || hdr.length > *lenp) { in efi_var_collect_mem()
295 *lenp = hdr.length; in efi_var_collect_mem()
298 hdr.crc32 = crc32(0, (u8 *)buf->var, in efi_var_collect_mem()
299 hdr.length - sizeof(struct efi_var_file)); in efi_var_collect_mem()
301 efi_memcpy_runtime(buf, &hdr, sizeof(hdr)); in efi_var_collect_mem()
[all …]
A Defi_variable.c77 + auth->auth_info.hdr.dwLength)) in efi_variable_authenticate()
88 *data += sizeof(auth->time_stamp) + auth->auth_info.hdr.dwLength; in efi_variable_authenticate()
90 + auth->auth_info.hdr.dwLength); in efi_variable_authenticate()
128 if (auth->auth_info.hdr.dwLength < sizeof(auth->auth_info)) in efi_variable_authenticate()
133 auth->auth_info.hdr.dwLength in efi_variable_authenticate()
581 efi_update_table_header_crc32(&efi_runtime_services.hdr); in efi_variables_boot_exit_notify()
/lib/efi_client/
A Defi_stub.c283 struct efi_entry_hdr *hdr = priv->next_hdr; in add_entry_addr() local
285 hdr->type = type; in add_entry_addr()
286 hdr->size = size1 + size2; in add_entry_addr()
287 hdr->addr = 0; in add_entry_addr()
288 hdr->link = ALIGN(sizeof(*hdr) + hdr->size, 16); in add_entry_addr()
289 priv->next_hdr += hdr->link; in add_entry_addr()
290 memcpy(hdr + 1, ptr1, size1); in add_entry_addr()
291 memcpy((void *)(hdr + 1) + size1, ptr2, size2); in add_entry_addr()
/lib/lwip/lwip/contrib/ports/unix/port/netif/
A Dpcapif.c135 callback(u_char *arg, const struct pcap_pkthdr *hdr, const u_char *pkt) in callback() argument
144 pcapif->len = hdr->len; in callback()
146 bcopy(pkt, pcapif->pkt, hdr->len); in callback()
148 time = hdr->ts.tv_sec * 1000 + hdr->ts.tv_usec / 1000; in callback()
/lib/lwip/lwip/src/apps/mdns/
A Dmdns_out.c776 struct dns_hdr hdr; in mdns_send_outpacket() local
779 memset(&hdr, 0, sizeof(hdr)); in mdns_send_outpacket()
780 hdr.flags1 = msg->flags; in mdns_send_outpacket()
781 hdr.numquestions = lwip_htons(outpkt.questions); in mdns_send_outpacket()
782 hdr.numanswers = lwip_htons(outpkt.answers); in mdns_send_outpacket()
783 hdr.numauthrr = lwip_htons(outpkt.authoritative); in mdns_send_outpacket()
784 hdr.numextrarr = lwip_htons(outpkt.additional); in mdns_send_outpacket()
785 hdr.id = lwip_htons(msg->tx_id); in mdns_send_outpacket()
786 pbuf_take(outpkt.pbuf, &hdr, sizeof(hdr)); in mdns_send_outpacket()
/lib/lwip/lwip/src/core/
A Ddns.c770 struct dns_hdr hdr; in dns_send() local
802 memset(&hdr, 0, SIZEOF_DNS_HDR); in dns_send()
803 hdr.id = lwip_htons(entry->txid); in dns_send()
804 hdr.flags1 = DNS_FLAG1_RD; in dns_send()
805 hdr.numquestions = PP_HTONS(1); in dns_send()
806 pbuf_take(p, &hdr, SIZEOF_DNS_HDR); in dns_send()
1194 struct dns_hdr hdr; in dns_recv() local
1213 txid = lwip_htons(hdr.id); in dns_recv()
1221 nquestions = lwip_htons(hdr.numquestions); in dns_recv()
1222 nanswers = lwip_htons(hdr.numanswers); in dns_recv()
[all …]
/lib/lwip/lwip/test/unit/ip6/
A Dtest_ip6.c367 struct pbuf *payload, *hdr; in START_TEST() local
387 hdr = pbuf_alloc(PBUF_IP, 8, PBUF_RAM); in START_TEST()
388 fail_unless(hdr != NULL); in START_TEST()
389 pbuf_chain(hdr, payload); in START_TEST()
392 …err = ip6_output_if_src(hdr, ip_2_ip6(&my_addr), ip_2_ip6(&peer_addr), 15, 0, IP_PROTO_UDP, &test_… in START_TEST()
395 pbuf_free(hdr); in START_TEST()

Completed in 60 milliseconds

12