Home
last modified time | relevance | path

Searched refs:q (Results 1 – 25 of 96) sorted by relevance

1234

/lib/lwip/lwip/test/unit/arch/
A Dsys_arch.c253 LWIP_ASSERT("q->sem == q", q->sem == q); in sys_mbox_post()
258 LWIP_ASSERT("mbox already full", q->used < q->size); in sys_mbox_post()
260 q->q_mem[q->head] = msg; in sys_mbox_post()
262 if (q->head >= (unsigned int)q->size) { in sys_mbox_post()
265 LWIP_ASSERT("mbox is full!", q->head != q->tail); in sys_mbox_post()
273 LWIP_ASSERT("q->sem == q", q->sem == q); in sys_mbox_trypost()
279 if (q->used == q->size) { in sys_mbox_trypost()
298 LWIP_ASSERT("q->sem == q", q->sem == q); in sys_arch_mbox_fetch()
346 LWIP_ASSERT("q->sem == q", q->sem == q); in sys_arch_mbox_tryfetch()
355 *msg = q->q_mem[q->tail]; in sys_arch_mbox_tryfetch()
[all …]
/lib/mbedtls/external/mbedtls/programs/x509/
A Dcert_req.c147 char *p, *q, *r; in main() local
198 *q++ = '\0'; in main()
200 opt.filename = q; in main()
202 opt.password = q; in main()
216 while (q != NULL) { in main()
218 r = q; in main()
307 q = r; in main()
341 q = r; in main()
344 switch (atoi(q)) { in main()
373 q = r; in main()
[all …]
A Dcert_write.c301 char *p, *q, *r; in main() local
380 *q++ = '\0'; in main()
387 opt.issuer_key = q; in main()
391 opt.issuer_pwd = q; in main()
403 opt.not_after = q; in main()
410 opt.serial = q; in main()
497 q = r; in main()
531 q = r; in main()
539 r = q; in main()
628 q = r; in main()
[all …]
A Dcert_app.c133 char *p, *q; in main() local
183 *q++ = '\0'; in main()
185 for (j = 0; p + j < q; j++) { in main()
200 opt.filename = q; in main()
202 opt.ca_file = q; in main()
204 opt.crl_file = q; in main()
206 opt.ca_path = q; in main()
208 opt.server_name = q; in main()
210 opt.server_port = q; in main()
212 opt.debug_level = atoi(q); in main()
[all …]
A Dload_roots.c107 char *q = NULL; in main() local
112 if ((q = strchr(p, '=')) == NULL) { in main()
115 *q++ = '\0'; in main()
117 for (j = 0; p + j < q; j++) { in main()
124 opt.iterations = atoi(q); in main()
126 opt.iterations = atoi(q) != 0; in main()
/lib/lwip/lwip/src/core/
A Dpbuf.c422 q = p; in pbuf_realloc()
428 q->tot_len = (u16_t)(q->tot_len - shrink); in pbuf_realloc()
430 q = q->next; in pbuf_realloc()
452 q->tot_len = q->len; in pbuf_realloc()
1189 while ((q != NULL) && (q->len <= offset_left)) { in pbuf_skip_const()
1191 q = q->next; in pbuf_skip_const()
1196 return q; in pbuf_skip_const()
1426 if ((q != NULL) && (q->len > q_idx)) { in pbuf_try_get_at()
1448 if ((q != NULL) && (q->len > q_idx)) { in pbuf_put_at()
1477 while ((q != NULL) && (q->len <= start)) { in pbuf_memcmp()
[all …]
A Dinet_chksum.c262 struct pbuf *q; in inet_cksum_pseudo_base() local
266 for (q = p; q != NULL; q = q->next) { in inet_cksum_pseudo_base()
268 (void *)q, (void *)q->next)); in inet_cksum_pseudo_base()
269 acc += LWIP_CHKSUM(q->payload, q->len); in inet_cksum_pseudo_base()
402 struct pbuf *q; in inet_cksum_pseudo_partial_base() local
407 for (q = p; (q != NULL) && (chksum_len > 0); q = q->next) { in inet_cksum_pseudo_partial_base()
409 (void *)q, (void *)q->next)); in inet_cksum_pseudo_partial_base()
410 chklen = q->len; in inet_cksum_pseudo_partial_base()
571 struct pbuf *q; in inet_chksum_pbuf() local
575 for (q = p; q != NULL; q = q->next) { in inet_chksum_pbuf()
[all …]
A Dudp.c390 struct pbuf *q; in udp_input() local
392 if (q != NULL) { in udp_input()
764 if (q == NULL) { in udp_sendto_if_src_chksum()
770 pbuf_chain(q, p); in udp_sendto_if_src_chksum()
778 q = p; in udp_sendto_if_src_chksum()
793 q->flags |= PBUF_FLAG_MCASTLOOP; in udp_sendto_if_src_chksum()
817 chklen = q->tot_len; in udp_sendto_if_src_chksum()
867 udpchksum = ip_chksum_pseudo(q, IP_PROTO_UDP, q->tot_len, in udp_sendto_if_src_chksum()
900 if (q != p) { in udp_sendto_if_src_chksum()
902 pbuf_free(q); in udp_sendto_if_src_chksum()
[all …]
/lib/lwip/lwip/contrib/ports/win32/
A Dsys_arch.c577 q->q_mem[q->head] = msg; in sys_mbox_post()
578 q->head++; in sys_mbox_post()
580 q->head = 0; in sys_mbox_post()
582 LWIP_ASSERT("mbox is full!", q->head != q->tail); in sys_mbox_post()
614 q->q_mem[q->head] = msg; in sys_mbox_trypost()
616 LWIP_ASSERT("mbox is full!", q->head != q->tail); in sys_mbox_trypost()
651 *msg = q->q_mem[q->tail]; in sys_arch_mbox_fetch()
654 q->tail++; in sys_arch_mbox_fetch()
656 q->tail = 0; in sys_arch_mbox_fetch()
686 *msg = q->q_mem[q->tail]; in sys_arch_mbox_tryfetch()
[all …]
A Dpcapif.c813 struct pbuf *q; in pcapif_low_level_output() local
838 for(q = p; q != NULL; q = q->next) { in pcapif_low_level_output()
844 if (q == p) { in pcapif_low_level_output()
845 MEMCPY(ptr, &((char*)q->payload)[ETH_PAD_SIZE], q->len - ETH_PAD_SIZE); in pcapif_low_level_output()
848 MEMCPY(ptr, q->payload, q->len); in pcapif_low_level_output()
849 ptr += q->len; in pcapif_low_level_output()
890 struct pbuf *p, *q; in pcapif_low_level_input() local
931 for (q = p; q != NULL; q = q->next) { in pcapif_low_level_input()
938 if (q == p) { in pcapif_low_level_input()
993 struct pbuf* q; in pcapif_rx_ref() local
[all …]
/lib/lwip/lwip/src/netif/
A Dslipif.c98 struct pbuf *p, *q; member
119 struct pbuf *q; in slipif_output() local
134 for (q = p; q != NULL; q = q->next) { in slipif_output()
229 t = priv->q; in slipif_rxbyte()
398 priv->q = NULL; in slipif_init()
464 struct pbuf *q = p; in slipif_process_rxqueue() local
465 while ((q->len != q->tot_len) && (q->next != NULL)) { in slipif_process_rxqueue()
466 q = q->next; in slipif_process_rxqueue()
469 q->next = NULL; in slipif_process_rxqueue()
502 q = q->next; in slipif_rxbyte_enqueue()
[all …]
A Dlowpan6.c774 struct pbuf *q, *last; in lowpan6_input() local
776 for (q = lrh->frags, last = NULL; q != NULL; last = q, q = q->next) { in lowpan6_input()
805 p->next = q; in lowpan6_input()
811 struct pbuf *q; in lowpan6_input() local
812 for (q = lrh->frags; q != NULL; q = q->next) { in lowpan6_input()
818 offset += q->len - 1; in lowpan6_input()
823 for (q = lrh->frags; q != NULL; q = q->next) { in lowpan6_input()
825 pbuf_remove_header(q, 1); in lowpan6_input()
827 datagram_left -= q->len; in lowpan6_input()
830 q = lrh->reass; in lowpan6_input()
[all …]
/lib/lwip/lwip/src/core/ipv4/
A Detharp.c152 while (q) { in free_etharp_q()
153 r = q; in free_etharp_q()
154 q = q->next; in free_etharp_q()
163 #define free_etharp_q(q) pbuf_free(q) argument
474 struct etharp_q_entry *q = arp_table[i].q; local
476 arp_table[i].q = q->next;
478 p = q->p;
956 if (q) {
1016 p = q;
1030 p = q;
[all …]
/lib/mbedtls/external/mbedtls/programs/ssl/
A Dssl_client2.c844 char *p, *q; in main() local
994 p = q = NULL; in main()
1044 *q++ = '\0'; in main()
1053 int t = atoi(q); in main()
1104 opt.ca_file = q; in main()
1137 opt.psk = q; in main()
1236 opt.groups = q; in main()
1431 opt.mki = q; in main()
1439 q = NULL; in main()
1444 p = q = NULL; in main()
[all …]
A Dssl_server2.c1594 char *p, *q; in main() local
1782 p = q = NULL; in main()
1832 *q++ = '\0'; in main()
1839 int t = atoi(q); in main()
1885 opt.ca_file = q; in main()
1944 opt.psk = q; in main()
1979 opt.groups = q; in main()
2254 opt.sni = q; in main()
2298 q = NULL; in main()
2303 p = q = NULL; in main()
[all …]
/lib/lwip/lwip/contrib/examples/ethernetif/
A Dethernetif.c140 struct pbuf *q;
148 for (q = p; q != NULL; q = q->next) {
152 send data from(q->payload, q->len);
188 struct pbuf *p, *q;
210 for (q = p; q != NULL; q = q->next) {
219 read data into(q->payload, q->len);
/lib/
A Dvsprintf.c57 d3 = (q>>12); in put_dec_trunc()
61 d0 = d0 - 10*q; in put_dec_trunc()
66 d1 = d1 - 10*q; in put_dec_trunc()
69 d2 = q + 2*d2; in put_dec_trunc()
72 d2 = d2 - 10*q; in put_dec_trunc()
75 d3 = q + 4*d3; in put_dec_trunc()
80 if (q != 0) in put_dec_trunc()
95 d3 = (q>>12); in put_dec_full()
109 d0 = d0 - 10*q; in put_dec_full()
113 d1 = d1 - 10*q; in put_dec_full()
[all …]
A Dtiny-printf.c91 d1 = (q >> 4) & 0xf; in put_dec_trunc()
92 d2 = (q >> 8) & 0xf; in put_dec_trunc()
93 d3 = (q >> 12); in put_dec_trunc()
96 q = (d0 * 0xcd) >> 11; in put_dec_trunc()
97 d0 = d0 - 10 * q; in put_dec_trunc()
102 d1 = d1 - 10 * q; in put_dec_trunc()
105 d2 = q + 2 * d2; in put_dec_trunc()
108 d2 = d2 - 10 * q; in put_dec_trunc()
111 d3 = q + 4 * d3; in put_dec_trunc()
114 d3 = d3 - 10 * q; in put_dec_trunc()
[all …]
/lib/mbedtls/external/mbedtls/programs/test/
A Dudp_proxy.c179 char *p, *q; in get_options() local
198 *q++ = '\0'; in get_options()
201 opt.server_addr = q; in get_options()
203 opt.server_port = q; in get_options()
205 opt.listen_addr = q; in get_options()
207 opt.listen_port = q; in get_options()
214 opt.delay = atoi(q); in get_options()
244 len = strlen(q); in get_options()
254 opt.drop = atoi(q); in get_options()
266 opt.mtu = atoi(q); in get_options()
[all …]
/lib/lwip/lwip/test/fuzz/
A Dfuzz_common.c113 struct pbuf *q; in pcap_dump_packet() local
133 for(q = p; q != NULL; q = q->next) { in pcap_dump_packet()
134 fwrite(q->payload, 1, q->len, fpcap); in pcap_dump_packet()
192 struct pbuf *p, *q; in input_pkt() local
202 for(q = p; q != NULL; q = q->next) { in input_pkt()
203 MEMCPY(q->payload, data, q->len); in input_pkt()
204 data += q->len; in input_pkt()
501 struct pbuf *p, *q; in udp_app_fuzz_input() local
506 for (q = p; q != NULL; q = q->next) { in udp_app_fuzz_input()
507 MEMCPY(q->payload, remfuzz_ptr, q->len); in udp_app_fuzz_input()
[all …]
/lib/lwip/lwip/src/netif/ppp/
A Dmultilink.c348 char *p, *q; in remove_bundle_link() local
366 memmove(p, q, l); in remove_bundle_link()
377 char *p, *q; in iterate_bundle_links() local
391 *q = 0; in iterate_bundle_links()
401 p = q + 1; in iterate_bundle_links()
499 char *q, c, c2; local
517 q = str;
519 q += slprintf(q, sizeof(str)-1, "%s",
522 q += slprintf(q, sizeof(str)-1, "%d", ep->class);
526 *q++ = c;
[all …]
/lib/mbedtls/external/mbedtls/3rdparty/everest/library/kremlib/
A DFStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.c29 uint64_t q = x_xor_y | x_sub_y_xor_y; in FStar_UInt64_gte_mask() local
30 uint64_t x_xor_q = x ^ q; in FStar_UInt64_gte_mask()
51 uint32_t q = x_xor_y | x_sub_y_xor_y; in FStar_UInt32_gte_mask() local
52 uint32_t x_xor_q = x ^ q; in FStar_UInt32_gte_mask()
73 uint16_t q = x_xor_y | x_sub_y_xor_y; in FStar_UInt16_gte_mask() local
74 uint16_t x_xor_q = x ^ q; in FStar_UInt16_gte_mask()
95 uint8_t q = x_xor_y | x_sub_y_xor_y; in FStar_UInt8_gte_mask() local
96 uint8_t x_xor_q = x ^ q; in FStar_UInt8_gte_mask()
/lib/lwip/lwip/test/unit/tcp/
A Dtcp_helper.c56 struct pbuf *p, *q; in tcp_create_segment_wnd() local
71 for(q = p; q != NULL; q = q->next) { in tcp_create_segment_wnd()
72 memset(q->payload, 0, q->len); in tcp_create_segment_wnd()
199 struct pbuf* q; in test_tcp_counters_check_rxdata() local
207 for(q = p; q != NULL; q = q->next) { in test_tcp_counters_check_rxdata()
208 char *data = (char*)q->payload; in test_tcp_counters_check_rxdata()
209 for(i = 0; i < q->len; i++) { in test_tcp_counters_check_rxdata()
/lib/lwip/lwip/src/core/ipv6/
A Dnd6.c149 #define nd6_free_q(q) pbuf_free(q) argument
1569 neighbor_cache[i].q = NULL; in nd6_free_neighbor_cache_entry()
2097 p = q; in nd6_queue_packet()
2123 p = q; in nd6_queue_packet()
2196 while (q) { in nd6_free_q()
2197 r = q; in nd6_free_q()
2198 q = q->next; in nd6_free_q()
2218 struct nd6_q_entry *q; in nd6_send_q() local
2228 q = neighbor_cache[i].q; in nd6_send_q()
2230 neighbor_cache[i].q = q->next; in nd6_send_q()
[all …]
A Dicmp6.c388 struct pbuf *q; in icmp6_send_response_with_addrs_and_netif() local
393 q = pbuf_alloc(PBUF_IP, sizeof(struct icmp6_hdr) + datalen, in icmp6_send_response_with_addrs_and_netif()
395 if (q == NULL) { in icmp6_send_response_with_addrs_and_netif()
401 (q->len >= (sizeof(struct icmp6_hdr)))); in icmp6_send_response_with_addrs_and_netif()
403 icmp6hdr = (struct icmp6_hdr *)q->payload; in icmp6_send_response_with_addrs_and_netif()
409 pbuf_copy_partial_pbuf(q, p, datalen, sizeof(struct icmp6_hdr)); in icmp6_send_response_with_addrs_and_netif()
415 icmp6hdr->chksum = ip6_chksum_pseudo(q, IP6_NEXTH_ICMP6, q->tot_len, in icmp6_send_response_with_addrs_and_netif()
421 ip6_output_if(q, reply_src, reply_dest, LWIP_ICMP6_HL, 0, IP6_NEXTH_ICMP6, netif); in icmp6_send_response_with_addrs_and_netif()
422 pbuf_free(q); in icmp6_send_response_with_addrs_and_netif()

Completed in 88 milliseconds

1234