Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 80) sorted by relevance

1234

/hardware/qcom/display/msm8974/libhwcomposer/
Dhwc.cpp76 hwc_context_t* ctx = (hwc_context_t*)(dev); in hwc_registerProcs() local
77 if(!ctx) { in hwc_registerProcs()
81 ctx->proc = procs; in hwc_registerProcs()
85 init_uevent_thread(ctx); in hwc_registerProcs()
86 init_vsync_thread(ctx); in hwc_registerProcs()
90 static void reset(hwc_context_t *ctx, int numDisplays, in reset() argument
105 if(ctx->mFBUpdate[i]) in reset()
106 ctx->mFBUpdate[i]->reset(); in reset()
107 if(ctx->mMDPComp[i]) in reset()
108 ctx->mMDPComp[i]->reset(); in reset()
[all …]
Dhwc_uevents.cpp55 static void handle_uevent(hwc_context_t* ctx, const char* udata, int len) in handle_uevent() argument
80 ctx->mExtDisplay->setExtDpyNum(dpy); in handle_uevent()
91 ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].isActive = false; in handle_uevent()
94 ctx->dpyAttr[HWC_DISPLAY_VIRTUAL].isActive = true; in handle_uevent()
105 ctx->mExtDisplay->processUEventOffline(udata); in handle_uevent()
106 Locker::Autolock _l(ctx->mDrawLock); in handle_uevent()
107 clearSecondaryObjs(ctx, dpy); in handle_uevent()
110 ctx->dpyAttr[dpy].connected = false; in handle_uevent()
112 ctx->proc->hotplug(ctx->proc, dpy, connected); in handle_uevent()
126 Locker::Autolock _l(ctx->mDrawLock); in handle_uevent()
[all …]
Dhwc_utils.cpp52 static int openFramebufferDevice(hwc_context_t *ctx) in openFramebufferDevice() argument
106 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd = fb_fd; in openFramebufferDevice()
108 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].stride = finfo.line_length /(info.xres/8); in openFramebufferDevice()
109 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres = info.xres; in openFramebufferDevice()
110 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres = info.yres; in openFramebufferDevice()
111 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xdpi = xdpi; in openFramebufferDevice()
112 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].ydpi = ydpi; in openFramebufferDevice()
113 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].vsync_period = 1000000000l / fps; in openFramebufferDevice()
120 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].isActive = true; in openFramebufferDevice()
125 void initContext(hwc_context_t *ctx) in initContext() argument
[all …]
Dhwc_mdpcomp.cpp83 bool MDPComp::init(hwc_context_t *ctx) { in init() argument
85 if(!ctx) { in init()
119 if(ctx->mMDP.panel != MIPI_CMD_PANEL) { in init()
135 idleInvalidator->init(timeout_handler, ctx, idle_timeout); in init()
148 struct hwc_context_t* ctx = (struct hwc_context_t*)(udata); in timeout_handler() local
150 if(!ctx) { in timeout_handler()
155 if(!ctx->proc) { in timeout_handler()
161 ctx->proc->invalidate(ctx->proc); in timeout_handler()
164 void MDPComp::setMDPCompLayerFlags(hwc_context_t *ctx, in setMDPCompLayerFlags() argument
166 LayerProp *layerProp = ctx->layerProp[mDpy]; in setMDPCompLayerFlags()
[all …]
Dhwc_mdpcomp.h43 int prepare(hwc_context_t *ctx, hwc_display_contents_1_t* list);
45 virtual bool draw(hwc_context_t *ctx, hwc_display_contents_1_t *list) = 0;
56 static bool init(hwc_context_t *ctx);
123 virtual bool allocLayerPipes(hwc_context_t *ctx,
126 ovutils::eDest getMdpPipe(hwc_context_t *ctx, ePipeType type, int mixer);
128 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
131 virtual bool arePipesAvailable(hwc_context_t *ctx,
135 void setMDPCompLayerFlags(hwc_context_t *ctx,
138 bool isFrameDoable(hwc_context_t *ctx);
140 bool isFullFrameDoable(hwc_context_t *ctx, hwc_display_contents_1_t* list);
[all …]
Dhwc_vsync.cpp38 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable) in hwc_vsync_control() argument
41 if(!ctx->vstate.fakevsync && in hwc_vsync_control()
42 ioctl(ctx->dpyAttr[dpy].fd, MSMFB_OVERLAY_VSYNC_CTRL, in hwc_vsync_control()
53 hwc_context_t * ctx = reinterpret_cast<hwc_context_t *>(param); in vsync_loop() local
72 ctx->vstate.fakevsync = true; in vsync_loop()
80 if (ctx->mExtDisplay->getHDMIIndex() > 0) in vsync_loop()
90 ctx->mExtDisplay->getHDMIIndex()); in vsync_loop()
101 ctx->vstate.fakevsync = true; in vsync_loop()
113 if (LIKELY(!ctx->vstate.fakevsync)) { in vsync_loop()
136 ctx->proc->vsync(ctx->proc, dpy, timestamp[dpy]); in vsync_loop()
[all …]
Dhwc_utils.h115 static void setBwc(hwc_context_t *ctx, const hwc_rect_t& crop,
178 void setListStats(hwc_context_t *ctx, const hwc_display_contents_1_t *list,
180 void initContext(hwc_context_t *ctx);
181 void closeContext(hwc_context_t *ctx);
187 bool isSecuring(hwc_context_t* ctx, hwc_layer_1_t const* layer);
189 bool needsScaling(hwc_context_t* ctx, hwc_layer_1_t const* layer, const int& dpy);
191 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable);
193 bool isGLESOnlyComp(hwc_context_t *ctx, const int& dpy);
199 void getActionSafePosition(hwc_context_t *ctx, int dpy, uint32_t& x,
206 int hwc_sync(hwc_context_t *ctx, hwc_display_contents_1_t* list, int dpy,
[all …]
/hardware/qcom/display/msm8x26/libcopybit/
Dcopybit_c2d.cpp216 copybit_context_t* ctx = (copybit_context_t*)(ptr); in c2d_wait_loop() local
221 while(ctx->stop_thread == false) { in c2d_wait_loop()
222 pthread_mutex_lock(&ctx->wait_cleanup_lock); in c2d_wait_loop()
223 while(ctx->wait_timestamp == false && !ctx->stop_thread) { in c2d_wait_loop()
224 pthread_cond_wait(&(ctx->wait_cleanup_cond), in c2d_wait_loop()
225 &(ctx->wait_cleanup_lock)); in c2d_wait_loop()
227 if(ctx->wait_timestamp) { in c2d_wait_loop()
228 if(LINK_c2dWaitTimestamp(ctx->time_stamp)) { in c2d_wait_loop()
231 ctx->wait_timestamp = false; in c2d_wait_loop()
234 if (ctx->mapped_gpu_addr[i]) { in c2d_wait_loop()
[all …]
Dcopybit.cpp274 struct copybit_context_t* ctx = (struct copybit_context_t*)dev; in set_parameter_copybit() local
276 if (ctx) { in set_parameter_copybit()
281 ctx->mFlags &= ~0x7; in set_parameter_copybit()
284 ctx->mFlags &= ~0x7; in set_parameter_copybit()
285 ctx->mFlags |= MDP_ROT_90; in set_parameter_copybit()
288 ctx->mFlags &= ~0x7; in set_parameter_copybit()
289 ctx->mFlags |= MDP_ROT_180; in set_parameter_copybit()
292 ctx->mFlags &= ~0x7; in set_parameter_copybit()
293 ctx->mFlags |= MDP_ROT_270; in set_parameter_copybit()
304 ctx->mAlpha = value; in set_parameter_copybit()
[all …]
/hardware/qcom/display/msm8960/libcopybit/
Dcopybit_c2d.cpp216 copybit_context_t* ctx = (copybit_context_t*)(ptr); in c2d_wait_loop() local
221 while(ctx->stop_thread == false) { in c2d_wait_loop()
222 pthread_mutex_lock(&ctx->wait_cleanup_lock); in c2d_wait_loop()
223 while(ctx->wait_timestamp == false && !ctx->stop_thread) { in c2d_wait_loop()
224 pthread_cond_wait(&(ctx->wait_cleanup_cond), in c2d_wait_loop()
225 &(ctx->wait_cleanup_lock)); in c2d_wait_loop()
227 if(ctx->wait_timestamp) { in c2d_wait_loop()
228 if(LINK_c2dWaitTimestamp(ctx->time_stamp)) { in c2d_wait_loop()
231 ctx->wait_timestamp = false; in c2d_wait_loop()
234 if (ctx->mapped_gpu_addr[i]) { in c2d_wait_loop()
[all …]
Dcopybit.cpp274 struct copybit_context_t* ctx = (struct copybit_context_t*)dev; in set_parameter_copybit() local
276 if (ctx) { in set_parameter_copybit()
281 ctx->mFlags &= ~0x7; in set_parameter_copybit()
284 ctx->mFlags &= ~0x7; in set_parameter_copybit()
285 ctx->mFlags |= MDP_ROT_90; in set_parameter_copybit()
288 ctx->mFlags &= ~0x7; in set_parameter_copybit()
289 ctx->mFlags |= MDP_ROT_180; in set_parameter_copybit()
292 ctx->mFlags &= ~0x7; in set_parameter_copybit()
293 ctx->mFlags |= MDP_ROT_270; in set_parameter_copybit()
304 ctx->mAlpha = value; in set_parameter_copybit()
[all …]
/hardware/qcom/display/msm8x26/libhwcomposer/
Dhwc.cpp72 hwc_context_t* ctx = (hwc_context_t*)(dev); in hwc_registerProcs() local
73 if(!ctx) { in hwc_registerProcs()
77 ctx->proc = procs; in hwc_registerProcs()
81 init_uevent_thread(ctx); in hwc_registerProcs()
82 init_vsync_thread(ctx); in hwc_registerProcs()
86 static void reset(hwc_context_t *ctx, int numDisplays, in reset() argument
88 memset(ctx->listStats, 0, sizeof(ctx->listStats)); in reset()
102 if(ctx->mFBUpdate[i]) in reset()
103 ctx->mFBUpdate[i]->reset(); in reset()
104 if(ctx->mCopyBit[i]) in reset()
[all …]
Dhwc_uevents.cpp54 static void handle_uevent(hwc_context_t* ctx, const char* udata, int len) in handle_uevent() argument
88 ctx->mExtDisplay->setExtDpyNum(dpy); in handle_uevent()
99 ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].isActive = false; in handle_uevent()
102 ctx->dpyAttr[HWC_DISPLAY_VIRTUAL].isActive = true; in handle_uevent()
113 ctx->mExtDisplay->processUEventOffline(udata); in handle_uevent()
114 if(ctx->mFBUpdate[dpy]) { in handle_uevent()
115 Locker::Autolock _l(ctx->mExtSetLock); in handle_uevent()
116 delete ctx->mFBUpdate[dpy]; in handle_uevent()
117 ctx->mFBUpdate[dpy] = NULL; in handle_uevent()
119 if(ctx->mCopyBit[dpy]){ in handle_uevent()
[all …]
Dhwc_utils.cpp47 static int openFramebufferDevice(hwc_context_t *ctx) in openFramebufferDevice() argument
90 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd = fb_fd; in openFramebufferDevice()
92 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].stride = finfo.line_length /(info.xres/8); in openFramebufferDevice()
93 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres = info.xres; in openFramebufferDevice()
94 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres = info.yres; in openFramebufferDevice()
95 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xdpi = xdpi; in openFramebufferDevice()
96 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].ydpi = ydpi; in openFramebufferDevice()
97 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].vsync_period = 1000000000l / fps; in openFramebufferDevice()
104 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].isActive = true; in openFramebufferDevice()
109 static int ppdComm(const char* cmd, hwc_context_t *ctx) { in ppdComm() argument
[all …]
Dhwc_mdpcomp.h43 int prepare(hwc_context_t *ctx, hwc_display_contents_1_t* list);
45 virtual bool draw(hwc_context_t *ctx, hwc_display_contents_1_t *list) = 0;
53 static bool init(hwc_context_t *ctx);
120 virtual int pipesNeeded(hwc_context_t *ctx,
123 virtual bool allocLayerPipes(hwc_context_t *ctx,
126 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
130 void setMDPCompLayerFlags(hwc_context_t *ctx,
133 ovutils::eDest getMdpPipe(hwc_context_t *ctx, ePipeType type);
136 bool isFrameDoable(hwc_context_t *ctx);
138 bool isFullFrameDoable(hwc_context_t *ctx, hwc_display_contents_1_t* list);
[all …]
Dhwc_mdpcomp.cpp79 bool MDPComp::init(hwc_context_t *ctx) { in init() argument
81 if(!ctx) { in init()
119 idleInvalidator->init(timeout_handler, ctx, idle_timeout); in init()
125 struct hwc_context_t* ctx = (struct hwc_context_t*)(udata); in timeout_handler() local
127 if(!ctx) { in timeout_handler()
132 if(!ctx->proc) { in timeout_handler()
138 ctx->proc->invalidate(ctx->proc); in timeout_handler()
141 void MDPComp::setMDPCompLayerFlags(hwc_context_t *ctx, in setMDPCompLayerFlags() argument
143 LayerProp *layerProp = ctx->layerProp[mDpy]; in setMDPCompLayerFlags()
145 for(int index = 0; index < ctx->listStats[mDpy].numAppLayers; index++) { in setMDPCompLayerFlags()
[all …]
Dhwc_vsync.cpp36 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable) in hwc_vsync_control() argument
39 if(!ctx->vstate.fakevsync && in hwc_vsync_control()
40 ioctl(ctx->dpyAttr[dpy].fd, MSMFB_OVERLAY_VSYNC_CTRL, in hwc_vsync_control()
55 hwc_context_t * ctx = reinterpret_cast<hwc_context_t *>(param); in vsync_loop() local
75 ctx->vstate.fakevsync = true; in vsync_loop()
93 ctx->vstate.fakevsync = true; in vsync_loop()
97 if (LIKELY(!ctx->vstate.fakevsync)) { in vsync_loop()
121 if(ctx->vstate.enable) { in vsync_loop()
124 ctx->proc->vsync(ctx->proc, dpy, cur_timestamp); in vsync_loop()
134 void init_vsync_thread(hwc_context_t* ctx) in init_vsync_thread() argument
[all …]
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc.cpp72 hwc_context_t* ctx = (hwc_context_t*)(dev); in hwc_registerProcs() local
73 if(!ctx) { in hwc_registerProcs()
77 ctx->proc = procs; in hwc_registerProcs()
81 init_uevent_thread(ctx); in hwc_registerProcs()
82 init_vsync_thread(ctx); in hwc_registerProcs()
86 static void reset(hwc_context_t *ctx, int numDisplays, in reset() argument
88 memset(ctx->listStats, 0, sizeof(ctx->listStats)); in reset()
102 if(ctx->mFBUpdate[i]) in reset()
103 ctx->mFBUpdate[i]->reset(); in reset()
104 if(ctx->mCopyBit[i]) in reset()
[all …]
Dhwc_uevents.cpp54 static void handle_uevent(hwc_context_t* ctx, const char* udata, int len) in handle_uevent() argument
88 ctx->mExtDisplay->setExtDpyNum(dpy); in handle_uevent()
99 ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].isActive = false; in handle_uevent()
102 ctx->dpyAttr[HWC_DISPLAY_VIRTUAL].isActive = true; in handle_uevent()
113 ctx->mExtDisplay->processUEventOffline(udata); in handle_uevent()
114 if(ctx->mFBUpdate[dpy]) { in handle_uevent()
115 Locker::Autolock _l(ctx->mExtSetLock); in handle_uevent()
116 delete ctx->mFBUpdate[dpy]; in handle_uevent()
117 ctx->mFBUpdate[dpy] = NULL; in handle_uevent()
119 if(ctx->mCopyBit[dpy]){ in handle_uevent()
[all …]
Dhwc_utils.cpp47 static int openFramebufferDevice(hwc_context_t *ctx) in openFramebufferDevice() argument
90 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd = fb_fd; in openFramebufferDevice()
92 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].stride = finfo.line_length /(info.xres/8); in openFramebufferDevice()
93 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres = info.xres; in openFramebufferDevice()
94 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres = info.yres; in openFramebufferDevice()
95 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xdpi = xdpi; in openFramebufferDevice()
96 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].ydpi = ydpi; in openFramebufferDevice()
97 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].vsync_period = 1000000000l / fps; in openFramebufferDevice()
104 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].isActive = true; in openFramebufferDevice()
109 static int ppdComm(const char* cmd, hwc_context_t *ctx) { in ppdComm() argument
[all …]
Dhwc_mdpcomp.cpp79 bool MDPComp::init(hwc_context_t *ctx) { in init() argument
81 if(!ctx) { in init()
107 if(ctx->mMDP.panel != MIPI_CMD_PANEL) { in init()
123 idleInvalidator->init(timeout_handler, ctx, idle_timeout); in init()
130 struct hwc_context_t* ctx = (struct hwc_context_t*)(udata); in timeout_handler() local
132 if(!ctx) { in timeout_handler()
137 if(!ctx->proc) { in timeout_handler()
143 ctx->proc->invalidate(ctx->proc); in timeout_handler()
146 void MDPComp::setMDPCompLayerFlags(hwc_context_t *ctx, in setMDPCompLayerFlags() argument
148 LayerProp *layerProp = ctx->layerProp[mDpy]; in setMDPCompLayerFlags()
[all …]
Dhwc_mdpcomp.h43 int prepare(hwc_context_t *ctx, hwc_display_contents_1_t* list);
45 virtual bool draw(hwc_context_t *ctx, hwc_display_contents_1_t *list) = 0;
53 static bool init(hwc_context_t *ctx);
120 virtual int pipesNeeded(hwc_context_t *ctx,
123 virtual bool allocLayerPipes(hwc_context_t *ctx,
126 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
130 void setMDPCompLayerFlags(hwc_context_t *ctx,
133 ovutils::eDest getMdpPipe(hwc_context_t *ctx, ePipeType type);
136 bool isFrameDoable(hwc_context_t *ctx);
138 bool isFullFrameDoable(hwc_context_t *ctx, hwc_display_contents_1_t* list);
[all …]
Dhwc_vsync.cpp36 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable) in hwc_vsync_control() argument
39 if(!ctx->vstate.fakevsync && in hwc_vsync_control()
40 ioctl(ctx->dpyAttr[dpy].fd, MSMFB_OVERLAY_VSYNC_CTRL, in hwc_vsync_control()
55 hwc_context_t * ctx = reinterpret_cast<hwc_context_t *>(param); in vsync_loop() local
75 ctx->vstate.fakevsync = true; in vsync_loop()
93 ctx->vstate.fakevsync = true; in vsync_loop()
97 if (LIKELY(!ctx->vstate.fakevsync)) { in vsync_loop()
121 if(ctx->vstate.enable) { in vsync_loop()
124 ctx->proc->vsync(ctx->proc, dpy, cur_timestamp); in vsync_loop()
134 void init_vsync_thread(hwc_context_t* ctx) in init_vsync_thread() argument
[all …]
/hardware/qcom/display/msm8974/libcopybit/
Dcopybit_c2d.cpp218 copybit_context_t* ctx = (copybit_context_t*)(ptr); in c2d_wait_loop() local
223 while(ctx->stop_thread == false) { in c2d_wait_loop()
224 pthread_mutex_lock(&ctx->wait_cleanup_lock); in c2d_wait_loop()
225 while(ctx->wait_timestamp == false && !ctx->stop_thread) { in c2d_wait_loop()
226 pthread_cond_wait(&(ctx->wait_cleanup_cond), in c2d_wait_loop()
227 &(ctx->wait_cleanup_lock)); in c2d_wait_loop()
229 if(ctx->wait_timestamp) { in c2d_wait_loop()
230 if(LINK_c2dWaitTimestamp(ctx->time_stamp)) { in c2d_wait_loop()
233 ctx->wait_timestamp = false; in c2d_wait_loop()
236 if (ctx->mapped_gpu_addr[i]) { in c2d_wait_loop()
[all …]
Dcopybit.cpp277 struct copybit_context_t* ctx = (struct copybit_context_t*)dev; in set_parameter_copybit() local
279 if (ctx) { in set_parameter_copybit()
284 ctx->mFlags &= ~0x7; in set_parameter_copybit()
287 ctx->mFlags &= ~0x7; in set_parameter_copybit()
288 ctx->mFlags |= MDP_ROT_90; in set_parameter_copybit()
291 ctx->mFlags &= ~0x7; in set_parameter_copybit()
292 ctx->mFlags |= MDP_ROT_180; in set_parameter_copybit()
295 ctx->mFlags &= ~0x7; in set_parameter_copybit()
296 ctx->mFlags |= MDP_ROT_270; in set_parameter_copybit()
307 ctx->mAlpha = value; in set_parameter_copybit()
[all …]

1234