Home
last modified time | relevance | path

Searched defs:ctx (Results 1 – 25 of 161) sorted by relevance

1234567

/xnu-12377.41.6/libkern/crypto/
H A Dcorecrypto_chacha20poly1305.c46 chacha20poly1305_init(chacha20poly1305_ctx *ctx, const uint8_t *key) in chacha20poly1305_init()
52 chacha20poly1305_reset(chacha20poly1305_ctx *ctx) in chacha20poly1305_reset()
58 chacha20poly1305_setnonce(chacha20poly1305_ctx *ctx, const uint8_t *nonce) in chacha20poly1305_setnonce()
64 chacha20poly1305_incnonce(chacha20poly1305_ctx *ctx, uint8_t *nonce) in chacha20poly1305_incnonce()
70 chacha20poly1305_aad(chacha20poly1305_ctx *ctx, size_t nbytes, const void *aad) in chacha20poly1305_aad()
76 chacha20poly1305_encrypt(chacha20poly1305_ctx *ctx, size_t nbytes, const void *ptext, void *ctext) in chacha20poly1305_encrypt()
82 chacha20poly1305_finalize(chacha20poly1305_ctx *ctx, uint8_t *tag) in chacha20poly1305_finalize()
88 chacha20poly1305_decrypt(chacha20poly1305_ctx *ctx, size_t nbytes, const void *ctext, void *ptext) in chacha20poly1305_decrypt()
94 chacha20poly1305_verify(chacha20poly1305_ctx *ctx, const uint8_t *tag) in chacha20poly1305_verify()
H A Dcorecrypto_sha2.c38 SHA256_Init(SHA256_CTX *ctx) in SHA256_Init()
52 SHA256_Update(SHA256_CTX *ctx, const void *data, size_t len) in SHA256_Update()
61 SHA256_Final(void *digest, SHA256_CTX *ctx) in SHA256_Final()
70 SHA384_Init(SHA384_CTX *ctx) in SHA384_Init()
84 SHA384_Update(SHA384_CTX *ctx, const void *data, size_t len) in SHA384_Update()
94 SHA384_Final(void *digest, SHA384_CTX *ctx) in SHA384_Final()
103 SHA512_Init(SHA512_CTX *ctx) in SHA512_Init()
117 SHA512_Update(SHA512_CTX *ctx, const void *data, size_t len) in SHA512_Update()
126 SHA512_Final(void *digest, SHA512_CTX *ctx) in SHA512_Final()
H A Dcorecrypto_aes.c135 aes_encrypt_key_gcm(const unsigned char *key, int key_len, ccgcm_ctx *ctx) in aes_encrypt_key_gcm()
146 …_key_with_iv_gcm(const unsigned char *key, int key_len, const unsigned char *in_iv, ccgcm_ctx *ctx) in aes_encrypt_key_with_iv_gcm()
157 aes_encrypt_set_iv_gcm(const unsigned char *in_iv, unsigned int len, ccgcm_ctx *ctx) in aes_encrypt_set_iv_gcm()
168 aes_encrypt_reset_gcm(ccgcm_ctx *ctx) in aes_encrypt_reset_gcm()
179 aes_encrypt_inc_iv_gcm(unsigned char *out_iv, ccgcm_ctx *ctx) in aes_encrypt_inc_iv_gcm()
190 aes_encrypt_aad_gcm(const unsigned char *aad, unsigned int aad_bytes, ccgcm_ctx *ctx) in aes_encrypt_aad_gcm()
202 unsigned char *out_blk, ccgcm_ctx *ctx) in aes_encrypt_gcm()
213 aes_encrypt_finalize_gcm(unsigned char *tag, size_t tag_bytes, ccgcm_ctx *ctx) in aes_encrypt_finalize_gcm()
229 aes_decrypt_key_gcm(const unsigned char *key, int key_len, ccgcm_ctx *ctx) in aes_decrypt_key_gcm()
240 …_key_with_iv_gcm(const unsigned char *key, int key_len, const unsigned char *in_iv, ccgcm_ctx *ctx) in aes_decrypt_key_with_iv_gcm()
[all …]
H A Dcorecrypto_md5.c7 getCount(MD5_CTX *ctx) in getCount()
13 setCount(MD5_CTX *ctx, uint64_t count) in setCount()
41 MD5Init(MD5_CTX *ctx) in MD5Init()
52 MD5Update(MD5_CTX *ctx, const void *data, unsigned int len) in MD5Update()
63 MD5Final(unsigned char digest[MD5_DIGEST_LENGTH], MD5_CTX *ctx) in MD5Final()
H A Dcorecrypto_sha1.c8 getCount(SHA1_CTX *ctx) in getCount()
14 setCount(SHA1_CTX *ctx, uint64_t count) in setCount()
41 SHA1Init(SHA1_CTX *ctx) in SHA1Init()
52 SHA1Update(SHA1_CTX *ctx, const void *data, size_t len) in SHA1Update()
63 SHA1Final(void *digest, SHA1_CTX *ctx) in SHA1Final()
H A Dcorecrypto_rand.c57 crypto_random_ctx_t ctx, in crypto_random_generate()
66 crypto_random_ctx_t ctx, in crypto_random_uniform()
81 crypto_random_ctx_t ctx) in crypto_random_kmem_init()
/xnu-12377.41.6/bsd/miscfs/devfs/
H A Ddevfs_vfsops.c172 devfs_mount(struct mount *mp, __unused vnode_t devvp, __unused user_addr_t data, vfs_context_t ctx) in devfs_mount()
233 devfs_start(__unused struct mount *mp, __unused int flags, __unused vfs_context_t ctx) in devfs_start()
242 devfs_unmount( struct mount *mp, int mntflags, __unused vfs_context_t ctx) in devfs_unmount()
273 devfs_root(struct mount *mp, struct vnode **vpp, __unused vfs_context_t ctx) in devfs_root()
287 devfs_statfs( struct mount *mp, struct vfsstatfs *sbp, __unused vfs_context_t ctx) in devfs_statfs()
314 devfs_vfs_getattr(__unused mount_t mp, struct vfs_attr *fsap, __unused vfs_context_t ctx) in devfs_vfs_getattr()
442 devfs_sync(__unused struct mount *mp, __unused int waitfor, __unused vfs_context_t ctx) in devfs_sync()
449 …ed struct mount *mp, __unused ino64_t ino, __unused struct vnode **vpp, __unused vfs_context_t ctx) in devfs_vget()
460 …ed int fhlen, __unused unsigned char *fhp, __unused struct vnode **vpp, __unused vfs_context_t ctx) in devfs_fhtovp()
467 …ed struct vnode *vp, __unused int *fhlenp, __unused unsigned char *fhp, __unused vfs_context_t ctx) in devfs_vptofh()
[all …]
/xnu-12377.41.6/libkern/os/
H A Dlog_encode.c42 #define log_context_cursor(ctx) &(ctx)->ctx_hdr->hdr_data[(ctx)->ctx_content_off] argument
77 log_context_cursor_advance(os_log_context_t ctx, size_t amount) in log_context_cursor_advance()
84 log_fits(os_log_context_t ctx, size_t data_size) in log_fits()
90 log_fits_cmd(os_log_context_t ctx, size_t data_size) in log_fits_cmd()
114 log_add_cmd(os_log_context_t ctx, os_log_fmt_cmd_type_t type, uint8_t flags, in log_add_cmd()
138 log_collect_public_range_data(os_log_context_t ctx, os_log_fmt_range_t range, void *arg) in log_collect_public_range_data()
145 log_add_range_data(os_log_context_t ctx, os_log_fmt_range_t range, void *arg) in log_add_range_data()
153 log_create_range(os_log_context_t ctx, size_t arg_len) in log_create_range()
165 log_add_range_arg(os_log_context_t ctx, os_log_fmt_cmd_type_t type, os_log_fmt_cmd_flags_t flags, in log_add_range_arg()
193 log_add_arg(os_log_context_t ctx, os_log_fmt_cmd_type_t type, void *arg, size_t arg_len) in log_add_arg()
[all …]
/xnu-12377.41.6/security/
H A Dmac_vfs.c363 mac_vnode_label_associate(struct mount *mp, struct vnode *vp, vfs_context_t ctx) in mac_vnode_label_associate()
446 mac_vnode_notify_create(vfs_context_t ctx, struct mount *mp, in mac_vnode_notify_create()
471 mac_vnode_notify_rename(vfs_context_t ctx, struct vnode *fvp, in mac_vnode_notify_rename()
493 mac_vnode_notify_open(vfs_context_t ctx, struct vnode *vp, int acc_flags) in mac_vnode_notify_open()
513 mac_vnode_notify_link(vfs_context_t ctx, struct vnode *vp, in mac_vnode_notify_link()
534 mac_vnode_notify_deleteextattr(vfs_context_t ctx, struct vnode *vp, const char *name) in mac_vnode_notify_deleteextattr()
554 mac_vnode_notify_setacl(vfs_context_t ctx, struct vnode *vp, struct kauth_acl *acl) in mac_vnode_notify_setacl()
574 mac_vnode_notify_setattrlist(vfs_context_t ctx, struct vnode *vp, struct attrlist *alist) in mac_vnode_notify_setattrlist()
594 mac_vnode_notify_setextattr(vfs_context_t ctx, struct vnode *vp, const char *name, struct uio *uio) in mac_vnode_notify_setextattr()
614 mac_vnode_notify_setflags(vfs_context_t ctx, struct vnode *vp, u_long flags) in mac_vnode_notify_setflags()
[all …]
H A Dmac_vfs_subr.c46 struct componentname *cnp, int flags, vfs_context_t ctx) in vnode_label()
168 vfs_context_t ctx; in mac_vnop_setxattr() local
199 vfs_context_t ctx = vfs_context_current(); in mac_vnop_getxattr() local
218 vfs_context_t ctx = vfs_context_current(); in mac_vnop_removexattr() local
/xnu-12377.41.6/osfmk/kern/
H A Dworkload_config.c98 workload_config_hash(workload_config_ctx_t *ctx, const char *id) in workload_config_hash()
105 workload_config_init(workload_config_ctx_t *ctx) in workload_config_init()
134 workload_config_initialized(const workload_config_ctx_t *ctx) in workload_config_initialized()
140 workload_config_free(workload_config_ctx_t *ctx) in workload_config_free()
184 lookup_entry(workload_config_ctx_t *ctx, const char *id) in lookup_entry()
205 lookup_config(__assert_only workload_config_ctx_t *ctx, in lookup_config()
227 insert_config(workload_config_ctx_t *ctx, workload_config_entry_t *entry, in insert_config()
258 insert_entry(workload_config_ctx_t *ctx, const char *id, const char *phase, in insert_entry()
293 workload_config_insert(workload_config_ctx_t *ctx, const char *id, in workload_config_insert()
361 workload_config_ctx_t *ctx = get_ctx_locked(); in workload_config_lookup() local
[all …]
/xnu-12377.41.6/bsd/miscfs/routefs/
H A Droutefs_ops.c82 routefs_mount(struct mount *mp, __unused vnode_t devvp, user_addr_t data, vfs_context_t ctx) in routefs_mount()
171 routefs_start(__unused struct mount *mp, __unused int flags, __unused vfs_context_t ctx) in routefs_start()
180 routefs_unmount( struct mount *mp, int mntflags, __unused vfs_context_t ctx) in routefs_unmount()
215 routefs_root(struct mount *mp, struct vnode **vpp, __unused vfs_context_t ctx) in routefs_root()
257 routefs_statfs( struct mount *mp, struct vfsstatfs *sbp, __unused vfs_context_t ctx) in routefs_statfs()
280 routefs_vfs_getattr(__unused mount_t mp, struct vfs_attr *fsap, __unused vfs_context_t ctx) in routefs_vfs_getattr()
404 routefs_sync(__unused struct mount *mp, __unused int waitfor, __unused vfs_context_t ctx) in routefs_sync()
411 …ed struct mount *mp, __unused ino64_t ino, __unused struct vnode **vpp, __unused vfs_context_t ctx) in routefs_vget()
417 …ed int fhlen, __unused unsigned char *fhp, __unused struct vnode **vpp, __unused vfs_context_t ctx) in routefs_fhtovp()
424 …ed struct vnode *vp, __unused int *fhlenp, __unused unsigned char *fhp, __unused vfs_context_t ctx) in routefs_vptofh()
[all …]
/xnu-12377.41.6/bsd/net/
H A Dsiphash.c55 SipHash_InitX(SIPHASH_CTX *ctx, uint8_t rc, uint8_t rf) in SipHash_InitX()
70 SipHash_SetKey(SIPHASH_CTX *ctx, const uint8_t key[SIPHASH_KEY_LENGTH]) in SipHash_SetKey()
89 SipBuf(SIPHASH_CTX *ctx, const uint8_t * __sized_by_or_null(len)src, size_t len, size_t *delta, int… in SipBuf()
127 SipHash_Update(SIPHASH_CTX *ctx, const void *src __sized_by(len0), size_t len0) in SipHash_Update()
186 SipHash_Final(uint8_t dst[SIPHASH_DIGEST_LENGTH], SIPHASH_CTX *ctx) in SipHash_Final()
197 SipHash_End(SIPHASH_CTX *ctx) in SipHash_End()
214 SipHashX(SIPHASH_CTX *ctx, uint8_t rc, uint8_t rf, in SipHashX()
228 SipRounds(SIPHASH_CTX *ctx, int final) in SipRounds()
/xnu-12377.41.6/bsd/vfs/
H A Dkpi_vfs.c195 VFS_MOUNT(mount_t mp, vnode_t devvp, user_addr_t data, vfs_context_t ctx) in VFS_MOUNT()
217 VFS_START(mount_t mp, int flags, vfs_context_t ctx) in VFS_START()
231 VFS_UNMOUNT(mount_t mp, int flags, vfs_context_t ctx) in VFS_UNMOUNT()
262 VFS_ROOT(mount_t mp, struct vnode ** vpp, vfs_context_t ctx) in VFS_ROOT()
280 VFS_QUOTACTL(mount_t mp, int cmd, uid_t uid, caddr_t datap, vfs_context_t ctx) in VFS_QUOTACTL()
294 VFS_GETATTR(mount_t mp, struct vfs_attr *vfa, vfs_context_t ctx) in VFS_GETATTR()
312 VFS_SETATTR(mount_t mp, struct vfs_attr *vfa, vfs_context_t ctx) in VFS_SETATTR()
330 VFS_SYNC(mount_t mp, int flags, vfs_context_t ctx) in VFS_SYNC()
348 VFS_VGET(mount_t mp, ino64_t ino, struct vnode **vpp, vfs_context_t ctx) in VFS_VGET()
366 VFS_FHTOVP(mount_t mp, int fhlen, unsigned char *fhp, vnode_t *vpp, vfs_context_t ctx) in VFS_FHTOVP()
[all …]
H A Dvfs_vnops.c185 vn_open_auth_finish(vnode_t vp, int fmode, vfs_context_t ctx) in vn_open_auth_finish()
213 …, struct vnode_attr *vap, int fmode, boolean_t *did_create, boolean_t *did_open, vfs_context_t ctx) in vn_open_auth_do_create()
379 vfs_context_t ctx = ndp->ni_cnd.cn_context; in vn_open_auth() local
843 vn_close(struct vnode *vp, int flags, vfs_context_t ctx) in vn_close()
1104 vn_read_common(vnode_t vp, struct uio *uio, int fflag, vfs_context_t ctx) in vn_read_common()
1200 vn_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) in vn_read()
1254 vn_write(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) in vn_write()
1505 int needsrealdev, vfs_context_t ctx, struct ucred *file_cred) in vn_stat_noauth()
1696 …ruct vnode *vp, void *sb, kauth_filesec_t *xsec, int isstat64, int needsrealdev, vfs_context_t ctx) in vn_stat()
1721 vn_ioctl(struct fileproc *fp, u_long com, caddr_t data, vfs_context_t ctx) in vn_ioctl()
[all …]
/xnu-12377.41.6/tests/recount/
H A Drecount_perf_tests.c154 proc_pidtaskinfo_usage(void *ctx) in proc_pidtaskinfo_usage()
181 proc_pidtaskinfo_measurement(metrics_t metric, void *ctx) in proc_pidtaskinfo_measurement()
195 proc_pid_rusage_usage(void *ctx) in proc_pid_rusage_usage()
222 proc_pid_rusage_measurement(metrics_t metric, void *ctx) in proc_pid_rusage_measurement()
240 getrusage_measurement(metrics_t metric, void *ctx) in getrusage_measurement()
255 getrusage_usage(void *ctx) in getrusage_usage()
281 thread_selfcounts_usage(void *ctx) in thread_selfcounts_usage()
306 thread_selfcounts_measurement(metrics_t metric, void *ctx) in thread_selfcounts_measurement()
323 thread_selfusage_usage(void *ctx) in thread_selfusage_usage()
332 thread_selfusage_measurement(metrics_t metric, void *ctx) in thread_selfusage_measurement()
[all …]
/xnu-12377.41.6/osfmk/corecrypto/
H A Dccgcm.c60 ccgcm_ctx *ctx, in ccgcm_init()
70 ccgcm_init_with_iv(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, in ccgcm_init_with_iv()
90 ccgcm_ctx *ctx, in ccgcm_set_iv()
100 ccgcm_inc_iv(CC_UNUSED const struct ccmode_gcm *mode, ccgcm_ctx *ctx, void *iv) in ccgcm_inc_iv()
124 ccgcm_ctx *ctx, in ccgcm_aad()
135 ccgcm_ctx *ctx, in ccgcm_gmac()
146 ccgcm_ctx *ctx, in ccgcm_update()
158 ccgcm_ctx *ctx, in ccgcm_finalize()
168 ccgcm_reset(const struct ccmode_gcm *mode, ccgcm_ctx *ctx) in ccgcm_reset()
H A Dccdrbg_nisthmac.c83 done(struct ccdrbg_state *ctx) in done()
93 update(struct ccdrbg_state *ctx, unsigned ndata, ...) in update()
144 struct ccdrbg_state *ctx, in init()
183 reseed(struct ccdrbg_state *ctx, size_t entropy_nbytes, const void *entropy, size_t add_nbytes, con… in reseed()
203 must_reseed(const struct ccdrbg_state *ctx) in must_reseed()
213 generate(struct ccdrbg_state *ctx, size_t out_nbytes, void *out, size_t add_nbytes, const void *add) in generate()
/xnu-12377.41.6/bsd/miscfs/bindfs/
H A Dbind_vfsops.c84 bindfs_vfs_getlowerattr(mount_t mp, struct vfs_attr * vfap, vfs_context_t ctx) in bindfs_vfs_getlowerattr()
105 bindfs_mount(struct mount * mp, __unused vnode_t devvp, user_addr_t user_data, vfs_context_t ctx) in bindfs_mount()
307 bindfs_unmount(struct mount * mp, int mntflags, __unused vfs_context_t ctx) in bindfs_unmount()
368 bindfs_root(struct mount * mp, struct vnode ** vpp, __unused vfs_context_t ctx) in bindfs_root()
390 bindfs_vfs_getattr(struct mount * mp, struct vfs_attr * vfap, vfs_context_t ctx) in bindfs_vfs_getattr()
522 bindfs_sync(__unused struct mount * mp, __unused int waitfor, __unused vfs_context_t ctx) in bindfs_sync()
530 bindfs_vfs_start(__unused struct mount * mp, __unused int flags, __unused vfs_context_t ctx) in bindfs_vfs_start()
/xnu-12377.41.6/bsd/miscfs/nullfs/
H A Dnull_vfsops.c84 nullfs_vfs_getlowerattr(mount_t mp, struct vfs_attr * vfap, vfs_context_t ctx) in nullfs_vfs_getlowerattr()
105 nullfs_mount(struct mount * mp, __unused vnode_t devvp, user_addr_t user_data, vfs_context_t ctx) in nullfs_mount()
325 nullfs_unmount(struct mount * mp, int mntflags, __unused vfs_context_t ctx) in nullfs_unmount()
392 nullfs_root(struct mount * mp, struct vnode ** vpp, __unused vfs_context_t ctx) in nullfs_root()
414 nullfs_vfs_getattr(struct mount * mp, struct vfs_attr * vfap, vfs_context_t ctx) in nullfs_vfs_getattr()
549 nullfs_sync(__unused struct mount * mp, __unused int waitfor, __unused vfs_context_t ctx) in nullfs_sync()
560 nullfs_vfs_start(__unused struct mount * mp, __unused int flags, __unused vfs_context_t ctx) in nullfs_vfs_start()
/xnu-12377.41.6/bsd/kern/
H A Dsys_socket.c114 __unused vfs_context_t ctx) in soo_read()
137 vfs_context_t ctx) in soo_write()
283 …octl(struct fileproc *fp, u_long cmd, caddr_t __sized_by(IOCPARM_LEN(cmd)) data, vfs_context_t ctx) in soo_ioctl()
297 soo_select(struct fileproc *fp, int which, void *wql, vfs_context_t ctx) in soo_select()
405 soo_close(struct fileglob *fg, __unused vfs_context_t ctx) in soo_close()
421 soo_drain(struct fileproc *fp, __unused vfs_context_t ctx) in soo_drain()
/xnu-12377.41.6/bsd/miscfs/mockfs/
H A Dmockfs_vfsops.c65 mockfs_mountroot(mount_t mp, vnode_t rvp, __unused vfs_context_t ctx) in mockfs_mountroot()
156 mockfs_unmount(struct mount *mp, int mntflags, __unused vfs_context_t ctx) in mockfs_unmount()
208 mockfs_root(mount_t mp, vnode_t * vpp, __unused vfs_context_t ctx) in mockfs_root()
223 mockfs_sync(__unused struct mount *mp, __unused int waitfor, __unused vfs_context_t ctx) in mockfs_sync()
/xnu-12377.41.6/tools/lldbmacros/
H A Dstructanalyze.py7 def _get_offset_formatter(ctx, fmt_hex, fmt_dec): argument
25 def _get_num_formatter(ctx, fmt_hex, fmt_dec): argument
43 def _showStructPacking(ctx, symbol, begin_offset=0, symsize=0, typedef=None, outerSize=0, memberNam… argument
/xnu-12377.41.6/bsd/vm/
H A Dvm_compressor_backing_file.c50 vfs_context_t ctx = vfs_context_kernel(); in vm_swapfile_open() local
112 vfs_context_t ctx = NULL; in vm_swapfile_preallocate() local
169 vfs_context_t ctx; in vm_record_file_write() local
259 vfs_context_t ctx; in vm_swapfile_io() local
393 vfs_context_t ctx = vfs_context_kernel(); in vm_swap_vol_get_budget() local
414 vfs_context_t ctx = vfs_context_kernel(); in vm_swap_vol_get_capacity() local
/xnu-12377.41.6/bsd/netinet6/
H A Desp_rijndael.c109 aes_ctx *ctx = (aes_ctx*)sav->sched_enc; in esp_aes_schedule() local
596 aes_encrypt_ctx *ctx = NULL; in esp_aes_cbc_encrypt_data() local
639 aes_decrypt_ctx *ctx = NULL; in esp_aes_cbc_decrypt_data() local
681 #define P2ROUNDUP_GCM(p, ctx) \ argument
691 aes_gcm_ctx *ctx = NULL; in esp_gcm_schedule() local
761 aes_gcm_ctx *ctx = NULL; in esp_gcm_encrypt_finalize() local
771 aes_gcm_ctx *ctx = NULL; in esp_gcm_decrypt_finalize() local
790 aes_gcm_ctx *ctx = NULL; in esp_gcm_encrypt_aes() local
949 aes_gcm_ctx *ctx = NULL; in esp_gcm_decrypt_aes() local
1085 aes_gcm_ctx *ctx = NULL; in esp_aes_gcm_encrypt_data() local
[all …]

1234567