Home
last modified time | relevance | path

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

12

/lk-master/external/platform/pico/common/pico_util/
A Dqueue.c16 q->wptr = 0; in queue_init_with_spinlock()
17 q->rptr = 0; in queue_init_with_spinlock()
20 void queue_free(queue_t *q) { in queue_free() argument
21 free(q->data); in queue_free()
26 return q->data + index * q->element_size; in element_ptr()
39 if (queue_get_level_unsafe(q) != q->element_count) { in queue_try_add()
40 memcpy(element_ptr(q, q->wptr), data, q->element_size); in queue_try_add()
41 q->wptr = inc_index(q, q->wptr); in queue_try_add()
53 memcpy(data, element_ptr(q, q->rptr), q->element_size); in queue_try_remove()
54 q->rptr = inc_index(q, q->rptr); in queue_try_remove()
[all …]
/lk-master/external/platform/pico/common/pico_util/include/pico/util/
A Dqueue.h58 void queue_free(queue_t *q);
70 int32_t rc = (int32_t)q->wptr - (int32_t)q->rptr; in queue_get_level_unsafe()
72 rc += + q->element_count + 1; in queue_get_level_unsafe()
85 uint level = queue_get_level_unsafe(q); in queue_get_level()
86 spin_unlock(q->lock, save); in queue_get_level()
99 return queue_get_level(q) == 0; in queue_is_empty()
110 static inline bool queue_is_full(queue_t *q) { in queue_is_full() argument
111 return queue_get_level(q) == q->element_count; in queue_is_full()
126 bool queue_try_add(queue_t *q, void *data);
138 bool queue_try_remove(queue_t *q, void *data);
[all …]
/lk-master/external/lib/lwip/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 …]
/lk-master/external/lib/lwip/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 …]
A Dicmp.c293 struct pbuf *q; in icmp_send_response() local
300 q = pbuf_alloc(PBUF_IP, sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE, in icmp_send_response()
302 if (q == NULL) { in icmp_send_response()
307 (q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE))); in icmp_send_response()
316 icmphdr = (struct icmp_echo_hdr *)q->payload; in icmp_send_response()
323 SMEMCPY((u8_t *)q->payload + sizeof(struct icmp_echo_hdr), (u8_t *)p->payload, in icmp_send_response()
328 icmphdr->chksum = inet_chksum(icmphdr, q->len); in icmp_send_response()
335 ip_output(q, NULL, &iphdr_src, ICMP_TTL, 0, IP_PROTO_ICMP); in icmp_send_response()
336 pbuf_free(q); in icmp_send_response()
/lk-master/external/lib/lwip/core/
A Dpbuf.c300 r = q; in pbuf_alloc()
454 q = p; in pbuf_realloc()
463 q = q->next; 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 …]
/lk-master/external/lib/lwip/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 Dethernetif.c126 struct pbuf *q;
134 for(q = p; q != NULL; q = q->next) {
138 send data from(q->payload, q->len);
164 struct pbuf *p, *q;
186 for(q = p; q != NULL; q = q->next) {
195 read data into(q->payload, q->len);
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 …]
/lk-master/platform/armemu/
A Dnet.c118 struct pbuf *q; in low_level_output() local
130 for (q = p; q != NULL; q = q->next) { in low_level_output()
135 for (j = 0; j < q->len; j++) in low_level_output()
136 *REG8(NET_OUT_BUF + i + j) = ((unsigned char *)q->payload)[j]; in low_level_output()
137 i += q->len; in low_level_output()
167 struct pbuf *p, *q; in low_level_input() local
198 for (q = p; q != NULL; q = q->next) { in low_level_input()
202 for (i=0; i < q->len; i++) { in low_level_input()
203 ((unsigned char *)q->payload)[i] = *REG8(NET_IN_BUF + pos); in low_level_input()
/lk-master/external/lib/libm/
A De_sqrtf.c44 int32_t ix,s,q,m,t,i; in __ieee754_sqrtf() local
74 q = s = 0; /* q = sqrt(x) */ in __ieee754_sqrtf()
82 q += r; in __ieee754_sqrtf()
94 q += 2; in __ieee754_sqrtf()
96 q += (q&1); in __ieee754_sqrtf()
99 ix = (q>>1)+0x3f000000; in __ieee754_sqrtf()
A De_asin.c73 double t=0.0,w,p,q,c,r,s; in __ieee754_asin() local
90 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); in __ieee754_asin()
91 w = p/q; in __ieee754_asin()
98 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); in __ieee754_asin()
101 w = p/q; in __ieee754_asin()
107 r = p/q; in __ieee754_asin()
109 q = pio4_hi-2.0*w; in __ieee754_asin()
110 t = pio4_hi-(p-q); in __ieee754_asin()
A De_asinf.c44 float t=0.0,w,p,q,c,r,s; in __ieee754_asinf() local
59 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); in __ieee754_asinf()
60 w = p/q; in __ieee754_asinf()
67 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); in __ieee754_asinf()
70 w = p/q; in __ieee754_asinf()
78 r = p/q; in __ieee754_asinf()
80 q = pio4_hi-(float)2.0*w; in __ieee754_asinf()
81 t = pio4_hi-(p-q); in __ieee754_asinf()
A De_acos.c64 double z,p,q,r,w,s,c,df; in __ieee754_acos() local
81 q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); in __ieee754_acos()
82 r = p/q; in __ieee754_acos()
87 q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); in __ieee754_acos()
89 r = p/q; in __ieee754_acos()
99 q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); in __ieee754_acos()
100 r = p/q; in __ieee754_acos()
A De_acosf.c42 float z,p,q,r,w,s,c,df; in __ieee754_acosf() local
56 q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); in __ieee754_acosf()
57 r = p/q; in __ieee754_acosf()
62 q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); in __ieee754_acosf()
64 r = p/q; in __ieee754_acosf()
76 q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); in __ieee754_acosf()
77 r = p/q; in __ieee754_acosf()
A De_sqrt.c113 int32_t ix0,s0,q,m,t,i; in __ieee754_sqrt() local
153 q = q1 = s0 = s1 = 0; /* [q,q1] = sqrt(x) */ in __ieee754_sqrt()
161 q += r; in __ieee754_sqrt()
190 if (q1==(u_int32_t)0xffffffff) { q1=0; q += 1;} in __ieee754_sqrt()
192 if (q1==(u_int32_t)0xfffffffe) q+=1; in __ieee754_sqrt()
198 ix0 = (q>>1)+0x3fe00000; in __ieee754_sqrt()
200 if ((q&1)==1) ix1 |= sign; in __ieee754_sqrt()
A Dk_rem_pio2.c297 double z,fw,f[20],fq[20],q[20]; in __kernel_rem_pio2() local
317 q[i] = fw; in __kernel_rem_pio2()
323 for (i=0,j=jz,z=q[jz]; j>0; i++,j--) { in __kernel_rem_pio2()
326 z = q[j-1]+fw; in __kernel_rem_pio2()
381 q[i] = fw; in __kernel_rem_pio2()
407 q[i] = fw*(double)iq[i]; in __kernel_rem_pio2()
413 for (fw=0.0,k=0; k<=jp&&k<=jz-i; k++) fw += PIo2[k]*q[i+k]; in __kernel_rem_pio2()
/lk-master/external/platform/pico/rp2_common/pico_divider/
A Ddivider.S469 muls r3,r6 @ x0l*q
476 muls r3,r6 @ q*x0h
486 muls r3,r6 @ x0l*q
493 muls r3,r6 @ x0h*q
512 muls r2,r6 @ x0*q
524 @ r6 q
535 muls r6,r4 @ x*q
566 @ r6 q
757 @ r6 q
769 lsls r2,#16 @ xm*q
[all …]
/lk-master/external/platform/pico/rp2_common/pico_float/
A Dfloat_math.c481 int quo=0,q,r=0,s; in frem_0() local
488 q=((q>>(29-s))+1)>>1; // Q(s), rounded in frem_0()
489 mx=(mx<<s)-my*q; in frem_0()
490 quo=(quo<<s)+q; in frem_0()
525 int sx,sy,ex,ey,q; in WRAPPER_FUNC() local
541 q=1; in WRAPPER_FUNC()
545 q=-1; in WRAPPER_FUNC()
550 mx=frem_0(mx,my,ex-ey,&q); in WRAPPER_FUNC()
553 q++; in WRAPPER_FUNC()
556 if(sy) q=-q; in WRAPPER_FUNC()
[all …]
/lk-master/external/platform/pico/rp2_common/pico_double/
A Ddouble_math.c525 int quo=0,q,r=0,s;
532 q=((q>>(29-s))+1)>>1; // Q(s), rounded
533 mx=(mx<<s)-my*q;
534 quo=(quo<<s)+q;
567 int sx,sy,ex,ey,q;
583 q=1;
587 q=-1;
592 mx=drem_0(mx,my,ex-ey,&q);
595 q++;
598 if(sy) q=-q;
[all …]
/lk-master/kernel/include/kernel/
A Dwait.h26 #define WAIT_QUEUE_INITIAL_VALUE(q) \ argument
29 .list = LIST_INITIAL_VALUE((q).list), \
/lk-master/external/lib/fdt/
A Dfdt_ro.c258 const char *q = memchr(path, '/', end - p); in fdt_path_offset_namelen() local
260 if (!q) in fdt_path_offset_namelen()
261 q = end; in fdt_path_offset_namelen()
263 p = fdt_get_alias_namelen(fdt, p, q - p); in fdt_path_offset_namelen()
268 p = q; in fdt_path_offset_namelen()
272 const char *q; in fdt_path_offset_namelen() local
279 q = memchr(p, '/', end - p); in fdt_path_offset_namelen()
280 if (! q) in fdt_path_offset_namelen()
281 q = end; in fdt_path_offset_namelen()
283 offset = fdt_subnode_offset_namelen(fdt, offset, p, q-p); in fdt_path_offset_namelen()
[all …]

Completed in 142 milliseconds

12