Home
last modified time | relevance | path

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

12345

/components/net/lwip/lwip-2.1.2/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 …]
/components/net/lwip/lwip-2.1.2/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()
444 q = (struct pbuf *)mem_trim(q, (mem_size_t)(((u8_t *)q->payload - (u8_t *)q) + rem_len)); in pbuf_realloc()
449 q->tot_len = q->len; in pbuf_realloc()
1158 while ((q != NULL) && (q->len <= offset_left)) { in pbuf_skip_const()
1160 q = q->next; in pbuf_skip_const()
1395 if ((q != NULL) && (q->len > q_idx)) { in pbuf_try_get_at()
1417 if ((q != NULL) && (q->len > q_idx)) { in pbuf_put_at()
1446 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 …]
/components/net/lwip/lwip-1.4.1/src/core/ipv6/
A Dinet6.c85 struct pbuf *q; in inet_chksum_pseudo() local
90 for(q = p; q != NULL; q = q->next) { in inet_chksum_pseudo()
91 acc += chksum(q->payload, q->len); in inet_chksum_pseudo()
95 if (q->len % 2 != 0) { in inet_chksum_pseudo()
143 struct pbuf *q; in inet_chksum_pbuf() local
148 for(q = p; q != NULL; q = q->next) { in inet_chksum_pbuf()
149 acc += chksum(q->payload, q->len); in inet_chksum_pbuf()
153 if (q->len % 2 != 0) { in inet_chksum_pbuf()
A Dicmp6.c108 struct pbuf *q; in icmp_dest_unreach() local
115 if (q == NULL) { in icmp_dest_unreach()
125 idur = q->payload; in icmp_dest_unreach()
133 idur->chksum = inet_chksum(idur, q->len); in icmp_dest_unreach()
136 ip_output(q, NULL, in icmp_dest_unreach()
138 pbuf_free(q); in icmp_dest_unreach()
144 struct pbuf *q; in icmp_time_exceeded() local
153 if (q == NULL) { in icmp_time_exceeded()
163 tehdr = q->payload; in icmp_time_exceeded()
174 ip_output(q, NULL, in icmp_time_exceeded()
[all …]
/components/net/lwip/lwip-1.4.1/src/core/ipv4/
A Dinet_chksum.c278 struct pbuf *q; in inet_chksum_pseudo() local
284 for(q = p; q != NULL; q = q->next) { in inet_chksum_pseudo()
286 (void *)q, (void *)q->next)); in inet_chksum_pseudo()
287 acc += LWIP_CHKSUM(q->payload, q->len); in inet_chksum_pseudo()
338 struct pbuf *q; in inet_chksum_pseudo_partial() local
345 for(q = p; (q != NULL) && (chksum_len > 0); q = q->next) { in inet_chksum_pseudo_partial()
347 (void *)q, (void *)q->next)); in inet_chksum_pseudo_partial()
348 chklen = q->len; in inet_chksum_pseudo_partial()
412 struct pbuf *q; in inet_chksum_pbuf() local
417 for(q = p; q != NULL; q = q->next) { in inet_chksum_pbuf()
[all …]
/components/net/lwip/lwip-1.4.1/src/core/
A Dpbuf.c454 q = p; in pbuf_realloc()
463 q = q->next; in pbuf_realloc()
471 if ((q->type == PBUF_RAM) && (rem_len != q->len)) { in pbuf_realloc()
473 q = (struct pbuf *)mem_trim(q, (u16_t)((u8_t *)q->payload - (u8_t *)q) + rem_len); in pbuf_realloc()
478 q->tot_len = q->len; in pbuf_realloc()
1083 while ((q != NULL) && (q->len <= copy_from)) { in pbuf_get_at()
1085 q = q->next; in pbuf_get_at()
1088 if ((q != NULL) && (q->len > copy_from)) { in pbuf_get_at()
1110 while ((q != NULL) && (q->len <= start)) { in pbuf_memcmp()
1112 q = q->next; in pbuf_memcmp()
[all …]
A Draw.c215 q = pbuf_alloc(PBUF_IP, 0, PBUF_RAM); in raw_sendto()
217 if (q == NULL) { in raw_sendto()
223 pbuf_chain(q, p); in raw_sendto()
229 q = p; in raw_sendto()
230 if(pbuf_header(q, -IP_HLEN)) { in raw_sendto()
240 if (q != p) { in raw_sendto()
241 pbuf_free(q); in raw_sendto()
251 if (q != p) { in raw_sendto()
252 pbuf_free(q); in raw_sendto()
271 if (q != p) { in raw_sendto()
[all …]
A Dudp.c592 if (q == NULL) {
598 pbuf_chain(q, p);
606 q = p;
635 if (q != p) {
637 pbuf_free(q);
638 q = NULL;
667 chklen = q->tot_len;
714 udpchksum = inet_chksum_pseudo(q, src_ip, dst_ip, IP_PROTO_UDP, q->tot_len);
735 if (q != p) {
737 pbuf_free(q);
[all …]
/components/net/lwip/lwip-2.0.3/src/core/
A Dpbuf.c517 q = p; in pbuf_realloc()
526 q = q->next; in pbuf_realloc()
534 if ((q->type == PBUF_RAM) && (rem_len != q->len) in pbuf_realloc()
540 q = (struct pbuf *)mem_trim(q, (u16_t)((u8_t *)q->payload - (u8_t *)q) + rem_len); in pbuf_realloc()
545 q->tot_len = q->len; in pbuf_realloc()
1111 while ((q != NULL) && (q->len <= offset_left)) { in pbuf_skip_const()
1113 q = q->next; in pbuf_skip_const()
1323 if ((q != NULL) && (q->len > q_idx)) { in pbuf_try_get_at()
1345 if ((q != NULL) && (q->len > q_idx)) { in pbuf_put_at()
1374 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
576 for (q = p; q != NULL; q = q->next) { in inet_chksum_pbuf()
[all …]
A Draw.c304 if (q == NULL) { in raw_sendto()
310 pbuf_chain(q, p); in raw_sendto()
316 q = p; in raw_sendto()
334 if (q != p) { in raw_sendto()
335 pbuf_free(q); in raw_sendto()
347 if (q != p) { in raw_sendto()
348 pbuf_free(q); in raw_sendto()
360 if (q != p) { in raw_sendto()
361 pbuf_free(q); in raw_sendto()
386 if (q != p) { in raw_sendto()
[all …]
A Dudp.c365 struct pbuf *q; in udp_input() local
372 if (q != NULL) { in udp_input()
714 if (q == NULL) { in udp_sendto_if_src_chksum()
720 pbuf_chain(q, p); in udp_sendto_if_src_chksum()
728 q = p; in udp_sendto_if_src_chksum()
743 q->flags |= PBUF_FLAG_MCASTLOOP; in udp_sendto_if_src_chksum()
767 chklen = q->tot_len; in udp_sendto_if_src_chksum()
817 udpchksum = ip_chksum_pseudo(q, IP_PROTO_UDP, q->tot_len, in udp_sendto_if_src_chksum()
850 if (q != p) { in udp_sendto_if_src_chksum()
852 pbuf_free(q); in udp_sendto_if_src_chksum()
[all …]
/components/net/lwip/lwip-1.4.1/src/netif/
A Dslipif.c96 struct pbuf *p, *q; member
118 struct pbuf *q; in slipif_output() local
135 for (q = p; q != NULL; q = q->next) { in slipif_output()
192 t = priv->q; in slipif_rxbyte()
353 priv->q = NULL; in slipif_init()
417 struct pbuf *q = p; in slipif_process_rxqueue() local
418 while ((q->len != q->tot_len) && (q->next != NULL)) { in slipif_process_rxqueue()
419 q = q->next; in slipif_process_rxqueue()
422 q->next = NULL; in slipif_process_rxqueue()
454 q = q->next; in slipif_rxbyte_enqueue()
[all …]
A Detharp.c111 struct pbuf *q;
160 while (q) { in free_etharp_q()
161 r = q; in free_etharp_q()
162 q = q->next; in free_etharp_q()
171 #define free_etharp_q(q) pbuf_free(q) argument
496 struct etharp_q_entry *q = arp_table[i].q; local
498 arp_table[i].q = q->next;
500 p = q->p;
1036 if (q) {
1084 p = q;
[all …]
/components/net/lwip/lwip-2.1.2/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.c773 struct pbuf *q, *last; in lowpan6_input() local
775 for (q = lrh->frags, last = NULL; q != NULL; last = q, q = q->next) { in lowpan6_input()
804 p->next = q; in lowpan6_input()
810 struct pbuf *q; in lowpan6_input() local
811 for (q = lrh->frags; q != NULL; q = q->next) { in lowpan6_input()
817 offset += q->len - 1; in lowpan6_input()
822 for (q = lrh->frags; q != NULL; q = q->next) { in lowpan6_input()
824 pbuf_remove_header(q, 1); in lowpan6_input()
826 datagram_left -= q->len; in lowpan6_input()
829 q = lrh->reass; in lowpan6_input()
[all …]
/components/net/lwip/lwip-2.0.3/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()
400 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()
501 q = q->next; in slipif_rxbyte_enqueue()
[all …]
/components/net/lwip/lwip-2.0.3/src/core/ipv4/
A Detharp.c153 while (q) { in free_etharp_q()
154 r = q; in free_etharp_q()
155 q = q->next; in free_etharp_q()
164 #define free_etharp_q(q) pbuf_free(q) argument
475 struct etharp_q_entry *q = arp_table[i].q; local
477 arp_table[i].q = q->next;
479 p = q->p;
951 if (q) {
1002 p = q;
1022 p = q;
[all …]
/components/net/lwip/lwip-2.1.2/src/core/ipv4/
A Detharp.c151 while (q) { in free_etharp_q()
152 r = q; in free_etharp_q()
153 q = q->next; in free_etharp_q()
162 #define free_etharp_q(q) pbuf_free(q) argument
473 struct etharp_q_entry *q = arp_table[i].q; local
475 arp_table[i].q = q->next;
477 p = q->p;
955 if (q) {
1007 p = q;
1021 p = q;
[all …]
/components/net/lwip/lwip-2.0.3/test/fuzz/
A Dfuzz.c80 struct pbuf *p, *q; in input_pkt() local
86 for(q = p; q != NULL; q = q->next) { in input_pkt()
87 MEMCPY(q->payload, data, q->len); in input_pkt()
88 data += q->len; in input_pkt()
/components/net/lwip/lwip-2.0.3/src/core/ipv6/
A Dicmp6.c274 struct pbuf *q; in icmp6_send_response() local
283 q = pbuf_alloc(PBUF_IP, sizeof(struct icmp6_hdr) + IP6_HLEN + LWIP_ICMP6_DATASIZE, in icmp6_send_response()
285 if (q == NULL) { in icmp6_send_response()
291 (q->len >= (sizeof(struct icmp6_hdr) + IP6_HLEN + LWIP_ICMP6_DATASIZE))); in icmp6_send_response()
293 icmp6hdr = (struct icmp6_hdr *)q->payload; in icmp6_send_response()
299 SMEMCPY((u8_t *)q->payload + sizeof(struct icmp6_hdr), (u8_t *)p->payload, in icmp6_send_response()
317 pbuf_free(q); in icmp6_send_response()
330 pbuf_free(q); in icmp6_send_response()
340 icmp6hdr->chksum = ip6_chksum_pseudo(q, IP6_NEXTH_ICMP6, q->tot_len, in icmp6_send_response()
346 ip6_output_if(q, reply_src, reply_dest, LWIP_ICMP6_HL, 0, IP6_NEXTH_ICMP6, netif); in icmp6_send_response()
[all …]
/components/net/lwip/lwip-2.1.2/test/fuzz/
A Dfuzz.c97 struct pbuf *p, *q; in input_pkt() local
103 for(q = p; q != NULL; q = q->next) { in input_pkt()
104 MEMCPY(q->payload, data, q->len); in input_pkt()
105 data += q->len; in input_pkt()
/components/net/lwip/lwip-2.1.2/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 …]
/components/net/lwip/lwip-2.0.3/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 …]

Completed in 63 milliseconds

12345