Lines Matching refs:num_reg
322 int index, num_reg; in build_device_resources() local
332 preg = of_get_property(op->dev.of_node, bus->addr_prop_name, &num_reg); in build_device_resources()
333 if (!preg || num_reg == 0) in build_device_resources()
337 num_reg /= 4; in build_device_resources()
340 num_reg /= na + ns; in build_device_resources()
343 if (num_reg > PROMREG_MAX) { in build_device_resources()
346 op->dev.of_node, num_reg, PROMREG_MAX); in build_device_resources()
347 num_reg = PROMREG_MAX; in build_device_resources()
351 op->num_resources = num_reg; in build_device_resources()
352 for (index = 0; index < num_reg; index++) { in build_device_resources()
430 int na, num_reg, i; in apply_interrupt_map() local
435 reg = of_get_property(dp, "reg", &num_reg); in apply_interrupt_map()
436 if (!reg || !num_reg) in apply_interrupt_map()