Lines Matching refs:enc
62 drmModeEncoder *enc = drmModeGetEncoder(dev_fd, conn->encoders[i]); in GetEncoder() local
63 if (enc && enc->encoder_type == DRM_MODE_ENCODER_DSI) { in GetEncoder()
64 *encoder = enc; in GetEncoder()
65 DRM_LOGI("Found encoder %d", enc->encoder_id); in GetEncoder()
72 static bool GetCrtc(int dev_fd, drmModeRes *res, drmModeEncoder *enc, drmModeCrtc **crtc) { in GetCrtc() argument
74 if (enc->possible_crtcs & (1 << i)) { in GetCrtc()
127 drmModeEncoder *enc = nullptr; in Init() local
128 if (!GetEncoder(dev_fd, conn, &enc)) { in Init()
135 if (!GetCrtc(dev_fd, res, enc, &crtc)) { in Init()
137 drmModeFreeEncoder(enc); in Init()
145 enc_ = enc; in Init()