Lines Matching defs:page

105  * Generate the initialization vector from the given root IV and page
136 "MD5 while generating IV for a page\n");
227 * Fills in a scatterlist array with page references for a passed
236 struct page *pg;
328 * Convert an eCryptfs page index into a lower byte offset
331 struct page *page)
334 ((loff_t)page->index << PAGE_SHIFT);
341 * @dst_page: The page to write the result into
342 * @src_page: The page to read from
351 struct page *dst_page,
352 struct page *src_page,
383 printk(KERN_ERR "%s: Error attempting to crypt page with "
395 * @page: Page mapped from the eCryptfs inode for the file; contains
397 * page; not in place) and written out to the lower file
399 * Encrypt an eCryptfs page. This is done on a per-extent basis. Note
401 * if the file was created on a machine with an 8K page size
403 * host with a 32K page size, then when reading page 0 of the eCryptfs
404 * file, 24K of page 0 of the lower file will be read and decrypted,
405 * and then 8K of page 1 of the lower file will be read and decrypted.
409 int ecryptfs_encrypt_page(struct page *page)
414 struct page *enc_extent_page = NULL;
419 ecryptfs_inode = page->mapping->host;
434 rc = crypt_extent(crypt_stat, enc_extent_page, page,
443 lower_offset = lower_offset_for_page(crypt_stat, page);
450 "Error attempting to write lower page; rc = [%d]\n",
464 * @page: Page mapped from the eCryptfs inode for the file; data read
466 * page
468 * Decrypt an eCryptfs page. This is done on a per-extent basis. Note
470 * if the file was created on a machine with an 8K page size
472 * host with a 32K page size, then when reading page 0 of the eCryptfs
473 * file, 24K of page 0 of the lower file will be read and decrypted,
474 * and then 8K of page 1 of the lower file will be read and decrypted.
478 int ecryptfs_decrypt_page(struct page *page)
487 ecryptfs_inode = page->mapping->host;
492 lower_offset = lower_offset_for_page(crypt_stat, page);
493 page_virt = kmap_local_page(page);
499 "Error attempting to read lower page; rc = [%d]\n",
507 rc = crypt_extent(crypt_stat, page, page,
842 * @page_virt: The pointer to in a page to begin writing the marker
1096 struct page *page;
1098 page = alloc_pages(gfp_mask | __GFP_ZERO, order);
1099 if (page)
1100 return (unsigned long) page_address(page);
1149 /* Zeroed page ensures the in-header unencrypted i_size is set to 0 */
1369 /* Read the first page from the underlying file */