Lines Matching refs:ret
97 int ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE, &create); in connect() local
98 if (ret) { in connect()
100 __func__, ret, strerror(errno)); in connect()
127 int ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_MAP, &map); in connect() local
128 if (ret) { in connect()
130 __func__, ret, strerror(errno)); in connect()
140 __func__, ret, strerror(errno)); in connect()
310 int ret = 0; in recv() local
315 ret += res; in recv()
327 if (ret == 0) in recv()
328 ret = -1; in recv()
331 return ret; in recv()
338 int ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_WAIT, &waitcmd); in wait() local
339 if (ret) { in wait()
348 int ret = EAGAIN; in transferToHost() local
372 ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_TRANSFER_TO_HOST, &xfer); in transferToHost()
374 if (ret) { in transferToHost()
376 return (ssize_t)ret; in transferToHost()
391 int ret = EAGAIN; in transferFromHost() local
412 ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_TRANSFER_FROM_HOST, &xfer); in transferFromHost()
414 if (ret) { in transferFromHost()
416 return (ssize_t)ret; in transferFromHost()