Lines Matching defs:page_virt
482 char *page_virt;
493 page_virt = kmap_local_page(page);
494 rc = ecryptfs_read_lower(page_virt, lower_offset, PAGE_SIZE,
496 kunmap_local(page_virt);
820 * @page_virt: Source data to be parsed
824 char *page_virt, int *bytes_read)
829 flags = get_unaligned_be32(page_virt);
842 * @page_virt: The pointer to in a page to begin writing the marker
847 static void write_ecryptfs_marker(char *page_virt, size_t *written)
853 put_unaligned_be32(m_1, page_virt);
854 page_virt += (MAGIC_ECRYPTFS_MARKER_SIZE_BYTES / 2);
855 put_unaligned_be32(m_2, page_virt);
859 void ecryptfs_write_crypt_stat_flags(char *page_virt,
871 put_unaligned_be32(flags, page_virt);
993 * @page_virt: The virtual address to write the headers to
994 * @max: The size of memory allocated at page_virt
1022 static int ecryptfs_write_headers_virt(char *page_virt, size_t max,
1032 write_ecryptfs_marker((page_virt + offset), &written);
1034 ecryptfs_write_crypt_stat_flags((page_virt + offset), crypt_stat,
1037 ecryptfs_write_header_metadata((page_virt + offset), crypt_stat,
1040 rc = ecryptfs_generate_key_packet_set((page_virt + offset), crypt_stat,
1072 char *page_virt, size_t size)
1085 ECRYPTFS_XATTR_NAME, page_virt, size, 0);
1213 void ecryptfs_i_size_init(const char *page_virt, struct inode *inode)
1227 file_size = get_unaligned_be64(page_virt);
1234 * @page_virt: The virtual address into which to read the headers
1244 static int ecryptfs_read_headers_virt(char *page_virt,
1257 rc = ecryptfs_validate_marker(page_virt + offset);
1261 ecryptfs_i_size_init(page_virt, d_inode(ecryptfs_dentry));
1263 ecryptfs_process_flags(crypt_stat, (page_virt + offset), &bytes_read);
1275 rc = parse_header_metadata(crypt_stat, (page_virt + offset),
1284 rc = ecryptfs_parse_packet_set(crypt_stat, (page_virt + offset),
1292 * @page_virt: The vitual address into which to read the xattr data
1300 int ecryptfs_read_xattr_region(char *page_virt, struct inode *ecryptfs_inode)
1310 page_virt, ECRYPTFS_DEFAULT_EXTENT_SIZE);
1359 char *page_virt;
1370 page_virt = kmem_cache_alloc(ecryptfs_header_cache, GFP_USER);
1371 if (!page_virt) {
1375 rc = ecryptfs_read_lower(page_virt, 0, crypt_stat->extent_size,
1378 rc = ecryptfs_read_headers_virt(page_virt, crypt_stat,
1383 memset(page_virt, 0, PAGE_SIZE);
1384 rc = ecryptfs_read_xattr_region(page_virt, ecryptfs_inode);
1392 rc = ecryptfs_read_headers_virt(page_virt, crypt_stat,
1415 if (page_virt) {
1416 memset(page_virt, 0, PAGE_SIZE);
1417 kmem_cache_free(ecryptfs_header_cache, page_virt);