Lines Matching refs:pagesize
101 long pagesize; member
133 check_and_map_sdt(struct physmem *physmem, long pagesize, u64 addr, const char *signature, void **m… in check_and_map_sdt() argument
143 map = physmem_map(physmem, addr & ~(pagesize-1), sizeof(*sdt) + (addr & (pagesize-1)), 0); in check_and_map_sdt()
147 sdt = (struct acpi_sdt *)((unsigned char *)map + (addr & (pagesize-1))); in check_and_map_sdt()
151 physmem_unmap(physmem, map, sizeof(*sdt) + (addr & (pagesize-1))); in check_and_map_sdt()
158 map = physmem_map(physmem, addr & ~(pagesize-1), length + (addr & (pagesize-1)), 0); in check_and_map_sdt()
162 sdt = (struct acpi_sdt *)((unsigned char *)map + (addr & (pagesize-1))); in check_and_map_sdt()
166 physmem_unmap(physmem, map, length + (addr & (pagesize-1))); in check_and_map_sdt()
171 *map_length = length + (addr & (pagesize-1)); in check_and_map_sdt()
186 check_and_parse_rsdp(struct physmem *physmem, long pagesize, u64 addr, u32 *rsdt_address, u64 *xsdt… in check_and_parse_rsdp() argument
192 map = physmem_map(physmem, addr & ~(pagesize-1), sizeof(buf) + (addr & (pagesize-1)), 0); in check_and_parse_rsdp()
197 memcpy(rsdp, (unsigned char *)map + (addr & (pagesize-1)), sizeof(buf)); in check_and_parse_rsdp()
230 long pagesize = eacc->pagesize; in find_rsdp_address() local
326 map = physmem_map(physmem, ebda & ~(pagesize-1), 1024 + (ebda & (pagesize-1)), 0); in find_rsdp_address()
329 for (addr = ebda & (pagesize-1); addr < (ebda & (pagesize-1)) + 1024; addr += 16) in find_rsdp_address()
333 rsdp_addr = (ebda & ~(pagesize-1)) + addr; in find_rsdp_address()
337 if (physmem_unmap(physmem, map, 1024 + (ebda & (pagesize-1))) != 0) in find_rsdp_address()
441 long pagesize = eacc->pagesize; local
524 if (!check_and_parse_rsdp(physmem, pagesize, rsdp_address, &rsdt_address, &xsdt_address))
533 …xsdt = xsdt_address ? (struct acpi_xsdt *)check_and_map_sdt(physmem, pagesize, xsdt_address, "XSDT…
540 …sdt = check_and_map_sdt(physmem, pagesize, xsdt->sdt_addresses[i], "MCFG", &map2_addr, &map2_lengt…
557 …rsdt = (struct acpi_rsdt *)check_and_map_sdt(physmem, pagesize, rsdt_address, "RSDT", &map_addr, &…
564 …sdt = check_and_map_sdt(physmem, pagesize, rsdt->sdt_addresses[i], "MCFG", &map2_addr, &map2_lengt…
799 long pagesize = eacc->pagesize; local
804 physmem_unmap(physmem, cache->map, cache->length + (cache->addr & (pagesize-1)));
815 long pagesize = eacc->pagesize; local
834 map = physmem_map(physmem, addr & ~(pagesize-1), length + (addr & (pagesize-1)), w);
839 physmem_unmap(physmem, cache->map, cache->length + (cache->addr & (pagesize-1)));
860 *reg = (unsigned char *)map + (addr & (pagesize-1)) + offset;
986 eacc->pagesize = physmem_get_pagesize(eacc->physmem);
987 if (eacc->pagesize <= 0)
1030 long pagesize = 0; local
1046 pagesize = physmem_get_pagesize(physmem);
1047 if (pagesize <= 0)
1054 eacc->pagesize = pagesize;