Lines Matching refs:ioctl

326 	if (ioctl(fd, UI_SET_PHYS, phys) < 0 ||  in uinput_open_common()
327 ioctl(fd, UI_SET_BSDUNIQ, uniq) < 0 || in uinput_open_common()
328 ioctl(fd, UI_DEV_SETUP, &uisetup) < 0) in uinput_open_common()
350 if (ioctl(fd, UI_SET_EVBIT, EV_SYN) < 0 || in uinput_open_mouse()
351 ioctl(fd, UI_SET_EVBIT, EV_KEY) < 0 || in uinput_open_mouse()
352 ioctl(fd, UI_SET_EVBIT, EV_REL) < 0 || in uinput_open_mouse()
353 ioctl(fd, UI_SET_RELBIT, REL_X) < 0 || in uinput_open_mouse()
354 ioctl(fd, UI_SET_RELBIT, REL_Y) < 0 || in uinput_open_mouse()
355 (p->has_wheel && ioctl(fd, UI_SET_RELBIT, REL_WHEEL) < 0) || in uinput_open_mouse()
356 (p->has_hwheel && ioctl(fd, UI_SET_RELBIT, REL_HWHEEL) < 0) || in uinput_open_mouse()
357 ioctl(fd, UI_SET_PROPBIT, INPUT_PROP_POINTER) < 0) in uinput_open_mouse()
362 if (ioctl(fd, UI_SET_KEYBIT, mbuttons[i]) < 0) in uinput_open_mouse()
365 if (ioctl(fd, UI_DEV_CREATE) >= 0) in uinput_open_mouse()
389 if (ioctl(fd, UI_SET_EVBIT, EV_KEY) < 0 || in uinput_open_keyboard()
390 ioctl(fd, UI_SET_EVBIT, EV_LED) < 0 || in uinput_open_keyboard()
391 ioctl(fd, UI_SET_EVBIT, EV_SYN) < 0 || in uinput_open_keyboard()
392 ioctl(fd, UI_SET_EVBIT, EV_REP) < 0 || in uinput_open_keyboard()
393 ioctl(fd, UI_SET_LEDBIT, LED_CAPSL) < 0 || in uinput_open_keyboard()
394 ioctl(fd, UI_SET_LEDBIT, LED_NUML) < 0 || in uinput_open_keyboard()
395 ioctl(fd, UI_SET_LEDBIT, LED_SCROLLL)) in uinput_open_keyboard()
401 ioctl(fd, UI_SET_KEYBIT, keymap[i]) < 0) in uinput_open_keyboard()
408 ioctl(fd, UI_SET_KEYBIT, consmap[i]) < 0) in uinput_open_keyboard()
413 if (ioctl(fd, UI_DEV_CREATE) >= 0) in uinput_open_keyboard()
595 ioctl(s->vkbd, KDGETLED, &oleds); in uinput_kbd_status_changed()
604 ioctl(s->vkbd, KDSETLED, leds); in uinput_kbd_status_changed()