Lines Matching refs:input_dev
79 struct input_dev *dev[TGFX_MAX_DEVICES];
94 struct input_dev *dev; in tgfx_timer()
121 static int tgfx_open(struct input_dev *dev) in tgfx_open()
140 static void tgfx_close(struct input_dev *dev) in tgfx_close()
162 struct input_dev *input_dev; in tgfx_probe() local
205 tgfx->dev[i] = input_dev = input_allocate_device(); in tgfx_probe()
206 if (!input_dev) { in tgfx_probe()
218 input_dev->name = tgfx->name[i]; in tgfx_probe()
219 input_dev->phys = tgfx->phys[i]; in tgfx_probe()
220 input_dev->id.bustype = BUS_PARPORT; in tgfx_probe()
221 input_dev->id.vendor = 0x0003; in tgfx_probe()
222 input_dev->id.product = n_buttons[i]; in tgfx_probe()
223 input_dev->id.version = 0x0100; in tgfx_probe()
225 input_set_drvdata(input_dev, tgfx); in tgfx_probe()
227 input_dev->open = tgfx_open; in tgfx_probe()
228 input_dev->close = tgfx_close; in tgfx_probe()
230 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in tgfx_probe()
231 input_set_abs_params(input_dev, ABS_X, -1, 1, 0, 0); in tgfx_probe()
232 input_set_abs_params(input_dev, ABS_Y, -1, 1, 0, 0); in tgfx_probe()
235 set_bit(tgfx_buttons[j], input_dev->keybit); in tgfx_probe()