Home
last modified time | relevance | path

Searched refs:lenp (Results 1 – 8 of 8) sorted by relevance

/lib/
A Dgzip.c38 int gzip(void *dst, unsigned long *lenp, in gzip() argument
41 return zzip(dst, lenp, src, srclen, 1, NULL); in gzip()
47 int zzip(void *dst, unsigned long *lenp, unsigned char *src, in zzip() argument
63 orig = *lenp; in zzip()
86 left_len = (*lenp > CFG_GZIP_COMPRESS_DEF_SZ) ? in zzip()
87 CFG_GZIP_COMPRESS_DEF_SZ : *lenp; in zzip()
98 *lenp -= (left_len - s.avail_out); in zzip()
105 } while (s.avail_out == 0 && (*lenp > 0)); in zzip()
111 if (*lenp == 0) { in zzip()
124 *lenp = orig - *lenp; in zzip()
A Dgunzip.c75 __rcode int gunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp) in gunzip() argument
77 int offset = gzip_parse_header(src, *lenp); in gunzip()
82 return zunzip(dst, dstlen, src, lenp, 1, offset); in gunzip()
279 unsigned long *lenp, int stoponerr, int offset) in zunzip() argument
294 s.avail_in = *lenp - offset; in zunzip()
306 *lenp = s.next_out - (unsigned char *) dst; in zunzip()
/lib/efi_loader/
A Defi_var_mem.c257 efi_var_collect_mem(struct efi_var_file *buf, efi_uintn_t *lenp, u32 mask) in efi_var_collect_mem() argument
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()
302 *lenp = hdr.length; in efi_var_collect_mem()
A Defi_var_common.c428 efi_status_t __maybe_unused efi_var_collect(struct efi_var_file **bufp, loff_t *lenp, in efi_var_collect() argument
487 *lenp = len; in efi_var_collect()
/lib/lwip/lwip/src/netif/ppp/
A Dlcp.c220 static void lcp_addci(fsm *f, u_char *ucp, int *lenp); /* Add our CI to pkt */
224 static int lcp_reqci(fsm *f, u_char *inp, int *lenp, int reject_if_disagree); /* Rcv peer CI */
834 static void lcp_addci(fsm *f, u_char *ucp, int *lenp) { in lcp_addci() argument
932 if (ucp - start_ucp != *lenp) { in lcp_addci()
1824 static int lcp_reqci(fsm *f, u_char *inp, int *lenp, int reject_if_disagree) { in lcp_reqci() argument
1839 int l = *lenp; /* Length left */ in lcp_reqci()
2269 *lenp = next - inp; in lcp_reqci()
2275 *lenp = nakoutp - (u_char*)nakp->payload; in lcp_reqci()
2276 MEMCPY(inp, nakp->payload, *lenp); in lcp_reqci()
2279 *lenp = rejp - inp; in lcp_reqci()
A Dccp.c768 static void ccp_addci(fsm *f, u_char *p, int *lenp) { in ccp_addci() argument
828 *lenp = p - p0; in ccp_addci()
1105 static int ccp_reqci(fsm *f, u_char *p, int *lenp, int dont_nak) { in ccp_reqci() argument
1123 len = *lenp; in ccp_reqci()
1371 if (ret == CONFREJ && *lenp == retp - p0) in ccp_reqci()
1374 *lenp = retp - p0; in ccp_reqci()
A Dipv6cp.c181 static void ipv6cp_addci(fsm *f, u_char *ucp, int *lenp); /* Add our CI */
549 static void ipv6cp_addci(fsm *f, u_char *ucp, int *lenp) {
552 int len = *lenp;
586 *lenp -= len;
A Dipcp.c115 static void ipcp_addci(fsm *f, u_char *ucp, int *lenp); /* Add our CI */
806 static void ipcp_addci(fsm *f, u_char *ucp, int *lenp) { in ipcp_addci() argument
809 int len = *lenp; in ipcp_addci()
909 *lenp -= len; in ipcp_addci()

Completed in 26 milliseconds