Lines Matching refs:intf_fd
44 std::unique_ptr<GRSurfaceAdf> GRSurfaceAdf::Create(int intf_fd, const drm_mode_modeinfo* mode, in Create() argument
48 auto fd = adf_interface_simple_buffer_alloc(intf_fd, mode->hdisplay, mode->vdisplay, format, in Create()
70 MinuiBackendAdf::MinuiBackendAdf() : intf_fd(-1), dev(), current_surface(0), n_surfaces(0) {} in MinuiBackendAdf()
74 if (int err = adf_get_interface_data(intf_fd, &intf_data); err < 0) return err; in InterfaceInit()
77 surfaces[0] = GRSurfaceAdf::Create(intf_fd, &intf_data.current_mode, format, &result); in InterfaceInit()
83 surfaces[1] = GRSurfaceAdf::Create(intf_fd, &intf_data.current_mode, format, &result); in InterfaceInit()
104 intf_fd = adf_interface_open(dev, intf_id, O_RDWR | O_CLOEXEC); in DeviceInit()
105 if (intf_fd < 0) return intf_fd; in DeviceInit()
109 close(intf_fd); in DeviceInit()
110 intf_fd = -1; in DeviceInit()
137 intf_fd = -1; in Init()
139 for (ssize_t i = 0; i < n_dev_ids && intf_fd < 0; i++) { in Init()
155 if (intf_fd < 0) return nullptr; in Init()
184 int fence_fd = adf_interface_simple_post(intf_fd, eng_id, surf->width, surf->height, format, in Flip()
194 adf_interface_blank(intf_fd, blank ? DRM_MODE_DPMS_OFF : DRM_MODE_DPMS_ON); in Blank()
199 if (intf_fd >= 0) close(intf_fd); in ~MinuiBackendAdf()