Searched refs:buflen (Results 1 - 25 of 28) sorted by relevance

12

/darwin-on-arm/xnu/bsd/crypto/rc4/
H A Drc4.h51 const u_char *inbuf, u_char *outbuf, int buflen);
H A Drc4.c84 const u_char *inbuf, u_char *outbuf, int buflen)
89 for (i = 0; i < buflen; i++) {
83 rc4_crypt(struct rc4_state *const state, const u_char *inbuf, u_char *outbuf, int buflen) argument
/darwin-on-arm/xnu/bsd/net/
H A Dbpf_filter.c208 * buflen is the amount of data present
211 bpf_filter(const struct bpf_insn *pc, u_char *p, u_int wirelen, u_int buflen) argument
244 if (k > buflen || sizeof(int32_t) > buflen - k) {
248 if (buflen != 0)
268 if (k > buflen || sizeof(int16_t) > buflen - k) {
272 if (buflen != 0)
285 if (k >= buflen) {
289 if (buflen !
[all...]
H A Dndrv.c602 sprint_d(u_int n, char *buf, int buflen) argument
607 do { buflen--;
611 } while (n != 0 && buflen > 0);
612 strncpy(buf, cp, IFNAMSIZ-buflen);
H A Dif_bridge.c2158 unsigned int count, buflen, len; \
2166 buflen = sizeof (breq) * count; \
2168 bifc->ifbic_len = buflen; \
2172 outbuf = _MALLOC(buflen, M_TEMP, M_WAITOK | M_ZERO); \
2177 len = min(bifc->ifbic_len, buflen); \
2243 unsigned int count, buflen, len; \
2252 buflen = sizeof (bareq) * count; \
2255 outbuf = _MALLOC(buflen, M_TEMP, M_WAITOK | M_ZERO); \
2260 len = min(bac->ifbac_len, buflen); \
2687 unsigned int count, buflen, le
[all...]
/darwin-on-arm/xnu/bsd/sys/
H A Dutfconv.h103 * and produces the UTF-8 output into a buffer of buflen bytes pointed
129 size_t * utf8len, size_t buflen, u_int16_t altslash, int flags);
136 * and produces the Unicode output into a buffer of buflen bytes pointed
164 size_t *ucslen, size_t buflen, u_int16_t altslash, int flags);
171 * and produces normalized UTF-8 output into a buffer of buflen bytes
193 size_t *outlen, size_t buflen, int flags);
H A Dvnode_internal.h381 int build_path(vnode_t first_vp, char *buff, int buflen, int *outlen, int flags, vfs_context_t ctx);
H A Dsocketvar.h622 extern int sockargs(struct mbuf **mp, user_addr_t data, int buflen, int type);
/darwin-on-arm/xnu/security/
H A Dmac_file.c178 int buflen)
182 MAC_CHECK(file_check_set, cred, fg, buf, buflen);
177 mac_file_check_set(struct ucred *cred, struct fileglob *fg, char *buf, int buflen) argument
/darwin-on-arm/xnu/bsd/nfs/
H A Dxdr_subs.h157 xb_init_buffer(struct xdrbuf *xbp, char *buf, size_t buflen) argument
161 xbp->xb_u.xb_buffer.xbb_size = buflen;
162 xbp->xb_u.xb_buffer.xbb_len = buflen;
165 xbp->xb_left = buflen;
H A Dnfs_gss.c2834 nfs_gss_mach_alloc_buffer(u_char *buf, uint32_t buflen, vm_map_copy_t *addr) argument
2841 if (buf == NULL || buflen == 0)
2844 tbuflen = round_page(buflen);
2859 bcopy(buf, (void *) kmem_buf, buflen);
2861 // bzero(kmem_buf + buflen, tbuflen - buflen);
2871 (vm_map_size_t) buflen, TRUE, addr);
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_utfconv.c255 * ENAMETOOLONG: Name didn't fit; only buflen bytes were encoded
261 size_t * utf8len, size_t buflen, u_int16_t altslash, int flags)
277 bufend = bufstart + buflen;
412 size_t *ucslen, size_t buflen, u_int16_t altslash, int flags)
431 bufend = (u_int16_t *)((u_int8_t *)ucsp + buflen);
712 * and produces normalized UTF-8 output into a buffer of buflen bytes
733 size_t *outlen, size_t buflen, int flags)
755 outbufend = outbufstart + buflen;
815 &uft8_bytes, buflen, 0, UTF_NO_NULL_TERM);
260 utf8_encodestr(const u_int16_t * ucsp, size_t ucslen, u_int8_t * utf8p, size_t * utf8len, size_t buflen, u_int16_t altslash, int flags) argument
411 utf8_decodestr(const u_int8_t* utf8p, size_t utf8len, u_int16_t* ucsp, size_t *ucslen, size_t buflen, u_int16_t altslash, int flags) argument
732 utf8_normalizestr(const u_int8_t* instr, size_t inlen, u_int8_t* outstr, size_t *outlen, size_t buflen, int flags) argument
H A Dvfs_fslog.c296 * buflen - size of buffer that contains the string
298 static int escape_str(char *str, int len, int buflen) argument
314 if ((buflen - len) < count) {
H A Dvfs_cache.c203 build_path(vnode_t first_vp, char *buff, int buflen, int *outlen, int flags, vfs_context_t ctx) argument
229 end = &buff[buflen-1];
494 memmove(buff, end, &buff[buflen] - end);
499 *outlen = &buff[buflen] - end;
/darwin-on-arm/xnu/osfmk/kern/
H A Ddebug.h164 int packA(char *inbuf, uint32_t length, uint32_t buflen);
H A Ddebug.c403 * Assumes "buflen" is a multiple of 8.
406 int packA(char *inbuf, uint32_t length, uint32_t buflen) argument
411 length = MIN(((length + 7) & ~7), buflen);
/darwin-on-arm/xnu/bsd/dev/i386/
H A Ddis_tables.c3487 * Print a numeric immediate into end of buf, maximum length buflen.
3505 size_t buflen, int disp, int try_neg)
3516 dis->d86_sprintf_func(buf + curlen, buflen - curlen,
3521 dis->d86_sprintf_func(buf + curlen, buflen - curlen,
3524 dis->d86_sprintf_func(buf + curlen, buflen - curlen,
3547 size_t buflen)
3560 dis->d86_sprintf_func(buf, buflen, "%-6s ", dis->d86_mnem);
3572 (void) strlcat(buf, ",", buflen);
3574 (void) strlcat(buf, op->d86_prefix, buflen);
3606 (void) strlcat(buf, op->d86_opnd, buflen);
[all...]
/darwin-on-arm/xnu/bsd/bsm/
H A Daudit_record.h193 int au_close_buffer(int d, short event, u_char *buffer, size_t *buflen);
194 int au_close_token(token_t *tok, u_char *buffer, size_t *buflen);
/darwin-on-arm/xnu/bsd/netat/
H A Dsys_dep.c221 _ATPgetreq(uap->fd, uap->buf, uap->buflen,
H A Datp_write.c1740 _ATPgetreq(fd, buf, buflen, err, proc)
1743 int buflen;
1765 if (buflen < DDP_X_HDR_SIZE + ATP_HDR_SIZE) {
1793 if ((len = gbuf_len(m)) > buflen)
1794 len = buflen;
1797 if ((buflen -= len) == 0)
H A Dddp.save204 int ATPgetreq(fd, buf, buflen) /* AIX version */
207 int buflen;
212 rc = (*sys_ATPgetreq)(fd, buf, buflen, &err, 0);
/darwin-on-arm/xnu/bsd/kern/
H A Duipc_syscalls.c1210 int buflen = m->m_len; local
1212 while (buflen > 0 && len > 0) {
1256 if (cp_size > buflen) {
1257 panic("cp_size > buflen, something wrong with alignment!");
1277 buflen -= cp_size;
1841 sockargs(struct mbuf **mp, user_addr_t data, int buflen, int type) argument
1847 size_t alloc_buflen = (size_t)buflen;
1854 alloc_buflen = ((buflen - sizeof(struct cmsghdr))*2) + sizeof(struct cmsghdr);
1872 /* K64: We still copyin the original buflen because it gets expanded later
1875 m->m_len = buflen;
[all...]
H A Dkern_sysctl.c1275 int buflen; member in struct:sysdoproc_args
1293 if (args->buflen >= args->sizeof_kproc) {
1312 args->buflen -= args->sizeof_kproc;
1329 int buflen = where != USER_ADDR_NULL ? req->oldlen : 0; variable
1389 args.buflen = buflen;
1851 int buflen = where != USER_ADDR_NULL ? *sizep : 0; local
1871 buflen -= sizeof(int); /* reserve first word to return argc */
1873 /* we only care about buflen when where (oldp from sysctl) is not NULL. */
1877 if (where != USER_ADDR_NULL && (buflen <
[all...]
/darwin-on-arm/xnu/EXTERNAL_HEADERS/corecrypto/
H A Dccmode_factory.h344 uint32_t buflen; /* length of data in buf */ member in struct:_ccmode_gcm_key
/darwin-on-arm/xnu/bsd/netinet/
H A Din_arp.c782 sdl_addr_to_hex(const struct sockaddr_dl *sdl, char * orig_buf, int buflen) argument
787 int maxbytes = buflen / 3;

Completed in 248 milliseconds

12