Lines Matching refs:seat
54 struct libinput_seat *seat = device->base.seat; in path_disable_device() local
58 &seat->devices_list, base.link) { in path_disable_device()
71 struct path_seat *seat; in path_input_disable() local
74 list_for_each_safe(seat, &input->base.seat_list, base.link) { in path_input_disable()
75 libinput_seat_ref(&seat->base); in path_input_disable()
77 &seat->base.devices_list, base.link) in path_input_disable()
79 libinput_seat_unref(&seat->base); in path_input_disable()
84 path_seat_destroy(struct libinput_seat *seat) in path_seat_destroy() argument
86 struct path_seat *pseat = (struct path_seat*)seat; in path_seat_destroy()
95 struct path_seat *seat; in path_seat_create() local
97 seat = zalloc(sizeof(*seat)); in path_seat_create()
99 libinput_seat_init(&seat->base, &input->base, seat_name, in path_seat_create()
102 return seat; in path_seat_create()
110 struct path_seat *seat; in path_seat_get_named() local
112 list_for_each(seat, &input->base.seat_list, base.link) { in path_seat_get_named()
113 if (streq(seat->base.physical_name, seat_name_physical) && in path_seat_get_named()
114 streq(seat->base.logical_name, seat_name_logical)) in path_seat_get_named()
115 return seat; in path_seat_get_named()
126 struct path_seat *seat = NULL; in path_seat_get_for_device() local
153 seat = path_seat_get_named(input, seat_name, seat_logical_name); in path_seat_get_for_device()
155 if (!seat) in path_seat_get_for_device()
156 seat = path_seat_create(input, seat_name, seat_logical_name); in path_seat_get_for_device()
157 if (!seat) { in path_seat_get_for_device()
165 libinput_seat_ref(&seat->base); in path_seat_get_for_device()
170 return seat; in path_seat_get_for_device()
178 struct path_seat *seat; in path_device_enable() local
186 seat = path_seat_get_for_device(input, udev_device, seat_logical_name_override); in path_device_enable()
187 if (!seat) in path_device_enable()
190 device = evdev_device_create(&seat->base, udev_device); in path_device_enable()
191 libinput_seat_unref(&seat->base); in path_device_enable()
279 struct libinput *libinput = device->seat->libinput; in path_device_change_seat()
406 struct libinput *libinput = device->seat->libinput; in libinput_path_remove_device()
408 struct libinput_seat *seat; in libinput_path_remove_device() local
424 seat = device->seat; in libinput_path_remove_device()
425 libinput_seat_ref(seat); in libinput_path_remove_device()
427 libinput_seat_unref(seat); in libinput_path_remove_device()