Lines Matching refs:section
79 struct sgx_epc_section *section = &sgx_epc_sections[page->section]; in __sgx_sanitize_pages() local
80 struct sgx_numa_node *node = section->node; in __sgx_sanitize_pages()
606 struct sgx_epc_section *section = &sgx_epc_sections[page->section]; in sgx_free_epc_page() local
607 struct sgx_numa_node *node = section->node; in sgx_free_epc_page()
624 struct sgx_epc_section *section) in sgx_setup_epc_section() argument
629 section->virt_addr = memremap(phys_addr, size, MEMREMAP_WB); in sgx_setup_epc_section()
630 if (!section->virt_addr) in sgx_setup_epc_section()
633 section->pages = vmalloc(nr_pages * sizeof(struct sgx_epc_page)); in sgx_setup_epc_section()
634 if (!section->pages) { in sgx_setup_epc_section()
635 memunmap(section->virt_addr); in sgx_setup_epc_section()
639 section->phys_addr = phys_addr; in sgx_setup_epc_section()
640 xa_store_range(&sgx_epc_address_space, section->phys_addr, in sgx_setup_epc_section()
641 phys_addr + size - 1, section, GFP_KERNEL); in sgx_setup_epc_section()
644 section->pages[i].section = index; in sgx_setup_epc_section()
645 section->pages[i].flags = 0; in sgx_setup_epc_section()
646 section->pages[i].owner = NULL; in sgx_setup_epc_section()
647 section->pages[i].poison = 0; in sgx_setup_epc_section()
648 list_add_tail(§ion->pages[i].list, &sgx_dirty_page_list); in sgx_setup_epc_section()
662 struct sgx_epc_section *section; in sgx_paddr_to_page() local
664 section = xa_load(&sgx_epc_address_space, paddr); in sgx_paddr_to_page()
665 if (!section) in sgx_paddr_to_page()
668 return §ion->pages[PFN_DOWN(paddr - section->phys_addr)]; in sgx_paddr_to_page()
681 struct sgx_epc_section *section; in arch_memory_failure() local
702 section = &sgx_epc_sections[page->section]; in arch_memory_failure()
703 node = section->node; in arch_memory_failure()