Lines Matching defs:res
89 struct resource * res;
108 #define RD4(res, o) bus_read_4(res, (o))
109 #define WR4(res, o, v) bus_write_4(res, (o), (v))
125 val = RD4(sc->res, USB3PHY_PHY_EXTERNAL_CONTROL);
131 WR4(sc->res, USB3PHY_PHY_EXTERNAL_CONTROL, val);
133 val = RD4(sc->res, USB3PHY_PIPE_CLOCK_CONTROL);
137 WR4(sc->res, USB3PHY_PIPE_CLOCK_CONTROL, val);
139 val = RD4(sc->res, USB3PHY_APP);
143 WR4(sc->res, USB3PHY_APP, val);
145 WR4(sc->res, USB3PHY_PHY_TUNE_LOW, PTL_MAGIC);
147 val = RD4(sc->res, USB3PHY_PHY_TUNE_HIGH);
158 WR4(sc->res, USB3PHY_PHY_TUNE_HIGH, val);
237 if (bus_alloc_resources(dev, aw_usb3phy_spec, &sc->res) != 0) {