Searched refs:mode (Results 1 - 25 of 112) sorted by relevance

12345

/xnu-2422.115.4/EXTERNAL_HEADERS/corecrypto/
H A Dccmode.h16 /* ECB mode. */
23 CC_INLINE size_t ccecb_context_size(const struct ccmode_ecb *mode) argument
25 return mode->size;
28 CC_INLINE unsigned long ccecb_block_size(const struct ccmode_ecb *mode) argument
30 return mode->block_size;
33 CC_INLINE void ccecb_init(const struct ccmode_ecb *mode, ccecb_ctx *ctx, argument
36 mode->init(mode, ctx, key_len, key);
39 CC_INLINE void ccecb_update(const struct ccmode_ecb *mode, const ccecb_ctx *ctx, argument
42 unsigned long numBlocks = (in_len / mode
46 ccecb_one_shot(const struct ccmode_ecb *mode, unsigned long key_len, const void *key, unsigned long in_len, const void *in, void *out) argument
83 cccbc_context_size(const struct ccmode_cbc *mode) argument
88 cccbc_block_size(const struct ccmode_cbc *mode) argument
93 cccbc_init(const struct ccmode_cbc *mode, cccbc_ctx *ctx, unsigned long key_len, const void *key) argument
99 cccbc_set_iv(const struct ccmode_cbc *mode, cccbc_iv *iv_ctx, const void *iv) argument
107 cccbc_update(const struct ccmode_cbc *mode, cccbc_ctx *ctx, cccbc_iv *iv, unsigned long nblocks, const void *in, void *out) argument
113 cccbc_one_shot(const struct ccmode_cbc *mode, unsigned long key_len, const void *key, const void *iv, unsigned long nblocks, const void *in, void *out) argument
135 cccfb_context_size(const struct ccmode_cfb *mode) argument
140 cccfb_block_size(const struct ccmode_cfb *mode) argument
145 cccfb_init(const struct ccmode_cfb *mode, cccfb_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument
151 cccfb_update(const struct ccmode_cfb *mode, cccfb_ctx *ctx, unsigned long in_len, const void *in, void *out) argument
157 cccfb_one_shot(const struct ccmode_cfb *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument
174 cccfb8_context_size(const struct ccmode_cfb8 *mode) argument
179 cccfb8_block_size(const struct ccmode_cfb8 *mode) argument
184 cccfb8_init(const struct ccmode_cfb8 *mode, cccfb8_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument
190 cccfb8_update(const struct ccmode_cfb8 *mode, cccfb8_ctx *ctx, unsigned long in_len, const void *in, void *out) argument
196 cccfb8_one_shot(const struct ccmode_cfb8 *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument
217 ccctr_context_size(const struct ccmode_ctr *mode) argument
222 ccctr_block_size(const struct ccmode_ctr *mode) argument
227 ccctr_init(const struct ccmode_ctr *mode, ccctr_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument
233 ccctr_update(const struct ccmode_ctr *mode, ccctr_ctx *ctx, unsigned long in_len, const void *in, void *out) argument
240 ccctr_one_shot(const struct ccmode_ctr *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument
259 ccofb_context_size(const struct ccmode_ofb *mode) argument
264 ccofb_block_size(const struct ccmode_ofb *mode) argument
269 ccofb_init(const struct ccmode_ofb *mode, ccofb_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument
275 ccofb_update(const struct ccmode_ofb *mode, ccofb_ctx *ctx, unsigned long in_len, const void *in, void *out) argument
281 ccofb_one_shot(const struct ccmode_ofb *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument
318 ccxts_context_size(const struct ccmode_xts *mode) argument
323 ccxts_block_size(const struct ccmode_xts *mode) argument
328 ccxts_init(const struct ccmode_xts *mode, ccxts_ctx *ctx, unsigned long key_len, const void *key, const void *tweak_key) argument
334 ccxts_set_tweak(const struct ccmode_xts *mode, ccxts_ctx *ctx, ccxts_tweak *tweak, const void *iv) argument
339 ccxts_update(const struct ccmode_xts *mode, ccxts_ctx *ctx, ccxts_tweak *tweak, unsigned long in_len, const void *in, void *out) argument
345 ccxts_one_shot(const struct ccmode_xts *mode, unsigned long key_len, const void *key, const void *tweak_key, const void* iv, unsigned long in_len, const void *in, void *out) argument
366 ccgcm_context_size(const struct ccmode_gcm *mode) argument
371 ccgcm_block_size(const struct ccmode_gcm *mode) argument
376 ccgcm_init(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, unsigned long key_len, const void *key) argument
382 ccgcm_set_iv(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, size_t iv_size, const void *iv) argument
387 ccgcm_gmac(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, unsigned long nbytes, const void *in) argument
393 ccgcm_update(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, unsigned long nbytes, const void *in, void *out) argument
399 ccgcm_finalize(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, size_t tag_size, void *tag) argument
405 ccgcm_reset(const struct ccmode_gcm *mode, ccgcm_ctx *ctx) argument
411 ccgcm_one_shot(const struct ccmode_gcm *mode, unsigned long key_len, const void *key, unsigned long iv_len, const void *iv, unsigned long nbytes, const void *in, void *out, unsigned long adata_len, const void* adata, size_t tag_len, void *tag) argument
435 ccomac_context_size(const struct ccmode_omac *mode) argument
440 ccomac_block_size(const struct ccmode_omac *mode) argument
445 ccomac_init(const struct ccmode_omac *mode, ccomac_ctx *ctx, unsigned long tweak_len, unsigned long key_len, const void *key) argument
451 ccomac_update(const struct ccmode_omac *mode, ccomac_ctx *ctx, unsigned long in_len, const void *tweak, const void *in, void *out) argument
457 ccomac_one_shot(const struct ccmode_omac *mode, unsigned long tweak_len, unsigned long key_len, const void *key, const void *tweak, unsigned long in_len, const void *in, void *out) argument
[all...]
/xnu-2422.115.4/libsyscall/wrappers/unix03/
H A Dchmod.c32 extern int __chmod(const char *path, mode_t mode);
41 chmod(const char *path, mode_t mode) argument
43 int res = __chmod(path, mode);
45 if (res >= 0 || errno != EPERM || (mode & (S_ISUID | S_ISGID)) == 0)
47 if (mode & S_ISGID) {
48 res = __chmod(path, mode ^ S_ISGID);
52 if (mode & S_ISUID) {
53 res = __chmod(path, mode ^ S_ISUID);
57 if ((mode & (S_ISUID | S_ISGID)) == (S_ISUID | S_ISGID))
58 res = __chmod(path, mode
[all...]
H A Dfchmod.c32 extern int __fchmod(int fd, mode_t mode);
41 fchmod(int fd, mode_t mode) argument
43 int res = __fchmod(fd, mode);
45 if (res >= 0 || errno != EPERM || (mode & (S_ISUID | S_ISGID)) == 0)
47 if (mode & S_ISGID) {
48 res = __fchmod(fd, mode ^ S_ISGID);
52 if (mode & S_ISUID) {
53 res = __fchmod(fd, mode ^ S_ISUID);
57 if ((mode & (S_ISUID | S_ISGID)) == (S_ISUID | S_ISGID))
58 res = __fchmod(fd, mode
[all...]
/xnu-2422.115.4/libsyscall/wrappers/legacy/
H A Dopen.c33 int __open_nocancel(const char *path, int flags, mode_t mode);
42 mode_t mode = 0; local
48 mode = va_arg(ap, int);
51 return(__open_nocancel(path, flags | O_NOCTTY, mode));
/xnu-2422.115.4/libsyscall/wrappers/
H A Dopen_dprotected_np.c28 int __open_dprotected_np(const char* path, int flags, int class, int dpflags, int mode);
31 int mode = 0; local
36 mode = va_arg(ap, int);
39 return (__open_dprotected_np(path, flags, class, dpflags, mode));
H A Dguarded_open_np.c30 const guardid_t *guard, u_int guardflags, int flags, int mode);
36 int mode = 0; local
41 mode = va_arg(ap, int);
44 return (__guarded_open_np(path, guard, guardflags, flags, mode));
/xnu-2422.115.4/bsd/netinet/
H A Dip_ecn.c84 ip_ecn_ingress(mode, outer, inner)
85 int mode;
93 switch (mode) {
109 ip_ecn_egress(mode, outer, inner)
110 int mode;
117 switch (mode) {
130 ip6_ecn_ingress(mode, outer, inner)
131 int mode;
141 ip_ecn_ingress(mode, &outer8, &inner8);
147 ip6_ecn_egress(mode, oute
[all...]
/xnu-2422.115.4/bsd/netinet6/
H A Dipcomp_core.c168 deflate_common(m, md, lenp, mode)
172 int mode; /* 0: compress 1: decompress */
224 zs = mode ? &inflate_stream : &deflate_stream;
266 zerror = mode ? inflate(zs, Z_NO_FLUSH)
273 if (mode && !p && zs->avail_out != 0)
281 mode ? "de" : "", mode ? "in" : "de",
286 mode ? "de" : "", mode ? "in" : "de",
289 mode
[all...]
/xnu-2422.115.4/SETUP/config/
H A Dopenp.c27 * i = openp (path,file,complete,flags,mode)
29 * int i,flags,mode;
35 * with the specified "flags" and "mode", then the full filename
39 * of open() and type instead of flags/mode; it returns 0 if no
45 * changed names of flags, mode, and type parameters to reflect
58 int openp(const char *fpath, char *file, char *complete, int flags, int mode);
79 openp(const char *fpath, char *file, char *complete, int flags, int mode) argument
82 mod = mode;
/xnu-2422.115.4/osfmk/i386/
H A Dmp_events.h72 extern void i386_signal_cpu(int cpu, mp_event_t event, mp_sync_t mode);
73 extern void i386_signal_cpus(mp_event_t event, mp_sync_t mode);
/xnu-2422.115.4/tools/tests/superpages/
H A Dmeasure_tlbs.c22 testt(boolean_t superpages, int mode, int write, int kb) { argument
44 switch (mode) {
111 int mode; local
116 for (mode=0; mode<=2; mode++) {
118 time1 = testt(TRUE, mode, 0, kb); // read super
119 time2 = testt(FALSE, mode, 0, kb); // read base
120 time3 = testt(TRUE, mode, 1, kb); // write super
121 time4 = testt(FALSE, mode,
[all...]
/xnu-2422.115.4/libkern/zlib/
H A Dinflate.c140 state->mode = HEAD;
611 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
617 switch (state->mode) {
620 state->mode = TYPEDO;
629 state->mode = FLAGS;
641 state->mode = BAD;
646 state->mode = BAD;
653 state->mode = BAD;
659 state->mode
[all...]
H A Dinfback.c299 state->mode = TYPE;
311 switch (state->mode) {
316 state->mode = DONE;
326 state->mode = STORED;
332 state->mode = LEN; /* decode codes */
337 state->mode = TABLE;
341 state->mode = BAD;
352 state->mode = BAD;
375 state->mode = TYPE;
390 state->mode
[all...]
H A Dgzio.c94 char mode; /* 'w' or 'r' */ member in struct:gz_stream
103 local gzFile gz_open OF((const char *path, const char *mode, int fd));
112 Opens a gzip (.gz) file for reading or writing. The mode parameter
120 local gzFile gz_open (path, mode, fd)
122 const char *mode;
128 char *p = (char*)mode;
130 char fmode[80]; /* copy of mode, without the compression level */
133 if (!path || !mode) return Z_NULL;
160 s->mode = '\0';
162 if (*p == 'r') s->mode
[all...]
H A Dzutil.h149 # define F_OPEN(name, mode) \
150 fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
170 # define fdopen(fd,mode) NULL /* No fdopen() */
190 # define fdopen(fd,mode) NULL /* No fdopen() */
197 # define fdopen(fd,mode) NULL /* No fdopen() */
215 # define F_OPEN(name, mode) fopen((name), (mode))
/xnu-2422.115.4/bsd/sys/
H A Ddirent.h140 #define IFTODT(mode) (((mode) & 0170000) >> 12)
H A Dipc.h113 mode_t mode; /* [XSI] Read/write permission */ member in struct:ipc_perm
133 mode_t mode; /* Read/Write permission */ member in struct:__ipc_perm_old
161 /* common mode bits */
/xnu-2422.115.4/osfmk/kperf/
H A Dthreadinfo.c57 const int mode = chudxnu_thread_get_scheduler_state(thread); local
60 if( 0 == mode)
68 return ((mode & 0xffff) | ((~mode & 0xffff) << 16));
105 /* this is valid from PET mode... */
187 * Specifies the thread mode in which to record samples.
192 // for Time Profile (All Thread States), use kAppleProfileTriggerClientThreadModeAny (or just don't specify any thread mode filters).
219 const int mode = chudxnu_thread_get_scheduler_state(thread);
222 if (0 == mode) {
226 return (AppleProfileTriggerClientThreadRunMode)((mode
[all...]
/xnu-2422.115.4/SETUP/installfile/
H A Dinstallfile.c45 mode_t mode; local
64 errx(EX_USAGE, "Unrecognized mode %s", optarg);
66 mode = getmode(mset, 0);
112 ret = fchmod(dstfd, mode);
114 err(EX_NOINPUT, "fchmod(%s, %ho)", dsttmpname, mode);
134 fprintf(stderr, "Usage: %s [-c] [-S] [-m <mode>] <src> <dst>\n",
/xnu-2422.115.4/bsd/dev/random/
H A Drandomdev.h52 int random_close(dev_t dev, int flags, int mode, struct proc *pp);
/xnu-2422.115.4/bsd/dev/i386/
H A Dinstr_size.c90 uint_t mode = SIZE32; local
92 mode = (model == DATAMODEL_LP64) ? SIZE64 : SIZE32;
98 if (dtrace_disx86(&x, mode) != 0)
H A Ddis_tables.c92 uint_t it_always64:1; /* 64 bit when in 64 bit mode */
255 * "y" - means the operand size is always 64 bits in 64 bit mode
335 * this decodes the r_m field for mode's 0, 1, 2 in 16 bit mode
348 * This decodes 32 bit addressing mode r_m field for modes 0, 1, 2
361 * This decodes 64 bit addressing mode r_m field for modes 0, 1, 2
450 * "decode table" for 64 bit mode MOVSXD instruction (opcode 0x63)
1449 * Even in 64 bit mode, usually only 4 byte immediate operands are supported.
1463 #define REG_ONLY 3 /* mode to indicate a register operand (not memory) */
1526 * mode, registe
1529 dtrace_get_modrm(dis86_t *x, uint_t *mode, uint_t *reg, uint_t *r_m) argument
1544 dtrace_rex_adjust(uint_t rex_prefix, uint_t mode, uint_t *reg, uint_t *r_m) argument
1668 dtrace_get_operand(dis86_t *x, uint_t mode, uint_t r_m, int wbit, int opindex) argument
1950 uint_t mode = 0; /* mode value from ModRM byte */ local
[all...]
/xnu-2422.115.4/bsd/kern/
H A Dsysv_ipc.c63 #include <sys/stat.h> /* mode constants */
76 * perm->mode mode of the object
77 * mode mode bits we want to test
106 mode_t mode_owner = (perm->mode & S_IRWXU);
107 mode_t mode_group = (perm->mode & S_IRWXG) << 3;
108 mode_t mode_world = (perm->mode & S_IRWXO) << 6;
H A Dsysv_shm.c122 static int shmget_allocate_segment(struct proc *p, struct shmget_args *uap, int mode, int * retval);
123 static int shmget_existing(struct shmget_args *uap, int mode, int segnum, int * retval);
237 if ((shmsegs[i].u.shm_perm.mode & SHMSEG_ALLOCATED) &&
253 if ((shmseg->u.shm_perm.mode & (SHMSEG_ALLOCATED | SHMSEG_REMOVED))
277 shmseg->u.shm_perm.mode = SHMSEG_FREE;
303 (shmseg->u.shm_perm.mode & SHMSEG_REMOVED)) {
629 shmseg->u.shm_perm.mode =
630 (shmseg->u.shm_perm.mode & ~ACCESSPERMS) |
631 (inbuf.shm_perm.mode & ACCESSPERMS);
641 shmseg->u.shm_perm.mode |
663 shmget_existing(struct shmget_args *uap, int mode, int segnum, int *retval) argument
710 shmget_allocate_segment(struct proc *p, struct shmget_args *uap, int mode, int *retval) argument
839 int segnum, mode, error; local
[all...]
H A Dbsd_stubs.c352 devsw_lock(dev_t dev, int mode) argument
358 assert(mode == S_IFCHR || mode == S_IFBLK);
363 newlock->dl_mode = mode;
368 if (tmplock->dl_dev == dev && tmplock->dl_mode == mode) {
380 devsw_unlock(dev_t dev, int mode) argument
389 if (tmplock->dl_dev == dev && tmplock->dl_mode == mode) {

Completed in 115 milliseconds

12345