Lines Matching refs:policy_u
302 bool fscrypt_supported_policy(const union fscrypt_policy *policy_u, in fscrypt_supported_policy() argument
305 switch (policy_u->version) { in fscrypt_supported_policy()
307 return fscrypt_supported_v1_policy(&policy_u->v1, inode); in fscrypt_supported_policy()
309 return fscrypt_supported_v2_policy(&policy_u->v2, inode); in fscrypt_supported_policy()
326 const union fscrypt_policy *policy_u, in fscrypt_new_context() argument
331 switch (policy_u->version) { in fscrypt_new_context()
333 const struct fscrypt_policy_v1 *policy = &policy_u->v1; in fscrypt_new_context()
349 const struct fscrypt_policy_v2 *policy = &policy_u->v2; in fscrypt_new_context()
384 int fscrypt_policy_from_context(union fscrypt_policy *policy_u, in fscrypt_policy_from_context() argument
388 memset(policy_u, 0, sizeof(*policy_u)); in fscrypt_policy_from_context()
396 struct fscrypt_policy_v1 *policy = &policy_u->v1; in fscrypt_policy_from_context()
411 struct fscrypt_policy_v2 *policy = &policy_u->v2; in fscrypt_policy_from_context()