Lines Matching refs:ctx

54 static void handle_uevent(hwc_context_t* ctx, const char* udata, int len)  in handle_uevent()  argument
86 ctx->mExtDisplay->setExtDpyNum(dpy); in handle_uevent()
97 ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].isActive = false; in handle_uevent()
100 ctx->dpyAttr[HWC_DISPLAY_VIRTUAL].isActive = true; in handle_uevent()
111 ctx->mExtDisplay->processUEventOffline(udata); in handle_uevent()
112 if(ctx->mFBUpdate[dpy]) { in handle_uevent()
113 Locker::Autolock _l(ctx->mExtSetLock); in handle_uevent()
114 delete ctx->mFBUpdate[dpy]; in handle_uevent()
115 ctx->mFBUpdate[dpy] = NULL; in handle_uevent()
117 if(ctx->mCopyBit[dpy]){ in handle_uevent()
118 Locker::Autolock _l(ctx->mExtSetLock); in handle_uevent()
119 delete ctx->mCopyBit[dpy]; in handle_uevent()
120 ctx->mCopyBit[dpy] = NULL; in handle_uevent()
122 if(ctx->mMDPComp[dpy]) { in handle_uevent()
123 delete ctx->mMDPComp[dpy]; in handle_uevent()
124 ctx->mMDPComp[dpy] = NULL; in handle_uevent()
128 ctx->dpyAttr[dpy].connected = false; in handle_uevent()
129 Locker::Autolock _l(ctx->mExtSetLock); in handle_uevent()
131 ctx->proc->hotplug(ctx->proc, dpy, connected); in handle_uevent()
136 ctx->mExtDispConfiguring = true; in handle_uevent()
137 ctx->mExtDisplay->processUEventOnline(udata); in handle_uevent()
138 ctx->mFBUpdate[dpy] = in handle_uevent()
139 IFBUpdate::getObject(ctx->dpyAttr[dpy].xres, dpy); in handle_uevent()
140 ctx->dpyAttr[dpy].isPause = false; in handle_uevent()
142 ctx->mCopyBit[dpy] = new CopyBit(); in handle_uevent()
143 ctx->mMDPComp[dpy] = MDPComp::getObject( in handle_uevent()
144 ctx->dpyAttr[dpy].xres, dpy); in handle_uevent()
147 ctx->dpyAttr[dpy].connected = true; in handle_uevent()
148 Locker::Autolock _l(ctx->mExtSetLock); //hwc comp could be on in handle_uevent()
149 ctx->proc->hotplug(ctx->proc, dpy, connected); in handle_uevent()
157 ctx->mExtDispConfiguring = true; in handle_uevent()
158 ctx->dpyAttr[dpy].isActive = true; in handle_uevent()
159 ctx->dpyAttr[dpy].isPause = true; in handle_uevent()
165 ctx->dpyAttr[dpy].isActive = true; in handle_uevent()
166 ctx->dpyAttr[dpy].isPause = false; in handle_uevent()
181 hwc_context_t * ctx = reinterpret_cast<hwc_context_t *>(param); in uevent_loop() local
189 handle_uevent(ctx, udata, len); in uevent_loop()
195 void init_uevent_thread(hwc_context_t* ctx) in init_uevent_thread() argument
201 ret = pthread_create(&uevent_thread, NULL, uevent_loop, (void*) ctx); in init_uevent_thread()