Searched refs:cpx (Results 1 – 5 of 5) sorted by relevance
| /xnu-8019.80.24/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, VM_KERN_MEMORY_FILE)) { in cpx_alloc() 138 MALLOC(cpx, cpx_t, cpx_size(key_len), M_TEMP, M_WAITOK); in cpx_alloc() 141 cpx->cpx_flags |= CPX_WRITE_PROTECTABLE; in cpx_alloc() 155 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 1491 cpx_t cpx = bufattr_cpx(buf_attr(bp)); in buf_strategy() local 1492 if (cpx) { in buf_strategy() 1494 if (cpx_use_offset_for_iv(cpx) && !cpx_synthetic_offset_for_iv(cpx)) { in buf_strategy()
|
| /xnu-8019.80.24/bsd/sys/ |
| H A D | cprotect.h | 102 typedef struct cpx *cpx_t; 182 int cpx_alloc_ctx(cpx_t cpx); 183 void cpx_free_ctx(cpx_t cpx); 185 void cpx_init_ctx_ptr(cpx_t cpx); 187 void cpx_writeprotect(cpx_t cpx); 189 __attribute__((pure)) bool cpx_is_sep_wrapped_key(const struct cpx *); 190 void cpx_set_is_sep_wrapped_key(struct cpx *, bool); 191 __attribute__((pure)) bool cpx_is_composite_key(const struct cpx *); 192 void cpx_set_is_composite_key(struct cpx *, bool); 193 __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;
|