Lines Matching refs:c
70 struct cpuinfo_mips *c = ¤t_cpu_data; in cpu_probe() local
79 c->processor_id = PRID_IMP_UNKNOWN; in cpu_probe()
80 c->fpu_id = FPIR_IMP_NONE; in cpu_probe()
81 c->cputype = CPU_UNKNOWN; in cpu_probe()
82 c->writecombine = _CACHE_UNCACHED; in cpu_probe()
84 c->fpu_csr31 = FPU_CSR_RN; in cpu_probe()
85 c->fpu_msk31 = FPU_CSR_RSVD | FPU_CSR_ABS2008 | FPU_CSR_NAN2008 | in cpu_probe()
88 c->srsets = 1; in cpu_probe()
90 c->processor_id = read_c0_prid(); in cpu_probe()
91 switch (c->processor_id & (PRID_COMP_MASK | PRID_IMP_MASK)) { in cpu_probe()
93 c->cputype = CPU_R2000; in cpu_probe()
95 c->options = MIPS_CPU_TLB | MIPS_CPU_3K_CACHE | in cpu_probe()
98 c->options |= MIPS_CPU_FPU; in cpu_probe()
99 c->tlbsize = 64; in cpu_probe()
102 if ((c->processor_id & PRID_REV_MASK) == PRID_REV_R3000A) { in cpu_probe()
104 c->cputype = CPU_R3081E; in cpu_probe()
107 c->cputype = CPU_R3000A; in cpu_probe()
111 c->cputype = CPU_R3000; in cpu_probe()
114 c->options = MIPS_CPU_TLB | MIPS_CPU_3K_CACHE | in cpu_probe()
117 c->options |= MIPS_CPU_FPU; in cpu_probe()
118 c->tlbsize = 64; in cpu_probe()
121 c->options = MIPS_CPU_TLB | MIPS_CPU_TX39_CACHE; in cpu_probe()
123 if ((c->processor_id & 0xf0) == (PRID_REV_TX3927 & 0xf0)) { in cpu_probe()
124 c->cputype = CPU_TX3927; in cpu_probe()
126 c->tlbsize = 64; in cpu_probe()
128 switch (c->processor_id & PRID_REV_MASK) { in cpu_probe()
130 c->cputype = CPU_TX3912; in cpu_probe()
132 c->tlbsize = 32; in cpu_probe()
135 c->cputype = CPU_TX3922; in cpu_probe()
137 c->tlbsize = 64; in cpu_probe()
145 BUG_ON(c->cputype == CPU_UNKNOWN); in cpu_probe()
152 BUG_ON(current_cpu_type() != c->cputype); in cpu_probe()
155 c->options &= ~MIPS_CPU_FPU; in cpu_probe()
157 if (c->options & MIPS_CPU_FPU) in cpu_probe()
158 cpu_set_fpu_opts(c); in cpu_probe()
160 cpu_set_nofpu_opts(c); in cpu_probe()
165 struct cpuinfo_mips *c = ¤t_cpu_data; in cpu_report() local
168 smp_processor_id(), c->processor_id, cpu_name_string()); in cpu_report()
169 if (c->options & MIPS_CPU_FPU) in cpu_report()
170 pr_info("FPU revision is: %08x\n", c->fpu_id); in cpu_report()