Lines Matching refs:enc
126 std::unique_ptr<DrmEncoder> enc( in Init() local
131 encoders_.emplace_back(std::move(enc)); in Init()
322 int DrmDevice::TryEncoderForDisplay(int display, DrmEncoder *enc) { in TryEncoderForDisplay() argument
324 DrmCrtc *crtc = enc->crtc(); in TryEncoderForDisplay()
327 enc->set_crtc(crtc, display); in TryEncoderForDisplay()
332 for (DrmCrtc *crtc : enc->possible_crtcs()) { in TryEncoderForDisplay()
334 if (crtc == enc->crtc()) in TryEncoderForDisplay()
339 enc->set_crtc(crtc, display); in TryEncoderForDisplay()
361 for (DrmEncoder *enc : connector->possible_encoders()) { in CreateDisplayPipe()
362 int ret = TryEncoderForDisplay(display, enc); in CreateDisplayPipe()
364 connector->set_encoder(enc); in CreateDisplayPipe()
373 for (DrmEncoder *enc : connector->possible_encoders()) { in CreateDisplayPipe()
374 if (!enc->can_bind(display)) in CreateDisplayPipe()
376 if (enc->possible_crtcs().size() > 0) { in CreateDisplayPipe()
377 DrmCrtc *crtc = enc->possible_crtcs().at(0); in CreateDisplayPipe()
379 enc->set_crtc(crtc, display); in CreateDisplayPipe()
382 connector->set_encoder(enc); in CreateDisplayPipe()