Lines Matching refs:input_dev
75 struct input_dev *input;
220 static int locomokbd_open(struct input_dev *dev) in locomokbd_open()
230 static void locomokbd_close(struct input_dev *dev) in locomokbd_close()
242 struct input_dev *input_dev; in locomokbd_probe() local
246 input_dev = input_allocate_device(); in locomokbd_probe()
247 if (!locomokbd || !input_dev) { in locomokbd_probe()
273 locomokbd->input = input_dev; in locomokbd_probe()
276 input_dev->name = "LoCoMo keyboard"; in locomokbd_probe()
277 input_dev->phys = locomokbd->phys; in locomokbd_probe()
278 input_dev->id.bustype = BUS_HOST; in locomokbd_probe()
279 input_dev->id.vendor = 0x0001; in locomokbd_probe()
280 input_dev->id.product = 0x0001; in locomokbd_probe()
281 input_dev->id.version = 0x0100; in locomokbd_probe()
282 input_dev->open = locomokbd_open; in locomokbd_probe()
283 input_dev->close = locomokbd_close; in locomokbd_probe()
284 input_dev->dev.parent = &dev->dev; in locomokbd_probe()
286 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP) | in locomokbd_probe()
288 input_dev->keycode = locomokbd->keycode; in locomokbd_probe()
289 input_dev->keycodesize = sizeof(locomokbd_keycode[0]); in locomokbd_probe()
290 input_dev->keycodemax = ARRAY_SIZE(locomokbd_keycode); in locomokbd_probe()
292 input_set_drvdata(input_dev, locomokbd); in locomokbd_probe()
296 set_bit(locomokbd->keycode[i], input_dev->keybit); in locomokbd_probe()
297 clear_bit(0, input_dev->keybit); in locomokbd_probe()
318 input_free_device(input_dev); in locomokbd_probe()