Searched refs:cpx (Results 1 – 5 of 5) sorted by relevance
| /xnu-8792.61.2/bsd/vfs/ |
| H A D | vfs_cprotect.c | 68 struct cpx { struct 82 struct cpx cpx_var; 99 size_t size = sizeof(struct cpx) + key_len; in cpx_size() 105 cpx_sizex(const struct cpx *cpx) in cpx_sizex() argument 107 return cpx_size(cpx->cpx_max_key_len); in cpx_sizex() 113 cpx_t cpx = NULL; in cpx_alloc() local 132 if (kmem_alloc(kernel_map, (vm_offset_t *)&cpx, PAGE_SIZE, in cpx_alloc() 143 cpx = kheap_alloc(KHEAP_DEFAULT, cpx_size(key_len), Z_WAITOK); in cpx_alloc() local 148 cpx->cpx_flags |= CPX_WRITE_PROTECTABLE; in cpx_alloc() 162 cpx = zalloc_flags(cpx_zone, Z_WAITOK | Z_ZERO); in cpx_alloc() [all …]
|
| H A D | vfs_bio.c | 394 bufattr_setcpx(bufattr_t bap, cpx_t cpx) in bufattr_setcpx() argument 396 bap->ba_cpx = cpx; in bufattr_setcpx() 431 struct cpx * 438 bufattr_setcpx(__unused bufattr_t bap, __unused struct cpx *cpx) in bufattr_setcpx() argument 1496 cpx_t cpx = bufattr_cpx(buf_attr(bp)); in buf_strategy() local 1497 if (cpx) { in buf_strategy() 1499 if (cpx_use_offset_for_iv(cpx) && !cpx_synthetic_offset_for_iv(cpx)) { in buf_strategy()
|
| /xnu-8792.61.2/bsd/sys/ |
| H A D | cprotect.h | 108 typedef struct cpx *cpx_t; 188 int cpx_alloc_ctx(cpx_t cpx); 189 void cpx_free_ctx(cpx_t cpx); 191 void cpx_init_ctx_ptr(cpx_t cpx); 193 void cpx_writeprotect(cpx_t cpx); 195 __attribute__((pure)) bool cpx_is_sep_wrapped_key(const struct cpx *); 196 void cpx_set_is_sep_wrapped_key(struct cpx *, bool); 197 __attribute__((pure)) bool cpx_is_composite_key(const struct cpx *); 198 void cpx_set_is_composite_key(struct cpx *, bool); 199 __attribute__((pure)) bool cpx_use_offset_for_iv(const struct cpx *); [all …]
|
| H A D | buf.h | 1110 struct cpx *bufattr_cpx(bufattr_t bap); 1117 void bufattr_setcpx(bufattr_t bap, struct cpx *cpx);
|
| H A D | buf_internal.h | 93 struct cpx *ba_cpx;
|