Lines Matching refs:section
78 struct sgx_epc_section *section = &sgx_epc_sections[page->section];
79 struct sgx_numa_node *node = section->node;
604 struct sgx_epc_section *section = &sgx_epc_sections[page->section];
605 struct sgx_numa_node *node = section->node;
622 struct sgx_epc_section *section)
627 section->virt_addr = memremap(phys_addr, size, MEMREMAP_WB);
628 if (!section->virt_addr)
631 section->pages = vmalloc(nr_pages * sizeof(struct sgx_epc_page));
632 if (!section->pages) {
633 memunmap(section->virt_addr);
637 section->phys_addr = phys_addr;
638 xa_store_range(&sgx_epc_address_space, section->phys_addr,
639 phys_addr + size - 1, section, GFP_KERNEL);
642 section->pages[i].section = index;
643 section->pages[i].flags = 0;
644 section->pages[i].owner = NULL;
645 section->pages[i].poison = 0;
646 list_add_tail(§ion->pages[i].list, &sgx_dirty_page_list);
660 struct sgx_epc_section *section;
662 section = xa_load(&sgx_epc_address_space, paddr);
663 if (!section)
666 return §ion->pages[PFN_DOWN(paddr - section->phys_addr)];
679 struct sgx_epc_section *section;
700 section = &sgx_epc_sections[page->section];
701 node = section->node;
735 * A section metric is concatenated in a way that @low bits 12-31 define the
806 pr_err_once("Unknown EPC section type: %u\n", type);
813 pr_info("EPC section 0x%llx-0x%llx\n", pa, pa + size - 1);
816 pr_err("No free memory for an EPC section\n");
823 pr_warn(FW_BUG "Unable to map EPC section to online node. Fallback to the NUMA node 0.\n");