Home
last modified time | relevance | path

Searched refs:cpx (Results 1 – 5 of 5) sorted by relevance

/xnu-11215.1.10/bsd/vfs/
H A Dvfs_cprotect.c68 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
124 kmem_alloc(kernel_map, (vm_offset_t *)&cpx, PAGE_SIZE, in cpx_alloc()
127 cpx->cpx_flags |= CPX_WRITE_PROTECTABLE; in cpx_alloc()
137 cpx = zalloc_flags(cpx_zone, Z_WAITOK | Z_ZERO); in cpx_alloc()
141 cpx_alloc_ctx(cpx); in cpx_alloc()
[all …]
H A Dvfs_bio.c394 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
1522 cpx_t cpx = bufattr_cpx(buf_attr(bp)); in buf_strategy() local
1523 if (cpx) { in buf_strategy()
1525 if (cpx_use_offset_for_iv(cpx) && !cpx_synthetic_offset_for_iv(cpx)) { in buf_strategy()
/xnu-11215.1.10/bsd/sys/
H A Dcprotect.h114 typedef struct cpx *cpx_t;
194 int cpx_alloc_ctx(cpx_t cpx);
195 void cpx_free_ctx(cpx_t cpx);
197 void cpx_init_ctx_ptr(cpx_t cpx);
199 void cpx_writeprotect(cpx_t cpx);
201 __attribute__((pure)) bool cpx_is_sep_wrapped_key(const struct cpx *);
202 void cpx_set_is_sep_wrapped_key(struct cpx *, bool);
203 __attribute__((pure)) bool cpx_is_composite_key(const struct cpx *);
204 void cpx_set_is_composite_key(struct cpx *, bool);
205 __attribute__((pure)) bool cpx_use_offset_for_iv(const struct cpx *);
[all …]
H A Dbuf.h1127 struct cpx *bufattr_cpx(bufattr_t bap);
1134 void bufattr_setcpx(bufattr_t bap, struct cpx *cpx);
H A Dbuf_internal.h93 struct cpx *ba_cpx;