Lines Matching refs:num_reg
320 int index, num_reg; in build_device_resources() local
330 preg = of_get_property(op->dev.of_node, bus->addr_prop_name, &num_reg); in build_device_resources()
331 if (!preg || num_reg == 0) in build_device_resources()
335 num_reg /= 4; in build_device_resources()
338 num_reg /= na + ns; in build_device_resources()
341 if (num_reg > PROMREG_MAX) { in build_device_resources()
344 op->dev.of_node->full_name, num_reg, PROMREG_MAX); in build_device_resources()
345 num_reg = PROMREG_MAX; in build_device_resources()
349 op->num_resources = num_reg; in build_device_resources()
350 for (index = 0; index < num_reg; index++) { in build_device_resources()
428 int na, num_reg, i; in apply_interrupt_map() local
433 reg = of_get_property(dp, "reg", &num_reg); in apply_interrupt_map()
434 if (!reg || !num_reg) in apply_interrupt_map()