Lines Matching refs:input_dev

33 	int (*event)(struct input_dev *dev, unsigned int type, unsigned int code, int value);
35 struct input_dev *input_dev; member
66 static int bbc_spkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) in bbc_spkr_event()
104 static int grover_spkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) in grover_spkr_event()
146 struct input_dev *input_dev; in sparcspkr_probe() local
149 input_dev = input_allocate_device(); in sparcspkr_probe()
150 if (!input_dev) in sparcspkr_probe()
153 input_dev->name = state->name; in sparcspkr_probe()
154 input_dev->phys = "sparc/input0"; in sparcspkr_probe()
155 input_dev->id.bustype = BUS_ISA; in sparcspkr_probe()
156 input_dev->id.vendor = 0x001f; in sparcspkr_probe()
157 input_dev->id.product = 0x0001; in sparcspkr_probe()
158 input_dev->id.version = 0x0100; in sparcspkr_probe()
159 input_dev->dev.parent = dev; in sparcspkr_probe()
161 input_dev->evbit[0] = BIT_MASK(EV_SND); in sparcspkr_probe()
162 input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); in sparcspkr_probe()
164 input_dev->event = state->event; in sparcspkr_probe()
166 error = input_register_device(input_dev); in sparcspkr_probe()
168 input_free_device(input_dev); in sparcspkr_probe()
172 state->input_dev = input_dev; in sparcspkr_probe()
180 struct input_dev *input_dev = state->input_dev; in sparcspkr_shutdown() local
183 state->event(input_dev, EV_SND, SND_BELL, 0); in sparcspkr_shutdown()
235 struct input_dev *input_dev = state->input_dev; in bbc_remove() local
239 state->event(input_dev, EV_SND, SND_BELL, 0); in bbc_remove()
241 input_unregister_device(input_dev); in bbc_remove()
315 struct input_dev *input_dev = state->input_dev; in grover_remove() local
318 state->event(input_dev, EV_SND, SND_BELL, 0); in grover_remove()
320 input_unregister_device(input_dev); in grover_remove()