Lines Matching refs:mpf

424 static int __init check_physptr(struct mpf_intel *mpf, unsigned int early)  in check_physptr()  argument
429 size = get_mpc_size(mpf->physptr); in check_physptr()
430 mpc = early_memremap(mpf->physptr, size); in check_physptr()
478 struct mpf_intel *mpf; in default_get_smp_config() local
496 mpf = early_memremap(mpf_base, sizeof(*mpf)); in default_get_smp_config()
497 if (!mpf) { in default_get_smp_config()
503 mpf->specification); in default_get_smp_config()
505 if (mpf->feature2 & (1 << 7)) { in default_get_smp_config()
516 if (mpf->feature1) { in default_get_smp_config()
523 pr_info("Default MP configuration #%d\n", mpf->feature1); in default_get_smp_config()
524 construct_default_ISA_mptable(mpf->feature1); in default_get_smp_config()
526 } else if (mpf->physptr) { in default_get_smp_config()
527 if (check_physptr(mpf, early)) in default_get_smp_config()
538 early_memunmap(mpf, sizeof(*mpf)); in default_get_smp_config()
541 static void __init smp_reserve_memory(struct mpf_intel *mpf) in smp_reserve_memory() argument
543 memblock_reserve(mpf->physptr, get_mpc_size(mpf->physptr)); in smp_reserve_memory()
549 struct mpf_intel *mpf; in smp_scan_config() local
554 BUILD_BUG_ON(sizeof(*mpf) != 16); in smp_scan_config()
558 mpf = (struct mpf_intel *)bp; in smp_scan_config()
560 (mpf->length == 1) && in smp_scan_config()
562 ((mpf->specification == 1) in smp_scan_config()
563 || (mpf->specification == 4))) { in smp_scan_config()
571 base, base + sizeof(*mpf) - 1); in smp_scan_config()
573 memblock_reserve(base, sizeof(*mpf)); in smp_scan_config()
574 if (mpf->physptr) in smp_scan_config()
575 smp_reserve_memory(mpf); in smp_scan_config()
829 struct mpf_intel *mpf; in update_mp_table() local
839 mpf = early_memremap(mpf_base, sizeof(*mpf)); in update_mp_table()
840 if (!mpf) { in update_mp_table()
848 if (mpf->feature1) in update_mp_table()
851 if (!mpf->physptr) in update_mp_table()
854 size = get_mpc_size(mpf->physptr); in update_mp_table()
855 mpc = early_memremap(mpf->physptr, size); in update_mp_table()
865 pr_info("physptr: %x\n", mpf->physptr); in update_mp_table()
891 mpf->physptr = mpc_new_phys; in update_mp_table()
897 if (mpc_new_phys - mpf->physptr) { in update_mp_table()
906 memcpy(mpf_new, mpf, 16); in update_mp_table()
907 early_memunmap(mpf, sizeof(*mpf)); in update_mp_table()
908 mpf = mpf_new; in update_mp_table()
909 mpf->physptr = mpc_new_phys; in update_mp_table()
911 mpf->checksum = 0; in update_mp_table()
912 mpf->checksum -= mpf_checksum((unsigned char *)mpf, 16); in update_mp_table()
913 pr_info("physptr new: %x\n", mpf->physptr); in update_mp_table()
928 early_memunmap(mpf, sizeof(*mpf)); in update_mp_table()