Home
last modified time | relevance | path

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

123456

/netbsd-src/sys/external/bsd/libfdt/dist/
H A Dfdt_ro.c36 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp) in fdt_get_string() argument
81 if (lenp) in fdt_get_string()
82 *lenp = n - s; in fdt_get_string()
86 if (lenp) in fdt_get_string()
87 *lenp = err; in fdt_get_string()
346 int *lenp) in fdt_get_property_by_offset_() argument
352 if (lenp) in fdt_get_property_by_offset_()
353 *lenp = err; in fdt_get_property_by_offset_()
359 if (lenp) in fdt_get_property_by_offset_()
360 *lenp = fdt32_ld(&prop->len); in fdt_get_property_by_offset_()
[all …]
H A Dlibfdt.h337 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp);
542 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
641 int *lenp);
658 int namelen, int *lenp);
690 const char *name, int *lenp);
693 int *lenp) in fdt_get_property_w() argument
696 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
732 const char **namep, int *lenp);
748 const char *name, int namelen, int *lenp);
751 int *lenp) in fdt_getprop_namelen_w() argument
[all …]
H A Dfdt.c135 const fdt32_t *tagp, *lenp; in fdt_next_tag() local
159 lenp = fdt_offset_ptr(fdt, offset, sizeof(*lenp)); in fdt_next_tag()
160 if (!lenp) in fdt_next_tag()
164 + fdt32_to_cpu(*lenp); in fdt_next_tag()
165 if (fdt_version(fdt) < 0x10 && fdt32_to_cpu(*lenp) >= 8 && in fdt_next_tag()
166 ((offset - fdt32_to_cpu(*lenp)) % 8) != 0) in fdt_next_tag()
/netbsd-src/sys/arch/sgimips/stand/common/
H A Diris_scsictl.c52 size_t *lenp; in scsi_read_capacity() local
53 lenp = &len; in scsi_read_capacity()
57 return wd33c93_go(sc, (uint8_t *)&cdb, sizeof(cdb), buf, lenp); in scsi_read_capacity()
64 size_t *lenp; in scsi_read() local
65 lenp = &len; in scsi_read()
77 wd33c93_go(sc, (uint8_t *)&cdb, sizeof(cdb), buf, lenp); in scsi_read()
79 if (*lenp == olen) in scsi_read()
89 size_t *lenp; in scsi_write() local
90 lenp = &len; in scsi_write()
103 wd33c93_go(sc, (uint8_t *)&cdb, sizeof(cdb), buf, lenp); in scsi_write()
[all …]
H A Diris_scsi.c162 size_t *lenp) in wd33c93_go() argument
172 if ((csr = wd33c93_selectbus(sc, cbuf, clen, buf, lenp)) == 0) in wd33c93_go()
182 i = wd33c93_nextstate(sc, cbuf, clen, buf, lenp, csr, asr); in wd33c93_go()
204 if (wd33c93_poll(sc, cbuf, clen, buf, lenp)) { in wd33c93_go()
205 wd33c93_timeout(sc, cbuf, clen, buf, lenp); in wd33c93_go()
206 if (wd33c93_poll(sc, cbuf, clen, buf, lenp)) { in wd33c93_go()
207 wd33c93_timeout(sc, cbuf, clen, buf, lenp); in wd33c93_go()
222 uint8_t *buf, size_t *lenp) in wd33c93_selectbus() argument
267 wd33c93_nextstate(sc, cbuf, clen, buf, lenp, csr, asr); in wd33c93_selectbus()
362 uint8_t *buf, size_t *lenp, uint8_t csr, uint8_t asr) in wd33c93_nextstate() argument
[all …]
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dsshbuf-getput-basic.c185 sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp) in sshbuf_get_string() argument
193 if (lenp != NULL) in sshbuf_get_string()
194 *lenp = 0; in sshbuf_get_string()
206 if (lenp != NULL) in sshbuf_get_string()
207 *lenp = len; in sshbuf_get_string()
212 sshbuf_get_string_direct(struct sshbuf *buf, const u_char **valp, size_t *lenp) in sshbuf_get_string_direct() argument
220 if (lenp != NULL) in sshbuf_get_string_direct()
221 *lenp = 0; in sshbuf_get_string_direct()
226 if (lenp != NULL) in sshbuf_get_string_direct()
227 *lenp = len; in sshbuf_get_string_direct()
[all …]
H A Dssh-xmss.c200 u_char **sigp, size_t *lenp, in ssh_xmss_sign() argument
210 if (lenp != NULL) in ssh_xmss_sign()
211 *lenp = 0; in ssh_xmss_sign()
250 if (lenp != NULL) in ssh_xmss_sign()
251 *lenp = len; in ssh_xmss_sign()
263 if (lenp != NULL) in ssh_xmss_sign()
264 *lenp = 0; in ssh_xmss_sign()
/netbsd-src/external/bsd/less/dist/
H A Dcvt.c54 public void cvt_text(char *odst, char *osrc, int *chpos, int *lenp, int ops) in cvt_text() argument
62 if (lenp != NULL) in cvt_text()
63 src_end = osrc + *lenp; in cvt_text()
106 if (lenp != NULL) in cvt_text()
107 *lenp = (int) (edst - odst); in cvt_text()
/netbsd-src/lib/libc/stdio/
H A Dfgetstr.c50 __fgetstr(FILE *__restrict fp, size_t *__restrict lenp, int sep) in __fgetstr() argument
55 _DIAGASSERT(lenp != NULL); in __fgetstr()
59 *lenp = 0; in __fgetstr()
64 *lenp = n; in __fgetstr()
H A Dfgetwln.c79 fgetwln(FILE * __restrict fp, size_t *lenp) in fgetwln() argument
113 *lenp = len; in fgetwln()
118 *lenp = 0; in fgetwln()
/netbsd-src/external/gpl3/gdb/dist/readline/readline/
H A Dtilde.c266 isolate_tilde_prefix (const char *fname, int *lenp) in isolate_tilde_prefix() argument
279 if (lenp) in isolate_tilde_prefix()
280 *lenp = i; in isolate_tilde_prefix()
290 tilde_find_word (const char *fname, int flags, int *lenp)
299 if (lenp)
300 *lenp = 0;
307 if (lenp)
308 *lenp = x;
H A Dnls.c244 find_codeset (char *name, size_t *lenp) in find_codeset() argument
259 *lenp = strlen (language); in find_codeset()
280 *lenp = cp - result; in find_codeset()
284 *lenp = strlen (language); in find_codeset()
/netbsd-src/sys/lib/libsa/
H A Dbootparam.c332 uint32_t *lenp; in xdr_string_encode() local
337 lenp = (uint32_t *)*pkt; in xdr_string_encode()
338 *pkt += sizeof(*lenp); in xdr_string_encode()
339 *lenp = htonl(len); in xdr_string_encode()
352 uint32_t *lenp; in xdr_string_decode() local
358 lenp = (uint32_t *)*pkt; in xdr_string_decode()
359 *pkt += sizeof(*lenp); in xdr_string_decode()
360 slen = ntohl(*lenp); in xdr_string_decode()
/netbsd-src/external/gpl2/dtc/dist/
H A Dutil.c87 int lenp = strlen(path); in join_path() local
93 len = lenp + lenn + 2; in join_path()
94 if ((lenp > 0) && (path[lenp-1] == '/')) { in join_path()
100 memcpy(str, path, lenp); in join_path()
102 str[lenp] = '/'; in join_path()
103 lenp++; in join_path()
105 memcpy(str+lenp, name, lenn+1); in join_path()
/netbsd-src/usr.bin/grep/
H A Dfile.c151 grep_fgetln(struct file *f, size_t *lenp) in grep_fgetln()
164 *lenp = 0; in grep_fgetln()
174 *lenp = len; in grep_fgetln()
203 *lenp = len; in grep_fgetln()
207 *lenp = 0; in grep_fgetln()
149 grep_fgetln(struct file * f,size_t * lenp) grep_fgetln() argument
/netbsd-src/sys/rump/net/lib/libsockin/
H A Dsockin_user.c499 rumpcomp_sockin_accept(int s, struct sockaddr *name, int *lenp, int *s2) in rumpcomp_sockin_accept() argument
506 name = translate_sockaddr(name, *lenp); in rumpcomp_sockin_accept()
509 *s2 = accept(s, name, (socklen_t *)lenp); in rumpcomp_sockin_accept()
513 translate_sockaddr_back(name, saveptr, *lenp); in rumpcomp_sockin_accept()
533 rumpcomp_sockin_getname(int s, struct sockaddr *so, int *lenp, in rumpcomp_sockin_getname() argument
536 socklen_t slen = *lenp; in rumpcomp_sockin_getname()
541 so = translate_sockaddr(so, *lenp); in rumpcomp_sockin_getname()
549 translate_sockaddr_back(so, saveptr, *lenp); in rumpcomp_sockin_getname()
551 *lenp = slen; in rumpcomp_sockin_getname()
/netbsd-src/external/bsd/nvi/dist/common/
H A Dvi_db1.c44 db_eget(SCR *sp, db_recno_t lno, CHAR_T **pp, size_t *lenp, int *isemptyp) in db_eget() argument
57 if (!db_get(sp, lno, 0, pp, lenp)) in db_eget()
88 db_get(SCR *sp, db_recno_t lno, u_int32_t flags, CHAR_T **pp, size_t *lenp) in db_get() argument
133 if (lenp != NULL) in db_get()
134 *lenp = tp->len; in db_get()
152 if (lenp != NULL) in db_get()
153 *lenp = sp->c_len; in db_get()
171 err3: if (lenp != NULL) in db_get()
172 *lenp = 0; in db_get()
200 if (lenp != NULL) in db_get()
[all …]
H A Dmsg.c807 msg_cmsg(SCR *sp, cmsg_t which, size_t *lenp) in msg_cmsg() argument
811 return (msg_cat(sp, "268|confirm? [ynq]", lenp)); in msg_cmsg()
813 return (msg_cat(sp, "269|Press any key to continue: ", lenp)); in msg_cmsg()
817 lenp)); in msg_cmsg()
819 return (msg_cat(sp, "161|Press Enter to continue: ", lenp)); in msg_cmsg()
821 return (msg_cat(sp, "275| cont?", lenp)); in msg_cmsg()
824 "271|Press any key to continue [q to quit]: ", lenp)); in msg_cmsg()
842 msg_cat(SCR *sp, const char *str, size_t *lenp) in msg_cat() argument
873 if (lenp != NULL) in msg_cat()
874 *lenp = data.size - 1; in msg_cat()
[all …]
H A Dvi_db.c47 db_eget(SCR *sp, db_recno_t lno, CHAR_T **pp, size_t *lenp, int *isemptyp) in db_eget() argument
60 if (!db_get(sp, lno, 0, pp, lenp)) in db_eget()
91 db_get(SCR *sp, db_recno_t lno, u_int32_t flags, CHAR_T **pp, size_t *lenp) in db_get() argument
133 if (lenp != NULL) in db_get()
134 *lenp = tp->len; in db_get()
152 if (lenp != NULL) in db_get()
153 *lenp = sp->c_len; in db_get()
184 err3: if (lenp != NULL) in db_get()
185 *lenp = 0; in db_get()
212 if (lenp != NULL) in db_get()
[all …]
/netbsd-src/lib/libresolv/
H A Dns_sign.c99 u_char *lenp; in ns_sign2() local
134 lenp = cp; in ns_sign2()
249 PUTSHORT(cp - lenp - INT16SZ, lenp); in ns_sign2()
287 u_char *cp, *eob, *lenp; in ns_sign_tcp2() local
335 lenp = cp; in ns_sign_tcp2()
386 PUTSHORT(cp - lenp - INT16SZ, lenp); in ns_sign_tcp2()
/netbsd-src/external/bsd/libbind/dist/nameser/
H A Dns_sign.c97 u_char *lenp; in ns_sign2() local
132 lenp = cp; in ns_sign2()
246 PUTSHORT(cp - lenp - INT16SZ, lenp); in ns_sign2()
284 u_char *cp, *eob, *lenp; in ns_sign_tcp2() local
331 lenp = cp; in ns_sign_tcp2()
382 PUTSHORT(cp - lenp - INT16SZ, lenp); in ns_sign_tcp2()
/netbsd-src/external/bsd/openpam/dist/lib/libpam/
H A Dopenpam_readline.c61 openpam_readline(FILE *f, int *lineno, size_t *lenp) in openpam_readline() argument
104 if (lenp != NULL) in openpam_readline()
105 *lenp = len; in openpam_readline()
H A Dopenpam_readlinev.c56 openpam_readlinev(FILE *f, int *lineno, int *lenp) in openpam_readlinev() argument
104 if (lenp != NULL) in openpam_readlinev()
105 *lenp = wordvlen; in openpam_readlinev()
/netbsd-src/external/gpl3/gdb.old/dist/readline/readline/
H A Dnls.c244 find_codeset (char *name, size_t *lenp) in find_codeset() argument
259 *lenp = strlen (language); in find_codeset()
280 *lenp = cp - result; in find_codeset()
284 *lenp = strlen (language); in find_codeset()
/netbsd-src/sys/arch/aarch64/aarch64/
H A Dprocess_machdep.c68 process_read_fpregs(struct lwp *l, struct fpreg *fpregs, size_t *lenp) in process_read_fpregs() argument
71 KASSERT(*lenp <= sizeof(*fpregs)); in process_read_fpregs()
74 memcpy(fpregs, &pcb->pcb_fpregs, *lenp); in process_read_fpregs()

123456