| /components/lwp/terminal/freebsd/ |
| A D | tty_outq.c | 158 size_t cbegin, cend, clen; in ttyoutq_read() local 175 clen = cend - cbegin; in ttyoutq_read() 178 memcpy(cbuf, tob->tob_data + cbegin, clen); in ttyoutq_read() 179 cbuf += clen; in ttyoutq_read() 180 len -= clen; in ttyoutq_read() 199 to->to_begin += clen; in ttyoutq_read() 222 size_t cbegin, cend, clen; in ttyoutq_read_uio() local 240 clen = cend - cbegin; in ttyoutq_read_uio() 277 memcpy(ob, tob->tob_data + cbegin, clen); in ttyoutq_read_uio() 278 to->to_begin += clen; in ttyoutq_read_uio() [all …]
|
| A D | tty_inq.c | 182 size_t cbegin, cend, clen; in ttyinq_read_uio() local 199 clen = cend - cbegin; in ttyinq_read_uio() 200 MPASS(clen >= flen); in ttyinq_read_uio() 201 rlen -= clen; in ttyinq_read_uio() 242 error = uiomove(tib->tib_data + cbegin, clen - flen, uio); in ttyinq_read_uio() 255 memcpy(ob, tib->tib_data + cbegin, clen - flen); in ttyinq_read_uio() 256 ti->ti_begin += clen; in ttyinq_read_uio() 261 error = uiomove(ob, clen - flen, uio); in ttyinq_read_uio()
|
| A D | tty_ttydisc.c | 126 size_t clen, flen = 0, n = 1; in ttydisc_read_canonical() local 165 clen = in ttydisc_read_canonical() 169 if (clen == 0) in ttydisc_read_canonical() 186 MPASS(flen <= clen); in ttydisc_read_canonical() 189 error = ttyinq_read_uio(&tp->t_inq, tp, uio, clen, flen); in ttydisc_read_canonical()
|
| /components/net/lwip/lwip-2.1.2/src/core/ipv4/ |
| A D | ip4_frag.c | 167 u16_t clen; in ip_reass_free_complete_datagram() local 187 clen = pbuf_clen(p); in ip_reass_free_complete_datagram() 189 pbufs_freed = (u16_t)(pbufs_freed + clen); in ip_reass_free_complete_datagram() 203 clen = pbuf_clen(pcur); in ip_reass_free_complete_datagram() 205 pbufs_freed = (u16_t)(pbufs_freed + clen); in ip_reass_free_complete_datagram() 282 LWIP_UNUSED_ARG(clen); in ip_reass_enqueue_new_datagram() 289 if (ip_reass_remove_oldest_datagram(fraghdr, clen) >= clen) { in ip_reass_enqueue_new_datagram() 509 u16_t offset, len, clen; in ip4_reass() local 535 clen = pbuf_clen(p); in ip4_reass() 568 ipr = ip_reass_enqueue_new_datagram(fraghdr, clen); in ip4_reass() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/netif/ppp/ |
| A D | chap-new.c | 258 int clen = 1, nlen, len; in chap_generate_challenge() local 265 clen = *p; in chap_generate_challenge() 437 int clen, nlen; local 456 clen = pkt[0]; 482 clen = *outp; 596 int clen, nlen; local 618 clen = p[0]; 619 if (len < clen + 1) 622 nlen = len - clen - 1; 624 for (; clen > 0; --clen) { [all …]
|
| A D | chap-md5.c | 53 int clen; in chap_md5_generate_challenge() local 56 clen = MD5_MIN_CHALLENGE + magic_pow(MD5_MIN_MAX_POWER_OF_TWO_CHALLENGE); in chap_md5_generate_challenge() 57 *cp++ = clen; in chap_md5_generate_challenge() 58 magic_random_bytes(cp, clen); in chap_md5_generate_challenge()
|
| A D | ccp.c | 1115 int len, clen, type; in ccp_reqci() local 1132 clen = len; in ccp_reqci() 1137 clen = p[1]; in ccp_reqci() 1142 if (!ao->mppe || clen != CILEN_MPPE) { in ccp_reqci() 1234 if (!ao->deflate || clen != CILEN_DEFLATE in ccp_reqci() 1323 if (!ao->predictor_1 || clen != CILEN_PREDICTOR_1) { in ccp_reqci() 1336 if (!ao->predictor_2 || clen != CILEN_PREDICTOR_2) { in ccp_reqci() 1362 MEMCPY(retp, p, clen); in ccp_reqci() 1363 retp += clen; in ccp_reqci() 1366 p += clen; in ccp_reqci() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/netif/ppp/ |
| A D | chap-new.c | 258 int clen = 1, nlen, len; in chap_generate_challenge() local 265 clen = *p; in chap_generate_challenge() 437 int clen, nlen; local 456 clen = pkt[0]; 482 clen = *outp; 596 int clen, nlen; local 618 clen = p[0]; 619 if (len < clen + 1) 622 nlen = len - clen - 1; 624 for (; clen > 0; --clen) { [all …]
|
| A D | chap-md5.c | 53 int clen; in chap_md5_generate_challenge() local 56 clen = MD5_MIN_CHALLENGE + magic_pow(MD5_MIN_MAX_POWER_OF_TWO_CHALLENGE); in chap_md5_generate_challenge() 57 *cp++ = clen; in chap_md5_generate_challenge() 58 magic_random_bytes(cp, clen); in chap_md5_generate_challenge()
|
| A D | ccp.c | 1115 int len, clen, type; in ccp_reqci() local 1132 clen = len; in ccp_reqci() 1137 clen = p[1]; in ccp_reqci() 1142 if (!ao->mppe || clen != CILEN_MPPE) { in ccp_reqci() 1234 if (!ao->deflate || clen != CILEN_DEFLATE in ccp_reqci() 1323 if (!ao->predictor_1 || clen != CILEN_PREDICTOR_1) { in ccp_reqci() 1336 if (!ao->predictor_2 || clen != CILEN_PREDICTOR_2) { in ccp_reqci() 1362 MEMCPY(retp, p, clen); in ccp_reqci() 1363 retp += clen; in ccp_reqci() 1366 p += clen; in ccp_reqci() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/core/ipv4/ |
| A D | ip4_frag.c | 167 u16_t clen; in ip_reass_free_complete_datagram() local 187 clen = pbuf_clen(p); in ip_reass_free_complete_datagram() 189 pbufs_freed += clen; in ip_reass_free_complete_datagram() 203 clen = pbuf_clen(pcur); in ip_reass_free_complete_datagram() 205 pbufs_freed += clen; in ip_reass_free_complete_datagram() 282 LWIP_UNUSED_ARG(clen); in ip_reass_enqueue_new_datagram() 289 if (ip_reass_remove_oldest_datagram(fraghdr, clen) >= clen) { in ip_reass_enqueue_new_datagram() 504 u16_t offset, len, clen; in ip4_reass() local 523 clen = pbuf_clen(p); in ip4_reass() 532 ip_reass_pbufcount, clen, IP_REASS_MAX_PBUFS)); in ip4_reass() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/core/ipv4/ |
| A D | ip_frag.c | 161 u8_t clen; in ip_reass_free_complete_datagram() local 181 clen = pbuf_clen(p); in ip_reass_free_complete_datagram() 183 pbufs_freed += clen; in ip_reass_free_complete_datagram() 197 clen = pbuf_clen(pcur); in ip_reass_free_complete_datagram() 199 pbufs_freed += clen; in ip_reass_free_complete_datagram() 276 if (ip_reass_remove_oldest_datagram(fraghdr, clen) >= clen) { in ip_reass_enqueue_new_datagram() 483 u8_t clen; in ip_reass() local 501 clen = pbuf_clen(p); in ip_reass() 510 ip_reass_pbufcount, clen, IP_REASS_MAX_PBUFS)); in ip_reass() 535 ipr = ip_reass_enqueue_new_datagram(fraghdr, clen); in ip_reass() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/core/ipv6/ |
| A D | ip6_frag.c | 152 u16_t clen; in ip6_reass_free_complete_datagram() local 182 clen = pbuf_clen(p); in ip6_reass_free_complete_datagram() 184 pbufs_freed = (u16_t)(pbufs_freed + clen); in ip6_reass_free_complete_datagram() 198 clen = pbuf_clen(pcur); in ip6_reass_free_complete_datagram() 200 pbufs_freed = (u16_t)(pbufs_freed + clen); in ip6_reass_free_complete_datagram() 279 u16_t clen; in ip6_reass() local 291 clen = pbuf_clen(p); in ip6_reass() 337 ip6_reass_remove_oldest_datagram(ipr, clen); in ip6_reass() 388 if ((ip6_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS) { in ip6_reass() 390 ip6_reass_remove_oldest_datagram(ipr, clen); in ip6_reass() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/core/ipv6/ |
| A D | ip6_frag.c | 150 u16_t clen; in ip6_reass_free_complete_datagram() local 169 clen = pbuf_clen(p); in ip6_reass_free_complete_datagram() 171 pbufs_freed += clen; in ip6_reass_free_complete_datagram() 185 clen = pbuf_clen(pcur); in ip6_reass_free_complete_datagram() 187 pbufs_freed += clen; in ip6_reass_free_complete_datagram() 265 u16_t clen; in ip6_reass() local 280 clen = pbuf_clen(p); in ip6_reass() 312 ip6_reass_remove_oldest_datagram(ipr, clen); in ip6_reass() 355 if ((ip6_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS) { in ip6_reass() 357 ip6_reass_remove_oldest_datagram(ipr, clen); in ip6_reass() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/core/ |
| A D | netif.c | 659 u8_t clen = 0; in netif_loop_output() local 682 clen = pbuf_clen(r); in netif_loop_output() 684 if(((netif->loop_cnt_current + clen) < netif->loop_cnt_current) || in netif_loop_output() 685 ((netif->loop_cnt_current + clen) > LWIP_LOOPBACK_MAX_PBUFS)) { in netif_loop_output() 692 netif->loop_cnt_current += clen; in netif_loop_output() 761 u8_t clen = pbuf_clen(in); in netif_poll() local 764 ((netif->loop_cnt_current - clen) < netif->loop_cnt_current)); in netif_poll() 765 netif->loop_cnt_current -= clen; in netif_poll()
|
| /components/net/lwip/lwip-1.4.1/src/netif/ppp/ |
| A D | chap.c | 852 int clen, nlen; in ChapPrintPkt() local 878 clen = p[0]; in ChapPrintPkt() 879 if (len < clen + 1) { in ChapPrintPkt() 883 nlen = len - clen - 1; in ChapPrintPkt() 885 for (; clen > 0; --clen) { in ChapPrintPkt() 896 for (clen = len; clen > 0; --clen) { in ChapPrintPkt()
|
| /components/net/lwip/lwip-2.0.3/src/core/ |
| A D | netif.c | 846 u16_t clen = 0; in netif_loop_output() local 868 clen = pbuf_clen(r); in netif_loop_output() 870 if (((netif->loop_cnt_current + clen) < netif->loop_cnt_current) || in netif_loop_output() 871 ((netif->loop_cnt_current + clen) > LWIP_LOOPBACK_MAX_PBUFS)) { in netif_loop_output() 878 netif->loop_cnt_current += clen; in netif_loop_output() 967 u8_t clen = 1; in netif_poll() local 975 clen++; in netif_poll() 981 ((netif->loop_cnt_current - clen) < netif->loop_cnt_current)); in netif_poll() 982 netif->loop_cnt_current -= clen; in netif_poll()
|
| /components/net/lwip/lwip-2.1.2/src/core/ |
| A D | netif.c | 1128 u16_t clen = 0; in netif_loop_output() local 1156 clen = pbuf_clen(r); in netif_loop_output() 1158 if (((netif->loop_cnt_current + clen) < netif->loop_cnt_current) || in netif_loop_output() 1159 ((netif->loop_cnt_current + clen) > LWIP_MIN(LWIP_LOOPBACK_MAX_PBUFS, 0xFFFF))) { in netif_loop_output() 1166 netif->loop_cnt_current = (u16_t)(netif->loop_cnt_current + clen); in netif_loop_output() 1263 u8_t clen = 1; in netif_poll() local 1271 clen++; in netif_poll() 1277 ((netif->loop_cnt_current - clen) < netif->loop_cnt_current)); in netif_poll() 1278 netif->loop_cnt_current = (u16_t)(netif->loop_cnt_current - clen); in netif_poll()
|
| A D | tcp_in.c | 1092 u16_t clen; local 1108 clen = pbuf_clen(next->p); 1111 LWIP_ASSERT("pcb->snd_queuelen >= pbuf_clen(next->p)", (pcb->snd_queuelen >= clen)); 1113 pcb->snd_queuelen = (u16_t)(pcb->snd_queuelen - clen);
|
| /components/dfs/dfs_v1/filesystems/elmfat/ |
| A D | ff.c | 1172 if (obj->stat == 2 && cofs <= clen) { /* Is it a contiguous chain? */ in get_fat() 1173 val = (cofs == clen) ? 0x7FFFFFFF : clst + 1; /* No data on the FAT, generate the value */ in get_fat() 5958 DWORD szb_bit, szb_case, sum, nbit, clu, clen[3]; local 5985 sect = b_data + sz_au * clen[0]; /* Table start sector */ 6019 clen[1] = (szb_case + sz_au * ss - 1) / (sz_au * ss); /* Number of up-case table clusters */ 6020 clen[2] = 1; /* Number of root dir clusters */ 6024 …nbit = clen[0] + clen[1] + clen[2]; /* Number of clusters in-use by system (bitmap, up-case and… 6047 if (nbit == 0 && j < 3) nbit = clen[j++]; /* Get next chain length */ 6062 st_dword(buf + SZDIRE * 2 + 20, 2 + clen[0]); /* cluster */ 6064 …sect = b_data + sz_au * (clen[0] + clen[1]); nsect = sz_au; /* Start of the root directory and num… [all …]
|
| /components/dfs/dfs_v2/filesystems/elmfat/ |
| A D | ff.c | 1202 if (obj->stat == 2 && cofs <= clen) { /* Is it a contiguous chain? */ in get_fat() 1203 val = (cofs == clen) ? 0x7FFFFFFF : clst + 1; /* No data on the FAT, generate the value */ in get_fat() 6043 DWORD szb_bit, szb_case, sum, nbit, clu, clen[3]; local 6070 sect = b_data + sz_au * clen[0]; /* Table start sector */ 6104 clen[1] = (szb_case + sz_au * ss - 1) / (sz_au * ss); /* Number of up-case table clusters */ 6105 clen[2] = 1; /* Number of root dir clusters */ 6109 …nbit = clen[0] + clen[1] + clen[2]; /* Number of clusters in-use by system (bitmap, up-case and… 6132 if (nbit == 0 && j < 3) nbit = clen[j++]; /* Get next chain length */ 6147 st_dword(buf + SZDIRE * 2 + 20, 2 + clen[0]); /* cluster */ 6149 …sect = b_data + sz_au * (clen[0] + clen[1]); nsect = sz_au; /* Start of the root directory and num… [all …]
|
| /components/net/lwip/lwip-2.0.3/src/apps/httpd/ |
| A D | httpd.c | 1906 u16_t clen; local 2055 clen = pbuf_clen(hs->req); 2057 (clen <= LWIP_HTTPD_REQ_QUEUELEN)) {
|
| /components/net/lwip/lwip-2.1.2/src/apps/http/ |
| A D | httpd.c | 1959 u16_t clen; local 2108 clen = pbuf_clen(hs->req); 2110 (clen <= LWIP_HTTPD_REQ_QUEUELEN)) {
|