Lines Matching refs:page_virt
482 char *page_virt; in ecryptfs_decrypt_page() local
493 page_virt = kmap_local_page(page); in ecryptfs_decrypt_page()
494 rc = ecryptfs_read_lower(page_virt, lower_offset, PAGE_SIZE, in ecryptfs_decrypt_page()
496 kunmap_local(page_virt); in ecryptfs_decrypt_page()
824 char *page_virt, int *bytes_read) in ecryptfs_process_flags() argument
829 flags = get_unaligned_be32(page_virt); in ecryptfs_process_flags()
847 static void write_ecryptfs_marker(char *page_virt, size_t *written) in write_ecryptfs_marker() argument
853 put_unaligned_be32(m_1, page_virt); in write_ecryptfs_marker()
854 page_virt += (MAGIC_ECRYPTFS_MARKER_SIZE_BYTES / 2); in write_ecryptfs_marker()
855 put_unaligned_be32(m_2, page_virt); in write_ecryptfs_marker()
859 void ecryptfs_write_crypt_stat_flags(char *page_virt, in ecryptfs_write_crypt_stat_flags() argument
871 put_unaligned_be32(flags, page_virt); in ecryptfs_write_crypt_stat_flags()
1022 static int ecryptfs_write_headers_virt(char *page_virt, size_t max, in ecryptfs_write_headers_virt() argument
1032 write_ecryptfs_marker((page_virt + offset), &written); in ecryptfs_write_headers_virt()
1034 ecryptfs_write_crypt_stat_flags((page_virt + offset), crypt_stat, in ecryptfs_write_headers_virt()
1037 ecryptfs_write_header_metadata((page_virt + offset), crypt_stat, in ecryptfs_write_headers_virt()
1040 rc = ecryptfs_generate_key_packet_set((page_virt + offset), crypt_stat, in ecryptfs_write_headers_virt()
1072 char *page_virt, size_t size) in ecryptfs_write_metadata_to_xattr() argument
1085 ECRYPTFS_XATTR_NAME, page_virt, size, 0); in ecryptfs_write_metadata_to_xattr()
1213 void ecryptfs_i_size_init(const char *page_virt, struct inode *inode) in ecryptfs_i_size_init() argument
1227 file_size = get_unaligned_be64(page_virt); in ecryptfs_i_size_init()
1244 static int ecryptfs_read_headers_virt(char *page_virt, in ecryptfs_read_headers_virt() argument
1257 rc = ecryptfs_validate_marker(page_virt + offset); in ecryptfs_read_headers_virt()
1261 ecryptfs_i_size_init(page_virt, d_inode(ecryptfs_dentry)); in ecryptfs_read_headers_virt()
1263 ecryptfs_process_flags(crypt_stat, (page_virt + offset), &bytes_read); in ecryptfs_read_headers_virt()
1275 rc = parse_header_metadata(crypt_stat, (page_virt + offset), in ecryptfs_read_headers_virt()
1284 rc = ecryptfs_parse_packet_set(crypt_stat, (page_virt + offset), in ecryptfs_read_headers_virt()
1300 int ecryptfs_read_xattr_region(char *page_virt, struct inode *ecryptfs_inode) in ecryptfs_read_xattr_region() argument
1310 page_virt, ECRYPTFS_DEFAULT_EXTENT_SIZE); in ecryptfs_read_xattr_region()
1359 char *page_virt; in ecryptfs_read_metadata() local
1370 page_virt = kmem_cache_alloc(ecryptfs_header_cache, GFP_USER); in ecryptfs_read_metadata()
1371 if (!page_virt) { in ecryptfs_read_metadata()
1375 rc = ecryptfs_read_lower(page_virt, 0, crypt_stat->extent_size, in ecryptfs_read_metadata()
1378 rc = ecryptfs_read_headers_virt(page_virt, crypt_stat, in ecryptfs_read_metadata()
1383 memset(page_virt, 0, PAGE_SIZE); in ecryptfs_read_metadata()
1384 rc = ecryptfs_read_xattr_region(page_virt, ecryptfs_inode); in ecryptfs_read_metadata()
1392 rc = ecryptfs_read_headers_virt(page_virt, crypt_stat, in ecryptfs_read_metadata()
1415 if (page_virt) { in ecryptfs_read_metadata()
1416 memset(page_virt, 0, PAGE_SIZE); in ecryptfs_read_metadata()
1417 kmem_cache_free(ecryptfs_header_cache, page_virt); in ecryptfs_read_metadata()