Lines Matching refs:section
78 struct sgx_epc_section *section = &sgx_epc_sections[page->section]; in __sgx_sanitize_pages() local
79 struct sgx_numa_node *node = section->node; in __sgx_sanitize_pages()
604 struct sgx_epc_section *section = &sgx_epc_sections[page->section]; in sgx_free_epc_page() local
605 struct sgx_numa_node *node = section->node; in sgx_free_epc_page()
622 struct sgx_epc_section *section) in sgx_setup_epc_section() argument
627 section->virt_addr = memremap(phys_addr, size, MEMREMAP_WB); in sgx_setup_epc_section()
628 if (!section->virt_addr) in sgx_setup_epc_section()
631 section->pages = vmalloc(nr_pages * sizeof(struct sgx_epc_page)); in sgx_setup_epc_section()
632 if (!section->pages) { in sgx_setup_epc_section()
633 memunmap(section->virt_addr); in sgx_setup_epc_section()
637 section->phys_addr = phys_addr; in sgx_setup_epc_section()
638 xa_store_range(&sgx_epc_address_space, section->phys_addr, in sgx_setup_epc_section()
639 phys_addr + size - 1, section, GFP_KERNEL); in sgx_setup_epc_section()
642 section->pages[i].section = index; in sgx_setup_epc_section()
643 section->pages[i].flags = 0; in sgx_setup_epc_section()
644 section->pages[i].owner = NULL; in sgx_setup_epc_section()
645 section->pages[i].poison = 0; in sgx_setup_epc_section()
646 list_add_tail(§ion->pages[i].list, &sgx_dirty_page_list); in sgx_setup_epc_section()
660 struct sgx_epc_section *section; in sgx_paddr_to_page() local
662 section = xa_load(&sgx_epc_address_space, paddr); in sgx_paddr_to_page()
663 if (!section) in sgx_paddr_to_page()
666 return §ion->pages[PFN_DOWN(paddr - section->phys_addr)]; in sgx_paddr_to_page()
679 struct sgx_epc_section *section; in arch_memory_failure() local
700 section = &sgx_epc_sections[page->section]; in arch_memory_failure()
701 node = section->node; in arch_memory_failure()