Lines Matching refs:fd_
63 drmIoctl(fd_, DRM_IOCTL_MODE_CREATE_DUMB, &create);
73 int ret = drmModeAddFB2(fd_, bo->width, bo->height, DRM_FORMAT_ARGB8888, handles, pitches, offsets, &bo->fbId, 0);
81 drmIoctl(fd_, DRM_IOCTL_MODE_MAP_DUMB, &map);
82 bo->vaddr = static_cast<uint8_t *>(mmap(0, create.size, PROT_READ | PROT_WRITE, MAP_SHARED, fd_, map.offset));
267 res_ = GetResources(fd_);
268 if (fd_ < 0 || res_ == nullptr) {
275 conn_ = GetConnector(*res_, fd_, modeId);
282 crtc_ = GetCrtc(*res_, fd_, *conn_);
294 drmModeSetCrtc(fd_, crtc_->crtc_id, buff_.fbId, 0, 0, &conn_->connector_id, 1, &conn_->modes[modeId]);
316 if (fd_ > 0 && bo->fbId != 0) {
317 drmModeRmFB(fd_, bo->fbId);
322 if (fd_ > 0) {
325 drmIoctl(fd_, DRM_IOCTL_GEM_CLOSE, &destroy);
336 if (fd_ > 0) {
337 close(fd_);
338 fd_ = -1;