Lines Matching refs:mach_ops
332 if (!wm->mach_ops->acc_enabled || wm->mach_ops->acc_pen_down) { in wm97xx_pen_irq_worker()
343 if (!wm->pen_is_down && wm->mach_ops->acc_enabled) in wm97xx_pen_irq_worker()
344 wm->mach_ops->acc_pen_up(wm); in wm97xx_pen_irq_worker()
346 wm->mach_ops->irq_enable(wm, 1); in wm97xx_pen_irq_worker()
363 wm->mach_ops->irq_enable(wm, 0); in wm97xx_pen_interrupt()
379 BUG_ON(!wm->mach_ops->irq_enable); in wm97xx_init_pen_irq()
391 BUG_ON(!wm->mach_ops->irq_gpio); in wm97xx_init_pen_irq()
394 reg & ~(wm->mach_ops->irq_gpio)); in wm97xx_init_pen_irq()
409 if (wm->mach_ops && wm->mach_ops->acc_enabled) in wm97xx_read_samples()
410 rc = wm->mach_ops->acc_pen_down(wm); in wm97xx_read_samples()
507 if (wm->mach_ops && wm->mach_ops->acc_enabled) in wm97xx_ts_input_open()
552 BUG_ON(!wm->mach_ops->irq_gpio); in wm97xx_ts_input_close()
555 reg | wm->mach_ops->irq_gpio); in wm97xx_ts_input_close()
565 wm->mach_ops->irq_enable(wm, 1); in wm97xx_ts_input_close()
576 if (wm->mach_ops && wm->mach_ops->acc_enabled) in wm97xx_ts_input_close()
870 struct wm97xx_mach_ops *mach_ops) in wm97xx_register_mach_ops() argument
873 if (wm->mach_ops) { in wm97xx_register_mach_ops()
877 wm->mach_ops = mach_ops; in wm97xx_register_mach_ops()
887 wm->mach_ops = NULL; in wm97xx_unregister_mach_ops()