• Home
  • Raw
  • Download

Lines Matching refs:device

49 evdev_led_update_l(struct evdev_device *device, enum weston_led weston_leds)  in evdev_led_update_l()  argument
60 libinput_device_led_update(device->device, leds); in evdev_led_update_l()
67 struct evdev_device *device = in handle_keyboard_key() local
85 notify_key(device->seat, &time, in handle_keyboard_key()
94 struct evdev_device *device = in handle_pointer_motion() local
115 notify_motion(device->seat, &time, &event); in handle_pointer_motion()
125 struct evdev_device *device = in handle_pointer_motion_absolute() local
127 struct weston_output *output = device->output; in handle_pointer_motion_absolute()
137 width = device->output->current_mode->width; in handle_pointer_motion_absolute()
138 height = device->output->current_mode->height; in handle_pointer_motion_absolute()
145 weston_output_transform_coordinate(device->output, x, y, &x, &y); in handle_pointer_motion_absolute()
146 notify_motion_absolute(device->seat, &time, x, y); in handle_pointer_motion_absolute()
159 struct evdev_device *device = in handle_pointer_button() local
177 notify_button(device->seat, &time, in handle_pointer_button()
235 struct evdev_device *device = in handle_pointer_axis() local
273 notify_axis_source(device->seat, wl_axis_source); in handle_pointer_axis()
288 notify_axis(device->seat, &time, &weston_event); in handle_pointer_axis()
301 notify_axis(device->seat, &time, &weston_event); in handle_pointer_axis()
308 touch_get_output(struct weston_touch_device *device) in touch_get_output() argument
310 struct evdev_device *evdev_device = device->backend_data; in touch_get_output()
316 touch_get_calibration_head_name(struct weston_touch_device *device) in touch_get_calibration_head_name() argument
318 struct evdev_device *evdev_device = device->backend_data; in touch_get_calibration_head_name()
340 touch_get_calibration(struct weston_touch_device *device, in touch_get_calibration() argument
343 struct evdev_device *evdev_device = device->backend_data; in touch_get_calibration()
345 libinput_device_config_calibration_get_matrix(evdev_device->device, in touch_get_calibration()
356 libinput_device_get_sysname(evdev_device->device)); in do_set_calibration()
362 status = libinput_device_config_calibration_set_matrix(evdev_device->device, in do_set_calibration()
369 touch_set_calibration(struct weston_touch_device *device, in touch_set_calibration() argument
372 struct evdev_device *evdev_device = device->backend_data; in touch_set_calibration()
390 create_touch_device(struct evdev_device *device) in create_touch_device() argument
396 if (libinput_device_config_calibration_has_matrix(device->device)) in create_touch_device()
399 udev_device = libinput_device_get_udev_device(device->device); in create_touch_device()
403 touch_device = weston_touch_create_touch_device(device->seat->touch_state, in create_touch_device()
405 device, ops); in create_touch_device()
413 libinput_device_get_name(device->device), in create_touch_device()
424 struct evdev_device *device = in handle_touch_with_coords() local
433 if (!device->output) in handle_touch_with_coords()
440 width = device->output->current_mode->width; in handle_touch_with_coords()
441 height = device->output->current_mode->height; in handle_touch_with_coords()
445 weston_output_transform_coordinate(device->output, in handle_touch_with_coords()
448 if (weston_touch_device_can_calibrate(device->touch_device)) { in handle_touch_with_coords()
451 notify_touch_normalized(device->touch_device, &time, slot, in handle_touch_with_coords()
454 notify_touch(device->touch_device, &time, slot, x, y, touch_type); in handle_touch_with_coords()
459 handle_touch_down(struct libinput_device *device, in handle_touch_down() argument
462 handle_touch_with_coords(device, touch_event, WL_TOUCH_DOWN); in handle_touch_down()
466 handle_touch_motion(struct libinput_device *device, in handle_touch_motion() argument
469 handle_touch_with_coords(device, touch_event, WL_TOUCH_MOTION); in handle_touch_motion()
476 struct evdev_device *device = in handle_touch_up() local
484 notify_touch(device->touch_device, &time, slot, 0, 0, WL_TOUCH_UP); in handle_touch_up()
491 struct evdev_device *device = in handle_touch_frame() local
494 notify_touch_frame(device->touch_device); in handle_touch_frame()
502 struct evdev_device *device = in evdev_device_process_event_l() local
553 notify_pointer_frame(device->seat); in evdev_device_process_event_l()
561 struct evdev_device *device = in notify_output_destroy() local
565 evdev_device_set_output_l(device, NULL); in notify_output_destroy()
575 evdev_device_set_calibration_l(struct evdev_device *device) in evdev_device_set_calibration_l() argument
579 const char *sysname = libinput_device_get_sysname(device->device); in evdev_device_set_calibration_l()
584 if (!libinput_device_config_calibration_has_matrix(device->device)) in evdev_device_set_calibration_l()
591 device->device, in evdev_device_set_calibration_l()
598 if (device->override_wl_calibration) in evdev_device_set_calibration_l()
601 if (!device->output) { in evdev_device_set_calibration_l()
604 sysname, device->output_name ?: "none"); in evdev_device_set_calibration_l()
608 width = device->output->width; in evdev_device_set_calibration_l()
609 height = device->output->height; in evdev_device_set_calibration_l()
650 do_set_calibration(device, &calibration); in evdev_device_set_calibration_l()
655 device->output->name); in evdev_device_set_calibration_l()
664 evdev_device_set_output_l(struct evdev_device *device, in evdev_device_set_output_l() argument
667 if (device->output == output) in evdev_device_set_output_l()
670 if (device->output_destroy_listener.notify) { in evdev_device_set_output_l()
671 wl_list_remove(&device->output_destroy_listener.link); in evdev_device_set_output_l()
672 device->output_destroy_listener.notify = NULL; in evdev_device_set_output_l()
677 libinput_device_get_sysname(device->device)); in evdev_device_set_output_l()
679 device->output = NULL; in evdev_device_set_output_l()
685 libinput_device_get_sysname(device->device), in evdev_device_set_output_l()
687 device->output_name ?: "none"); in evdev_device_set_output_l()
689 device->output = output; in evdev_device_set_output_l()
690 device->output_destroy_listener.notify = notify_output_destroy; in evdev_device_set_output_l()
692 &device->output_destroy_listener); in evdev_device_set_output_l()
693 evdev_device_set_calibration_l(device); in evdev_device_set_output_l()
700 struct evdev_device *device; in evdev_device_create_l() local
702 device = zalloc(sizeof *device); in evdev_device_create_l()
703 if (device == NULL) in evdev_device_create_l()
706 device->seat = seat; in evdev_device_create_l()
707 wl_list_init(&device->link); in evdev_device_create_l()
708 device->device = libinput_device; in evdev_device_create_l()
713 device->seat_caps |= EVDEV_SEAT_KEYBOARD; in evdev_device_create_l()
718 device->seat_caps |= EVDEV_SEAT_POINTER; in evdev_device_create_l()
723 device->seat_caps |= EVDEV_SEAT_TOUCH; in evdev_device_create_l()
724 device->touch_device = create_touch_device(device); in evdev_device_create_l()
727 libinput_device_set_user_data(libinput_device, device); in evdev_device_create_l()
730 return device; in evdev_device_create_l()
734 evdev_device_destroy_l(struct evdev_device *device) in evdev_device_destroy_l() argument
736 if (device->seat_caps & EVDEV_SEAT_POINTER) in evdev_device_destroy_l()
737 weston_seat_release_pointer(device->seat); in evdev_device_destroy_l()
738 if (device->seat_caps & EVDEV_SEAT_KEYBOARD) in evdev_device_destroy_l()
739 weston_seat_release_keyboard(device->seat); in evdev_device_destroy_l()
740 if (device->seat_caps & EVDEV_SEAT_TOUCH) { in evdev_device_destroy_l()
741 weston_touch_device_destroy(device->touch_device); in evdev_device_destroy_l()
742 weston_seat_release_touch(device->seat); in evdev_device_destroy_l()
745 if (device->output) in evdev_device_destroy_l()
746 wl_list_remove(&device->output_destroy_listener.link); in evdev_device_destroy_l()
747 wl_list_remove(&device->link); in evdev_device_destroy_l()
748 libinput_device_unref(device->device); in evdev_device_destroy_l()
749 free(device->output_name); in evdev_device_destroy_l()
750 free(device); in evdev_device_destroy_l()