• Home
  • Raw
  • Download

Lines Matching refs:dpy

126     for(int dpy = 0; dpy < numDisplays; dpy++) {  in setDMAState()  local
127 hwc_display_contents_1_t *list = displays[dpy]; in setDMAState()
140 if (canUseRotator(ctx, dpy) && in setDMAState()
144 dpy)) { in setDMAState()
153 if(dpy) { in setDMAState()
236 static void scaleDisplayFrame(hwc_context_t *ctx, int dpy, in scaleDisplayFrame() argument
238 uint32_t origXres = ctx->dpyAttr[dpy].xres; in scaleDisplayFrame()
239 uint32_t origYres = ctx->dpyAttr[dpy].yres; in scaleDisplayFrame()
240 uint32_t newXres = ctx->dpyAttr[dpy].xres_new; in scaleDisplayFrame()
241 uint32_t newYres = ctx->dpyAttr[dpy].yres_new; in scaleDisplayFrame()
262 const int dpy = HWC_DISPLAY_PRIMARY; in hwc_prepare_primary() local
270 (ctx->dpyAttr[dpy].isActive || in hwc_prepare_primary()
272 && !ctx->dpyAttr[dpy].isPause) { in hwc_prepare_primary()
277 if (!ctx->dpyAttr[dpy].isActive) { in hwc_prepare_primary()
283 if ((cableConnected == 1) && !ctx->dpyAttr[dpy].connected) { in hwc_prepare_primary()
284 qhwc::handle_online(ctx, dpy); in hwc_prepare_primary()
287 ctx->dpyAttr[dpy].isActive = true; in hwc_prepare_primary()
290 if (ctx->dpyAttr[dpy].customFBSize && in hwc_prepare_primary()
292 scaleDisplayFrame(ctx, dpy, list); in hwc_prepare_primary()
294 reset_layer_prop(ctx, dpy, (int)list->numHwLayers - 1); in hwc_prepare_primary()
295 setListStats(ctx, list, dpy); in hwc_prepare_primary()
297 fbComp = (ctx->mMDPComp[dpy]->prepare(ctx, list) < 0); in hwc_prepare_primary()
301 if(not ctx->mFBUpdate[dpy]->prepareAndValidate(ctx, list, fbZ)) { in hwc_prepare_primary()
302 ctx->mOverlay->clear(dpy); in hwc_prepare_primary()
303 ctx->mLayerRotMap[dpy]->clear(); in hwc_prepare_primary()
308 if(ctx->mCopyBit[dpy]) in hwc_prepare_primary()
309 ctx->mCopyBit[dpy]->prepare(ctx, list, dpy); in hwc_prepare_primary()
320 const int dpy = HWC_DISPLAY_EXTERNAL; in hwc_prepare_external() local
323 ctx->dpyAttr[dpy].isActive && in hwc_prepare_external()
324 ctx->dpyAttr[dpy].connected) { in hwc_prepare_external()
325 reset_layer_prop(ctx, dpy, (int)list->numHwLayers - 1); in hwc_prepare_external()
326 if(!ctx->dpyAttr[dpy].isPause) { in hwc_prepare_external()
327 ctx->dpyAttr[dpy].isConfiguring = false; in hwc_prepare_external()
328 setListStats(ctx, list, dpy); in hwc_prepare_external()
329 if(ctx->mMDPComp[dpy]->prepare(ctx, list) < 0) { in hwc_prepare_external()
331 if(not ctx->mFBUpdate[dpy]->prepareAndValidate(ctx, list, fbZ)) in hwc_prepare_external()
333 ctx->mOverlay->clear(dpy); in hwc_prepare_external()
334 ctx->mLayerRotMap[dpy]->clear(); in hwc_prepare_external()
373 for (int32_t dpy = ((int32_t)numDisplays-1); dpy >=0 ; dpy--) { in hwc_prepare() local
374 hwc_display_contents_1_t *list = displays[dpy]; in hwc_prepare()
375 resetROI(ctx, dpy); in hwc_prepare()
376 switch(dpy) { in hwc_prepare()
404 static int hwc_eventControl(struct hwc_composer_device_1* dev, int dpy, in hwc_eventControl() argument
410 if(!validDisplay(dpy)) { in hwc_eventControl()
418 ret = hwc_vsync_control(ctx, dpy, enable); in hwc_eventControl()
426 if(dpy == HWC_DISPLAY_PRIMARY) { in hwc_eventControl()
439 static int hwc_setPowerMode(struct hwc_composer_device_1* dev, int dpy, in hwc_setPowerMode() argument
448 if(!validDisplay(dpy)) { in hwc_setPowerMode()
453 __FUNCTION__, mode, dpy); in hwc_setPowerMode()
479 switch(dpy) { in hwc_setPowerMode()
482 if(ctx->dpyAttr[dpy].connected) { in hwc_setPowerMode()
488 (!Overlay::displayCommit(ctx->dpyAttr[dpy].fd))) { in hwc_setPowerMode()
489 ALOGE("%s: display commit fail for %d", __FUNCTION__, dpy); in hwc_setPowerMode()
494 if(ioctl(ctx->dpyAttr[dpy].fd, FBIOBLANK, value) < 0 ) { in hwc_setPowerMode()
506 ctx->dpyAttr[dpy].isActive = not(mode == HWC_POWER_MODE_OFF); in hwc_setPowerMode()
512 const int dpy = HWC_DISPLAY_VIRTUAL; in hwc_setPowerMode() local
514 (not ctx->dpyAttr[dpy].isPause)) { in hwc_setPowerMode()
515 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in hwc_setPowerMode()
520 ctx->dpyAttr[dpy].isActive = not(mode == HWC_POWER_MODE_OFF); 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()
537 __FUNCTION__, mode, dpy); in hwc_setPowerMode()
609 const int dpy = HWC_DISPLAY_PRIMARY; in hwc_set_primary() local
610 if (LIKELY(list) && ctx->dpyAttr[dpy].isActive in hwc_set_primary()
611 && !ctx->dpyAttr[dpy].isPause) { in hwc_set_primary()
617 if (ctx->mCopyBit[dpy]) { in hwc_set_primary()
619 copybitDone = ctx->mCopyBit[dpy]->draw(ctx, list, dpy, &fd); in hwc_set_primary()
621 fd = ctx->mMDPComp[dpy]->drawOverlap(ctx, list); in hwc_set_primary()
625 hwc_sync(ctx, list, dpy, fd); in hwc_set_primary()
628 if(ctx->mHwcDebug[dpy]) in hwc_set_primary()
629 ctx->mHwcDebug[dpy]->dumpLayers(list); in hwc_set_primary()
631 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) { in hwc_set_primary()
644 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer(); in hwc_set_primary()
648 int index = ctx->listStats[dpy].renderBufIndexforABC; in hwc_set_primary()
654 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) { in hwc_set_primary()
660 int lSplit = getLeftSplit(ctx, dpy); in hwc_set_primary()
662 ctx->listStats[dpy].lRoi.left, in hwc_set_primary()
663 ctx->listStats[dpy].lRoi.top, in hwc_set_primary()
664 ctx->listStats[dpy].lRoi.right - ctx->listStats[dpy].lRoi.left, in hwc_set_primary()
665 ctx->listStats[dpy].lRoi.bottom - ctx->listStats[dpy].lRoi.top); in hwc_set_primary()
668 ctx->listStats[dpy].rRoi.left - lSplit, in hwc_set_primary()
669 ctx->listStats[dpy].rRoi.top, in hwc_set_primary()
670 ctx->listStats[dpy].rRoi.right - ctx->listStats[dpy].rRoi.left, in hwc_set_primary()
671 ctx->listStats[dpy].rRoi.bottom - ctx->listStats[dpy].rRoi.top); in hwc_set_primary()
673 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd, lRoi, rRoi)) { in hwc_set_primary()
674 ALOGE("%s: display commit fail for %d dpy!", __FUNCTION__, dpy); in hwc_set_primary()
690 const int dpy = HWC_DISPLAY_EXTERNAL; in hwc_set_external() local
692 if (LIKELY(list) && ctx->dpyAttr[dpy].isActive && in hwc_set_external()
693 ctx->dpyAttr[dpy].connected && in hwc_set_external()
694 !ctx->dpyAttr[dpy].isPause) { in hwc_set_external()
699 if(ctx->mCopyBit[dpy]) in hwc_set_external()
700 copybitDone = ctx->mCopyBit[dpy]->draw(ctx, list, dpy, &fd); in hwc_set_external()
703 hwc_sync(ctx, list, dpy, fd); in hwc_set_external()
706 if(ctx->mHwcDebug[dpy]) in hwc_set_external()
707 ctx->mHwcDebug[dpy]->dumpLayers(list); in hwc_set_external()
709 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) { in hwc_set_external()
716 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer(); in hwc_set_external()
720 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) { in hwc_set_external()
726 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in hwc_set_external()
727 ALOGE("%s: display commit fail for %d dpy!", __FUNCTION__, dpy); in hwc_set_external()
742 for (int dpy = 0; dpy < (int)numDisplays; dpy++) { in hwc_set() local
743 hwc_display_contents_1_t* list = displays[dpy]; in hwc_set()
744 switch(dpy) { in hwc_set()
888 for(int dpy = 0; dpy < HWC_NUM_DISPLAY_TYPES; dpy++) { in hwc_dump() local
889 if(ctx->mMDPComp[dpy]) in hwc_dump()
890 ctx->mMDPComp[dpy]->dump(aBuf, ctx); in hwc_dump()