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;
354 * Convert an eCryptfs page index into a lower byte offset
357 struct page *page)
360 ((loff_t)page->index << PAGE_SHIFT);
367 * @dst_page: The page to write the result into
368 * @src_page: The page to read from
377 struct page *dst_page,
378 struct page *src_page,
409 printk(KERN_ERR "%s: Error attempting to crypt page with "
421 * @page: Page mapped from the eCryptfs inode for the file; contains
423 * page; not in place) and written out to the lower file
425 * Encrypt an eCryptfs page. This is done on a per-extent basis. Note
427 * if the file was created on a machine with an 8K page size
429 * host with a 32K page size, then when reading page 0 of the eCryptfs
430 * file, 24K of page 0 of the lower file will be read and decrypted,
431 * and then 8K of page 1 of the lower file will be read and decrypted.
435 int ecryptfs_encrypt_page(struct page *page)
440 struct page *enc_extent_page = NULL;
445 ecryptfs_inode = page->mapping->host;
460 rc = crypt_extent(crypt_stat, enc_extent_page, page,
469 lower_offset = lower_offset_for_page(crypt_stat, page);
476 "Error attempting to write lower page; rc = [%d]\n",
490 * @page: Page mapped from the eCryptfs inode for the file; data read
492 * page
494 * Decrypt an eCryptfs page. This is done on a per-extent basis. Note
496 * if the file was created on a machine with an 8K page size
498 * host with a 32K page size, then when reading page 0 of the eCryptfs
499 * file, 24K of page 0 of the lower file will be read and decrypted,
500 * and then 8K of page 1 of the lower file will be read and decrypted.
504 int ecryptfs_decrypt_page(struct page *page)
513 ecryptfs_inode = page->mapping->host;
518 lower_offset = lower_offset_for_page(crypt_stat, page);
519 page_virt = kmap(page);
522 kunmap(page);
525 "Error attempting to read lower page; rc = [%d]\n",
533 rc = crypt_extent(crypt_stat, page, page,
869 * @page_virt: The pointer to in a page to begin writing the marker
1123 struct page *page;
1125 page = alloc_pages(gfp_mask | __GFP_ZERO, order);
1126 if (page)
1127 return (unsigned long) page_address(page);
1176 /* Zeroed page ensures the in-header unencrypted i_size is set to 0 */
1396 /* Read the first page from the underlying file */