/third_party/libinput/src/ |
D | evdev.c | 94 parse_udev_flag(struct evdev_device *device, in parse_udev_flag() argument 107 evdev_log_error(device, in parse_udev_flag() 115 evdev_update_key_down_count(struct evdev_device *device, in evdev_update_key_down_count() argument 123 key_count = ++device->key_count[code]; in evdev_update_key_down_count() 125 assert(device->key_count[code] > 0); in evdev_update_key_down_count() 126 key_count = --device->key_count[code]; in evdev_update_key_down_count() 130 evdev_log_bug_libinput(device, in evdev_update_key_down_count() 139 evdev_device_switch_get_state(struct evdev_device *device, in evdev_device_switch_get_state() argument 142 struct evdev_dispatch *dispatch = device->dispatch; in evdev_device_switch_get_state() 150 evdev_pointer_notify_physical_button(struct evdev_device *device, in evdev_pointer_notify_physical_button() argument [all …]
|
D | evdev-middle-button.c | 81 middlebutton_state_error(struct evdev_device *device, in middlebutton_state_error() argument 84 evdev_log_bug_libinput(device, in middlebutton_state_error() 87 middlebutton_state_to_str(device->middlebutton.state)); in middlebutton_state_error() 91 middlebutton_timer_set(struct evdev_device *device, uint64_t now) in middlebutton_timer_set() argument 93 libinput_timer_set(&device->middlebutton.timer, in middlebutton_timer_set() 98 middlebutton_timer_cancel(struct evdev_device *device) in middlebutton_timer_cancel() argument 100 libinput_timer_cancel(&device->middlebutton.timer); in middlebutton_timer_cancel() 104 middlebutton_set_state(struct evdev_device *device, in middlebutton_set_state() argument 111 middlebutton_timer_set(device, now); in middlebutton_set_state() 112 device->middlebutton.first_event_time = now; in middlebutton_set_state() [all …]
|
D | evdev.h | 217 void (*change_scroll_method)(struct evdev_device *device); 258 void (*change_to_enabled)(struct evdev_device *device); 275 evdev_device(struct libinput_device *device) in evdev_device() argument 277 return container_of(device, struct evdev_device, base); in evdev_device() 287 struct evdev_device *device, 293 struct evdev_device *device); 302 void (*device_added)(struct evdev_device *device, 306 void (*device_removed)(struct evdev_device *device, 310 void (*device_suspended)(struct evdev_device *device, 314 void (*device_resumed)(struct evdev_device *device, [all …]
|
D | evdev-fallback.c | 36 struct evdev_device *device, in fallback_keyboard_notify_key() argument 43 down_count = evdev_update_key_down_count(device, key, state); in fallback_keyboard_notify_key() 47 keyboard_notify_key(&device->base, time, key, state); in fallback_keyboard_notify_key() 52 struct evdev_device *device, in fallback_lid_notify_toggle() argument 56 switch_notify_toggle(&device->base, in fallback_lid_notify_toggle() 84 normalize_delta(struct evdev_device *device, in normalize_delta() argument 88 normalized->x = delta->x * DEFAULT_MOUSE_DPI / (double)device->dpi; in normalize_delta() 89 normalized->y = delta->y * DEFAULT_MOUSE_DPI / (double)device->dpi; in normalize_delta() 93 post_trackpoint_scroll(struct evdev_device *device, in post_trackpoint_scroll() argument 97 if (device->scroll.method != LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN) in post_trackpoint_scroll() [all …]
|
D | libinput.c | 347 return event->device->seat->libinput; in libinput_event_get_context() 353 return event->device; in libinput_event_get_device() 595 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_pointer_get_absolute_x() local 602 return evdev_convert_to_mm(device->abs.absinfo_x, event->absolute.x); in libinput_event_pointer_get_absolute_x() 608 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_pointer_get_absolute_y() local 615 return evdev_convert_to_mm(device->abs.absinfo_y, event->absolute.y); in libinput_event_pointer_get_absolute_y() 623 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_pointer_get_absolute_x_transformed() local 630 return evdev_device_transform_x(device, event->absolute.x, width); in libinput_event_pointer_get_absolute_x_transformed() 638 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_pointer_get_absolute_y_transformed() local 645 return evdev_device_transform_y(device, event->absolute.y, height); in libinput_event_pointer_get_absolute_y_transformed() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/dvb/ |
D | camdevice.c | 38 CamDevice *device = g_new0 (CamDevice, 1); in cam_device_new() local 40 device->state = CAM_DEVICE_STATE_CLOSED; in cam_device_new() 42 return device; in cam_device_new() 46 reset_state (CamDevice * device) in reset_state() argument 48 if (device->filename) { in reset_state() 49 g_free (device->filename); in reset_state() 50 device->filename = NULL; in reset_state() 53 if (device->fd) { in reset_state() 54 close (device->fd); in reset_state() 55 device->fd = -1; in reset_state() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/haiku/ |
D | SDL_bvideo.cc | 52 SDL_VideoDevice *device; in BE_CreateDevice() local 56 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice)); in BE_CreateDevice() 58 device->driverdata = NULL; /* FIXME: Is this the cause of some of the in BE_CreateDevice() 64 device->VideoInit = BE_VideoInit; in BE_CreateDevice() 65 device->VideoQuit = BE_VideoQuit; in BE_CreateDevice() 66 device->GetDisplayBounds = BE_GetDisplayBounds; in BE_CreateDevice() 67 device->GetDisplayModes = BE_GetDisplayModes; in BE_CreateDevice() 68 device->SetDisplayMode = BE_SetDisplayMode; in BE_CreateDevice() 69 device->PumpEvents = BE_PumpEvents; in BE_CreateDevice() 71 device->CreateWindow = BE_CreateWindow; in BE_CreateDevice() [all …]
|
/third_party/boost/libs/compute/test/ |
D | quirks.hpp | 23 inline bool is_pocl_device(const boost::compute::device &device) in is_pocl_device() argument 25 return device.platform().name() == "Portable Computing Language"; in is_pocl_device() 29 inline bool is_apple_device(const boost::compute::device &device) in is_apple_device() argument 31 return device.platform().name() == "Apple"; in is_apple_device() 38 inline bool bug_in_struct_assignment(const boost::compute::device &device) in bug_in_struct_assignment() argument 40 return boost::compute::detail::is_amd_device(device); in bug_in_struct_assignment() 47 inline bool bug_in_svmmemcpy(const boost::compute::device &device) in bug_in_svmmemcpy() argument 52 return boost::compute::detail::is_amd_device(device); in bug_in_svmmemcpy() 62 inline bool is_apple_cpu_device(const boost::compute::device &device) in is_apple_cpu_device() argument 64 return is_apple_device(device) && (device.type() & ::boost::compute::device::cpu); in is_apple_cpu_device() [all …]
|
D | test_device.cpp | 24 boost::compute::device null; in BOOST_AUTO_TEST_CASE() 32 boost::compute::device gpu = boost::compute::system::default_device(); in BOOST_AUTO_TEST_CASE() 46 boost::compute::device gpu = boost::compute::system::default_device(); in BOOST_AUTO_TEST_CASE() 54 boost::compute::device device1 = boost::compute::system::default_device(); in BOOST_AUTO_TEST_CASE() 57 boost::compute::device device2 = device1; in BOOST_AUTO_TEST_CASE() 63 boost::compute::device device = boost::compute::system::default_device(); in BOOST_AUTO_TEST_CASE() local 66 device.get_info<std::vector<size_t> >(CL_DEVICE_MAX_WORK_ITEM_SIZES); in BOOST_AUTO_TEST_CASE() 76 bool supports_partition_type(const boost::compute::device &device, in supports_partition_type() argument 80 device.get_info<std::vector<cl_device_partition_property> >( in supports_partition_type() 92 boost::compute::device device = boost::compute::system::default_device(); in BOOST_AUTO_TEST_CASE() local [all …]
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/vulkan/ |
D | gstvkdevice.c | 96 GstVulkanDevice *device; in gst_vulkan_device_new() local 100 device = g_object_new (GST_TYPE_VULKAN_DEVICE, "physical-device", in gst_vulkan_device_new() 102 gst_object_ref_sink (device); in gst_vulkan_device_new() 104 return device; in gst_vulkan_device_new() 121 GstVulkanDevice *device; in gst_vulkan_device_new_with_index() local 126 device = gst_vulkan_device_new (physical); in gst_vulkan_device_new_with_index() 128 return device; in gst_vulkan_device_new_with_index() 135 GstVulkanDevice *device = GST_VULKAN_DEVICE (object); in gst_vulkan_device_set_property() local 139 device->physical_device = g_value_dup_object (value); in gst_vulkan_device_set_property() 151 GstVulkanDevice *device = GST_VULKAN_DEVICE (object); in gst_vulkan_device_get_property() local [all …]
|
D | gstvkphysicaldevice.c | 83 #define GET_PRIV(device) gst_vulkan_physical_device_get_instance_private (device) argument 91 device, GError ** error); 105 GstVulkanPhysicalDevice *device; in gst_vulkan_physical_device_new() local 109 device = g_object_new (GST_TYPE_VULKAN_PHYSICAL_DEVICE, "instance", instance, in gst_vulkan_physical_device_new() 111 gst_object_ref_sink (device); in gst_vulkan_physical_device_new() 113 return device; in gst_vulkan_physical_device_new() 120 GstVulkanPhysicalDevice *device = GST_VULKAN_PHYSICAL_DEVICE (object); in gst_vulkan_physical_device_set_property() local 124 device->instance = g_value_dup_object (value); in gst_vulkan_physical_device_set_property() 128 if (device->instance == VK_NULL_HANDLE in gst_vulkan_physical_device_set_property() 129 || device_id >= device->instance->n_physical_devices) { in gst_vulkan_physical_device_set_property() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/audio/ |
D | SDL_audio.c | 233 is_in_audio_device_thread(SDL_AudioDevice * device) in is_in_audio_device_thread() argument 239 if (device->thread && (SDL_ThreadID() == device->threadid)) { in is_in_audio_device_thread() 247 SDL_AudioLockDevice_Default(SDL_AudioDevice * device) in SDL_AudioLockDevice_Default() argument 249 if (!is_in_audio_device_thread(device)) { in SDL_AudioLockDevice_Default() 250 SDL_LockMutex(device->mixer_lock); in SDL_AudioLockDevice_Default() 255 SDL_AudioUnlockDevice_Default(SDL_AudioDevice * device) in SDL_AudioUnlockDevice_Default() argument 257 if (!is_in_audio_device_thread(device)) { in SDL_AudioUnlockDevice_Default() 258 SDL_UnlockMutex(device->mixer_lock); in SDL_AudioUnlockDevice_Default() 263 SDL_AudioLockOrUnlockDeviceWithNoMixerLock(SDL_AudioDevice * device) in SDL_AudioLockOrUnlockDeviceWithNoMixerLock() argument 381 void SDL_OpenedAudioDeviceDisconnected(SDL_AudioDevice *device) in SDL_OpenedAudioDeviceDisconnected() argument [all …]
|
/third_party/libdrm/tests/kms/ |
D | libkms-test-device.c | 51 static void kms_device_probe_screens(struct kms_device *device) in kms_device_probe_screens() argument 60 res = drmModeGetResources(device->fd); in kms_device_probe_screens() 64 device->screens = calloc(res->count_connectors, sizeof(screen)); in kms_device_probe_screens() 65 if (!device->screens) in kms_device_probe_screens() 73 screen = kms_screen_create(device, res->connectors[i]); in kms_device_probe_screens() 92 device->screens[i] = screen; in kms_device_probe_screens() 93 device->num_screens++; in kms_device_probe_screens() 100 static void kms_device_probe_crtcs(struct kms_device *device) in kms_device_probe_crtcs() argument 106 res = drmModeGetResources(device->fd); in kms_device_probe_crtcs() 110 device->crtcs = calloc(res->count_crtcs, sizeof(crtc)); in kms_device_probe_crtcs() [all …]
|
/third_party/weston/libweston/ |
D | libinput-device.c | 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() [all …]
|
/third_party/flutter/skia/src/gpu/vk/ |
D | GrVkInterface.cpp | 13 #define ACQUIRE_PROC(name, instance, device) \ argument 14 fFunctions.f##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device)) 16 #define ACQUIRE_PROC_SUFFIX(name, suffix, instance, device) \ argument 18 reinterpret_cast<PFN_vk##name##suffix>(getProc("vk" #name #suffix, instance, device)) 22 VkDevice device, in GrVkInterface() argument 50 ACQUIRE_PROC(GetDeviceQueue, VK_NULL_HANDLE, device); in GrVkInterface() 51 ACQUIRE_PROC(QueueSubmit, VK_NULL_HANDLE, device); in GrVkInterface() 52 ACQUIRE_PROC(QueueWaitIdle, VK_NULL_HANDLE, device); in GrVkInterface() 53 ACQUIRE_PROC(DeviceWaitIdle, VK_NULL_HANDLE, device); in GrVkInterface() 54 ACQUIRE_PROC(AllocateMemory, VK_NULL_HANDLE, device); in GrVkInterface() [all …]
|
/third_party/skia/src/gpu/vk/ |
D | GrVkInterface.cpp | 13 #define ACQUIRE_PROC(name, instance, device) \ argument 14 fFunctions.f##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device)) 16 #define ACQUIRE_PROC_SUFFIX(name, suffix, instance, device) \ argument 18 reinterpret_cast<PFN_vk##name##suffix>(getProc("vk" #name #suffix, instance, device)) 22 VkDevice device, in GrVkInterface() argument 50 ACQUIRE_PROC(GetDeviceQueue, VK_NULL_HANDLE, device); in GrVkInterface() 51 ACQUIRE_PROC(QueueSubmit, VK_NULL_HANDLE, device); in GrVkInterface() 52 ACQUIRE_PROC(QueueWaitIdle, VK_NULL_HANDLE, device); in GrVkInterface() 53 ACQUIRE_PROC(DeviceWaitIdle, VK_NULL_HANDLE, device); in GrVkInterface() 54 ACQUIRE_PROC(AllocateMemory, VK_NULL_HANDLE, device); in GrVkInterface() [all …]
|
/third_party/mesa3d/src/intel/vulkan/ |
D | anv_device.c | 92 struct anv_device *device = (struct anv_device *)data; in compiler_debug_log() local 93 struct anv_instance *instance = device->physical->instance; in compiler_debug_log() 170 get_device_extensions(const struct anv_physical_device *device, in get_device_extensions() argument 174 .KHR_8bit_storage = device->info.ver >= 8, in get_device_extensions() 175 .KHR_16bit_storage = device->info.ver >= 8, in get_device_extensions() 177 .KHR_buffer_device_address = device->has_a64_buffer_access, in get_device_extensions() 187 .KHR_external_fence = device->has_syncobj_wait, in get_device_extensions() 188 .KHR_external_fence_fd = device->has_syncobj_wait, in get_device_extensions() 194 .KHR_fragment_shading_rate = device->info.ver >= 11, in get_device_extensions() 207 device->use_softpin && device->perf && in get_device_extensions() [all …]
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_sqtt.c | 39 radv_se_is_disabled(struct radv_device *device, unsigned se) in radv_se_is_disabled() argument 42 return device->physical_device->rad_info.cu_mask[se][0] == 0; in radv_se_is_disabled() 46 gfx10_get_thread_trace_ctrl(struct radv_device *device, bool enable) in gfx10_get_thread_trace_ctrl() argument 54 if (device->physical_device->rad_info.chip_class == GFX10_3) in gfx10_get_thread_trace_ctrl() 61 radv_emit_thread_trace_start(struct radv_device *device, struct radeon_cmdbuf *cs, in radv_emit_thread_trace_start() argument 64 uint32_t shifted_size = device->thread_trace.buffer_size >> SQTT_BUFFER_ALIGN_SHIFT; in radv_emit_thread_trace_start() 65 struct radeon_info *rad_info = &device->physical_device->rad_info; in radv_emit_thread_trace_start() 69 uint64_t va = radv_buffer_get_va(device->thread_trace.bo); in radv_emit_thread_trace_start() 70 uint64_t data_va = ac_thread_trace_get_data_va(rad_info, &device->thread_trace, va, se); in radv_emit_thread_trace_start() 72 int first_active_cu = ffs(device->physical_device->rad_info.cu_mask[se][0]); in radv_emit_thread_trace_start() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/x11/ |
D | SDL_x11video.c | 110 X11_DeleteDevice(SDL_VideoDevice * device) in X11_DeleteDevice() argument 112 SDL_VideoData *data = (SDL_VideoData *) device->driverdata; in X11_DeleteDevice() 117 SDL_free(device->driverdata); in X11_DeleteDevice() 118 SDL_free(device); in X11_DeleteDevice() 129 SDL_VideoDevice *device = NULL; in X11_SafetyNetErrHandler() local 133 device = SDL_GetVideoDevice(); in X11_SafetyNetErrHandler() 134 if (device != NULL) { in X11_SafetyNetErrHandler() 136 for (i = 0; i < device->num_displays; i++) { in X11_SafetyNetErrHandler() 137 SDL_VideoDisplay *display = &device->displays[i]; in X11_SafetyNetErrHandler() 140 X11_SetDisplayMode(device, display, &display->desktop_mode); in X11_SafetyNetErrHandler() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/windows/ |
D | SDL_windowsvideo.c | 73 WIN_DeleteDevice(SDL_VideoDevice * device) in WIN_DeleteDevice() argument 75 SDL_VideoData *data = (SDL_VideoData *) device->driverdata; in WIN_DeleteDevice() 85 SDL_free(device->driverdata); in WIN_DeleteDevice() 86 SDL_free(device); in WIN_DeleteDevice() 92 SDL_VideoDevice *device; in WIN_CreateDevice() local 98 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice)); in WIN_CreateDevice() 99 if (device) { in WIN_CreateDevice() 105 SDL_free(device); in WIN_CreateDevice() 109 device->driverdata = data; in WIN_CreateDevice() 124 device->VideoInit = WIN_VideoInit; in WIN_CreateDevice() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/mir/ |
D | SDL_mirvideo.c | 110 MIR_DeleteDevice(SDL_VideoDevice* device) in MIR_DeleteDevice() argument 112 SDL_free(device); in MIR_DeleteDevice() 125 SDL_VideoDevice* device = NULL; in MIR_CreateDevice() local 131 device = SDL_calloc(1, sizeof(SDL_VideoDevice)); in MIR_CreateDevice() 132 if (!device) { in MIR_CreateDevice() 140 SDL_free(device); in MIR_CreateDevice() 146 device->driverdata = mir_data; in MIR_CreateDevice() 149 device->VideoInit = MIR_VideoInit; in MIR_CreateDevice() 150 device->VideoQuit = MIR_VideoQuit; in MIR_CreateDevice() 151 device->GetDisplayBounds = MIR_GetDisplayBounds; in MIR_CreateDevice() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/psp/ |
D | SDL_pspvideo.c | 52 PSP_Destroy(SDL_VideoDevice * device) in PSP_Destroy() argument 56 if (device->driverdata != NULL) { in PSP_Destroy() 57 device->driverdata = NULL; in PSP_Destroy() 64 SDL_VideoDevice *device; in PSP_Create() local 77 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice)); in PSP_Create() 78 if (device == NULL) { in PSP_Create() 87 SDL_free(device); in PSP_Create() 94 SDL_free(device); in PSP_Create() 98 device->gl_data = gldata; in PSP_Create() 100 device->driverdata = phdata; in PSP_Create() [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl-no-opt/comp/ |
D | basic.dynamic-buffer.msl2.invalid.comp | 34 device Baz* baz [[id(0)]][3][3][2]; 40 device Baz* baz[3][3][2] = 44 … (device Baz* )((device char* )spvDescriptorSet1.baz[0][0][0] + spvDynamicOffsets[1]), 45 … (device Baz* )((device char* )spvDescriptorSet1.baz[0][0][1] + spvDynamicOffsets[2]), 48 … (device Baz* )((device char* )spvDescriptorSet1.baz[0][1][0] + spvDynamicOffsets[3]), 49 … (device Baz* )((device char* )spvDescriptorSet1.baz[0][1][1] + spvDynamicOffsets[4]), 52 … (device Baz* )((device char* )spvDescriptorSet1.baz[0][2][0] + spvDynamicOffsets[5]), 53 … (device Baz* )((device char* )spvDescriptorSet1.baz[0][2][1] + spvDynamicOffsets[6]), 58 … (device Baz* )((device char* )spvDescriptorSet1.baz[1][0][0] + spvDynamicOffsets[7]), 59 … (device Baz* )((device char* )spvDescriptorSet1.baz[1][0][1] + spvDynamicOffsets[8]), [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/android/ |
D | SDL_androidvideo.c | 88 Android_DeleteDevice(SDL_VideoDevice * device) in Android_DeleteDevice() argument 90 SDL_free(device->driverdata); in Android_DeleteDevice() 91 SDL_free(device); in Android_DeleteDevice() 97 SDL_VideoDevice *device; in Android_CreateDevice() local 101 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice)); in Android_CreateDevice() 102 if (!device) { in Android_CreateDevice() 110 SDL_free(device); in Android_CreateDevice() 114 device->driverdata = data; in Android_CreateDevice() 117 device->VideoInit = Android_VideoInit; in Android_CreateDevice() 118 device->VideoQuit = Android_VideoQuit; in Android_CreateDevice() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/cocoa/ |
D | SDL_cocoavideo.m | 44 Cocoa_DeleteDevice(SDL_VideoDevice * device) 46 SDL_free(device->driverdata); 47 SDL_free(device); 53 SDL_VideoDevice *device; 59 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice)); 60 if (device) { 67 SDL_free(device); 70 device->driverdata = data; 73 device->VideoInit = Cocoa_VideoInit; 74 device->VideoQuit = Cocoa_VideoQuit; [all …]
|