Lines Matching defs:res
98 struct resource *res[4 + BP_NUM_HARD_IRQS];
130 intr = bus_read_8(sc->res[BP_IP_READ], 0);
137 reg = bus_read_8(sc->res[BP_CFG], i * 8);
149 bus_write_8(sc->res[BP_IP_CLEAR], 0, (1 << i));
185 if (bus_alloc_resources(dev, beri_pic_spec, sc->res)) {
209 bus_write_8(sc->res[BP_CFG], i * 8, 0);
225 if (bus_setup_intr(dev, sc->res[4+i], INTR_TYPE_CLK,
248 bus_write_8(sc->res[BP_CFG], pic_isrc->irq * 8, reg);
261 reg = bus_read_8(sc->res[BP_CFG], pic_isrc->irq * 8);
263 bus_write_8(sc->res[BP_CFG], pic_isrc->irq * 8, reg);
314 bus_write_8(sc->res[BP_CFG], ((BP_FIRST_SOFT + tid) * 8), reg);
328 bus_write_8(sc->res[BP_IP_SET], 0x0, (1 << bit));
342 bus_write_8(sc->res[BP_IP_CLEAR], 0x0, (1 << bit));