Lines Matching refs:persist_data_offset
182 __le64 persist_data_offset[2]; /* Absolute offset to both copies of crypt_persist_data member
698 crypt_ftr->persist_data_offset[0] = pdata_offset; in upgrade_crypt_ftr()
699 crypt_ftr->persist_data_offset[1] = pdata_offset + CRYPT_PERSIST_DATA_SIZE; in upgrade_crypt_ftr()
812 if (crypt_ftr->persist_data_offset[0] + crypt_ftr->persist_data_size > in validate_persistent_data_storage()
813 crypt_ftr->persist_data_offset[1]) { in validate_persistent_data_storage()
818 if (crypt_ftr->persist_data_offset[0] >= crypt_ftr->persist_data_offset[1]) { in validate_persistent_data_storage()
823 if (((crypt_ftr->persist_data_offset[1] + crypt_ftr->persist_data_size) - in validate_persistent_data_storage()
824 (crypt_ftr->persist_data_offset[0] - CRYPT_FOOTER_TO_PERSIST_OFFSET)) > in validate_persistent_data_storage()
892 if (lseek64(fd, crypt_ftr.persist_data_offset[i], SEEK_SET) < 0) { in load_persistent_data()
969 if (lseek64(fd, crypt_ftr.persist_data_offset[0], SEEK_SET) < 0) { in save_persistent_data()
982 write_offset = crypt_ftr.persist_data_offset[1]; in save_persistent_data()
983 erase_offset = crypt_ftr.persist_data_offset[0]; in save_persistent_data()
987 write_offset = crypt_ftr.persist_data_offset[0]; in save_persistent_data()
988 erase_offset = crypt_ftr.persist_data_offset[1]; in save_persistent_data()
2047 ftr->persist_data_offset[0] = off + CRYPT_FOOTER_TO_PERSIST_OFFSET; in cryptfs_init_crypt_mnt_ftr()
2048 ftr->persist_data_offset[1] = off + CRYPT_FOOTER_TO_PERSIST_OFFSET + ftr->persist_data_size; in cryptfs_init_crypt_mnt_ftr()