Lines Matching defs:cfg
1715 const struct puc_cfg *cfg;
1732 cfg = sc->sc_cfg;
1733 switch (cfg->subvendor) {
1735 switch (cfg->device) {
1772 bar = puc_get_bar(sc, cfg->rid + i * cfg->d_rid);
1819 const struct puc_cfg *cfg = sc->sc_cfg;
1822 if (cfg->subdevice == 0x1282) /* Everest SP */
1824 else if (cfg->subdevice == 0x104b) /* Maestro SP2 */
1872 const struct puc_cfg *cfg = sc->sc_cfg;
1875 if (port == 3 && (cfg->device == 0x1045 ||
1876 cfg->device == 0x1144))
1889 const struct puc_cfg *cfg = sc->sc_cfg;
1899 bar = puc_get_bar(sc, cfg->rid);
1905 bus_write_1(bar->b_res, REG_SPR, 0x80 + -cfg->clock);
1909 if (v0 == 0 && v1 == 0x80 + -cfg->clock) {
1927 if (v0 < -cfg->clock)
1941 "%d selected\n", 1 << -cfg->clock);
1946 if (v0 == 0 && v1 == 0x80 + -cfg->clock) {
1961 *res = DEFAULT_RCLK << -cfg->clock;
1968 *res = (v0 == 0 && v1 == 0x80 + -cfg->clock) ?
1982 const struct puc_cfg *cfg = sc->sc_cfg;
1989 bar = puc_get_bar(sc, cfg->rid);
2055 const struct puc_cfg *cfg = sc->sc_cfg;
2059 if (cfg->ports == PUC_PORT_8S) {
2065 if (cfg->ports == PUC_PORT_8S) {
2069 if (cfg->ports == PUC_PORT_2S1P) {
2186 const struct puc_cfg *cfg = sc->sc_cfg;
2197 bar = puc_get_bar(sc, cfg->rid);
2232 bar = puc_get_bar(sc, cfg->rid);