Lines Matching refs:nregs
65 static void adjust_regs(struct linux_prom_registers *regp, int nregs,
70 for (regc = 0; regc < nregs; regc++) {
85 int nregs)
88 adjust_regs(regs, nregs, fhc->fhc_ranges,
94 struct linux_prom_registers *regs, int nregs)
97 adjust_regs(regs, nregs, central->central_ranges,
195 int nslots, tmp, nregs;
206 pr = of_get_property(dp, "reg", &nregs);
210 memcpy(cregs, pr, nregs);
211 nregs /= sizeof(struct linux_prom_registers);
213 apply_fhc_ranges(fhc, &cregs[0], nregs);
214 apply_central_ranges(central, &cregs[0], nregs);
218 if (nregs == 2)