Lines Matching refs:mpf

433 static int __init check_physptr(struct mpf_intel *mpf, unsigned int early)  in check_physptr()  argument
438 size = get_mpc_size(mpf->physptr); in check_physptr()
439 mpc = early_memremap(mpf->physptr, size); in check_physptr()
487 struct mpf_intel *mpf; in default_get_smp_config() local
505 mpf = early_memremap(mpf_base, sizeof(*mpf)); in default_get_smp_config()
506 if (!mpf) { in default_get_smp_config()
512 mpf->specification); in default_get_smp_config()
514 if (mpf->feature2 & (1 << 7)) { in default_get_smp_config()
525 if (mpf->feature1) { in default_get_smp_config()
534 pr_info("Default MP configuration #%d\n", mpf->feature1); in default_get_smp_config()
535 construct_default_ISA_mptable(mpf->feature1); in default_get_smp_config()
537 } else if (mpf->physptr) { in default_get_smp_config()
538 if (check_physptr(mpf, early)) in default_get_smp_config()
549 early_memunmap(mpf, sizeof(*mpf)); in default_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
565 BUILD_BUG_ON(sizeof(*mpf) != 16); in smp_scan_config()
569 mpf = (struct mpf_intel *)bp; in smp_scan_config()
571 (mpf->length == 1) && in smp_scan_config()
573 ((mpf->specification == 1) in smp_scan_config()
574 || (mpf->specification == 4))) { in smp_scan_config()
582 base, base + sizeof(*mpf) - 1); in smp_scan_config()
584 memblock_reserve(base, sizeof(*mpf)); in smp_scan_config()
585 if (mpf->physptr) in smp_scan_config()
586 smp_reserve_memory(mpf); in smp_scan_config()
840 struct mpf_intel *mpf; in update_mp_table() local
850 mpf = early_memremap(mpf_base, sizeof(*mpf)); in update_mp_table()
851 if (!mpf) { in update_mp_table()
859 if (mpf->feature1) in update_mp_table()
862 if (!mpf->physptr) in update_mp_table()
865 size = get_mpc_size(mpf->physptr); in update_mp_table()
866 mpc = early_memremap(mpf->physptr, size); in update_mp_table()
876 pr_info("physptr: %x\n", mpf->physptr); in update_mp_table()
902 mpf->physptr = mpc_new_phys; in update_mp_table()
908 if (mpc_new_phys - mpf->physptr) { in update_mp_table()
917 memcpy(mpf_new, mpf, 16); in update_mp_table()
918 early_memunmap(mpf, sizeof(*mpf)); in update_mp_table()
919 mpf = mpf_new; in update_mp_table()
920 mpf->physptr = mpc_new_phys; in update_mp_table()
922 mpf->checksum = 0; in update_mp_table()
923 mpf->checksum -= mpf_checksum((unsigned char *)mpf, 16); in update_mp_table()
924 pr_info("physptr new: %x\n", mpf->physptr); in update_mp_table()
939 early_memunmap(mpf, sizeof(*mpf)); in update_mp_table()