Lines Matching refs:dpy
125 for(int dpy = 0; dpy < numDisplays; dpy++) { in setDMAState() local
126 hwc_display_contents_1_t *list = displays[dpy]; in setDMAState()
139 if (canUseRotator(ctx, dpy) && in setDMAState()
143 dpy)) { in setDMAState()
152 if(dpy) { in setDMAState()
191 static bool isHotPluggable(hwc_context_t *ctx, int dpy) { in isHotPluggable() argument
192 return ((dpy == HWC_DISPLAY_EXTERNAL) || in isHotPluggable()
193 ((dpy == HWC_DISPLAY_PRIMARY) && in isHotPluggable()
229 static void scaleDisplayFrame(hwc_context_t *ctx, int dpy, in scaleDisplayFrame() argument
231 uint32_t origXres = ctx->dpyAttr[dpy].xres; in scaleDisplayFrame()
232 uint32_t origYres = ctx->dpyAttr[dpy].yres; in scaleDisplayFrame()
233 uint32_t newXres = ctx->dpyAttr[dpy].xres_new; in scaleDisplayFrame()
234 uint32_t newYres = ctx->dpyAttr[dpy].yres_new; in scaleDisplayFrame()
284 const int dpy = HWC_DISPLAY_PRIMARY; in hwc_prepare_primary() local
288 if (LIKELY(list && list->numHwLayers > 1) && ctx->dpyAttr[dpy].connected && in hwc_prepare_primary()
289 (ctx->dpyAttr[dpy].isActive || in hwc_prepare_primary()
291 && !ctx->dpyAttr[dpy].isPause) { in hwc_prepare_primary()
295 if (!ctx->dpyAttr[dpy].isActive) { in hwc_prepare_primary()
301 if ((cableConnected == 1) && !ctx->dpyAttr[dpy].connected) { in hwc_prepare_primary()
302 qhwc::handle_online(ctx, dpy); in hwc_prepare_primary()
305 ctx->dpyAttr[dpy].isActive = true; in hwc_prepare_primary()
308 if (ctx->dpyAttr[dpy].customFBSize && in hwc_prepare_primary()
310 scaleDisplayFrame(ctx, dpy, list); in hwc_prepare_primary()
312 reset_layer_prop(ctx, dpy, (int)list->numHwLayers - 1); in hwc_prepare_primary()
313 setListStats(ctx, list, dpy); in hwc_prepare_primary()
315 fbComp = (ctx->mMDPComp[dpy]->prepare(ctx, list) < 0); in hwc_prepare_primary()
319 if(not ctx->mFBUpdate[dpy]->prepareAndValidate(ctx, list, fbZ)) { in hwc_prepare_primary()
320 ctx->mOverlay->clear(dpy); in hwc_prepare_primary()
321 ctx->mLayerRotMap[dpy]->clear(); in hwc_prepare_primary()
326 if(ctx->mCopyBit[dpy]) in hwc_prepare_primary()
327 ctx->mCopyBit[dpy]->prepare(ctx, list, dpy); in hwc_prepare_primary()
338 const int dpy = HWC_DISPLAY_EXTERNAL; in hwc_prepare_external() local
341 ctx->dpyAttr[dpy].isActive && in hwc_prepare_external()
342 ctx->dpyAttr[dpy].connected) { in hwc_prepare_external()
343 reset_layer_prop(ctx, dpy, (int)list->numHwLayers - 1); in hwc_prepare_external()
344 if(!ctx->dpyAttr[dpy].isPause) { in hwc_prepare_external()
345 ctx->dpyAttr[dpy].isConfiguring = false; in hwc_prepare_external()
346 setListStats(ctx, list, dpy); in hwc_prepare_external()
347 if(ctx->mMDPComp[dpy]->prepare(ctx, list) < 0) { in hwc_prepare_external()
349 if(not ctx->mFBUpdate[dpy]->prepareAndValidate(ctx, list, fbZ)) in hwc_prepare_external()
351 ctx->mOverlay->clear(dpy); in hwc_prepare_external()
352 ctx->mLayerRotMap[dpy]->clear(); in hwc_prepare_external()
391 for (int32_t dpy = ((int32_t)numDisplays-1); dpy >=0 ; dpy--) { in hwc_prepare() local
392 hwc_display_contents_1_t *list = displays[dpy]; in hwc_prepare()
393 resetROI(ctx, dpy); in hwc_prepare()
394 switch(dpy) { in hwc_prepare()
422 static int hwc_eventControl(struct hwc_composer_device_1* dev, int dpy, in hwc_eventControl() argument
432 ret = hwc_vsync_control(ctx, dpy, enable); in hwc_eventControl()
440 if(dpy == HWC_DISPLAY_PRIMARY) { in hwc_eventControl()
453 static int hwc_setPowerMode(struct hwc_composer_device_1* dev, int dpy, in hwc_setPowerMode() argument
462 __FUNCTION__, mode, dpy); in hwc_setPowerMode()
488 switch(dpy) { in hwc_setPowerMode()
491 if(ctx->dpyAttr[dpy].connected) { in hwc_setPowerMode()
497 (!Overlay::displayCommit(ctx->dpyAttr[dpy].fd))) { in hwc_setPowerMode()
498 ALOGE("%s: display commit fail for %d", __FUNCTION__, dpy); in hwc_setPowerMode()
503 if(ioctl(ctx->dpyAttr[dpy].fd, FBIOBLANK, value) < 0 ) { in hwc_setPowerMode()
516 ctx->dpyAttr[dpy].isActive = not(mode == HWC_POWER_MODE_OFF); in hwc_setPowerMode()
522 const int dpy = HWC_DISPLAY_VIRTUAL; in hwc_setPowerMode() local
524 (not ctx->dpyAttr[dpy].isPause)) { in hwc_setPowerMode()
525 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in hwc_setPowerMode()
530 ctx->dpyAttr[dpy].isActive = not(mode == HWC_POWER_MODE_OFF); in hwc_setPowerMode()
535 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in hwc_setPowerMode()
540 ctx->dpyAttr[dpy].isActive = not(mode == HWC_POWER_MODE_OFF); in hwc_setPowerMode()
550 __FUNCTION__, mode, dpy); in hwc_setPowerMode()
622 const int dpy = HWC_DISPLAY_PRIMARY; in hwc_set_primary() local
623 if (LIKELY(list) && ctx->dpyAttr[dpy].isActive in hwc_set_primary()
624 && !ctx->dpyAttr[dpy].isPause) { in hwc_set_primary()
630 if (ctx->mCopyBit[dpy]) { in hwc_set_primary()
632 copybitDone = ctx->mCopyBit[dpy]->draw(ctx, list, dpy, &fd); in hwc_set_primary()
634 fd = ctx->mMDPComp[dpy]->drawOverlap(ctx, list); in hwc_set_primary()
638 hwc_sync(ctx, list, dpy, fd); in hwc_set_primary()
641 if(ctx->mHwcDebug[dpy]) in hwc_set_primary()
642 ctx->mHwcDebug[dpy]->dumpLayers(list); in hwc_set_primary()
644 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) { in hwc_set_primary()
653 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer(); in hwc_set_primary()
657 int index = ctx->listStats[dpy].renderBufIndexforABC; in hwc_set_primary()
663 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) { in hwc_set_primary()
673 (isDisplaySplit(ctx, dpy) ? getLeftSplit(ctx, dpy) : 0); in hwc_set_primary()
675 ctx->listStats[dpy].lRoi.left, in hwc_set_primary()
676 ctx->listStats[dpy].lRoi.top, in hwc_set_primary()
677 ctx->listStats[dpy].lRoi.right - ctx->listStats[dpy].lRoi.left, in hwc_set_primary()
678 ctx->listStats[dpy].lRoi.bottom - ctx->listStats[dpy].lRoi.top); in hwc_set_primary()
681 ctx->listStats[dpy].rRoi.left - lSplit, in hwc_set_primary()
682 ctx->listStats[dpy].rRoi.top, in hwc_set_primary()
683 ctx->listStats[dpy].rRoi.right - ctx->listStats[dpy].rRoi.left, in hwc_set_primary()
684 ctx->listStats[dpy].rRoi.bottom - ctx->listStats[dpy].rRoi.top); in hwc_set_primary()
686 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd, lRoi, rRoi)) { in hwc_set_primary()
687 ALOGE("%s: display commit fail for %d dpy!", __FUNCTION__, dpy); in hwc_set_primary()
703 const int dpy = HWC_DISPLAY_EXTERNAL; in hwc_set_external() local
706 if (LIKELY(list) && ctx->dpyAttr[dpy].isActive && in hwc_set_external()
707 ctx->dpyAttr[dpy].connected && in hwc_set_external()
708 !ctx->dpyAttr[dpy].isPause) { in hwc_set_external()
713 if(ctx->mCopyBit[dpy]) in hwc_set_external()
714 copybitDone = ctx->mCopyBit[dpy]->draw(ctx, list, dpy, &fd); in hwc_set_external()
717 hwc_sync(ctx, list, dpy, fd); in hwc_set_external()
720 if(ctx->mHwcDebug[dpy]) in hwc_set_external()
721 ctx->mHwcDebug[dpy]->dumpLayers(list); in hwc_set_external()
723 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) { in hwc_set_external()
730 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer(); in hwc_set_external()
734 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) { in hwc_set_external()
740 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in hwc_set_external()
741 ALOGE("%s: display commit fail for %d dpy!", __FUNCTION__, dpy); in hwc_set_external()
756 for (int dpy = 0; dpy < (int)numDisplays; dpy++) { in hwc_set() local
757 hwc_display_contents_1_t* list = displays[dpy]; in hwc_set()
758 switch(dpy) { in hwc_set()
904 for(int dpy = 0; dpy < HWC_NUM_DISPLAY_TYPES; dpy++) { in hwc_dump() local
905 if(ctx->mMDPComp[dpy]) in hwc_dump()
906 ctx->mMDPComp[dpy]->dump(aBuf, ctx); in hwc_dump()