Home
last modified time | relevance | path

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

/xnu-12377.1.9/bsd/vfs/
H A Dvfs_cprotect.c69 struct cpx { struct
83 struct cpx cpx_var;
100 size_t size = sizeof(struct cpx) + key_len; in cpx_size()
106 cpx_sizex(const struct cpx *cpx) in cpx_sizex() argument
108 return cpx_size(cpx->cpx_max_key_len); in cpx_sizex()
114 cpx_t cpx = NULL; in cpx_alloc() local
125 kmem_alloc(kernel_map, (vm_offset_t *)&cpx, PAGE_SIZE, in cpx_alloc()
128 cpx->cpx_flags |= CPX_WRITE_PROTECTABLE; in cpx_alloc()
138 cpx = zalloc_flags(cpx_zone, Z_WAITOK | Z_ZERO); in cpx_alloc()
142 cpx_alloc_ctx(cpx); in cpx_alloc()
[all …]
H A Dvfs_bio.c410 bufattr_setcpx(bufattr_t bap, cpx_t cpx) in bufattr_setcpx() argument
412 bap->ba_cpx = cpx; in bufattr_setcpx()
447 struct cpx *
454 bufattr_setcpx(__unused bufattr_t bap, __unused struct cpx *cpx) in bufattr_setcpx() argument
1685 cpx_t cpx = bufattr_cpx(buf_attr(bp)); in buf_strategy() local
1686 if (cpx) { in buf_strategy()
1688 if (cpx_use_offset_for_iv(cpx) && !cpx_synthetic_offset_for_iv(cpx)) { in buf_strategy()
/xnu-12377.1.9/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.h1154 struct cpx *bufattr_cpx(bufattr_t bap);
1161 void bufattr_setcpx(bufattr_t bap, struct cpx *cpx);
H A Dbuf_internal.h93 struct cpx *ba_cpx;