Lines Matching refs:input_dev
27 struct input_dev *dev;
86 static int snd_pmac_beep_event(struct input_dev *dev, unsigned int type, in snd_pmac_beep_event()
211 struct input_dev *input_dev; in snd_pmac_attach_beep() local
221 input_dev = input_allocate_device(); in snd_pmac_attach_beep()
222 if (! dmabuf || ! input_dev) in snd_pmac_attach_beep()
226 input_dev->name = "PowerMac Beep"; in snd_pmac_attach_beep()
227 input_dev->phys = "powermac/beep"; in snd_pmac_attach_beep()
228 input_dev->id.bustype = BUS_ADB; in snd_pmac_attach_beep()
229 input_dev->id.vendor = 0x001f; in snd_pmac_attach_beep()
230 input_dev->id.product = 0x0001; in snd_pmac_attach_beep()
231 input_dev->id.version = 0x0100; in snd_pmac_attach_beep()
233 input_dev->evbit[0] = BIT_MASK(EV_SND); in snd_pmac_attach_beep()
234 input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); in snd_pmac_attach_beep()
235 input_dev->event = snd_pmac_beep_event; in snd_pmac_attach_beep()
236 input_dev->dev.parent = &chip->pdev->dev; in snd_pmac_attach_beep()
237 input_set_drvdata(input_dev, chip); in snd_pmac_attach_beep()
239 beep->dev = input_dev; in snd_pmac_attach_beep()
258 fail1: input_free_device(input_dev); in snd_pmac_attach_beep()