Lines Matching refs:mach_ops
337 if (!wm->mach_ops->acc_enabled || wm->mach_ops->acc_pen_down) { in wm97xx_pen_irq_worker()
348 if (!wm->pen_is_down && wm->mach_ops->acc_enabled) in wm97xx_pen_irq_worker()
349 wm->mach_ops->acc_pen_up(wm); in wm97xx_pen_irq_worker()
351 wm->mach_ops->irq_enable(wm, 1); in wm97xx_pen_irq_worker()
368 wm->mach_ops->irq_enable(wm, 0); in wm97xx_pen_interrupt()
384 BUG_ON(!wm->mach_ops->irq_enable); in wm97xx_init_pen_irq()
396 BUG_ON(!wm->mach_ops->irq_gpio); in wm97xx_init_pen_irq()
399 reg & ~(wm->mach_ops->irq_gpio)); in wm97xx_init_pen_irq()
414 if (wm->mach_ops && wm->mach_ops->acc_enabled) in wm97xx_read_samples()
415 rc = wm->mach_ops->acc_pen_down(wm); in wm97xx_read_samples()
512 if (wm->mach_ops && wm->mach_ops->acc_enabled) in wm97xx_ts_input_open()
557 BUG_ON(!wm->mach_ops->irq_gpio); in wm97xx_ts_input_close()
560 reg | wm->mach_ops->irq_gpio); in wm97xx_ts_input_close()
570 wm->mach_ops->irq_enable(wm, 1); in wm97xx_ts_input_close()
581 if (wm->mach_ops && wm->mach_ops->acc_enabled) in wm97xx_ts_input_close()
875 struct wm97xx_mach_ops *mach_ops) in wm97xx_register_mach_ops() argument
878 if (wm->mach_ops) { in wm97xx_register_mach_ops()
882 wm->mach_ops = mach_ops; in wm97xx_register_mach_ops()
892 wm->mach_ops = NULL; in wm97xx_unregister_mach_ops()