Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 3807) sorted by relevance

12345678910>>...153

/third_party/libinput/test/
Dtest-touchpad-buttons.c37 struct litest_device *dev = litest_current_device(); in START_TEST() local
38 struct libinput *li = dev->libinput; in START_TEST()
40 if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_LEFT)) in START_TEST()
45 litest_button_click(dev, BTN_LEFT, true); in START_TEST()
50 litest_button_click(dev, BTN_LEFT, false); in START_TEST()
60 struct litest_device *dev = litest_current_device(); in START_TEST() local
61 struct libinput_device *device = dev->libinput_device; in START_TEST()
87 struct litest_device *dev = litest_current_device(); in START_TEST() local
88 struct libinput_device *device = dev->libinput_device; in START_TEST()
114 struct litest_device *dev = litest_current_device(); in START_TEST() local
[all …]
Dtest-touchpad-tap.c37 struct litest_device *dev = litest_current_device(); in START_TEST() local
38 struct libinput *li = dev->libinput; in START_TEST()
40 litest_enable_tap(dev->libinput_device); in START_TEST()
41 litest_disable_hold_gestures(dev->libinput_device); in START_TEST()
44 litest_touch_down(dev, 0, 50, 50); in START_TEST()
45 litest_touch_up(dev, 0); in START_TEST()
61 struct litest_device *dev = litest_current_device(); in START_TEST() local
62 struct libinput *li = dev->libinput; in START_TEST()
71 if (nfingers > litest_slot_count(dev)) in START_TEST()
73 if (nfingers2 > litest_slot_count(dev)) in START_TEST()
[all …]
Dtest-touchpad.c58 struct litest_device *dev = litest_current_device(); in START_TEST() local
59 struct libinput *li = dev->libinput; in START_TEST()
62 litest_disable_tap(dev->libinput_device); in START_TEST()
63 litest_disable_hold_gestures(dev->libinput_device); in START_TEST()
66 litest_touch_down(dev, 0, 50, 50); in START_TEST()
67 litest_touch_move_to(dev, 0, 50, 50, 80, 50, 20); in START_TEST()
68 litest_touch_up(dev, 0); in START_TEST()
89 struct litest_device *dev = litest_current_device(); in START_TEST() local
90 struct libinput *li = dev->libinput; in START_TEST()
93 libinput_device_config_tap_set_enabled(dev->libinput_device, in START_TEST()
[all …]
Dtest-pointer.c38 test_relative_event(struct litest_device *dev, double dx, double dy) in test_relative_event() argument
40 struct libinput *li = dev->libinput; in test_relative_event()
52 litest_event(dev, EV_REL, REL_X, dx); in test_relative_event()
53 litest_event(dev, EV_REL, REL_Y, dy); in test_relative_event()
54 litest_event(dev, EV_SYN, SYN_REPORT, 0); in test_relative_event()
66 ud = libinput_device_get_udev_device(dev->libinput_device); in test_relative_event()
95 litest_drain_events(dev->libinput); in test_relative_event()
101 struct libinput_device *dev = device->libinput_device; in disable_button_scrolling() local
105 status = libinput_device_config_scroll_set_method(dev, in disable_button_scrolling()
114 struct litest_device *dev = litest_current_device(); in START_TEST() local
[all …]
Dtest-gestures.c45 struct litest_device *dev = litest_current_device(); in test_gesture_swipe_3fg() local
46 struct libinput *li = dev->libinput; in test_gesture_swipe_3fg()
62 if (litest_slot_count(dev) < 3) in test_gesture_swipe_3fg()
70 litest_touch_down(dev, 0, 40, 40); in test_gesture_swipe_3fg()
71 litest_touch_down(dev, 1, 50, 40); in test_gesture_swipe_3fg()
72 litest_touch_down(dev, 2, 60, 40); in test_gesture_swipe_3fg()
78 litest_touch_move_three_touches(dev, 40, 40, 50, 40, 60, 40, dir_x, in test_gesture_swipe_3fg()
141 litest_touch_up(dev, 0); in test_gesture_swipe_3fg()
142 litest_touch_up(dev, 1); in test_gesture_swipe_3fg()
143 litest_touch_up(dev, 2); in test_gesture_swipe_3fg()
[all …]
Dtest-touch.c38 struct litest_device *dev = litest_current_device(); in START_TEST() local
39 struct libinput *li = dev->libinput; in START_TEST()
43 litest_drain_events(dev->libinput); in START_TEST()
45 litest_touch_down(dev, 0, 10, 10); in START_TEST()
55 litest_touch_down(dev, 1, 10, 10); in START_TEST()
69 struct litest_device *dev = litest_current_device(); in START_TEST() local
70 struct libinput *li = dev->libinput; in START_TEST()
74 litest_touch_down(dev, 0, 10, 10); in START_TEST()
79 litest_touch_up(dev, 0); in START_TEST()
88 struct litest_device *dev; in START_TEST() local
[all …]
/third_party/libevdev/libevdev/
Dlibevdev.c46 static int sync_mt_state(struct libevdev *dev,
49 update_key_state(struct libevdev *dev, const struct input_event *e);
52 slot_value(const struct libevdev *dev, int slot, int axis) in slot_value() argument
54 if (unlikely(slot > dev->num_slots)) { in slot_value()
55 log_bug(dev, "Slot %d exceeds number of slots (%d)\n", slot, dev->num_slots); in slot_value()
59 log_bug(dev, "MT axis %d is outside the valid range [%d,%d]\n", in slot_value()
63 return &dev->mt_slot_vals[slot * ABS_MT_CNT + axis - ABS_MT_MIN]; in slot_value()
67 init_event_queue(struct libevdev *dev) in init_event_queue() argument
82 if (libevdev_has_event_code(dev, type, code)) in init_event_queue()
87 nslots = libevdev_get_num_slots(dev); in init_event_queue()
[all …]
Dlibevdev-int.h96 #define log_msg_cond(dev, priority, ...) \ argument
98 if (_libevdev_log_priority(dev) >= priority) \
99 _libevdev_log_msg(dev, priority, __FILE__, __LINE__, __func__, __VA_ARGS__); \
102 #define log_error(dev, ...) log_msg_cond(dev, LIBEVDEV_LOG_ERROR, __VA_ARGS__) argument
103 #define log_info(dev, ...) log_msg_cond(dev, LIBEVDEV_LOG_INFO, __VA_ARGS__) argument
104 #define log_dbg(dev, ...) log_msg_cond(dev, LIBEVDEV_LOG_DEBUG, __VA_ARGS__) argument
105 #define log_bug(dev, ...) log_msg_cond(dev, LIBEVDEV_LOG_ERROR, "BUG: "__VA_ARGS__) argument
108 _libevdev_log_msg(const struct libevdev *dev,
113 _libevdev_log_priority(const struct libevdev *dev);
116 init_event(struct libevdev *dev, struct input_event *ev, int type, int code, int value) in init_event() argument
[all …]
/third_party/NuttX/drivers/pipes/
Dpipe_common.c96 static void pipecommon_pollnotify(struct pipe_dev_s *dev, in pipecommon_pollnotify() argument
104 notify_poll_with_key(&dev->wq, eventset); in pipecommon_pollnotify()
117 struct pipe_dev_s *dev = NULL; in pipecommon_allocdev() local
127 dev = (struct pipe_dev_s *)malloc(sizeof(struct pipe_dev_s)); in pipecommon_allocdev()
128 if (dev) in pipecommon_allocdev()
132 (void)memset_s(dev, sizeof(struct pipe_dev_s), 0, sizeof(struct pipe_dev_s)); in pipecommon_allocdev()
133 ret = strcpy_s(dev->name, sizeof(dev->name), name); in pipecommon_allocdev()
136 free(dev); in pipecommon_allocdev()
139 sem_init(&dev->d_bfsem, 0, 1); in pipecommon_allocdev()
140 sem_init(&dev->d_rdsem, 0, 0); in pipecommon_allocdev()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_dev_attr.c16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument
21 len = dev->manufacturer ? os_strlen(dev->manufacturer) : 0; in wps_build_manufacturer()
35 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer()
40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument
45 len = dev->model_name ? os_strlen(dev->model_name) : 0; in wps_build_model_name()
59 wpabuf_put_data(msg, dev->model_name, len); in wps_build_model_name()
64 int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_number() argument
69 len = dev->model_number ? os_strlen(dev->model_number) : 0; in wps_build_model_number()
83 wpabuf_put_data(msg, dev->model_number, len); in wps_build_model_number()
88 int wps_build_serial_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_serial_number() argument
[all …]
/third_party/libevdev/test/
Dtest-libevdev-has-event.c29 struct libevdev *dev; in START_TEST() local
34 test_create_abs_device(&uidev, &dev, in START_TEST()
38 test_create_device(&uidev, &dev, in START_TEST()
42 ck_assert_msg(libevdev_has_event_type(dev, EV_SYN), "for event type %d\n", *evbit); in START_TEST()
43 ck_assert_msg(libevdev_has_event_type(dev, *evbit), "for event type %d\n", *evbit); in START_TEST()
49 ck_assert_msg(!libevdev_has_event_type(dev, i), "for event type %d\n", i); in START_TEST()
52 libevdev_free(dev); in START_TEST()
66 struct libevdev *dev; in START_TEST() local
70 test_create_abs_device(&uidev, &dev, in START_TEST()
74 test_create_device(&uidev, &dev, in START_TEST()
[all …]
Dtest-int-queue.c13 struct libevdev dev; in START_TEST() local
16 rc = queue_alloc(&dev, 0); in START_TEST()
19 rc = queue_alloc(&dev, 100); in START_TEST()
22 ck_assert_int_eq(dev.queue_size, 100); in START_TEST()
23 ck_assert_int_eq(dev.queue_next, 0); in START_TEST()
25 queue_free(&dev); in START_TEST()
26 ck_assert_int_eq(dev.queue_size, 0); in START_TEST()
27 ck_assert_int_eq(dev.queue_next, 0); in START_TEST()
34 struct libevdev dev = {0}; in START_TEST() local
36 queue_alloc(&dev, 0); in START_TEST()
[all …]
Dtest-uinput.c19 struct libevdev *dev, *dev2; in START_TEST() local
26 dev = libevdev_new(); in START_TEST()
27 ck_assert(dev != NULL); in START_TEST()
28 libevdev_set_name(dev, TEST_DEVICE_NAME); in START_TEST()
29 libevdev_enable_event_type(dev, EV_SYN); in START_TEST()
30 libevdev_enable_event_type(dev, EV_REL); in START_TEST()
31 libevdev_enable_event_code(dev, EV_REL, REL_X, NULL); in START_TEST()
32 libevdev_enable_event_code(dev, EV_REL, REL_Y, NULL); in START_TEST()
33 libevdev_enable_event_code(dev, EV_REL, REL_MAX, NULL); in START_TEST()
35 rc = libevdev_uinput_create_from_device(dev, LIBEVDEV_UINPUT_OPEN_MANAGED, &uidev); in START_TEST()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_dev_attr.c16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument
21 len = dev->manufacturer ? os_strlen(dev->manufacturer) : 0; in wps_build_manufacturer()
35 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer()
40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument
45 len = dev->model_name ? os_strlen(dev->model_name) : 0; in wps_build_model_name()
59 wpabuf_put_data(msg, dev->model_name, len); in wps_build_model_name()
64 int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_number() argument
69 len = dev->model_number ? os_strlen(dev->model_number) : 0; in wps_build_model_number()
83 wpabuf_put_data(msg, dev->model_number, len); in wps_build_model_number()
88 int wps_build_serial_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_serial_number() argument
[all …]
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/
Df_generic.c59 static int usbclass_generic_bind(struct usbdevclass_driver_s *driver, struct usbdev_s *dev);
60 static int usbclass_generic_unbind(struct usbdevclass_driver_s *driver, struct usbdev_s *dev);
61 static int usbclass_generic_setup(struct usbdevclass_driver_s *driver, struct usbdev_s *dev,
64 static void usbclass_generic_disconnect(struct usbdevclass_driver_s *driver, struct usbdev_s *dev);
143 static void generic_discard_events(struct generic_dev_s *dev, in generic_discard_events() argument
148 uint32_t ev = dev->efifo.out, out = ev; in generic_discard_events()
151 for (; ev < dev->efifo.in; ++ev) in generic_discard_events()
153 if ((dev->efifo.data[ev & mask] == type1 || in generic_discard_events()
154 dev->efifo.data[ev & mask] == type2) == keep) in generic_discard_events()
156 dev->efifo.data[out++ & mask] = dev->efifo.data[ev & mask]; in generic_discard_events()
[all …]
/third_party/FreeBSD/sys/kern/
Dsubr_bus.c126 static void print_device_short(device_t dev, int indent);
127 static void print_device(device_t dev, int indent);
128 void print_device_tree_short(device_t dev, int indent);
129 void print_device_tree(device_t dev, int indent);
179 device_get_name(device_t dev) in device_get_name() argument
181 if (dev != NULL && dev->devclass) in device_get_name()
182 return (devclass_get_name(dev->devclass)); in device_get_name()
499 device_t dev; in devclass_driver_deleted() local
514 dev = dc->devices[i]; in devclass_driver_deleted()
515 if (dev->driver == driver && dev->parent && in devclass_driver_deleted()
[all …]
/third_party/libdrm/amdgpu/
Damdgpu_device.c96 static void amdgpu_device_free_internal(amdgpu_device_handle dev) in amdgpu_device_free_internal() argument
101 while (*node != dev && (*node)->next) in amdgpu_device_free_internal()
106 close(dev->fd); in amdgpu_device_free_internal()
107 if ((dev->flink_fd >= 0) && (dev->fd != dev->flink_fd)) in amdgpu_device_free_internal()
108 close(dev->flink_fd); in amdgpu_device_free_internal()
110 amdgpu_vamgr_deinit(&dev->vamgr_32); in amdgpu_device_free_internal()
111 amdgpu_vamgr_deinit(&dev->vamgr); in amdgpu_device_free_internal()
112 amdgpu_vamgr_deinit(&dev->vamgr_high_32); in amdgpu_device_free_internal()
113 amdgpu_vamgr_deinit(&dev->vamgr_high); in amdgpu_device_free_internal()
114 handle_table_fini(&dev->bo_handles); in amdgpu_device_free_internal()
[all …]
Damdgpu_gpu_info.c33 drm_public int amdgpu_query_info(amdgpu_device_handle dev, unsigned info_id, in amdgpu_query_info() argument
43 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_info()
47 drm_public int amdgpu_query_crtc_from_id(amdgpu_device_handle dev, unsigned id, in amdgpu_query_crtc_from_id() argument
58 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_crtc_from_id()
62 drm_public int amdgpu_read_mm_registers(amdgpu_device_handle dev, in amdgpu_read_mm_registers() argument
77 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_read_mm_registers()
81 drm_public int amdgpu_query_hw_ip_count(amdgpu_device_handle dev, in amdgpu_query_hw_ip_count() argument
93 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_hw_ip_count()
97 drm_public int amdgpu_query_hw_ip_info(amdgpu_device_handle dev, unsigned type, in amdgpu_query_hw_ip_info() argument
110 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_hw_ip_info()
[all …]
/third_party/mesa3d/src/freedreno/drm/
Dfreedreno_device.c44 struct fd_device *dev = NULL; in fd_device_new() local
62 dev = msm_device_new(fd, version); in fd_device_new()
66 dev = virtio_device_new(fd, version); in fd_device_new()
71 dev = kgsl_device_new(fd); in fd_device_new()
75 if (!dev) { in fd_device_new()
83 if (!dev) in fd_device_new()
86 p_atomic_set(&dev->refcnt, 1); in fd_device_new()
87 dev->fd = fd; in fd_device_new()
88 dev->handle_table = in fd_device_new()
90 dev->name_table = in fd_device_new()
[all …]
/third_party/mesa3d/src/etnaviv/drm/
Detnaviv_device.c38 struct etna_device *dev; in etna_device_new() local
51 dev = calloc(sizeof(*dev), 1); in etna_device_new()
52 if (!dev) { in etna_device_new()
56 dev->drm_version = ETNA_DRM_VERSION(version->version_major, in etna_device_new()
62 if (!dev) in etna_device_new()
65 p_atomic_set(&dev->refcnt, 1); in etna_device_new()
66 dev->fd = fd; in etna_device_new()
67 dev->handle_table = _mesa_hash_table_create(NULL, _mesa_hash_u32, _mesa_key_u32_equal); in etna_device_new()
68 dev->name_table = _mesa_hash_table_create(NULL, _mesa_hash_u32, _mesa_key_u32_equal); in etna_device_new()
69 etna_bo_cache_init(&dev->bo_cache); in etna_device_new()
[all …]
/third_party/ntfs-3g/libntfs-3g/
Dunix_io.c67 #define DEV_FD(dev) (*(int *)dev->d_private) argument
117 static int ntfs_device_unix_io_open(struct ntfs_device *dev, int flags) in ntfs_device_unix_io_open() argument
123 if (NDevOpen(dev)) { in ntfs_device_unix_io_open()
127 if (stat(dev->d_name, &sbuf)) { in ntfs_device_unix_io_open()
128 ntfs_log_perror("Failed to access '%s'", dev->d_name); in ntfs_device_unix_io_open()
132 NDevSetBlock(dev); in ntfs_device_unix_io_open()
134 dev->d_private = ntfs_malloc(sizeof(int)); in ntfs_device_unix_io_open()
135 if (!dev->d_private) in ntfs_device_unix_io_open()
141 if (!NDevBlock(dev) && (flags & O_RDWR) == O_RDWR) in ntfs_device_unix_io_open()
143 *(int*)dev->d_private = open(dev->d_name, flags); in ntfs_device_unix_io_open()
[all …]
Ddevice.c117 struct ntfs_device *dev; in ntfs_device_alloc() local
124 dev = ntfs_malloc(sizeof(struct ntfs_device)); in ntfs_device_alloc()
125 if (dev) { in ntfs_device_alloc()
126 if (!(dev->d_name = strdup(name))) { in ntfs_device_alloc()
128 free(dev); in ntfs_device_alloc()
132 dev->d_ops = dops; in ntfs_device_alloc()
133 dev->d_state = state; in ntfs_device_alloc()
134 dev->d_private = priv_data; in ntfs_device_alloc()
135 dev->d_heads = -1; in ntfs_device_alloc()
136 dev->d_sectors_per_track = -1; in ntfs_device_alloc()
[all …]
/third_party/alsa-lib/src/seq/
Dseq_midi_event.c57 typedef void (*event_encode_t)(snd_midi_event_t *dev, snd_seq_event_t *ev);
65 static void note_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
66 static void one_param_ctrl_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
67 static void pitchbend_ctrl_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
68 static void two_param_ctrl_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
69 static void one_param_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
70 static void songpos_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
116 static int extra_decode_ctrl14(snd_midi_event_t *dev, unsigned char *buf, int len, const snd_seq_ev…
117 static int extra_decode_xrpn(snd_midi_event_t *dev, unsigned char *buf, int count, const snd_seq_ev…
121 int (*decode)(snd_midi_event_t *dev, unsigned char *buf, int len, const snd_seq_event_t *ev);
[all …]
/third_party/mtdev/src/
Dcaps.c50 static struct input_absinfo *get_info(struct mtdev *dev, int code) in get_info() argument
55 return &dev->slot; in get_info()
61 return &dev->abs[ix]; in get_info()
63 return &dev->state->ext_abs[ix - LEGACY_API_NUM_MT_AXES]; in get_info()
66 static void set_info(struct mtdev *dev, int code, in set_info() argument
69 int has = getbit(bits, code) && getabs(get_info(dev, code), code, fd); in set_info()
70 mtdev_set_mt_event(dev, code, has); in set_info()
73 static void default_fuzz(struct mtdev *dev, int code, int sn) in default_fuzz() argument
75 struct input_absinfo *abs = get_info(dev, code); in default_fuzz()
76 if (!mtdev_has_mt_event(dev, code) || abs->fuzz) in default_fuzz()
[all …]
/third_party/libevdev/export_include/libevdev/
Dlibevdev.h806 int libevdev_new_from_fd(int fd, struct libevdev **dev);
821 void libevdev_free(struct libevdev *dev);
921 typedef void (*libevdev_device_log_func_t)(const struct libevdev *dev,
950 void libevdev_set_device_log_function(struct libevdev *dev,
985 int libevdev_grab(struct libevdev *dev, enum libevdev_grab_mode grab);
1019 int libevdev_set_fd(struct libevdev* dev, int fd);
1059 int libevdev_change_fd(struct libevdev* dev, int fd);
1069 int libevdev_get_fd(const struct libevdev* dev);
1143 int libevdev_next_event(struct libevdev *dev, unsigned int flags, struct input_event *ev);
1167 int libevdev_has_event_pending(struct libevdev *dev);
[all …]

12345678910>>...153