Lines Matching refs:wm
80 static void wm97xx_acc_pen_up(struct wm97xx *wm)
90 static int wm97xx_acc_pen_down(struct wm97xx *wm)
121 dev_dbg(wm->dev, "Raw coordinates: x=%x, y=%x, p=%x\n",
132 input_report_abs(wm->input_dev, ABS_X, x & 0xfff);
133 input_report_abs(wm->input_dev, ABS_Y, y & 0xfff);
134 input_report_abs(wm->input_dev, ABS_PRESSURE, p & 0xfff);
135 input_report_key(wm->input_dev, BTN_TOUCH, (p != 0));
136 input_sync(wm->input_dev);
143 static int wm97xx_acc_startup(struct wm97xx *wm)
148 if (wm->ac97 == NULL)
153 if (wm->id != cinfo[idx].id)
159 wm->acc_rate = cinfo[sp_idx].code;
160 wm->acc_slot = ac97_touch_slot;
161 dev_info(wm->dev,
168 static void wm97xx_irq_enable(struct wm97xx *wm, int enable)
171 enable_irq(wm->pen_irq);
173 disable_irq_nosync(wm->pen_irq);
187 struct wm97xx *wm = platform_get_drvdata(pdev);
195 wm->pen_irq = IRQ_GPIO(gpio_touch_irq);
198 wm97xx_config_gpio(wm, WM97XX_GPIO_13, WM97XX_GPIO_IN,
202 wm97xx_config_gpio(wm, WM97XX_GPIO_2, WM97XX_GPIO_OUT,
207 return wm97xx_register_mach_ops(wm, &zylonite_mach_ops);
212 struct wm97xx *wm = platform_get_drvdata(pdev);
214 wm97xx_unregister_mach_ops(wm);