/darwin-on-arm/xnu/bsd/crypto/cast128/ |
H A D | cast128_subkey.h | 42 #define x0x1x2x3 buf[0] 43 #define x4x5x6x7 buf[1] 44 #define x8x9xAxB buf[2] 45 #define xCxDxExF buf[3] 46 #define z0z1z2z3 buf[4] 47 #define z4z5z6z7 buf[5] 48 #define z8z9zAzB buf[6] 49 #define zCzDzEzF buf[7] 56 #define x0 byte0(buf[0]) 57 #define x1 byte1(buf[ [all...] |
/darwin-on-arm/xnu/tools/tests/libMicro/ |
H A D | times.c | 56 struct tms buf; local 59 (void) times(&buf); 60 (void) times(&buf); 61 (void) times(&buf); 62 (void) times(&buf); 63 (void) times(&buf); 64 (void) times(&buf); 65 (void) times(&buf); 66 (void) times(&buf); 67 (void) times(&buf); [all...] |
H A D | memset.c | 130 char *buf = ts->ts_buff + ts->ts_offset; local 137 (void) memset(buf, 0, opts); 138 tmp = (((unsigned long)buf + opts + 4095) & ~4095) + offset; 139 buf = (char *) tmp; 140 if (buf + opts > end) 141 buf = ts->ts_buff + offset; 144 char *buf = ts->ts_buff + ts->ts_offset; local 147 (void) memset(buf, 0, opts); 148 (void) memset(buf, 0, opts); 149 (void) memset(buf, [all...] |
/darwin-on-arm/xnu/libsyscall/mach/ |
H A D | mach_error.c | 74 char buf[1024]; local 80 _mach_snprintf(buf, sizeof(buf), "%s %s (%x)", mach_error_type(err), err_str, err); 81 err_str = buf;
|
/darwin-on-arm/xnu/libkern/zlib/ |
H A D | adler32.c | 45 extern uLong adler32_vec(uLong adler, uLong sum2, const Bytef *buf, uInt len); 52 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} 53 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); 54 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); 55 #define DO8(buf, [all...] |
H A D | crc32.c | 242 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) 246 unsigned long ZEXPORT z_crc32(crc, buf, len) 248 const unsigned char FAR *buf; 251 if (buf == Z_NULL) return 0UL; 264 return crc32_little(crc, buf, len); 266 return crc32_big(crc, buf, len); 289 local unsigned long crc32_little(crc, buf, len) 291 const unsigned char FAR *buf; 299 while (len && ((ptrdiff_t)buf & 3)) { 300 c = crc_table[0][(c ^ *buf [all...] |
H A D | zutil.c | 246 voidpf buf = opaque; /* just to make some compilers happy */ local 253 buf = farmalloc(bsize); 254 if (*(ush*)&buf != 0) return buf; 256 buf = farmalloc(bsize + 16L); 258 if (buf == NULL || next_ptr >= MAX_PTR) return NULL; 259 table[next_ptr].org_ptr = buf; 262 *((ush*)&buf+1) += ((ush)((uch*)buf-0) + 15) >> 4; 263 *(ush*)&buf [all...] |
H A D | gzio.c | 421 int ZEXPORT gzread (file, buf, len) 423 voidp buf; 427 Bytef *start = (Bytef*)buf; /* starting point for crc computation */ 435 next_out = (Byte*)buf; 436 s->stream.next_out = (Bytef*)buf; 560 read, or a newline character is read and transferred to buf, or an 563 gzgets returns buf, or Z_NULL in case of error. 567 char * ZEXPORT gzgets(file, buf, len) 569 char *buf; 572 char *b = buf; 632 char buf[Z_PRINTF_BUFSIZE]; local 671 char buf[Z_PRINTF_BUFSIZE]; local [all...] |
/darwin-on-arm/xnu/bsd/sys/ |
H A D | fsgetpath.h | 48 * ssize_t fsgetpath_np(char *restrict buf, size_t bufsize, fsid_t fsid, uint64_t objid); 50 #define fsgetpath(buf, bufsize, fsid, objid) \ 51 (ssize_t)syscall(SYS_fsgetpath, buf, (size_t)bufsize, fsid, (uint64_t)objid)
|
H A D | buf_internal.h | 66 * @(#)buf.h 8.9 (Berkeley) 3/30/95 79 #include <sys/buf.h> 82 #define NOLIST ((struct buf *)0x87654321) 98 struct buf { struct 99 LIST_ENTRY(buf) b_hash; /* Hash chain. */ 100 LIST_ENTRY(buf) b_vnbufs; /* Buffer's associated vnode. */ 101 TAILQ_ENTRY(buf) b_freelist; /* Free list position if not active. */ 120 TAILQ_ENTRY(buf) b_act; /* Device driver queue when active */ 196 * External flags are defined in buf.h and cannot overlap 227 #define B_NOBUFF 0x04 /* Do not allocate struct buf */ [all...] |
/darwin-on-arm/xnu/bsd/dev/random/YarrowCoreLib/src/ |
H A D | comp.c | 86 MMPCHECK(ctx->buf) 99 ctx->buf = mmMalloc(BUFSIZE); 100 if(ctx->buf == MM_NULL) {goto cleanup_comp_init;} 106 mmFree(ctx->buf); 116 BYTE* buf; local 121 buf = (BYTE*)mmGetPtr(ctx->buf); 126 memmove(buf,inp,blocksize); 135 memmove(buf,buf [all...] |
H A D | macOnly.h | 62 extern DWORD prng_slow_poll(BYTE* buf,UINT bufsize);
|
H A D | prng.c | 154 BYTE* buf = NULL; local 164 buf = (BYTE*)mmGetPtr(mmbuf); 178 YSHA1Final(buf,ctx); 179 prng_make_new_state(&p->outstate, buf); 349 BYTE buf[64]; local 384 prngOutput(p, buf,64); 385 YSHA1Update(&p->pool,buf,64); 386 prngOutput(p, buf,64); 387 YSHA1Update(&p->pool,buf,64); 388 prngOutput(p, buf,6 [all...] |
H A D | comp.h | 75 MMPTR buf; member in struct:__anon39
|
/darwin-on-arm/xnu/libkern/ |
H A D | mkext.c | 36 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;} 37 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); 38 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); 39 #define DO8(buf,i) DO4(buf, 43 mkext_adler32(uint8_t *buf, int32_t len) argument [all...] |
/darwin-on-arm/xnu/tools/tests/libMicro/apple/ |
H A D | lmbench_bw_unix.c | 74 void writer(int controlfd, int writefd, char* buf, void* cookie); 75 void touch(char *buf, int nbytes); 90 char *buf; /* buffer memory space */ member in struct:__anon1359 202 state->buf = valloc(XFERSIZE); 203 touch(state->buf, XFERSIZE); 221 writer(state->control[0], state->pipes[1], state->buf, state); 256 if ((n = read(state->pipes[0], state->buf, state->xfer)) <= 0) { 322 writer(int controlfd, int writefd, char* buf, void* cookie) argument 331 touch(buf, XFERSIZE); 333 if ((n = write(writefd, buf, stat 342 touch(char *buf, int nbytes) argument [all...] |
H A D | lmbench_bw_mmap_rd.c | 89 void *buf; member in struct:__anon1358 122 void *buf; /* do the I/O here */ variable 130 bread(void* buf, long nbytes) argument 136 p = (long*)buf; 137 end = (char*)buf + nbytes; 176 char buf[8192]; local 185 while ((size = read(sfd, buf, 8192)) > 0) { 186 if (write(dfd, buf, size) < size) return -1; 282 state->buf = NULL; 285 char buf[819 local [all...] |
/darwin-on-arm/xnu/bsd/netat/ |
H A D | aurp_zi.c | 357 AURPgetzi(next_entry, buf, len, dat_m, flag) 359 unsigned char *buf; 383 sub_codep = (short *)buf; 384 buf += sizeof(short); 385 tuples_cntp = (short *)buf; 386 buf += sizeof(short); 388 zname_base = buf + sizeof(short); 475 *(unsigned short *)buf = net_num; 476 buf += sizeof(short); 481 *(unsigned short *)buf 573 unsigned char *buf = gbuf_rptr(m), *zname_base; local [all...] |
/darwin-on-arm/xnu/libsyscall/wrappers/legacy/ |
H A D | recvfrom.c | 45 recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr * __restrict from, socklen_t * __restrict fromlen) argument 47 int ret = __recvfrom_nocancel(s, buf, len, flags, from, fromlen);
|
/darwin-on-arm/xnu/SETUP/config/ |
H A D | mkswapconf.c | 204 char buf[80]; local 214 (void) sprintf(buf, "%s%d%c", dp->dev_name, 216 return (ns(buf)); 222 char buf[BUFSIZ]; local 228 (void) sprintf(buf, "%s/devices.%s", config_directory, machinename); 229 fp = fopenp(VPATH, buf, line, "r"); 231 fprintf(stderr, "config: can't open %s\n", buf); 237 if (sscanf(line, "%s\t%d\n", buf, &maj) != 2) 240 (*dp)->dev_name = ns(buf);
|
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | xdr_subs.h | 157 xb_init_buffer(struct xdrbuf *xbp, char *buf, size_t buflen) argument 160 xbp->xb_u.xb_buffer.xbb_base = buf; 164 xbp->xb_ptr = buf; 166 if (buf) /* when using an existing buffer, xb code should skip cleanup */ 271 void *buf = NULL; local 274 MALLOC(buf, void *, size, M_TEMP, M_WAITOK); 276 buf = malloc(size); 278 return (buf); 284 xb_free(void *buf) argument 287 FREE(buf, M_TEM 330 xb_add_bytes(struct xdrbuf *xbp, const char *buf, uint32_t count, int nopad) argument 373 xb_get_bytes(struct xdrbuf *xbp, char *buf, uint32_t count, int nopad) argument [all...] |
/darwin-on-arm/xnu/osfmk/kern/ |
H A D | machine.h | 104 char *buf, 112 natural_t *buf,
|
/darwin-on-arm/xnu/iokit/Kernel/ |
H A D | IODMAController.cpp | 38 char buf[CREATE_BUF_LEN]; local 40 snprintf(buf, CREATE_BUF_LEN, "IODMAController%08X", (uint32_t)phandle); 42 return OSSymbol::withCString(buf);
|
/darwin-on-arm/xnu/libkern/kxld/ |
H A D | kxld_srcversion.c | 69 kxld_srcversion_export_macho(const KXLDsrcversion *srcversion, u_char *buf, argument 76 check(buf); 81 srcversionhdr = (struct source_version_command *) ((void *) (buf + *header_offset));
|
H A D | kxld_uuid.c | 69 kxld_uuid_export_macho(const KXLDuuid *uuid, u_char *buf, argument 76 check(buf); 81 uuidhdr = (struct uuid_command *) ((void *) (buf + *header_offset));
|