Lines Matching refs:input_dev
79 struct input_dev *dev[TGFX_MAX_DEVICES];
95 struct input_dev *dev; in tgfx_timer()
122 static int tgfx_open(struct input_dev *dev) in tgfx_open()
141 static void tgfx_close(struct input_dev *dev) in tgfx_close()
163 struct input_dev *input_dev; in tgfx_attach() local
216 tgfx->dev[i] = input_dev = input_allocate_device(); in tgfx_attach()
217 if (!input_dev) { in tgfx_attach()
228 input_dev->name = tgfx->name[i]; in tgfx_attach()
229 input_dev->phys = tgfx->phys[i]; in tgfx_attach()
230 input_dev->id.bustype = BUS_PARPORT; in tgfx_attach()
231 input_dev->id.vendor = 0x0003; in tgfx_attach()
232 input_dev->id.product = n_buttons[i]; in tgfx_attach()
233 input_dev->id.version = 0x0100; in tgfx_attach()
235 input_set_drvdata(input_dev, tgfx); in tgfx_attach()
237 input_dev->open = tgfx_open; in tgfx_attach()
238 input_dev->close = tgfx_close; in tgfx_attach()
240 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in tgfx_attach()
241 input_set_abs_params(input_dev, ABS_X, -1, 1, 0, 0); in tgfx_attach()
242 input_set_abs_params(input_dev, ABS_Y, -1, 1, 0, 0); in tgfx_attach()
245 set_bit(tgfx_buttons[j], input_dev->keybit); in tgfx_attach()