Lines Matching refs:mpf

451 static int __init check_physptr(struct mpf_intel *mpf, unsigned int early)  in check_physptr()  argument
456 size = get_mpc_size(mpf->physptr); in check_physptr()
457 mpc = early_memremap(mpf->physptr, size); in check_physptr()
505 struct mpf_intel *mpf; in default_get_smp_config() local
523 mpf = early_memremap(mpf_base, sizeof(*mpf)); in default_get_smp_config()
524 if (!mpf) { in default_get_smp_config()
530 mpf->specification); in default_get_smp_config()
532 if (mpf->feature2 & (1 << 7)) { in default_get_smp_config()
543 if (mpf->feature1) { in default_get_smp_config()
552 pr_info("Default MP configuration #%d\n", mpf->feature1); in default_get_smp_config()
553 construct_default_ISA_mptable(mpf->feature1); in default_get_smp_config()
555 } else if (mpf->physptr) { in default_get_smp_config()
556 if (check_physptr(mpf, early)) in default_get_smp_config()
567 early_memunmap(mpf, sizeof(*mpf)); in default_get_smp_config()
570 static void __init smp_reserve_memory(struct mpf_intel *mpf) in smp_reserve_memory() argument
572 memblock_reserve(mpf->physptr, get_mpc_size(mpf->physptr)); in smp_reserve_memory()
578 struct mpf_intel *mpf; in smp_scan_config() local
583 BUILD_BUG_ON(sizeof(*mpf) != 16); in smp_scan_config()
587 mpf = (struct mpf_intel *)bp; in smp_scan_config()
589 (mpf->length == 1) && in smp_scan_config()
591 ((mpf->specification == 1) in smp_scan_config()
592 || (mpf->specification == 4))) { in smp_scan_config()
600 base, base + sizeof(*mpf) - 1); in smp_scan_config()
602 memblock_reserve(base, sizeof(*mpf)); in smp_scan_config()
603 if (mpf->physptr) in smp_scan_config()
604 smp_reserve_memory(mpf); in smp_scan_config()
858 struct mpf_intel *mpf; in update_mp_table() local
868 mpf = early_memremap(mpf_base, sizeof(*mpf)); in update_mp_table()
869 if (!mpf) { in update_mp_table()
877 if (mpf->feature1) in update_mp_table()
880 if (!mpf->physptr) in update_mp_table()
883 size = get_mpc_size(mpf->physptr); in update_mp_table()
884 mpc = early_memremap(mpf->physptr, size); in update_mp_table()
894 pr_info("physptr: %x\n", mpf->physptr); in update_mp_table()
920 mpf->physptr = mpc_new_phys; in update_mp_table()
926 if (mpc_new_phys - mpf->physptr) { in update_mp_table()
935 memcpy(mpf_new, mpf, 16); in update_mp_table()
936 early_memunmap(mpf, sizeof(*mpf)); in update_mp_table()
937 mpf = mpf_new; in update_mp_table()
938 mpf->physptr = mpc_new_phys; in update_mp_table()
940 mpf->checksum = 0; in update_mp_table()
941 mpf->checksum -= mpf_checksum((unsigned char *)mpf, 16); in update_mp_table()
942 pr_info("physptr new: %x\n", mpf->physptr); in update_mp_table()
957 early_memunmap(mpf, sizeof(*mpf)); in update_mp_table()