Lines Matching refs:config
649 unsigned int config = read_c0_config(); in probe_pcache() local
659 icache_size = 1 << (12 + ((config & CONF_IC) >> 9)); in probe_pcache()
660 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
664 dcache_size = 1 << (12 + ((config & CONF_DC) >> 6)); in probe_pcache()
665 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
674 icache_size = 1 << (12 + ((config & CONF_IC) >> 9)); in probe_pcache()
675 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
679 dcache_size = 1 << (12 + ((config & CONF_DC) >> 6)); in probe_pcache()
680 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
688 icache_size = 1 << (12 + ((config & CONF_IC) >> 9)); in probe_pcache()
689 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
693 dcache_size = 1 << (12 + ((config & CONF_DC) >> 6)); in probe_pcache()
694 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
708 icache_size = 1 << (12 + ((config & CONF_IC) >> 9)); in probe_pcache()
709 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
713 dcache_size = 1 << (12 + ((config & CONF_DC) >> 6)); in probe_pcache()
714 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
723 icache_size = 1 << (12 + ((config & R10K_CONF_IC) >> 29)); in probe_pcache()
728 dcache_size = 1 << (12 + ((config & R10K_CONF_DC) >> 26)); in probe_pcache()
737 write_c0_config(config & ~CONF_EB); in probe_pcache()
742 config &= ~0x00000030U; in probe_pcache()
743 config |= 0x00410000U; in probe_pcache()
744 write_c0_config(config); in probe_pcache()
746 icache_size = 1 << (10 + ((config & CONF_IC) >> 9)); in probe_pcache()
747 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
751 dcache_size = 1 << (10 + ((config & CONF_DC) >> 6)); in probe_pcache()
752 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
765 icache_size = 1 << (10 + ((config & CONF_IC) >> 9)); in probe_pcache()
766 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
770 dcache_size = 1 << (10 + ((config & CONF_DC) >> 6)); in probe_pcache()
771 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
782 icache_size = 1 << (12 + ((config & CONF_IC) >> 9)); in probe_pcache()
783 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
787 dcache_size = 1 << (12 + ((config & CONF_DC) >> 6)); in probe_pcache()
788 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
799 if (!(config & MIPS_CONF_M)) in probe_pcache()
820 if (config & 0x8) /* VI bit */ in probe_pcache()
853 !(config & CONF_SC) && c->icache.linesz != 16 && in probe_pcache()
907 unsigned int config = read_c0_config(); in probe_scache() local
911 if (config & CONF_SC) in probe_scache()
954 c->scache.linesz = 16 << ((config & R4K_CONF_SB) >> 22); in probe_scache()
968 unsigned int config = read_c0_config(); in setup_scache() local
983 sc_present = probe_scache_kseg1(config); in setup_scache()
990 scache_size = 0x80000 << ((config & R10K_CONF_SS) >> 16); in setup_scache()
991 c->scache.linesz = 64 << ((config >> 13) & 1); in setup_scache()