Lines Matching refs:page_virt

506 	char *page_virt;  in ecryptfs_decrypt_page()  local
517 page_virt = kmap(page); in ecryptfs_decrypt_page()
518 rc = ecryptfs_read_lower(page_virt, lower_offset, PAGE_SIZE, in ecryptfs_decrypt_page()
848 char *page_virt, int *bytes_read) in ecryptfs_process_flags() argument
853 flags = get_unaligned_be32(page_virt); in ecryptfs_process_flags()
871 static void write_ecryptfs_marker(char *page_virt, size_t *written) in write_ecryptfs_marker() argument
877 put_unaligned_be32(m_1, page_virt); in write_ecryptfs_marker()
878 page_virt += (MAGIC_ECRYPTFS_MARKER_SIZE_BYTES / 2); in write_ecryptfs_marker()
879 put_unaligned_be32(m_2, page_virt); in write_ecryptfs_marker()
883 void ecryptfs_write_crypt_stat_flags(char *page_virt, in ecryptfs_write_crypt_stat_flags() argument
895 put_unaligned_be32(flags, page_virt); in ecryptfs_write_crypt_stat_flags()
1046 static int ecryptfs_write_headers_virt(char *page_virt, size_t max, in ecryptfs_write_headers_virt() argument
1056 write_ecryptfs_marker((page_virt + offset), &written); in ecryptfs_write_headers_virt()
1058 ecryptfs_write_crypt_stat_flags((page_virt + offset), crypt_stat, in ecryptfs_write_headers_virt()
1061 ecryptfs_write_header_metadata((page_virt + offset), crypt_stat, in ecryptfs_write_headers_virt()
1064 rc = ecryptfs_generate_key_packet_set((page_virt + offset), crypt_stat, in ecryptfs_write_headers_virt()
1096 char *page_virt, size_t size) in ecryptfs_write_metadata_to_xattr() argument
1109 ECRYPTFS_XATTR_NAME, page_virt, size, 0); in ecryptfs_write_metadata_to_xattr()
1237 void ecryptfs_i_size_init(const char *page_virt, struct inode *inode) in ecryptfs_i_size_init() argument
1251 file_size = get_unaligned_be64(page_virt); in ecryptfs_i_size_init()
1268 static int ecryptfs_read_headers_virt(char *page_virt, in ecryptfs_read_headers_virt() argument
1281 rc = ecryptfs_validate_marker(page_virt + offset); in ecryptfs_read_headers_virt()
1285 ecryptfs_i_size_init(page_virt, d_inode(ecryptfs_dentry)); in ecryptfs_read_headers_virt()
1287 ecryptfs_process_flags(crypt_stat, (page_virt + offset), &bytes_read); in ecryptfs_read_headers_virt()
1299 rc = parse_header_metadata(crypt_stat, (page_virt + offset), in ecryptfs_read_headers_virt()
1308 rc = ecryptfs_parse_packet_set(crypt_stat, (page_virt + offset), in ecryptfs_read_headers_virt()
1324 int ecryptfs_read_xattr_region(char *page_virt, struct inode *ecryptfs_inode) in ecryptfs_read_xattr_region() argument
1334 page_virt, ECRYPTFS_DEFAULT_EXTENT_SIZE); in ecryptfs_read_xattr_region()
1383 char *page_virt; in ecryptfs_read_metadata() local
1394 page_virt = kmem_cache_alloc(ecryptfs_header_cache, GFP_USER); in ecryptfs_read_metadata()
1395 if (!page_virt) { in ecryptfs_read_metadata()
1399 rc = ecryptfs_read_lower(page_virt, 0, crypt_stat->extent_size, in ecryptfs_read_metadata()
1402 rc = ecryptfs_read_headers_virt(page_virt, crypt_stat, in ecryptfs_read_metadata()
1407 memset(page_virt, 0, PAGE_SIZE); in ecryptfs_read_metadata()
1408 rc = ecryptfs_read_xattr_region(page_virt, ecryptfs_inode); in ecryptfs_read_metadata()
1416 rc = ecryptfs_read_headers_virt(page_virt, crypt_stat, in ecryptfs_read_metadata()
1439 if (page_virt) { in ecryptfs_read_metadata()
1440 memset(page_virt, 0, PAGE_SIZE); in ecryptfs_read_metadata()
1441 kmem_cache_free(ecryptfs_header_cache, page_virt); in ecryptfs_read_metadata()