Lines Matching defs:sc
84 struct acpivideo_softc *sc = (struct acpivideo_softc *)self;
87 sc->sc_acpi = (struct acpi_softc *)parent;
88 sc->sc_devnode = aaa->aaa_node;
90 printf(": %s\n", sc->sc_devnode->name);
92 if (acpivideo_getpcibus(sc, sc->sc_devnode) == -1)
95 aml_register_notify(sc->sc_devnode, aaa->aaa_dev,
96 acpivideo_notify, sc, ACPIDEV_NOPOLL);
98 acpivideo_set_policy(sc,
101 aml_find_node(aaa->aaa_node, "_BCL", acpi_foundvout, sc);
107 struct acpivideo_softc *sc = arg;
115 DPRINTF(("%s: event 0x%02x\n", DEVNAME(sc), notify));
118 printf("%s: unknown event 0x%02x\n", DEVNAME(sc), notify);
126 acpivideo_set_policy(struct acpivideo_softc *sc, int policy)
134 aml_evalname(sc->sc_acpi, sc->sc_devnode, "_DOS", 1, &args, &res);
135 DPRINTF(("%s: set policy to %lld\n", DEVNAME(sc), aml_val2int(&res)));
143 struct acpivideo_softc *sc = (struct acpivideo_softc *)arg;
149 if (node->parent != sc->sc_devnode)
154 aaa.aaa_iot = sc->sc_acpi->sc_iot;
155 aaa.aaa_memt = sc->sc_acpi->sc_memt;
181 acpivideo_getpcibus(struct acpivideo_softc *sc, struct aml_node *node)