• Home
  • Raw
  • Download

Lines Matching refs:c

49 static inline void cpu_set_fpu_fcsr_mask(struct cpuinfo_mips *c)  in cpu_set_fpu_fcsr_mask()  argument
53 fcsr = c->fpu_csr31; in cpu_set_fpu_fcsr_mask()
71 c->fpu_msk31 = ~(fcsr0 ^ fcsr1) & ~mask; in cpu_set_fpu_fcsr_mask()
78 static void cpu_set_fpu_2008(struct cpuinfo_mips *c) in cpu_set_fpu_2008() argument
80 if (c->isa_level & (MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M64R1 | in cpu_set_fpu_2008()
109 if (c->isa_level & (MIPS_CPU_ISA_M32R2 | in cpu_set_fpu_2008()
116 c->options |= MIPS_CPU_MAC_2008_ONLY; in cpu_set_fpu_2008()
120 c->options |= MIPS_CPU_NAN_LEGACY; in cpu_set_fpu_2008()
122 c->options |= MIPS_CPU_NAN_2008; in cpu_set_fpu_2008()
125 c->fpu_msk31 &= ~FPU_CSR_ABS2008; in cpu_set_fpu_2008()
127 c->fpu_csr31 |= fcsr & FPU_CSR_ABS2008; in cpu_set_fpu_2008()
130 c->fpu_msk31 &= ~FPU_CSR_NAN2008; in cpu_set_fpu_2008()
132 c->fpu_csr31 |= fcsr & FPU_CSR_NAN2008; in cpu_set_fpu_2008()
134 c->options |= MIPS_CPU_NAN_LEGACY; in cpu_set_fpu_2008()
139 c->options |= MIPS_CPU_NAN_LEGACY; in cpu_set_fpu_2008()
155 static void cpu_set_nofpu_2008(struct cpuinfo_mips *c) in cpu_set_nofpu_2008() argument
157 c->options &= ~(MIPS_CPU_NAN_2008 | MIPS_CPU_NAN_LEGACY); in cpu_set_nofpu_2008()
158 c->fpu_csr31 &= ~(FPU_CSR_ABS2008 | FPU_CSR_NAN2008); in cpu_set_nofpu_2008()
159 c->fpu_msk31 &= ~(FPU_CSR_ABS2008 | FPU_CSR_NAN2008); in cpu_set_nofpu_2008()
163 if (c->isa_level & (MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M64R1 | in cpu_set_nofpu_2008()
167 c->options |= MIPS_CPU_NAN_2008 | MIPS_CPU_NAN_LEGACY; in cpu_set_nofpu_2008()
169 c->options |= MIPS_CPU_NAN_LEGACY; in cpu_set_nofpu_2008()
170 c->fpu_msk31 |= FPU_CSR_ABS2008 | FPU_CSR_NAN2008; in cpu_set_nofpu_2008()
174 c->options |= MIPS_CPU_NAN_LEGACY; in cpu_set_nofpu_2008()
175 c->fpu_msk31 |= FPU_CSR_ABS2008 | FPU_CSR_NAN2008; in cpu_set_nofpu_2008()
178 c->options |= MIPS_CPU_NAN_2008; in cpu_set_nofpu_2008()
179 c->fpu_csr31 |= FPU_CSR_ABS2008 | FPU_CSR_NAN2008; in cpu_set_nofpu_2008()
180 c->fpu_msk31 |= FPU_CSR_ABS2008 | FPU_CSR_NAN2008; in cpu_set_nofpu_2008()
183 c->options |= MIPS_CPU_NAN_2008 | MIPS_CPU_NAN_LEGACY; in cpu_set_nofpu_2008()
192 static void cpu_set_nan_2008(struct cpuinfo_mips *c) in cpu_set_nan_2008() argument
250 static void cpu_set_nofpu_id(struct cpuinfo_mips *c) in cpu_set_nofpu_id() argument
255 if (c->isa_level & (MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M64R1 | in cpu_set_nofpu_id()
260 if (c->isa_level & (MIPS_CPU_ISA_M32R2 | MIPS_CPU_ISA_M64R2 | in cpu_set_nofpu_id()
264 if (c->options & MIPS_CPU_NAN_2008) in cpu_set_nofpu_id()
266 c->fpu_id = value; in cpu_set_nofpu_id()
275 void cpu_set_fpu_opts(struct cpuinfo_mips *c) in cpu_set_fpu_opts() argument
277 c->fpu_id = cpu_get_fpu_id(); in cpu_set_fpu_opts()
278 mips_nofpu_msk31 = c->fpu_msk31; in cpu_set_fpu_opts()
280 if (c->isa_level & (MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M64R1 | in cpu_set_fpu_opts()
284 if (c->fpu_id & MIPS_FPIR_3D) in cpu_set_fpu_opts()
285 c->ases |= MIPS_ASE_MIPS3D; in cpu_set_fpu_opts()
286 if (c->fpu_id & MIPS_FPIR_UFRP) in cpu_set_fpu_opts()
287 c->options |= MIPS_CPU_UFR; in cpu_set_fpu_opts()
288 if (c->fpu_id & MIPS_FPIR_FREP) in cpu_set_fpu_opts()
289 c->options |= MIPS_CPU_FRE; in cpu_set_fpu_opts()
292 cpu_set_fpu_fcsr_mask(c); in cpu_set_fpu_opts()
293 cpu_set_fpu_2008(c); in cpu_set_fpu_opts()
294 cpu_set_nan_2008(c); in cpu_set_fpu_opts()
300 void cpu_set_nofpu_opts(struct cpuinfo_mips *c) in cpu_set_nofpu_opts() argument
302 c->options &= ~MIPS_CPU_FPU; in cpu_set_nofpu_opts()
303 c->fpu_msk31 = mips_nofpu_msk31; in cpu_set_nofpu_opts()
305 cpu_set_nofpu_2008(c); in cpu_set_nofpu_opts()
306 cpu_set_nan_2008(c); in cpu_set_nofpu_opts()
307 cpu_set_nofpu_id(c); in cpu_set_nofpu_opts()