Lines Matching defs:cfa
74 struct ceph_fscrypt_auth *cfa = (struct ceph_fscrypt_auth *)ci->fscrypt_auth;
78 if (!cfa || (ci->fscrypt_auth_len < (offsetof(struct ceph_fscrypt_auth, cfa_blob) + 1)))
82 if (le32_to_cpu(cfa->cfa_version) != CEPH_FSCRYPT_AUTH_VERSION)
85 ctxlen = le32_to_cpu(cfa->cfa_blob_len);
89 memcpy(ctx, cfa->cfa_blob, ctxlen);
99 struct ceph_fscrypt_auth *cfa;
106 cfa = kzalloc(sizeof(*cfa), GFP_KERNEL);
107 if (!cfa)
110 cfa->cfa_version = cpu_to_le32(CEPH_FSCRYPT_AUTH_VERSION);
111 cfa->cfa_blob_len = cpu_to_le32(len);
112 memcpy(cfa->cfa_blob, ctx, len);
114 cia.fscrypt_auth = cfa;