Lines Matching refs:sc_model
116 const struct wzero3tp_model *sc_model; member
276 sc->sc_model = wzero3tp_lookup(); in wzero3tp_attach()
277 if (sc->sc_model == NULL) { in wzero3tp_attach()
285 if (sc->sc_model->wait_for_hsync) in wzero3tp_attach()
286 ads7846_wait_for_hsync = sc->sc_model->wait_for_hsync; in wzero3tp_attach()
288 (*sc->sc_model->chip.init)(); in wzero3tp_attach()
297 if (sc->sc_model->calib) { in wzero3tp_attach()
299 __UNCONST(sc->sc_model->calib), 0, 0); in wzero3tp_attach()
321 pxa2x0_gpio_set_function(sc->sc_model->intr_pin, GPIO_IN); in wzero3tp_enable()
326 sc->sc_model->intr_pin, IST_EDGE_FALLING, IPL_TTY, in wzero3tp_enable()
368 (*sc->sc_model->chip.suspend)(); in wzero3tp_suspend()
370 pxa2x0_gpio_set_function(sc->sc_model->intr_pin, GPIO_OUT|GPIO_SET); in wzero3tp_suspend()
382 pxa2x0_gpio_set_function(sc->sc_model->intr_pin, GPIO_IN); in wzero3tp_resume()
385 (*sc->sc_model->chip.resume)(); in wzero3tp_resume()
418 pindown = pxa2x0_gpio_get_bit(sc->sc_model->intr_pin) ? 0 : 1; in wzero3tp_irq()
425 down = (*sc->sc_model->chip.readpos)(&tp); in wzero3tp_irq()
433 pxa2x0_gpio_clear_intr(sc->sc_model->intr_pin); in wzero3tp_irq()
482 sc->sc_model->name); in wzero3tp_ioctl()