Lines Matching refs:wm

76 static void wm97xx_acc_pen_up(struct wm97xx *wm)  in wm97xx_acc_pen_up()  argument
86 static int wm97xx_acc_pen_down(struct wm97xx *wm) in wm97xx_acc_pen_down() argument
117 dev_dbg(wm->dev, "Raw coordinates: x=%x, y=%x, p=%x\n", in wm97xx_acc_pen_down()
128 input_report_abs(wm->input_dev, ABS_X, x & 0xfff); in wm97xx_acc_pen_down()
129 input_report_abs(wm->input_dev, ABS_Y, y & 0xfff); in wm97xx_acc_pen_down()
130 input_report_abs(wm->input_dev, ABS_PRESSURE, p & 0xfff); in wm97xx_acc_pen_down()
131 input_report_key(wm->input_dev, BTN_TOUCH, (p != 0)); in wm97xx_acc_pen_down()
132 input_sync(wm->input_dev); in wm97xx_acc_pen_down()
139 static int wm97xx_acc_startup(struct wm97xx *wm) in wm97xx_acc_startup() argument
144 if (wm->ac97 == NULL) in wm97xx_acc_startup()
149 if (wm->id != cinfo[idx].id) in wm97xx_acc_startup()
155 wm->acc_rate = cinfo[sp_idx].code; in wm97xx_acc_startup()
156 wm->acc_slot = ac97_touch_slot; in wm97xx_acc_startup()
157 dev_info(wm->dev, in wm97xx_acc_startup()
164 static void wm97xx_irq_enable(struct wm97xx *wm, int enable) in wm97xx_irq_enable() argument
167 enable_irq(wm->pen_irq); in wm97xx_irq_enable()
169 disable_irq_nosync(wm->pen_irq); in wm97xx_irq_enable()
183 struct wm97xx *wm = platform_get_drvdata(pdev); in zylonite_wm97xx_probe() local
191 wm->pen_irq = gpio_to_irq(gpio_touch_irq); in zylonite_wm97xx_probe()
192 irq_set_irq_type(wm->pen_irq, IRQ_TYPE_EDGE_BOTH); in zylonite_wm97xx_probe()
194 wm97xx_config_gpio(wm, WM97XX_GPIO_13, WM97XX_GPIO_IN, in zylonite_wm97xx_probe()
198 wm97xx_config_gpio(wm, WM97XX_GPIO_2, WM97XX_GPIO_OUT, in zylonite_wm97xx_probe()
203 return wm97xx_register_mach_ops(wm, &zylonite_mach_ops); in zylonite_wm97xx_probe()
208 struct wm97xx *wm = platform_get_drvdata(pdev); in zylonite_wm97xx_remove() local
210 wm97xx_unregister_mach_ops(wm); in zylonite_wm97xx_remove()