Lines Matching full:backing
16 struct sgx_backing *backing);
37 * The backing storage to which enclave pages are reclaimed is laid out as
92 * to ensure that the page is not already in backing store. in reclaimer_writing_to_pcmd()
106 * follow right after the EPC data in the backing storage. In addition to the
119 * Free a page from the backing storage in the given page index.
123 struct inode *inode = file_inode(encl->backing); in sgx_encl_truncate_backing_page()
320 * When an initialized enclave accesses a page with no backing EPC page
756 if (encl->backing) in sgx_encl_release()
757 fput(encl->backing); in sgx_encl_release()
952 struct address_space *mapping = encl->backing->f_mapping; in sgx_encl_get_backing_page()
959 * __sgx_encl_get_backing() - Pin the backing storage
962 * @backing: data for accessing backing storage for the page
964 * Pin the backing storage pages for storing the encrypted contents and Paging
972 struct sgx_backing *backing) in __sgx_encl_get_backing() argument
988 backing->contents = contents; in __sgx_encl_get_backing()
989 backing->pcmd = pcmd; in __sgx_encl_get_backing()
990 backing->pcmd_offset = page_pcmd_off & (PAGE_SIZE - 1); in __sgx_encl_get_backing()
1046 * sgx_encl_alloc_backing() - create a new backing storage page
1049 * @backing: data for accessing backing storage for the page
1052 * mms in the enclave's mm_list prior to any backing page allocation,
1054 * enclave. Create a backing page for loading data back into an EPC page with
1055 * ELDU. This function takes a reference on a new backing page which
1063 struct sgx_backing *backing) in sgx_encl_alloc_backing() argument
1069 ret = __sgx_encl_get_backing(encl, page_index, backing); in sgx_encl_alloc_backing()
1078 * sgx_encl_lookup_backing() - retrieve an existing backing storage page
1081 * @backing: data for accessing backing storage for the page
1083 * Retrieve a backing page for loading data back into an EPC page with ELDU.
1087 * This function takes a reference on an existing backing page which must be
1095 struct sgx_backing *backing) in sgx_encl_lookup_backing() argument
1097 return __sgx_encl_get_backing(encl, page_index, backing); in sgx_encl_lookup_backing()
1101 * sgx_encl_put_backing() - Unpin the backing storage
1102 * @backing: data for accessing backing storage for the page
1104 void sgx_encl_put_backing(struct sgx_backing *backing) in sgx_encl_put_backing() argument
1106 put_page(backing->pcmd); in sgx_encl_put_backing()
1107 put_page(backing->contents); in sgx_encl_put_backing()