Home
last modified time | relevance | path

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

12345678

/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_uevents.cpp42 static void setup(hwc_context_t* ctx, int dpy) in setup() argument
44 ctx->mFBUpdate[dpy] = IFBUpdate::getObject(ctx, dpy); in setup()
45 ctx->mMDPComp[dpy] = MDPComp::getObject(ctx, dpy); in setup()
48 static void clear(hwc_context_t* ctx, int dpy) in clear() argument
50 if(ctx->mFBUpdate[dpy]) { in clear()
51 delete ctx->mFBUpdate[dpy]; in clear()
52 ctx->mFBUpdate[dpy] = NULL; in clear()
54 if(ctx->mMDPComp[dpy]) { in clear()
55 delete ctx->mMDPComp[dpy]; in clear()
56 ctx->mMDPComp[dpy] = NULL; in clear()
[all …]
Dhwc_virtual.cpp62 void HWCVirtualVDS::init(hwc_context_t *ctx) { in init() argument
64 ctx->mFBUpdate[dpy] = in init()
65 IFBUpdate::getObject(ctx, dpy); in init()
66 ctx->mMDPComp[dpy] = MDPComp::getObject(ctx, dpy); in init()
68 if(ctx->mFBUpdate[dpy]) in init()
69 ctx->mFBUpdate[dpy]->reset(); in init()
70 if(ctx->mMDPComp[dpy]) in init()
71 ctx->mMDPComp[dpy]->reset(); in init()
74 void HWCVirtualVDS::destroy(hwc_context_t *ctx, size_t /*numDisplays*/, in destroy() argument
79 if(ctx->dpyAttr[dpy].connected && (displays[dpy] == NULL)) { in destroy()
[all …]
Dhwc.cpp88 static int getDpyforExternalDisplay(hwc_context_t *ctx, int dpy) { in getDpyforExternalDisplay() argument
89 if(dpy == HWC_DISPLAY_EXTERNAL && ctx->mVirtualonExtActive) in getDpyforExternalDisplay()
101 hwc_context_t* ctx = (hwc_context_t*)(dev); in hwc_registerProcs() local
102 if(!ctx) { in hwc_registerProcs()
106 ctx->proc = procs; in hwc_registerProcs()
110 init_uevent_thread(ctx); in hwc_registerProcs()
111 init_vsync_thread(ctx); in hwc_registerProcs()
114 static void setPaddingRound(hwc_context_t *ctx, int numDisplays, in setPaddingRound() argument
116 ctx->isPaddingRound = false; in setPaddingRound()
120 if((ctx->mPrevHwLayerCount[i] == 1 or in setPaddingRound()
[all …]
Dhwc_qclient.cpp45 QClient::QClient(hwc_context_t *ctx) : mHwcContext(ctx), in QClient() argument
46 mMPDeathNotifier(new MPDeathNotifier(ctx)) in QClient()
56 static void securing(hwc_context_t *ctx, uint32_t startEnd) { in securing() argument
57 Locker::Autolock _sl(ctx->mDrawLock); in securing()
62 ctx->mSecuring = startEnd; in securing()
65 ctx->mSecureMode = true; in securing()
66 if(ctx->proc) in securing()
67 ctx->proc->invalidate(ctx->proc); in securing()
70 static void unsecuring(hwc_context_t *ctx, uint32_t startEnd) { in unsecuring() argument
71 Locker::Autolock _sl(ctx->mDrawLock); in unsecuring()
[all …]
/hardware/st/secure_element2/secure_element/1.0/esehal/src/
Dlibse-gto.c43 se_gto_get_userdata(struct se_gto_ctx *ctx) in se_gto_get_userdata() argument
45 if (ctx == NULL) in se_gto_get_userdata()
48 return ctx->userdata; in se_gto_get_userdata()
52 se_gto_set_userdata(struct se_gto_ctx *ctx, void *userdata) in se_gto_set_userdata() argument
54 if (ctx == NULL) in se_gto_set_userdata()
57 ctx->userdata = userdata; in se_gto_set_userdata()
83 log_stderr(struct se_gto_ctx *ctx, const char *s) in log_stderr() argument
93 struct se_gto_ctx *ctx; in se_gto_new() local
95 ctx = calloc(1, sizeof(struct se_gto_ctx)); in se_gto_new()
96 if (!ctx) { in se_gto_new()
[all …]
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_uevents.cpp42 static void setup(hwc_context_t* ctx, int dpy) in setup() argument
44 ctx->mFBUpdate[dpy] = IFBUpdate::getObject(ctx, dpy); in setup()
45 ctx->mMDPComp[dpy] = MDPComp::getObject(ctx, dpy); in setup()
48 static void clear(hwc_context_t* ctx, int dpy) in clear() argument
50 if(ctx->mFBUpdate[dpy]) { in clear()
51 delete ctx->mFBUpdate[dpy]; in clear()
52 ctx->mFBUpdate[dpy] = NULL; in clear()
54 if(ctx->mMDPComp[dpy]) { in clear()
55 delete ctx->mMDPComp[dpy]; in clear()
56 ctx->mMDPComp[dpy] = NULL; in clear()
[all …]
Dhwc_virtual.cpp51 void HWCVirtualVDS::init(hwc_context_t *ctx) { in init() argument
53 ctx->mFBUpdate[dpy] = in init()
54 IFBUpdate::getObject(ctx, dpy); in init()
55 ctx->mMDPComp[dpy] = MDPComp::getObject(ctx, dpy); in init()
57 if(ctx->mFBUpdate[dpy]) in init()
58 ctx->mFBUpdate[dpy]->reset(); in init()
59 if(ctx->mMDPComp[dpy]) in init()
60 ctx->mMDPComp[dpy]->reset(); in init()
63 void HWCVirtualVDS::destroy(hwc_context_t *ctx, size_t /*numDisplays*/, in destroy() argument
68 if(ctx->dpyAttr[dpy].connected && (displays[dpy] == NULL)) { in destroy()
[all …]
Dhwc.cpp78 static int getDpyforExternalDisplay(hwc_context_t *ctx, int dpy) { in getDpyforExternalDisplay() argument
79 if(dpy == HWC_DISPLAY_EXTERNAL && ctx->mVirtualonExtActive) in getDpyforExternalDisplay()
91 hwc_context_t* ctx = (hwc_context_t*)(dev); in hwc_registerProcs() local
92 if(!ctx) { in hwc_registerProcs()
96 ctx->proc = procs; in hwc_registerProcs()
100 init_uevent_thread(ctx); in hwc_registerProcs()
101 init_vsync_thread(ctx); in hwc_registerProcs()
104 static void setPaddingRound(hwc_context_t *ctx, int numDisplays, in setPaddingRound() argument
106 ctx->isPaddingRound = false; in setPaddingRound()
110 if((ctx->mPrevHwLayerCount[i] == 1 or in setPaddingRound()
[all …]
Dhwc_qclient.cpp44 QClient::QClient(hwc_context_t *ctx) : mHwcContext(ctx), in QClient() argument
45 mMPDeathNotifier(new MPDeathNotifier(ctx)) in QClient()
55 static void securing(hwc_context_t *ctx, uint32_t startEnd) { in securing() argument
56 Locker::Autolock _sl(ctx->mDrawLock); in securing()
61 ctx->mSecuring = startEnd; in securing()
64 ctx->mSecureMode = true; in securing()
65 if(ctx->proc) in securing()
66 ctx->proc->invalidate(ctx->proc); in securing()
69 static void unsecuring(hwc_context_t *ctx, uint32_t startEnd) { in unsecuring() argument
70 Locker::Autolock _sl(ctx->mDrawLock); in unsecuring()
[all …]
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc.cpp80 hwc_context_t* ctx = (hwc_context_t*)(dev); in hwc_registerProcs() local
81 if(!ctx) { in hwc_registerProcs()
85 ctx->proc = procs; in hwc_registerProcs()
89 init_uevent_thread(ctx); in hwc_registerProcs()
90 init_vsync_thread(ctx); in hwc_registerProcs()
93 static void setPaddingRound(hwc_context_t *ctx, int numDisplays, in setPaddingRound() argument
95 ctx->isPaddingRound = false; in setPaddingRound()
99 if((ctx->mPrevHwLayerCount[i] == 1 or in setPaddingRound()
100 ctx->mPrevHwLayerCount[i] == 0) and in setPaddingRound()
107 ctx->isPaddingRound = true; in setPaddingRound()
[all …]
Dhwc_qclient.cpp51 QClient::QClient(hwc_context_t *ctx) : mHwcContext(ctx), in QClient() argument
52 mMPDeathNotifier(new MPDeathNotifier(ctx)) in QClient()
62 static void securing(hwc_context_t *ctx, uint32_t startEnd) { in securing() argument
67 ctx->mDrawLock.lock(); in securing()
68 ctx->mSecuring = startEnd; in securing()
71 ctx->mSecureMode = true; in securing()
72 ctx->mDrawLock.unlock(); in securing()
74 if(ctx->proc) in securing()
75 ctx->proc->invalidate(ctx->proc); in securing()
78 static void unsecuring(hwc_context_t *ctx, uint32_t startEnd) { in unsecuring() argument
[all …]
Dhwc_uevents.cpp42 static int getConnectedDisplay(hwc_context_t* ctx, const char* strUdata) in getConnectedDisplay() argument
47 if (ctx->mHDMIDisplay->isHDMIPrimaryDisplay()) { in getConnectedDisplay()
56 static bool getPanelResetStatus(hwc_context_t* ctx, const char* strUdata, int len) in getPanelResetStatus() argument
65 ctx->mPanelResetStatus = true; in getPanelResetStatus()
88 static void handle_uevent(hwc_context_t* ctx, const char* udata, int len) in handle_uevent() argument
90 bool bpanelReset = getPanelResetStatus(ctx, udata, len); in handle_uevent()
92 ctx->proc->invalidate(ctx->proc); in handle_uevent()
96 int dpy = getConnectedDisplay(ctx, udata); in handle_uevent()
111 if(!ctx->dpyAttr[dpy].connected){ in handle_uevent()
117 ctx->mDrawLock.lock(); in handle_uevent()
[all …]
Dhwc_mdpcomp.h40 int prepare(hwc_context_t *ctx, hwc_display_contents_1_t* list);
42 virtual bool draw(hwc_context_t *ctx, hwc_display_contents_1_t *list) = 0;
46 void dump(android::String8& buf, hwc_context_t *ctx);
48 int drawOverlap(hwc_context_t *ctx, hwc_display_contents_1_t* list);
49 static MDPComp* getObject(hwc_context_t *ctx, const int& dpy);
53 static bool init(hwc_context_t *ctx);
59 static int setPartialUpdatePref(hwc_context_t *ctx, bool enable);
60 static bool getPartialUpdatePref(hwc_context_t *ctx);
61 void setDynRefreshRate(hwc_context_t *ctx, hwc_display_contents_1_t* list);
144 virtual bool allocLayerPipes(hwc_context_t *ctx,
[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 …]
/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
101 if(ctx->mFBUpdate[i]) in reset()
102 ctx->mFBUpdate[i]->reset(); in reset()
103 if(ctx->mCopyBit[i]) in reset()
104 ctx->mCopyBit[i]->reset(); in reset()
[all …]
Dhwc_uevents.cpp54 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()
[all …]
/hardware/qcom/sdm845/display/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 …]
/hardware/qcom/display/msm8998/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 …]
/hardware/qcom/display/msm8996/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 …]
/hardware/qcom/display/msm8909w_3100/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 …]
/hardware/qcom/sm8150/display/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 …]
/hardware/qcom/display/msm8909/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 …]
/hardware/qcom/display/msm8084/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 …]
/hardware/qcom/display/msm8226/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 …]
/hardware/qcom/display/msm8994/libcopybit/
Dcopybit_c2d.cpp215 copybit_context_t* ctx = (copybit_context_t*)(ptr); in c2d_wait_loop() local
220 while(ctx->stop_thread == false) { in c2d_wait_loop()
221 pthread_mutex_lock(&ctx->wait_cleanup_lock); in c2d_wait_loop()
222 while(ctx->wait_timestamp == false && !ctx->stop_thread) { in c2d_wait_loop()
223 pthread_cond_wait(&(ctx->wait_cleanup_cond), in c2d_wait_loop()
224 &(ctx->wait_cleanup_lock)); in c2d_wait_loop()
226 if(ctx->wait_timestamp) { in c2d_wait_loop()
227 if(LINK_c2dWaitTimestamp(ctx->time_stamp)) { in c2d_wait_loop()
230 ctx->wait_timestamp = false; in c2d_wait_loop()
233 if (ctx->mapped_gpu_addr[i]) { in c2d_wait_loop()
[all …]

12345678