Lines Matching defs:section
79 struct sgx_epc_section *section = &sgx_epc_sections[page->section];
80 struct sgx_numa_node *node = section->node;
605 struct sgx_epc_section *section = &sgx_epc_sections[page->section];
606 struct sgx_numa_node *node = section->node;
623 struct sgx_epc_section *section)
628 section->virt_addr = memremap(phys_addr, size, MEMREMAP_WB);
629 if (!section->virt_addr)
632 section->pages = vmalloc(nr_pages * sizeof(struct sgx_epc_page));
633 if (!section->pages) {
634 memunmap(section->virt_addr);
638 section->phys_addr = phys_addr;
639 xa_store_range(&sgx_epc_address_space, section->phys_addr,
640 phys_addr + size - 1, section, GFP_KERNEL);
643 section->pages[i].section = index;
644 section->pages[i].flags = 0;
645 section->pages[i].owner = NULL;
646 section->pages[i].poison = 0;
647 list_add_tail(§ion->pages[i].list, &sgx_dirty_page_list);
661 struct sgx_epc_section *section;
663 section = xa_load(&sgx_epc_address_space, paddr);
664 if (!section)
667 return §ion->pages[PFN_DOWN(paddr - section->phys_addr)];
680 struct sgx_epc_section *section;
701 section = &sgx_epc_sections[page->section];
702 node = section->node;
736 * A section metric is concatenated in a way that @low bits 12-31 define the
807 pr_err_once("Unknown EPC section type: %u\n", type);
814 pr_info("EPC section 0x%llx-0x%llx\n", pa, pa + size - 1);
817 pr_err("No free memory for an EPC section\n");
824 pr_warn(FW_BUG "Unable to map EPC section to online node. Fallback to the NUMA node 0.\n");