Lines Matching refs:input_dev
40 struct input_dev *dev;
99 static int snd_pmac_beep_event(struct input_dev *dev, unsigned int type, in snd_pmac_beep_event()
221 struct input_dev *input_dev; in snd_pmac_attach_beep() local
231 input_dev = input_allocate_device(); in snd_pmac_attach_beep()
232 if (! dmabuf || ! input_dev) in snd_pmac_attach_beep()
236 input_dev->name = "PowerMac Beep"; in snd_pmac_attach_beep()
237 input_dev->phys = "powermac/beep"; in snd_pmac_attach_beep()
238 input_dev->id.bustype = BUS_ADB; in snd_pmac_attach_beep()
239 input_dev->id.vendor = 0x001f; in snd_pmac_attach_beep()
240 input_dev->id.product = 0x0001; in snd_pmac_attach_beep()
241 input_dev->id.version = 0x0100; in snd_pmac_attach_beep()
243 input_dev->evbit[0] = BIT_MASK(EV_SND); in snd_pmac_attach_beep()
244 input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); in snd_pmac_attach_beep()
245 input_dev->event = snd_pmac_beep_event; in snd_pmac_attach_beep()
246 input_dev->dev.parent = &chip->pdev->dev; in snd_pmac_attach_beep()
247 input_set_drvdata(input_dev, chip); in snd_pmac_attach_beep()
249 beep->dev = input_dev; in snd_pmac_attach_beep()
268 fail1: input_free_device(input_dev); in snd_pmac_attach_beep()