Home
last modified time | relevance | path

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

12345

/freebsd/sys/contrib/libfdt/
H A Dfdt_ro.c292 int *lenp) in fdt_get_property_by_offset_() argument
298 if (lenp) in fdt_get_property_by_offset_()
299 *lenp = err; in fdt_get_property_by_offset_()
305 if (lenp) in fdt_get_property_by_offset_()
306 *lenp = fdt32_to_cpu(prop->len); in fdt_get_property_by_offset_()
313 int *lenp) in fdt_get_property_by_offset() argument
319 if (lenp) in fdt_get_property_by_offset()
320 *lenp = -FDT_ERR_BADVERSION; in fdt_get_property_by_offset()
324 return fdt_get_property_by_offset_(fdt, offset, lenp); in fdt_get_property_by_offset()
331 int *lenp, in fdt_get_property_namelen_() argument
[all …]
H A Dlibfdt.h449 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
548 int *lenp);
565 int namelen, int *lenp);
597 const char *name, int *lenp);
600 int *lenp) in fdt_get_property_w() argument
603 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
639 const char **namep, int *lenp);
655 const char *name, int namelen, int *lenp);
658 int *lenp) in fdt_getprop_namelen_w() argument
661 namelen, lenp); in fdt_getprop_namelen_w()
[all …]
H A Dfdt.c96 const fdt32_t *tagp, *lenp; in fdt_next_tag() local
120 lenp = fdt_offset_ptr(fdt, offset, sizeof(*lenp)); in fdt_next_tag()
121 if (!lenp) in fdt_next_tag()
125 + fdt32_to_cpu(*lenp); in fdt_next_tag()
126 if (fdt_version(fdt) < 0x10 && fdt32_to_cpu(*lenp) >= 8 && in fdt_next_tag()
127 ((offset - fdt32_to_cpu(*lenp)) % 8) != 0) in fdt_next_tag()
/freebsd/usr.sbin/rtadvd/
H A Dcontrol.c346 size_t *lenp; in cm_bin2pl() local
353 lenp = (size_t *)p; in cm_bin2pl()
354 len = *lenp++; in cm_bin2pl()
355 p = (char *)lenp; in cm_bin2pl()
368 lenp = (size_t *)p; in cm_bin2pl()
369 len = *lenp++; in cm_bin2pl()
370 p = (char *)lenp; in cm_bin2pl()
383 lenp = (size_t *)p; in cm_bin2pl()
384 len = *lenp++; in cm_bin2pl()
385 p = (char *)lenp; in cm_bin2pl()
406 size_t *lenp; cm_pl2bin() local
[all...]
/freebsd/sys/powerpc/powernv/
H A Dopal_dbg.c101 uint64_t lenp, bufp; in uart_opal_dbg_getc() local
105 lenp = vtophys(&len); in uart_opal_dbg_getc()
108 lenp = (uint64_t)&len; in uart_opal_dbg_getc()
112 err = opal_call(OPAL_CONSOLE_READ, termnum, lenp, bufp); in uart_opal_dbg_getc()
127 uint64_t lenp, bufp; in uart_opal_dbg_putc() local
132 lenp = vtophys(&len); in uart_opal_dbg_putc()
135 lenp = (uint64_t)&len; in uart_opal_dbg_putc()
140 err = opal_call(OPAL_CONSOLE_WRITE, termnum, lenp, bufp); in uart_opal_dbg_putc()
/freebsd/crypto/openssh/
H A Dsshbuf-getput-basic.c187 sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp) in sshbuf_get_string() argument
195 if (lenp != NULL) in sshbuf_get_string()
196 *lenp = 0; in sshbuf_get_string()
208 if (lenp != NULL) in sshbuf_get_string()
209 *lenp = len; in sshbuf_get_string()
214 sshbuf_get_string_direct(struct sshbuf *buf, const u_char **valp, size_t *lenp) in sshbuf_get_string_direct() argument
222 if (lenp != NULL) in sshbuf_get_string_direct()
223 *lenp = 0; in sshbuf_get_string_direct()
228 if (lenp != NULL) in sshbuf_get_string_direct()
229 *lenp = len; in sshbuf_get_string_direct()
[all …]
H A Dssh-xmss.c202 u_char **sigp, size_t *lenp, in ssh_xmss_sign() argument
212 if (lenp != NULL) in ssh_xmss_sign()
213 *lenp = 0; in ssh_xmss_sign()
252 if (lenp != NULL) in ssh_xmss_sign()
253 *lenp = len; in ssh_xmss_sign()
265 if (lenp != NULL) in ssh_xmss_sign()
266 *lenp = 0; in ssh_xmss_sign()
H A Dpacket.h203 int sshpkt_get_string(struct ssh *ssh, u_char **valp, size_t *lenp);
204 int sshpkt_get_string_direct(struct ssh *ssh, const u_char **valp, size_t *lenp);
205 int sshpkt_peek_string_direct(struct ssh *ssh, const u_char **valp, size_t *lenp);
206 int sshpkt_get_cstring(struct ssh *ssh, char **valp, size_t *lenp);
212 const u_char *sshpkt_ptr(struct ssh *, size_t *lenp);
H A Dssh-ed25519.c147 u_char **sigp, size_t *lenp, in ssh_ed25519_sign() argument
157 if (lenp != NULL) in ssh_ed25519_sign()
158 *lenp = 0; in ssh_ed25519_sign()
192 if (lenp != NULL) in ssh_ed25519_sign()
193 *lenp = len; in ssh_ed25519_sign()
H A Dsshbuf.h190 int sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp);
191 int sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp);
203 size_t *lenp);
210 size_t *lenp);
218 const u_char **valp, size_t *lenp);
/freebsd/lib/libc/stdio/
H A Dfgetwln.c45 fgetwln_l(FILE * __restrict fp, size_t *lenp, locale_t locale) in fgetwln_l() argument
80 *lenp = len; in fgetwln_l()
87 *lenp = 0; in fgetwln_l()
93 fgetwln(FILE * __restrict fp, size_t *lenp) in fgetwln() argument
95 return fgetwln_l(fp, lenp, __get_locale()); in fgetwln()
H A Dfgetln.c74 fgetln(FILE *fp, size_t *lenp) in fgetln() argument
85 *lenp = 0; in fgetln()
99 *lenp = len = p - fp->_p; in fgetln()
149 *lenp = len; in fgetln()
156 *lenp = 0; /* ??? */ in fgetln()
/freebsd/contrib/less/
H A Dcvt.c53 public void cvt_text(mutable char *odst, constant char *osrc, mutable int *chpos, mutable size_t *lenp, int ops) in cvt_text()
61 if (lenp != NULL) in cvt_text()
62 src_end = osrc + *lenp; in cvt_text()
109 if (lenp != NULL)
110 *lenp = ptr_diff(edst, odst);
52 cvt_text(char * odst,char * osrc,int * chpos,int * lenp,int ops) cvt_text() argument
/freebsd/contrib/nvi/common/
H A Dline.c37 size_t *lenp, /* Length store. */ in db_eget() argument
46 if (!db_get(sp, lno, 0, pp, lenp)) in db_eget()
81 size_t *lenp) /* Length store. */ in db_get() argument
120 if (lenp != NULL) in db_get()
121 *lenp = tp->len; in db_get()
139 if (lenp != NULL) in db_get()
140 *lenp = ep->c_len; in db_get()
158 err3: if (lenp != NULL) in db_get()
159 *lenp = 0; in db_get()
185 if (lenp != NULL) in db_get()
[all …]
H A Dmsg.c774 msg_cmsg(SCR *sp, cmsg_t which, size_t *lenp) in msg_cmsg() argument
778 return (msg_cat(sp, "268|confirm? [ynq]", lenp)); in msg_cmsg()
780 return (msg_cat(sp, "269|Press any key to continue: ", lenp)); in msg_cmsg()
784 lenp)); in msg_cmsg()
786 return (msg_cat(sp, "161|Press Enter to continue: ", lenp)); in msg_cmsg()
788 return (msg_cat(sp, "275| cont?", lenp)); in msg_cmsg()
791 "271|Press any key to continue [q to quit]: ", lenp)); in msg_cmsg()
809 msg_cat(SCR *sp, const char *str, size_t *lenp) in msg_cat() argument
828 if (lenp != NULL) in msg_cat()
829 *lenp = strlen(p); in msg_cat()
[all …]
/freebsd/stand/libsa/
H A Dbootparam.c324 uint32_t *lenp; in xdr_string_encode() local
329 lenp = (uint32_t *) *pkt; in xdr_string_encode()
330 *pkt += sizeof(*lenp); in xdr_string_encode()
331 *lenp = htonl(len); in xdr_string_encode()
343 uint32_t *lenp; in xdr_string_decode() local
349 lenp = (uint32_t *) *pkt; in xdr_string_decode()
350 *pkt += sizeof(*lenp); in xdr_string_decode()
351 slen = ntohl(*lenp); in xdr_string_decode()
/freebsd/lib/libprocstat/
H A Dcore.c83 enum psc_type type, void *buf, size_t *lenp);
170 size_t *lenp) in procstat_core_get() argument
225 len = MIN(len, *lenp); in procstat_core_get()
245 len = *lenp; in procstat_core_get()
251 *lenp -= len; in procstat_core_get()
255 *lenp = len; in procstat_core_get()
260 *lenp = curlen; in procstat_core_get()
341 void *args, size_t *lenp) in get_args() argument
379 nchr = MIN(ARG_MAX, *lenp); in get_args()
419 *lenp = done; in get_args()
/freebsd/contrib/openpam/lib/libpam/
H A Dopenpam_readline.c56 openpam_readline(FILE *f, int *lineno, size_t *lenp) in openpam_readline() argument
99 if (lenp != NULL) in openpam_readline()
100 *lenp = len; in openpam_readline()
H A Dopenpam_readlinev.c51 openpam_readlinev(FILE *f, int *lineno, int *lenp) in openpam_readlinev() argument
99 if (lenp != NULL) in openpam_readlinev()
100 *lenp = wordvlen; in openpam_readlinev()
H A Dopenpam_readword.c52 openpam_readword(FILE *f, int *lineno, size_t *lenp) in openpam_readword() argument
140 if (lenp != NULL) in openpam_readword()
141 *lenp = len; in openpam_readword()
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-proc.c70 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_domemused() argument
82 *ppos += *lenp; in proc_domemused()
89 rc = proc_doulongvec_minmax(&dummy, write, buffer, lenp, ppos); in proc_domemused()
98 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_doslab() argument
111 *ppos += *lenp; in proc_doslab()
137 rc = proc_doulongvec_minmax(&dummy, write, buffer, lenp, ppos); in proc_doslab()
145 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dohostid() argument
159 proc_dostring(&dummy, write, buffer, lenp, ppos); in proc_dohostid()
/freebsd/contrib/telnet/libtelnet/
H A Denc_des.c407 cfb64_keyid(int dir, unsigned char *kp, int *lenp) in cfb64_keyid() argument
409 return(fb64_keyid(dir, kp, lenp, &fb[CFB])); in cfb64_keyid()
413 ofb64_keyid(int dir, unsigned char *kp, int *lenp) in ofb64_keyid() argument
415 return(fb64_keyid(dir, kp, lenp, &fb[OFB])); in ofb64_keyid()
419 fb64_keyid(int dir, unsigned char *kp, int *lenp, struct fb *fbp) in fb64_keyid() argument
423 if (*lenp != 1 || (*kp != '\0')) { in fb64_keyid()
424 *lenp = 0; in fb64_keyid()
/freebsd/sys/netinet6/
H A Din6_cksum.c148 in6_cksumdata(void *data, int *lenp, uint8_t *residp, int rlen) in in6_cksumdata() argument
156 KASSERT(*lenp >= 0, ("%s: negative len %d", __func__, *lenp)); in in6_cksumdata()
159 len = *lenp; in in6_cksumdata()
228 *lenp = len & 1; in in6_cksumdata()
/freebsd/crypto/heimdal/appl/telnet/libtelnet/
H A Denc_des.c417 int cfb64_keyid(int dir, unsigned char *kp, int *lenp) in cfb64_keyid() argument
419 return(fb64_keyid(dir, kp, lenp, &fb[CFB])); in cfb64_keyid()
422 int ofb64_keyid(int dir, unsigned char *kp, int *lenp) in ofb64_keyid() argument
424 return(fb64_keyid(dir, kp, lenp, &fb[OFB])); in ofb64_keyid()
427 int fb64_keyid(int dir, unsigned char *kp, int *lenp, struct fb *fbp) in fb64_keyid() argument
431 if (*lenp != 1 || (*kp != '\0')) { in fb64_keyid()
432 *lenp = 0; in fb64_keyid()
/freebsd/tools/build/cross-build/
H A Dfgetwln_fallback.c48 fgetwln(FILE *stream, size_t *lenp) in fgetwln() argument
87 *lenp = wused; in fgetwln()

12345