Lines Matching refs:mpf

434 static int __init check_physptr(struct mpf_intel *mpf, unsigned int early)  in check_physptr()  argument
439 size = get_mpc_size(mpf->physptr); in check_physptr()
440 mpc = early_memremap(mpf->physptr, size); in check_physptr()
488 struct mpf_intel *mpf; in default_get_smp_config() local
506 mpf = early_memremap(mpf_base, sizeof(*mpf)); in default_get_smp_config()
507 if (!mpf) { in default_get_smp_config()
513 mpf->specification); in default_get_smp_config()
515 if (mpf->feature2 & (1 << 7)) { in default_get_smp_config()
526 if (mpf->feature1) { in default_get_smp_config()
535 pr_info("Default MP configuration #%d\n", mpf->feature1); in default_get_smp_config()
536 construct_default_ISA_mptable(mpf->feature1); in default_get_smp_config()
538 } else if (mpf->physptr) { in default_get_smp_config()
539 if (check_physptr(mpf, early)) in default_get_smp_config()
550 early_memunmap(mpf, sizeof(*mpf)); in default_get_smp_config()
553 static void __init smp_reserve_memory(struct mpf_intel *mpf) in smp_reserve_memory() argument
555 memblock_reserve(mpf->physptr, get_mpc_size(mpf->physptr)); in smp_reserve_memory()
561 struct mpf_intel *mpf; in smp_scan_config() local
566 BUILD_BUG_ON(sizeof(*mpf) != 16); in smp_scan_config()
570 mpf = (struct mpf_intel *)bp; in smp_scan_config()
572 (mpf->length == 1) && in smp_scan_config()
574 ((mpf->specification == 1) in smp_scan_config()
575 || (mpf->specification == 4))) { in smp_scan_config()
583 base, base + sizeof(*mpf) - 1); in smp_scan_config()
585 memblock_reserve(base, sizeof(*mpf)); in smp_scan_config()
586 if (mpf->physptr) in smp_scan_config()
587 smp_reserve_memory(mpf); in smp_scan_config()
841 struct mpf_intel *mpf; in update_mp_table() local
851 mpf = early_memremap(mpf_base, sizeof(*mpf)); in update_mp_table()
852 if (!mpf) { in update_mp_table()
860 if (mpf->feature1) in update_mp_table()
863 if (!mpf->physptr) in update_mp_table()
866 size = get_mpc_size(mpf->physptr); in update_mp_table()
867 mpc = early_memremap(mpf->physptr, size); in update_mp_table()
877 pr_info("physptr: %x\n", mpf->physptr); in update_mp_table()
903 mpf->physptr = mpc_new_phys; in update_mp_table()
909 if (mpc_new_phys - mpf->physptr) { in update_mp_table()
918 memcpy(mpf_new, mpf, 16); in update_mp_table()
919 early_memunmap(mpf, sizeof(*mpf)); in update_mp_table()
920 mpf = mpf_new; in update_mp_table()
921 mpf->physptr = mpc_new_phys; in update_mp_table()
923 mpf->checksum = 0; in update_mp_table()
924 mpf->checksum -= mpf_checksum((unsigned char *)mpf, 16); in update_mp_table()
925 pr_info("physptr new: %x\n", mpf->physptr); in update_mp_table()
940 early_memunmap(mpf, sizeof(*mpf)); in update_mp_table()