Lines Matching refs:icells

720 	uint32_t icells, *intr;  in ofw_bus_intr_to_rl()  local
735 if (OF_searchencprop(iparent_node, "#interrupt-cells", &icells, in ofw_bus_intr_to_rl()
736 sizeof(icells)) == -1) { in ofw_bus_intr_to_rl()
739 icells = 1; in ofw_bus_intr_to_rl()
741 if (icells < 1 || icells > nintr) { in ofw_bus_intr_to_rl()
743 "value <%d>, assuming <1>\n", icells); in ofw_bus_intr_to_rl()
744 icells = 1; in ofw_bus_intr_to_rl()
756 for (i = 0; i < nintr; i += icells) { in ofw_bus_intr_to_rl()
761 "#interrupt-cells", &icells, sizeof(icells)) == -1) { in ofw_bus_intr_to_rl()
767 if (icells < 1 || (i + icells) > nintr) { in ofw_bus_intr_to_rl()
769 "property value <%d>\n", icells); in ofw_bus_intr_to_rl()
777 icells * sizeof(intr[0]), result, sizeof(result), &iparent); in ofw_bus_intr_to_rl()
781 intrpcells = icells; in ofw_bus_intr_to_rl()
797 uint32_t icells, *intr; in ofw_bus_intr_by_rid() local
812 "#interrupt-cells", &icells, sizeof(icells)) == -1) { in ofw_bus_intr_by_rid()
815 icells = 1; in ofw_bus_intr_by_rid()
817 if (icells < 1 || icells > nintr) { in ofw_bus_intr_by_rid()
819 "value <%d>, assuming <1>\n", icells); in ofw_bus_intr_by_rid()
820 icells = 1; in ofw_bus_intr_by_rid()
832 for (i = 0; i < nintr; i += icells, rid++) { in ofw_bus_intr_by_rid()
836 "#interrupt-cells", &icells, sizeof(icells)) == -1) { in ofw_bus_intr_by_rid()
842 if (icells < 1 || (i + icells) > nintr) { in ofw_bus_intr_by_rid()
844 "property value <%d>\n", icells); in ofw_bus_intr_by_rid()
850 *cells = malloc(icells * sizeof(**cells), M_OFWPROP, in ofw_bus_intr_by_rid()
853 *ncells= icells; in ofw_bus_intr_by_rid()
854 memcpy(*cells, intr + i, icells * sizeof(**cells)); in ofw_bus_intr_by_rid()