Lines Matching refs:uinput
249 if (write(fake->uinput, &event, sizeof(event)) != sizeof(event)) { in ps3remote_event()
258 if (write(fake->uinput, &event, sizeof(event)) != sizeof(event)) { in ps3remote_event()
266 ioctl(fake->uinput, UI_DEV_DESTROY); in ps3remote_event()
267 close(fake->uinput); in ps3remote_event()
268 fake->uinput = -1; in ps3remote_event()
280 fake->uinput = open("/dev/input/uinput", O_RDWR); in ps3remote_setup_uinput()
281 if (fake->uinput < 0) { in ps3remote_setup_uinput()
282 fake->uinput = open("/dev/uinput", O_RDWR); in ps3remote_setup_uinput()
283 if (fake->uinput < 0) { in ps3remote_setup_uinput()
284 fake->uinput = open("/dev/misc/uinput", O_RDWR); in ps3remote_setup_uinput()
285 if (fake->uinput < 0) { in ps3remote_setup_uinput()
298 if (write(fake->uinput, &dev, sizeof(dev)) != sizeof(dev)) { in ps3remote_setup_uinput()
304 if (ioctl(fake->uinput, UI_SET_EVBIT, EV_KEY) < 0) { in ps3remote_setup_uinput()
312 if (ioctl(fake->uinput, UI_SET_KEYBIT, in ps3remote_setup_uinput()
320 if (ioctl(fake->uinput, UI_DEV_CREATE) < 0) { in ps3remote_setup_uinput()
328 close(fake->uinput); in ps3remote_setup_uinput()