Lines Matching defs:ret
1107 int ret = drmPrimeFDToHandle(wsi->fd, image->base.dma_buf_fd,
1109 if (ret < 0)
1117 int ret = drmModeAddFB2(wsi->fd,
1126 if (ret)
1273 int ret = poll(&pollfd, 1, -1);
1274 if (ret > 0) {
1288 int ret = pthread_create(&wsi->wait_thread, NULL,
1290 if (ret)
1291 return ret;
1318 int ret = pthread_cond_timedwait(cond, mutex, &abs_timeout);
1319 wsi_display_debug("%9ld done waiting for event %d\n", pthread_self(), ret);
1320 return ret;
1331 int ret = wsi_display_start_wait_thread(wsi);
1333 if (ret)
1334 return ret;
1357 int ret = 0;
1381 if (ret == ETIMEDOUT) {
1386 ret = wsi_display_wait_for_event(wsi, timeout);
1388 if (ret && ret != ETIMEDOUT) {
1562 int ret = 0;
1571 if (ret == ETIMEDOUT) {
1579 ret = wsi_device_wait_for_event(fence->wsi, timeout);
1581 ret = wsi_display_wait_for_event(fence->wsi, timeout);
1583 if (ret && ret != ETIMEDOUT) {
1643 int ret = drmSyncobjFDToHandle(wsi->syncobj_fd, sync_fd, &fence->syncobj);
1645 if (ret) {
1742 VkResult ret = wsi_display_setup_connector(connector,
1744 if (ret != VK_SUCCESS)
1749 int ret = drmCrtcQueueSequence(wsi->fd, connector->crtc_id,
1755 if (!ret)
1778 ret = wsi_display_wait_for_event(wsi, wsi_rel_to_abs_time(100000000ull));
1781 if (ret) {
1836 int ret;
1838 ret = drmModePageFlip(wsi->fd, connector->crtc_id, image->fb_id,
1840 if (ret == 0) {
1844 wsi_display_debug("page flip err %d %s\n", ret, strerror(-ret));
1846 ret = -EINVAL;
1849 if (ret == -EINVAL) {
1858 ret = drmModeSetCrtc(wsi->fd, connector->crtc_id,
1862 if (ret == 0) {
1867 ret = drmModeSetCursor(wsi->fd, connector->crtc_id, 0, 0, 0 );
1868 if (ret != 0) {
1869 wsi_display_debug("failed to hide cursor err %d %s\n", ret, strerror(-ret));
1882 if (ret != -EACCES) {
2009 bool ret = false;
2020 ret = true;
2026 return ret;
2070 int ret =
2072 if (ret < 0)
2075 ret = udev_monitor_enable_receiving(mon);
2076 if (ret < 0)
2092 int ret = poll(fds, nfds, -1);
2093 if (ret > 0) {
2115 } else if (ret < 0) {
2159 int ret = pthread_mutex_init(&wsi->wait_mutex, NULL);
2160 if (ret) {
2338 bool ret = false;
2344 ret = (qv_r->major_version > 1 ||
2348 return ret;
2783 VkResult ret = VK_SUCCESS;
2814 ret = wsi_display_sync_create(device, fence, sync_out);
2815 if (ret != VK_SUCCESS)
2821 return ret;
2830 VkResult ret;
2836 ret = vk_fence_create(device, &info, allocator, &fence);
2837 if (ret != VK_SUCCESS)
2838 return ret;
2840 ret = wsi_register_device_event(_device,
2846 if (ret == VK_SUCCESS)
2850 return ret;
2866 VkResult ret;
2876 ret = wsi_register_vblank_event(fence, wsi_device, display,
2879 if (ret == VK_SUCCESS) {
2881 ret = wsi_display_sync_create(device, fence, sync_out);
2882 if (ret != VK_SUCCESS)
2895 ret = VK_ERROR_FEATURE_NOT_PRESENT;
2899 return ret;
2909 VkResult ret;
2915 ret = vk_fence_create(device, &info, allocator, &fence);
2916 if (ret != VK_SUCCESS)
2917 return ret;
2919 ret = wsi_register_display_event(
2923 if (ret == VK_SUCCESS)
2927 return ret;
2962 int ret = drmCrtcGetSequence(wsi->fd, connector->crtc_id,
2964 if (ret)