Lines Matching refs:mpf
425 static int __init check_physptr(struct mpf_intel *mpf, unsigned int early) in check_physptr() argument
430 size = get_mpc_size(mpf->physptr); in check_physptr()
431 mpc = early_memremap(mpf->physptr, size); in check_physptr()
479 struct mpf_intel *mpf; in mpparse_get_smp_config() local
497 mpf = early_memremap(mpf_base, sizeof(*mpf)); in mpparse_get_smp_config()
498 if (!mpf) { in mpparse_get_smp_config()
504 mpf->specification); in mpparse_get_smp_config()
506 if (mpf->feature2 & (1 << 7)) { in mpparse_get_smp_config()
517 if (mpf->feature1) { in mpparse_get_smp_config()
524 pr_info("Default MP configuration #%d\n", mpf->feature1); in mpparse_get_smp_config()
525 construct_default_ISA_mptable(mpf->feature1); in mpparse_get_smp_config()
527 } else if (mpf->physptr) { in mpparse_get_smp_config()
528 if (check_physptr(mpf, early)) in mpparse_get_smp_config()
539 early_memunmap(mpf, sizeof(*mpf)); in mpparse_get_smp_config()
552 static void __init smp_reserve_memory(struct mpf_intel *mpf) in smp_reserve_memory() argument
554 memblock_reserve(mpf->physptr, get_mpc_size(mpf->physptr)); in smp_reserve_memory()
560 struct mpf_intel *mpf; in smp_scan_config() local
564 BUILD_BUG_ON(sizeof(*mpf) != 16); in smp_scan_config()
568 mpf = (struct mpf_intel *)bp; in smp_scan_config()
570 (mpf->length == 1) && in smp_scan_config()
572 ((mpf->specification == 1) in smp_scan_config()
573 || (mpf->specification == 4))) { in smp_scan_config()
581 base, base + sizeof(*mpf) - 1); in smp_scan_config()
583 memblock_reserve(base, sizeof(*mpf)); in smp_scan_config()
584 if (mpf->physptr) in smp_scan_config()
585 smp_reserve_memory(mpf); in smp_scan_config()
839 struct mpf_intel *mpf; in update_mp_table() local
849 mpf = early_memremap(mpf_base, sizeof(*mpf)); in update_mp_table()
850 if (!mpf) { in update_mp_table()
858 if (mpf->feature1) in update_mp_table()
861 if (!mpf->physptr) in update_mp_table()
864 size = get_mpc_size(mpf->physptr); in update_mp_table()
865 mpc = early_memremap(mpf->physptr, size); in update_mp_table()
875 pr_info("physptr: %x\n", mpf->physptr); in update_mp_table()
901 mpf->physptr = mpc_new_phys; in update_mp_table()
907 if (mpc_new_phys - mpf->physptr) { in update_mp_table()
916 memcpy(mpf_new, mpf, 16); in update_mp_table()
917 early_memunmap(mpf, sizeof(*mpf)); in update_mp_table()
918 mpf = mpf_new; in update_mp_table()
919 mpf->physptr = mpc_new_phys; in update_mp_table()
921 mpf->checksum = 0; in update_mp_table()
922 mpf->checksum -= mpf_checksum((unsigned char *)mpf, 16); in update_mp_table()
923 pr_info("physptr new: %x\n", mpf->physptr); in update_mp_table()
938 early_memunmap(mpf, sizeof(*mpf)); in update_mp_table()