Lines Matching refs:ci_policy
339 if (ci->ci_policy.v2.flags & FSCRYPT_POLICY_FLAG_DIRECT_KEY) { in fscrypt_setup_v2_file_key()
350 } else if (ci->ci_policy.v2.flags & in fscrypt_setup_v2_file_key()
361 } else if (ci->ci_policy.v2.flags & in fscrypt_setup_v2_file_key()
412 if (ci->ci_policy.version == FSCRYPT_POLICY_V1) in fscrypt_valid_master_key_size()
452 err = fscrypt_policy_to_key_spec(&ci->ci_policy, &mk_spec); in setup_file_encryption_key()
468 fscrypt_policies_equal(dummy_policy, &ci->ci_policy)) { in setup_file_encryption_key()
476 if (ci->ci_policy.version != FSCRYPT_POLICY_V1) in setup_file_encryption_key()
500 switch (ci->ci_policy.version) { in setup_file_encryption_key()
574 crypt_info->ci_policy = *policy; in fscrypt_setup_encryption_info()
577 mode = select_encryption_mode(&crypt_info->ci_policy, inode); in fscrypt_setup_encryption_info()
586 fscrypt_policy_du_bits(&crypt_info->ci_policy, inode); in fscrypt_setup_encryption_info()