Home
last modified time | relevance | path

Searched refs:icells (Results 1 – 12 of 12) sorted by relevance

/freebsd/sys/dev/ofw/
H A Dofw_bus_subr.c642 uint32_t icells, *intr; in ofw_bus_intr_to_rl() local
657 "#interrupt-cells", &icells, sizeof(icells)) == -1) { in ofw_bus_intr_to_rl()
660 icells = 1; in ofw_bus_intr_to_rl()
662 if (icells < 1 || icells > nintr) { in ofw_bus_intr_to_rl()
664 "value <%d>, assuming <1>\n", icells); in ofw_bus_intr_to_rl()
665 icells = 1; in ofw_bus_intr_to_rl()
677 for (i = 0; i < nintr; i += icells) { in ofw_bus_intr_to_rl()
681 "#interrupt-cells", &icells, sizeof(icells)) == -1) { in ofw_bus_intr_to_rl()
687 if (icells < 1 || (i + icells) > nintr) { in ofw_bus_intr_to_rl()
689 "property value <%d>\n", icells); in ofw_bus_intr_to_rl()
[all …]
H A Dofw_bus.h74 ofw_bus_map_intr(device_t dev, phandle_t iparent, int icells, pcell_t *intr) in ofw_bus_map_intr() argument
76 return (OFW_BUS_MAP_INTR(dev, dev, iparent, icells, intr)); in ofw_bus_map_intr()
H A Dofw_bus_if.m105 int icells, pcell_t *interrupt)
110 iparent, icells, interrupt);
168 int icells;
/freebsd/sys/powerpc/ofw/
H A Dofw_pcibus.c316 int isz, icells; in ofw_pcibus_assign_interrupt() local
337 icells = 1; in ofw_pcibus_assign_interrupt()
340 &icells, sizeof(icells)); in ofw_pcibus_assign_interrupt()
348 if (isz == sizeof(intr[0])*icells) in ofw_pcibus_assign_interrupt()
350 iparent, icells, intr)); in ofw_pcibus_assign_interrupt()
353 if (isz == sizeof(intr[0])*icells) { in ofw_pcibus_assign_interrupt()
355 intr[0] = ofw_bus_map_intr(dev, iparent, icells, intr); in ofw_pcibus_assign_interrupt()
/freebsd/sys/arm/annapurna/alpine/
H A Dalpine_pci_msix.c137 uint32_t icells, *intr; in al_msix_attach() local
171 "#interrupt-cells", &icells, sizeof(icells)) == -1) { in al_msix_attach()
191 } else if ((nintr / icells) != INTR_RANGE_COUNT) { in al_msix_attach()
200 interrupts[i] = intr[(i * icells) + IRQ_OFFSET]; in al_msix_attach()
/freebsd/sys/arm/arm/
H A Dnexus.c415 nexus_ofw_map_intr(device_t dev, device_t child, phandle_t iparent, int icells, in nexus_ofw_map_intr() argument
422 len = sizeof(*fdt_data) + icells * sizeof(pcell_t); in nexus_ofw_map_intr()
426 fdt_data->ncells = icells; in nexus_ofw_map_intr()
427 memcpy(fdt_data->cells, intr, icells * sizeof(pcell_t)); in nexus_ofw_map_intr()
/freebsd/sys/riscv/riscv/
H A Dnexus.c410 nexus_ofw_map_intr(device_t dev, device_t child, phandle_t iparent, int icells, in nexus_ofw_map_intr() argument
417 len = sizeof(*fdt_data) + icells * sizeof(pcell_t); in nexus_ofw_map_intr()
421 fdt_data->ncells = icells; in nexus_ofw_map_intr()
422 memcpy(fdt_data->cells, intr, icells * sizeof(pcell_t)); in nexus_ofw_map_intr()
/freebsd/sys/powerpc/powermac/
H A Duninorth.c166 int icells; in unin_chip_add_intr() local
189 if (OF_searchprop(iparent, "#interrupt-cells", &icells, sizeof(icells)) in unin_chip_add_intr()
191 icells = 1; in unin_chip_add_intr()
193 for (i = 0; i < nintr; i+=icells) { in unin_chip_add_intr()
199 if (icells > 1) { in unin_chip_add_intr()
H A Dmacio.c209 int icells; in macio_add_intr() local
232 if (OF_getprop(OF_node_from_xref(iparent), "#interrupt-cells", &icells, in macio_add_intr()
233 sizeof(icells)) <= 0) in macio_add_intr()
234 icells = 1; in macio_add_intr()
236 for (i = 0; i < nintr; i+=icells) { in macio_add_intr()
/freebsd/sys/arm64/arm64/
H A Dnexus.c502 nexus_ofw_map_intr(device_t dev, device_t child, phandle_t iparent, int icells, in nexus_ofw_map_intr() argument
509 len = sizeof(*fdt_data) + icells * sizeof(pcell_t); in nexus_ofw_map_intr()
513 fdt_data->ncells = icells; in nexus_ofw_map_intr()
514 memcpy(fdt_data->cells, intr, icells * sizeof(pcell_t)); in nexus_ofw_map_intr()
/freebsd/sys/powerpc/powerpc/
H A Dnexus.c222 nexus_ofw_map_intr(device_t dev, device_t child, phandle_t iparent, int icells, in nexus_ofw_map_intr() argument
226 if (icells > 1) in nexus_ofw_map_intr()
/freebsd/sys/arm/mv/
H A Dmv_pci.c1232 int icells; in mv_pcib_route_interrupt() local
1244 icells = ofw_bus_lookup_imap(ofw_bus_get_node(dev), &sc->sc_pci_iinfo, in mv_pcib_route_interrupt()
1247 if (icells > 0) in mv_pcib_route_interrupt()
1248 return (ofw_bus_map_intr(dev, iparent, icells, mintr)); in mv_pcib_route_interrupt()