Lines Matching refs:sc_dev

118 	err = SPIBUS_TRANSFER(device_get_parent(sc->sc_dev), sc->sc_dev, &cmd);  in atopcase_receive_status()
121 device_printf(sc->sc_dev, "SPI error: %d\n", err); in atopcase_receive_status()
129 ATOPCASE_WAKEUP(sc, sc->sc_dev); in atopcase_receive_status()
131 device_printf(sc->sc_dev, "Failed to write command\n"); in atopcase_receive_status()
199 device_printf(sc->sc_dev, "Device info descriptor:\n"); in atopcase_process_message()
224 err = SPIBUS_TRANSFER(device_get_parent(sc->sc_dev), sc->sc_dev, &cmd); in atopcase_receive_packet()
227 device_printf(sc->sc_dev, "SPI error: %d\n", err); in atopcase_receive_packet()
338 err = SPIBUS_TRANSFER(device_get_parent(sc->sc_dev), sc->sc_dev, &cmd); in atopcase_send()
347 device_printf(sc->sc_dev, "SPI error: %d\n", err); in atopcase_send()
354 DPRINTFN(ATOPCASE_LLEVEL_DEBUG, "wait for: %p\n", sc->sc_dev); in atopcase_send()
355 err = tsleep(sc->sc_dev, 0, "atcstat", hz / 10); in atopcase_send()
467 device_printf(sc->sc_dev, "can't receive iface descriptor\n"); in atopcase_add_child()
475 device_printf(sc->sc_dev, "can't receive report descriptor\n"); in atopcase_add_child()
479 hidbus = device_add_child(sc->sc_dev, "hidbus", -1); in atopcase_add_child()
481 device_printf(sc->sc_dev, "can't add child\n"); in atopcase_add_child()
499 device_printf(sc->sc_dev, "can't establish communication\n"); in atopcase_init()
515 device_printf(sc->sc_dev, "can't receive device descriptor\n"); in atopcase_init()
527 sc->sc_backlight = backlight_register("atopcase", sc->sc_dev); in atopcase_init()
529 device_printf(sc->sc_dev, "can't register backlight\n"); in atopcase_init()
536 bus_attach_children(sc->sc_dev); in atopcase_init()
548 err = bus_generic_detach(sc->sc_dev); in atopcase_destroy()