Lines Matching defs:section
85 struct sgx_epc_section *section = &sgx_epc_sections[page->section];
86 struct sgx_numa_node *node = section->node;
487 * Try local node first. If it doesn't have an EPC section,
612 struct sgx_epc_section *section = &sgx_epc_sections[page->section];
613 struct sgx_numa_node *node = section->node;
630 struct sgx_epc_section *section)
635 section->virt_addr = memremap(phys_addr, size, MEMREMAP_WB);
636 if (!section->virt_addr)
639 section->pages = vmalloc_array(nr_pages, sizeof(struct sgx_epc_page));
640 if (!section->pages) {
641 memunmap(section->virt_addr);
645 section->phys_addr = phys_addr;
646 xa_store_range(&sgx_epc_address_space, section->phys_addr,
647 phys_addr + size - 1, section, GFP_KERNEL);
650 section->pages[i].section = index;
651 section->pages[i].flags = 0;
652 section->pages[i].owner = NULL;
653 section->pages[i].poison = 0;
654 list_add_tail(§ion->pages[i].list, &sgx_dirty_page_list);
668 struct sgx_epc_section *section;
670 section = xa_load(&sgx_epc_address_space, paddr);
671 if (!section)
674 return §ion->pages[PFN_DOWN(paddr - section->phys_addr)];
687 struct sgx_epc_section *section;
708 section = &sgx_epc_sections[page->section];
709 node = section->node;
745 * A section metric is concatenated in a way that @low bits 12-31 define the
816 pr_err_once("Unknown EPC section type: %u\n", type);
823 pr_info("EPC section 0x%llx-0x%llx\n", pa, pa + size - 1);
826 pr_err("No free memory for an EPC section\n");
833 pr_warn(FW_BUG "Unable to map EPC section to online node. Fallback to the NUMA node 0.\n");
862 pr_info("node%d has both CPUs and memory but doesn't have an EPC section\n",