Searched refs:ctx (Results 1 - 25 of 121) sorted by relevance

12345

/xnu-2422.115.4/libkern/crypto/
H A Dcorecrypto_sha2.c34 void SHA256_Init(SHA256_CTX *ctx) argument
43 g_crypto_funcs->ccdigest_init_fn(di, ctx->ctx);
46 void SHA256_Update(SHA256_CTX *ctx, const void *data, size_t len) argument
51 g_crypto_funcs->ccdigest_update_fn(di, ctx->ctx, len, data);
54 void SHA256_Final(void *digest, SHA256_CTX *ctx) argument
59 ccdigest_final(di, ctx->ctx, digest);
62 void SHA384_Init(SHA384_CTX *ctx) argument
74 SHA384_Update(SHA384_CTX *ctx, const void *data, size_t len) argument
83 SHA384_Final(void *digest, SHA384_CTX *ctx) argument
91 SHA512_Init(SHA512_CTX *ctx) argument
103 SHA512_Update(SHA512_CTX *ctx, const void *data, size_t len) argument
111 SHA512_Final(void *digest, SHA512_CTX *ctx) argument
[all...]
H A Dcorecrypto_md5.c7 static uint64_t getCount(MD5_CTX *ctx) argument
9 return ( (((uint64_t)ctx->count[0])<<32) | (ctx->count[1]) );
12 static void setCount(MD5_CTX *ctx, uint64_t count) argument
14 ctx->count[0]=(uint32_t)(count>>32);
15 ctx->count[1]=(uint32_t)count;
18 /* Copy a ccdigest ctx into a legacy MD5 context */
26 /* Copy a legacy MD5 context into a ccdigest ctx */
37 void MD5Init(MD5_CTX *ctx) argument
44 DiToMD5(di, di_ctx, ctx);
47 MD5Update(MD5_CTX *ctx, const void *data, unsigned int len) argument
57 MD5Final(unsigned char digest[MD5_DIGEST_LENGTH], MD5_CTX *ctx) argument
[all...]
H A Dcorecrypto_sha1.c8 static uint64_t getCount(SHA1_CTX *ctx) argument
10 return ctx->c.b64[0];
13 static void setCount(SHA1_CTX *ctx, uint64_t count) argument
15 ctx->c.b64[0]=count;
18 /* Copy a ccdigest ctx into a legacy SHA1 context */
26 /* Copy a legacy SHA1 context into a ccdigest ctx */
37 void SHA1Init(SHA1_CTX *ctx) argument
44 DiToSHA1(di, di_ctx, ctx);
47 void SHA1Update(SHA1_CTX *ctx, const void *data, size_t len) argument
52 SHA1ToDi(di, ctx, di_ct
57 SHA1Final(void *digest, SHA1_CTX *ctx) argument
67 SHA1UpdateUsePhysicalAddress(SHA1_CTX *ctx, const void *data, size_t len) argument
[all...]
/xnu-2422.115.4/libkern/libkern/crypto/
H A Dsha2.h50 ccdigest_ctx_decl(CCSHA256_STATE_SIZE, CCSHA256_BLOCK_SIZE, ctx);
54 ccdigest_ctx_decl(CCSHA512_STATE_SIZE, CCSHA512_BLOCK_SIZE, ctx);
61 void SHA256_Init(SHA256_CTX *ctx);
62 void SHA256_Update(SHA256_CTX *ctx, const void *data, size_t len);
63 void SHA256_Final(void *digest, SHA256_CTX *ctx);
65 void SHA384_Init(SHA384_CTX *ctx);
66 void SHA384_Update(SHA384_CTX *ctx, const void *data, size_t len);
67 void SHA384_Final(void *digest, SHA384_CTX *ctx);
69 void SHA512_Init(SHA512_CTX *ctx);
70 void SHA512_Update(SHA512_CTX *ctx, cons
[all...]
H A Dregister_crypto.h44 typedef void (*ccdigest_init_fn_t)(const struct ccdigest_info *di, ccdigest_ctx_t ctx);
45 typedef void (*ccdigest_update_fn_t)(const struct ccdigest_info *di, ccdigest_ctx_t ctx,
47 typedef void (*ccdigest_final_fn_t)(const struct ccdigest_info *di, ccdigest_ctx_t ctx,
53 typedef void (*cchmac_init_fn_t)(const struct ccdigest_info *di, cchmac_ctx_t ctx,
55 typedef void (*cchmac_update_fn_t)(const struct ccdigest_info *di, cchmac_ctx_t ctx,
57 typedef void (*cchmac_final_fn_t)(const struct ccdigest_info *di, cchmac_ctx_t ctx,
76 typedef void (*ccpad_xts_decrypt_fn_t)(const struct ccmode_xts *xts, ccxts_ctx *ctx,
79 typedef void (*ccpad_xts_encrypt_fn_t)(const struct ccmode_xts *xts, ccxts_ctx *ctx,
/xnu-2422.115.4/bsd/dev/random/YarrowCoreLib/src/
H A Dcomp.c41 comp_error_status comp_init(__unused COMP_CTX* ctx) argument
47 comp_error_status comp_add_data( __unused COMP_CTX* ctx, argument
54 comp_error_status comp_get_ratio( __unused COMP_CTX* ctx,float* out ) argument
60 comp_error_status comp_end( __unused COMP_CTX* ctx )
84 #define CTXCHECK(ctx) \
85 PCHECK(ctx) \
86 MMPCHECK(ctx->buf)
97 comp_error_status comp_init(COMP_CTX* ctx) argument
99 ctx->buf = mmMalloc(BUFSIZE);
100 if(ctx
112 comp_add_data(COMP_CTX* ctx,Bytef* inp,uInt inplen) argument
145 comp_get_ratio(COMP_CTX* ctx,float* out) argument
178 comp_end(COMP_CTX* ctx) argument
[all...]
H A Dcomp.h88 comp_error_status comp_init(COMP_CTX* ctx);
89 comp_error_status comp_add_data(COMP_CTX* ctx,Bytef* inp,uInt inplen);
90 comp_error_status comp_end(COMP_CTX* ctx);
91 comp_error_status comp_get_ratio(COMP_CTX* ctx,float* out);
H A Dprng.c107 prng_do_SHA1(GEN_CTX *ctx) argument
112 YSHA1Update(&sha,ctx->IV,20);
113 YSHA1Update(&sha,ctx->out,20);
114 YSHA1Final(ctx->out,&sha);
115 ctx->index = 0;
126 prng_make_new_state(GEN_CTX *ctx,BYTE *newState) argument
130 memcpy(ctx->IV,newState,20);
132 YSHA1Update(&sha,ctx->IV,20);
133 YSHA1Final(ctx->out,&sha);
134 ctx
150 YSHA1_CTX* ctx = NULL; local
312 GEN_CTX *ctx = &p->outstate; local
[all...]
/xnu-2422.115.4/EXTERNAL_HEADERS/corecrypto/
H A Dccpad.h16 void ccpad_cts_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx,
20 void ccpad_cts_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx,
24 void ccpad_cts1_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx,
28 void ccpad_cts1_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx,
31 void ccpad_cts2_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx,
35 void ccpad_cts2_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx,
38 void ccpad_cts3_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx,
42 void ccpad_cts3_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx,
49 unsigned long ccpad_pkcs7_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx,
54 void ccpad_pkcs7_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx,
[all...]
H A Dccrng.h24 #define ccrng_generate(ctx, outlen, out) ((ctx)->generate((ctx), (outlen), (out)))
H A Dccmode_impl.h23 void (*init)(const struct ccmode_ecb *ecb, ccecb_ctx *ctx,
25 void (*ecb)(const ccecb_ctx *ctx, unsigned long nblocks, const void *in,
36 void (*init)(const struct ccmode_cbc *cbc, cccbc_ctx *ctx,
39 void (*cbc)(const cccbc_ctx *ctx, cccbc_iv *iv, unsigned long nblocks,
50 void (*init)(const struct ccmode_cfb *cfb, cccfb_ctx *ctx,
53 void (*cfb)(cccfb_ctx *ctx, unsigned long nblocks,
65 void (*init)(const struct ccmode_cfb8 *cfb8, cccfb8_ctx *ctx,
68 void (*cfb8)(cccfb8_ctx *ctx, unsigned long nbytes,
80 void (*init)(const struct ccmode_ctr *ctr, ccctr_ctx *ctx,
83 void (*ctr)(ccctr_ctx *ctx, unsigne
[all...]
H A Dccmode.h33 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
43 mode->ecb(ctx, numBlocks, in, out);
51 ccecb_ctx_decl(mode->size, ctx);
52 mode->init(mode, ctx, key_len, key);
53 mode->ecb(ctx, numBlocks, in, out);
54 ccecb_ctx_clear(mode->size, ctx);
93 CC_INLINE void cccbc_init(const struct ccmode_cbc *mode, cccbc_ctx *ctx, argument
96 mode->init(mode, ctx, key_le
107 cccbc_update(const struct ccmode_cbc *mode, cccbc_ctx *ctx, cccbc_iv *iv, unsigned long nblocks, const void *in, void *out) 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
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
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
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
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
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
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
[all...]
H A Dccrc4.h24 void (*init)(ccrc4_ctx *ctx, unsigned long key_len, const void *key);
25 void (*crypt)(ccrc4_ctx *ctx, unsigned long nbytes, const void *in, void *out);
H A Dccmode_factory.h85 void cc3des_mode_encrypt_init(void *ctx) {
110 void *ccmode_cbc_init(const struct ccmode_cbc *cbc, cccbc_ctx *ctx,
113 void *ccmode_cbc_decrypt(cccbc_ctx *ctx, unsigned long nblocks,
115 void *ccmode_cbc_encrypt(cccbc_ctx *ctx, unsigned long nblocks,
164 void ccmode_cfb_init(const struct ccmode_cfb *cfb, cccfb_ctx *ctx,
167 void ccmode_cfb_decrypt(cccfb_ctx *ctx, unsigned long nblocks,
169 void ccmode_cfb_encrypt(cccfb_ctx *ctx, unsigned long nblocks,
219 void ccmode_cfb8_init(const struct ccmode_cfb8 *cfb8, cccfb8_ctx *ctx,
222 void ccmode_cfb8_decrypt(cccfb8_ctx *ctx, unsigned long nbytes,
224 void ccmode_cfb8_encrypt(cccfb8_ctx *ctx, unsigne
[all...]
/xnu-2422.115.4/security/
H A Dmac_vfs.c300 mac_vnode_label_associate(struct mount *mp, struct vnode *vp, vfs_context_t ctx) argument
317 error = mac_vnode_label_associate_fdesc(mp, fnp, vp, ctx);
363 mac_vnode_notify_create(vfs_context_t ctx, struct mount *mp, argument
370 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
373 cred = vfs_context_ucred(ctx);
381 mac_vnode_notify_rename(vfs_context_t ctx, struct vnode *vp, argument
387 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
390 cred = vfs_context_ucred(ctx);
396 mac_vnode_notify_open(vfs_context_t ctx, struct vnode *vp, int acc_flags) argument
401 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORC
409 mac_vnode_notify_link(vfs_context_t ctx, struct vnode *vp, struct vnode *dvp, struct componentname *cnp) argument
448 mac_vnode_label_store(vfs_context_t ctx, struct vnode *vp, struct label *intlabel) argument
465 mac_cred_label_update_execve(vfs_context_t ctx, kauth_cred_t new, struct vnode *vp, struct vnode *scriptvp, struct label *scriptvnodelabel, struct label *execl, void *macextensions) argument
529 mac_cred_check_label_update_execve(vfs_context_t ctx, struct vnode *vp, struct vnode *scriptvp, struct label *scriptvnodelabel, struct label *execlabel, struct proc *p, void *macextensions) argument
587 mac_vnode_check_access(vfs_context_t ctx, struct vnode *vp, int acc_mode) argument
606 mac_vnode_check_chdir(vfs_context_t ctx, struct vnode *dvp) argument
621 mac_vnode_check_chroot(vfs_context_t ctx, struct vnode *dvp, struct componentname *cnp) argument
637 mac_vnode_check_create(vfs_context_t ctx, struct vnode *dvp, struct componentname *cnp, struct vnode_attr *vap) argument
653 mac_vnode_check_unlink(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument
687 mac_vnode_check_deleteextattr(vfs_context_t ctx, struct vnode *vp, const char *name) argument
702 mac_vnode_check_exchangedata(vfs_context_t ctx, struct vnode *v1, struct vnode *v2) argument
737 mac_vnode_check_getattrlist(vfs_context_t ctx, struct vnode *vp, struct attrlist *alist) argument
755 mac_vnode_check_exec(vfs_context_t ctx, struct vnode *vp, struct image_params *imgp) argument
822 mac_vnode_check_fsgetpath(vfs_context_t ctx, struct vnode *vp) argument
868 mac_vnode_check_getextattr(vfs_context_t ctx, struct vnode *vp, const char *name, struct uio *uio) argument
885 mac_vnode_check_ioctl(vfs_context_t ctx, struct vnode *vp, u_int cmd) argument
900 mac_vnode_check_kqfilter(vfs_context_t ctx, kauth_cred_t file_cred, struct knote *kn, struct vnode *vp) argument
918 mac_vnode_check_link(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument
935 mac_vnode_check_listextattr(vfs_context_t ctx, struct vnode *vp) argument
950 mac_vnode_check_lookup(vfs_context_t ctx, struct vnode *dvp, struct componentname *cnp) argument
966 mac_vnode_check_open(vfs_context_t ctx, struct vnode *vp, int acc_mode) argument
981 mac_vnode_check_read(vfs_context_t ctx, struct ucred *file_cred, struct vnode *vp) argument
999 mac_vnode_check_readdir(vfs_context_t ctx, struct vnode *dvp) argument
1014 mac_vnode_check_readlink(vfs_context_t ctx, struct vnode *vp) argument
1029 mac_vnode_check_label_update(vfs_context_t ctx, struct vnode *vp, struct label *newlabel) argument
1046 mac_vnode_check_rename_from(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument
1063 mac_vnode_check_rename_to(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, int samedir, struct componentname *cnp) argument
1080 mac_vnode_check_revoke(vfs_context_t ctx, struct vnode *vp) argument
1095 mac_vnode_check_searchfs(vfs_context_t ctx, struct vnode *vp, struct attrlist *alist) argument
1110 mac_vnode_check_select(vfs_context_t ctx, struct vnode *vp, int which) argument
1143 mac_vnode_check_setattrlist(vfs_context_t ctx, struct vnode *vp, struct attrlist *alist) argument
1159 mac_vnode_check_setextattr(vfs_context_t ctx, struct vnode *vp, const char *name, struct uio *uio) argument
1176 mac_vnode_check_setflags(vfs_context_t ctx, struct vnode *vp, u_long flags) argument
1191 mac_vnode_check_setmode(vfs_context_t ctx, struct vnode *vp, mode_t mode) argument
1206 mac_vnode_check_setowner(vfs_context_t ctx, struct vnode *vp, uid_t uid, gid_t gid) argument
1222 mac_vnode_check_setutimes(vfs_context_t ctx, struct vnode *vp, struct timespec atime, struct timespec mtime) argument
1239 mac_vnode_check_stat(vfs_context_t ctx, struct ucred *file_cred, struct vnode *vp) argument
1256 mac_vnode_check_truncate(vfs_context_t ctx, struct ucred *file_cred, struct vnode *vp) argument
1274 mac_vnode_check_write(vfs_context_t ctx, struct ucred *file_cred, struct vnode *vp) argument
1291 mac_vnode_check_uipc_bind(vfs_context_t ctx, struct vnode *dvp, struct componentname *cnp, struct vnode_attr *vap) argument
1307 mac_vnode_check_uipc_connect(vfs_context_t ctx, struct vnode *vp) argument
1322 mac_vnode_label_update(vfs_context_t ctx, struct vnode *vp, struct label *newlabel) argument
1359 mac_mount_label_associate(vfs_context_t ctx, struct mount *mp) argument
1408 mac_mount_check_mount(vfs_context_t ctx, struct vnode *vp, struct componentname *cnp, const char *vfc_name) argument
1425 mac_mount_check_remount(vfs_context_t ctx, struct mount *mp) argument
1441 mac_mount_check_umount(vfs_context_t ctx, struct mount *mp) argument
1457 mac_mount_check_getattr(vfs_context_t ctx, struct mount *mp, struct vfs_attr *vfa) argument
1473 mac_mount_check_setattr(vfs_context_t ctx, struct mount *mp, struct vfs_attr *vfa) argument
1489 mac_mount_check_stat(vfs_context_t ctx, struct mount *mount) argument
1505 mac_mount_check_label_update(vfs_context_t ctx, struct mount *mount) argument
1521 mac_mount_check_fsctl(vfs_context_t ctx, struct mount *mp, u_int cmd) argument
1606 mac_vnode_label_associate_fdesc(struct mount *mp, struct fdescnode *fnp, struct vnode *vp, vfs_context_t ctx) argument
[all...]
H A Dmac_vfs_subr.c46 struct componentname *cnp, int flags, vfs_context_t ctx)
56 error = mac_vnode_notify_create(ctx,
87 error = mac_vnode_notify_create(ctx,
90 error = mac_vnode_label_associate(mp, vp, ctx);
159 vfs_context_t ctx; local
168 ctx = vfs_context_current();
173 error = vn_setxattr(vp, name, auio, options, ctx);
176 add_fsevent(FSE_XATTR_MODIFIED, ctx,
189 vfs_context_t ctx = vfs_context_current(); local
199 error = vn_getxattr(vp, name, auio, attrlen, options, ctx);
45 vnode_label(struct mount *mp, struct vnode *dvp, struct vnode *vp, struct componentname *cnp, int flags, vfs_context_t ctx) argument
208 vfs_context_t ctx = vfs_context_current(); local
[all...]
H A Dmac_framework.h163 int mac_cred_check_label_update_execve(vfs_context_t ctx,
179 int mac_cred_label_update_execve(vfs_context_t ctx, kauth_cred_t newcred,
264 int mac_mount_check_fsctl(vfs_context_t ctx, struct mount *mp,
266 int mac_mount_check_getattr(vfs_context_t ctx, struct mount *mp,
268 int mac_mount_check_label_update(vfs_context_t ctx, struct mount *mp);
269 int mac_mount_check_mount(vfs_context_t ctx, struct vnode *vp,
271 int mac_mount_check_remount(vfs_context_t ctx, struct mount *mp);
272 int mac_mount_check_setattr(vfs_context_t ctx, struct mount *mp,
274 int mac_mount_check_stat(vfs_context_t ctx, struct mount *mp);
275 int mac_mount_check_umount(vfs_context_t ctx, struc
[all...]
/xnu-2422.115.4/bsd/nfs/
H A Dnfs_gss_crypto.c237 HMAC_SHA1_DES3KD_Init(HMAC_SHA1_DES3KD_CTX *ctx, des_cblock key[3], int derive) argument
242 SHA1Init(&ctx->sha1_ctx);
244 des3_derive_key(key, ctx->dk, KEY_USAGE_DES3_SIGN, KEY_USAGE_LEN);
246 memcpy(ctx->dk, key, 3*sizeof(des_cblock));
250 ipad[j + i * sizeof(des_cblock)] ^= ctx->dk[i][j];
251 SHA1Update(&ctx->sha1_ctx, ipad, sizeof(ipad));
258 HMAC_SHA1_DES3KD_Update(HMAC_SHA1_DES3KD_CTX *ctx, void *data, size_t len) argument
260 SHA1Update(&ctx->sha1_ctx, data, len);
268 HMAC_SHA1_DES3KD_Final(void *digest, HMAC_SHA1_DES3KD_CTX *ctx) argument
273 SHA1Final(digest, &ctx
288 MD5_DESCBC_Init(MD5_DESCBC_CTX *ctx, des_cbc_key_schedule *sched) argument
298 MD5_DESCBC_Update(MD5_DESCBC_CTX *ctx, void *data, size_t len) argument
307 MD5_DESCBC_Final(void *digest, MD5_DESCBC_CTX *ctx) argument
[all...]
/xnu-2422.115.4/bsd/vfs/
H A Dkpi_vfs.c136 vfs_context_t ctx, int force);
138 struct vnode_attr * vap, vfs_context_t ctx);
175 VFS_MOUNT(mount_t mp, vnode_t devvp, user_addr_t data, vfs_context_t ctx) argument
182 if (vfs_context_is64bit(ctx)) {
184 error = (*mp->mnt_op->vfs_mount)(mp, devvp, data, ctx);
191 error = (*mp->mnt_op->vfs_mount)(mp, devvp, data, ctx);
198 VFS_START(mount_t mp, int flags, vfs_context_t ctx) argument
205 error = (*mp->mnt_op->vfs_start)(mp, flags, ctx);
211 VFS_UNMOUNT(mount_t mp, int flags, vfs_context_t ctx) argument
218 error = (*mp->mnt_op->vfs_unmount)(mp, flags, ctx);
241 VFS_ROOT(mount_t mp, struct vnode ** vpp, vfs_context_t ctx) argument
258 VFS_QUOTACTL(mount_t mp, int cmd, uid_t uid, caddr_t datap, vfs_context_t ctx) argument
271 VFS_GETATTR(mount_t mp, struct vfs_attr *vfa, vfs_context_t ctx) argument
288 VFS_SETATTR(mount_t mp, struct vfs_attr *vfa, vfs_context_t ctx) argument
305 VFS_SYNC(mount_t mp, int flags, vfs_context_t ctx) argument
322 VFS_VGET(mount_t mp, ino64_t ino, struct vnode **vpp, vfs_context_t ctx) argument
339 VFS_FHTOVP(mount_t mp, int fhlen, unsigned char * fhp, vnode_t * vpp, vfs_context_t ctx) argument
356 VFS_VPTOFH(struct vnode * vp, int *fhlenp, unsigned char * fhp, vfs_context_t ctx) argument
630 vfs_getattr(mount_t mp, struct vfs_attr *vfa, vfs_context_t ctx) argument
649 vfs_setattr(mount_t mp, struct vfs_attr *vfa, vfs_context_t ctx) argument
1005 vfs_context_pid(vfs_context_t ctx) argument
1011 vfs_context_suser(vfs_context_t ctx) argument
1023 vfs_context_issignal(vfs_context_t ctx, sigset_t mask) argument
1032 vfs_context_is64bit(vfs_context_t ctx) argument
1066 vfs_context_proc(vfs_context_t ctx) argument
1091 vfs_context_get_special_port(vfs_context_t ctx, int which, ipc_port_t *portp) argument
1114 vfs_context_set_special_port(vfs_context_t ctx, int which, ipc_port_t port) argument
1142 vfs_context_thread(vfs_context_t ctx) argument
1165 vfs_context_cwd(vfs_context_t ctx) argument
1200 vfs_context_create(vfs_context_t ctx) argument
1227 vfs_context_t ctx = NULL; local
1271 vfs_context_rele(vfs_context_t ctx) argument
1283 vfs_context_ucred(vfs_context_t ctx) argument
1292 vfs_context_issuser(vfs_context_t ctx) argument
1312 vfs_context_bind(vfs_context_t ctx) argument
1478 vfs_ctx_skipatime(vfs_context_t ctx) argument
1983 vnode_get_filesec(vnode_t vp, kauth_filesec_t *fsecp, vfs_context_t ctx) argument
2124 vnode_set_filesec(vnode_t vp, kauth_filesec_t fsec, kauth_acl_t acl, vfs_context_t ctx) argument
2173 vnode_getattr(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx) argument
2405 vnode_setattr(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx) argument
2498 vnode_setattr_fallback(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx) argument
2682 vfs_settriggercallback(fsid_t *fsid, vfs_trigger_callback_t vtc, void *data, uint32_t flags __unused, vfs_context_t ctx) argument
2760 VNOP_LOOKUP(vnode_t dvp, vnode_t *vpp, struct componentname *cnp, vfs_context_t ctx) argument
2794 VNOP_COMPOUND_OPEN(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, int32_t fmode, uint32_t *statusp, struct vnode_attr *vap, vfs_context_t ctx) argument
2881 VNOP_CREATE(vnode_t dvp, vnode_t * vpp, struct componentname * cnp, struct vnode_attr * vap, vfs_context_t ctx) argument
2929 VNOP_WHITEOUT(vnode_t dvp, struct componentname * cnp, int flags, vfs_context_t ctx) argument
2965 VNOP_MKNOD(vnode_t dvp, vnode_t * vpp, struct componentname * cnp, struct vnode_attr * vap, vfs_context_t ctx) argument
3002 VNOP_OPEN(vnode_t vp, int mode, vfs_context_t ctx) argument
3035 VNOP_CLOSE(vnode_t vp, int fflag, vfs_context_t ctx) argument
3068 VNOP_ACCESS(vnode_t vp, int action, vfs_context_t ctx) argument
3101 VNOP_GETATTR(vnode_t vp, struct vnode_attr * vap, vfs_context_t ctx) argument
3131 VNOP_SETATTR(vnode_t vp, struct vnode_attr * vap, vfs_context_t ctx) argument
3229 VNOP_READ(vnode_t vp, struct uio * uio, int ioflag, vfs_context_t ctx) argument
3270 VNOP_WRITE(vnode_t vp, struct uio * uio, int ioflag, vfs_context_t ctx) argument
3314 VNOP_IOCTL(vnode_t vp, u_long command, caddr_t data, int fflag, vfs_context_t ctx) argument
3373 VNOP_SELECT(vnode_t vp, int which , int fflags, void * wql, vfs_context_t ctx) argument
3411 VNOP_EXCHANGE(vnode_t fvp, vnode_t tvp, int options, vfs_context_t ctx) argument
3447 VNOP_REVOKE(vnode_t vp, int flags, vfs_context_t ctx) argument
3478 VNOP_MMAP(vnode_t vp, int fflags, vfs_context_t ctx) argument
3508 VNOP_MNOMAP(vnode_t vp, vfs_context_t ctx) argument
3538 VNOP_FSYNC(vnode_t vp, int waitfor, vfs_context_t ctx) argument
3572 VNOP_REMOVE(vnode_t dvp, vnode_t vp, struct componentname * cnp, int flags, vfs_context_t ctx) argument
3606 VNOP_COMPOUND_REMOVE(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, struct vnode_attr *vap, vfs_context_t ctx) argument
3671 VNOP_LINK(vnode_t vp, vnode_t tdvp, struct componentname * cnp, vfs_context_t ctx) argument
3713 vn_rename(struct vnode *fdvp, struct vnode **fvpp, struct componentname *fcnp, struct vnode_attr *fvap, struct vnode *tdvp, struct vnode **tvpp, struct componentname *tcnp, struct vnode_attr *tvap, uint32_t flags, vfs_context_t ctx) argument
3969 VNOP_RENAME(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp, struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp, vfs_context_t ctx) argument
4026 VNOP_COMPOUND_RENAME( struct vnode *fdvp, struct vnode **fvpp, struct componentname *fcnp, struct vnode_attr *fvap, struct vnode *tdvp, struct vnode **tvpp, struct componentname *tcnp, struct vnode_attr *tvap, uint32_t flags, vfs_context_t ctx) argument
4118 vn_mkdir(struct vnode *dvp, struct vnode **vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx) argument
4149 VNOP_MKDIR(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, struct vnode_attr *vap, vfs_context_t ctx) argument
4181 VNOP_COMPOUND_MKDIR(struct vnode *dvp, struct vnode **vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx) argument
4224 vn_rmdir(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx) argument
4256 VNOP_RMDIR(struct vnode *dvp, struct vnode *vp, struct componentname *cnp, vfs_context_t ctx) argument
4290 VNOP_COMPOUND_RMDIR(struct vnode *dvp, struct vnode **vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx) argument
4347 xattrfile_remove(vnode_t dvp, const char * basename, vfs_context_t ctx, int force) argument
4425 xattrfile_setattr(vnode_t dvp, const char * basename, struct vnode_attr * vap, vfs_context_t ctx) argument
4493 VNOP_SYMLINK(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, struct vnode_attr *vap, char *target, vfs_context_t ctx) argument
4541 VNOP_READDIR(struct vnode *vp, struct uio *uio, int flags, int *eofflag, int *numdirent, vfs_context_t ctx) argument
4586 VNOP_READDIRATTR(struct vnode *vp, struct attrlist *alist, struct uio *uio, uint32_t maxcount, uint32_t options, uint32_t *newstate, int *eofflag, uint32_t *actualcount, vfs_context_t ctx) argument
4647 VNOP_READLINK(struct vnode *vp, struct uio *uio, vfs_context_t ctx) argument
4679 VNOP_INACTIVE(struct vnode *vp, vfs_context_t ctx) argument
4722 VNOP_RECLAIM(struct vnode *vp, vfs_context_t ctx) argument
4760 VNOP_PATHCONF(struct vnode *vp, int name, int32_t *retval, vfs_context_t ctx) argument
4805 VNOP_ADVLOCK(struct vnode *vp, caddr_t id, int op, struct flock *fl, int flags, vfs_context_t ctx, struct timespec *timeout) argument
4856 VNOP_ALLOCATE(struct vnode *vp, off_t length, u_int32_t flags, off_t *bytesallocated, off_t offset, vfs_context_t ctx) argument
4898 VNOP_PAGEIN(struct vnode *vp, upl_t pl, upl_offset_t pl_offset, off_t f_offset, size_t size, int flags, vfs_context_t ctx) argument
4937 VNOP_PAGEOUT(struct vnode *vp, upl_t pl, upl_offset_t pl_offset, off_t f_offset, size_t size, int flags, vfs_context_t ctx) argument
4960 vn_remove(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, struct vnode_attr *vap, vfs_context_t ctx) argument
4996 VNOP_SEARCHFS(struct vnode *vp, void *searchparams1, void *searchparams2, struct attrlist *searchattrs, uint32_t maxmatches, struct timeval *timelimit, struct attrlist *returnattrs, uint32_t *nummatches, uint32_t scriptcode, uint32_t options, struct uio *uio, struct searchstate *searchstate, vfs_context_t ctx) argument
5043 VNOP_COPYFILE(struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp, int mode, int flags, vfs_context_t ctx) argument
5062 VNOP_GETXATTR(vnode_t vp, const char *name, uio_t uio, size_t *size, int options, vfs_context_t ctx) argument
5082 VNOP_SETXATTR(vnode_t vp, const char *name, uio_t uio, int options, vfs_context_t ctx) argument
5106 VNOP_REMOVEXATTR(vnode_t vp, const char *name, int options, vfs_context_t ctx) argument
5126 VNOP_LISTXATTR(vnode_t vp, uio_t uio, size_t *size, int options, vfs_context_t ctx) argument
5224 VNOP_BLOCKMAP(struct vnode *vp, off_t foffset, size_t size, daddr64_t *bpn, size_t *run, void *poff, int flags, vfs_context_t ctx) argument
5313 VNOP_KQFILT_ADD(struct vnode *vp, struct knote *kn, vfs_context_t ctx) argument
5338 VNOP_KQFILT_REMOVE(struct vnode *vp, uintptr_t ident, vfs_context_t ctx) argument
5355 VNOP_MONITOR(vnode_t vp, uint32_t events, uint32_t flags, void *handle, vfs_context_t ctx) argument
5382 VNOP_SETLABEL(struct vnode *vp, struct label *label, vfs_context_t ctx) argument
5404 VNOP_GETNAMEDSTREAM(vnode_t vp, vnode_t *svpp, const char *name, enum nsoperation operation, int flags, vfs_context_t ctx) argument
5426 VNOP_MAKENAMEDSTREAM(vnode_t vp, vnode_t *svpp, const char *name, int flags, vfs_context_t ctx) argument
5448 VNOP_REMOVENAMEDSTREAM(vnode_t vp, vnode_t svp, const char *name, int flags, vfs_context_t ctx) argument
[all...]
H A Dvfs_vnops.c120 static int vn_closefile(struct fileglob *fp, vfs_context_t ctx);
122 vfs_context_t ctx);
124 vfs_context_t ctx);
126 vfs_context_t ctx);
128 vfs_context_t ctx);
130 vfs_context_t ctx);
133 static int vn_open_auth_finish(vnode_t vp, int fmode, vfs_context_t ctx);
136 vfs_context_t ctx);
181 vn_open_auth_finish(vnode_t vp, int fmode, vfs_context_t ctx) argument
193 mac_vnode_notify_open(ctx, v
212 vn_open_auth_do_create(struct nameidata *ndp, struct vnode_attr *vap, int fmode, boolean_t *did_create, boolean_t *did_open, vfs_context_t ctx) argument
361 vfs_context_t ctx = ndp->ni_cnd.cn_context; local
690 vn_close(struct vnode *vp, int flags, vfs_context_t ctx) argument
898 vn_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) argument
953 vn_write(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) argument
1099 vn_stat_noauth(struct vnode *vp, void *sbptr, kauth_filesec_t *xsec, int isstat64, vfs_context_t ctx) argument
1266 vn_stat(struct vnode *vp, void *sb, kauth_filesec_t *xsec, int isstat64, vfs_context_t ctx) argument
1289 vn_ioctl(struct fileproc *fp, u_long com, caddr_t data, vfs_context_t ctx) argument
1388 vn_select(struct fileproc *fp, int which, void *wql, __unused vfs_context_t ctx) argument
1419 vn_closefile(struct fileglob *fg, vfs_context_t ctx) argument
1448 vn_pathconf(vnode_t vp, int name, int32_t *retval, vfs_context_t ctx) argument
1526 vn_kqfilt_add(struct fileproc *fp, struct knote *kn, vfs_context_t ctx) argument
1596 vfs_context_t ctx = vfs_context_current(); local
[all...]
/xnu-2422.115.4/tools/tests/xnu_quick_test/
H A Dsched_tests.c68 struct t1_ctx *ctx = (struct t1_ctx *)arg; local
71 dprintf("thread %d (pthread %p) started\n", ctx->currentThread, pthread_self());
74 kret = semaphore_wait(ctx->wait_to_start);
77 ctx->currentThread, kret);
82 if (ctx->useRealtime) {
83 dprintf("thread %d going realtime\n", ctx->currentThread);
87 kret = semaphore_signal(ctx->next_waiter);
90 ctx->currentThread, kret);
97 dprintf("thread %d blocking on common semaphore\n", ctx->currentThread);
99 kret = semaphore_wait(ctx
[all...]
/xnu-2422.115.4/bsd/sys/
H A Dfile_internal.h169 int flags, vfs_context_t ctx);
171 int flags, vfs_context_t ctx);
175 caddr_t data, vfs_context_t ctx);
177 void *wql, vfs_context_t ctx);
178 int (*fo_close) (struct fileglob *fg, vfs_context_t ctx);
180 vfs_context_t ctx);
181 int (*fo_drain) (struct fileproc *fp, vfs_context_t ctx);
203 int fo_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx);
205 vfs_context_t ctx);
206 int fo_ioctl(struct fileproc *fp, u_long com, caddr_t data, vfs_context_t ctx);
[all...]
H A Ddecmpfs.h107 int decmpfs_hides_rsrc(vfs_context_t ctx, decmpfs_cnode *cp);
108 int decmpfs_hides_xattr(vfs_context_t ctx, decmpfs_cnode *cp, const char *xattr);
130 typedef int (*decmpfs_validate_compressed_file_func)(vnode_t vp, vfs_context_t ctx, decmpfs_header *hdr);
131 typedef void (*decmpfs_adjust_fetch_region_func)(vnode_t vp, vfs_context_t ctx, decmpfs_header *hdr, off_t *offset, user_ssize_t *size);
132 typedef int (*decmpfs_fetch_uncompressed_data_func)(vnode_t vp, vfs_context_t ctx, decmpfs_header *hdr, off_t offset, user_ssize_t size, int nvec, decmpfs_vector *vec, uint64_t *bytes_read);
133 typedef int (*decmpfs_free_compressed_data_func)(vnode_t vp, vfs_context_t ctx, decmpfs_header *hdr);
134 typedef uint64_t (*decmpfs_get_decompression_flags_func)(vnode_t vp, vfs_context_t ctx, decmpfs_header *hdr); // returns flags from the DECMPFS_FLAGS enumeration below
/xnu-2422.115.4/bsd/miscfs/mockfs/
H A Dmockfs_vfsops.c46 int mockfs_mountroot(mount_t mp, vnode_t rvp, __unused vfs_context_t ctx);
51 int mockfs_unmount(__unused struct mount *mp, __unused int mntflags, __unused vfs_context_t ctx);
52 int mockfs_root(mount_t mp, vnode_t * vpp, __unused vfs_context_t ctx);
53 int mockfs_sync(__unused struct mount *mp, __unused int waitfor, __unused vfs_context_t ctx);
66 int mockfs_mountroot(mount_t mp, vnode_t rvp, __unused vfs_context_t ctx) argument
151 int mockfs_unmount(struct mount *mp, int mntflags, __unused vfs_context_t ctx) argument
200 int mockfs_root(mount_t mp, vnode_t * vpp, __unused vfs_context_t ctx) argument
214 int mockfs_sync(__unused struct mount *mp, __unused int waitfor, __unused vfs_context_t ctx) argument
/xnu-2422.115.4/bsd/kern/
H A Dkern_acct.c151 struct vfs_context *ctx; local
153 ctx = vfs_context_current();
156 if ((error = suser(vfs_context_ucred(ctx), &p->p_acflag)))
164 NDINIT(&nd, LOOKUP, OP_OPEN, NOFOLLOW, UIO_USERSPACE, uap->path, ctx);
168 error = mac_system_check_acct(vfs_context_ucred(ctx), nd.ni_vp);
171 vn_close(nd.ni_vp, FWRITE, ctx);
178 vn_close(nd.ni_vp, FWRITE, ctx);
184 error = mac_system_check_acct(vfs_context_ucred(ctx), NULL);
365 vfs_context_t ctx = vfs_context_current(); local
383 (void)vfs_getattr(suspend_acctp->v_mount, &va, ctx);
[all...]

Completed in 165 milliseconds

12345