/hardware/qcom/display/libcopybit/ |
D | copybit_c2d.cpp | 216 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 …]
|
D | copybit.cpp | 274 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/libhwcomposer/ |
D | hwc.cpp | 72 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 …]
|
D | hwc_uevents.cpp | 54 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 …]
|
D | hwc_mdpcomp.h | 43 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 …]
|
D | hwc_mdpcomp.cpp | 79 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 …]
|
D | hwc_utils.cpp | 47 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 void initContext(hwc_context_t *ctx) in initContext() argument [all …]
|
D | hwc_vsync.cpp | 36 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 …]
|
D | hwc_fbupdate.h | 37 virtual bool prepare(hwc_context_t *ctx, hwc_display_contents_1 *list, 40 virtual bool draw(hwc_context_t *ctx, private_handle_t *hnd) = 0; 56 bool prepare(hwc_context_t *ctx, hwc_display_contents_1 *list, 58 bool draw(hwc_context_t *ctx, private_handle_t *hnd); 61 bool configure(hwc_context_t *ctx, hwc_display_contents_1 *list, 71 bool prepare(hwc_context_t *ctx, hwc_display_contents_1 *list, 73 bool draw(hwc_context_t *ctx, private_handle_t *hnd); 76 bool configure(hwc_context_t *ctx, hwc_display_contents_1 *list,
|
D | hwc_utils.h | 149 void setListStats(hwc_context_t *ctx, const hwc_display_contents_1_t *list, 151 void initContext(hwc_context_t *ctx); 152 void closeContext(hwc_context_t *ctx); 158 bool isSecuring(hwc_context_t* ctx, hwc_layer_1_t const* layer); 160 bool isExternalActive(hwc_context_t* ctx); 163 bool setupBasePipe(hwc_context_t *ctx); 164 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable); 171 void getActionSafePosition(hwc_context_t *ctx, int dpy, uint32_t& x, 178 int hwc_sync(hwc_context_t *ctx, hwc_display_contents_1_t* list, int dpy, 182 void trimLayer(hwc_context_t *ctx, const int& dpy, const int& transform, [all …]
|
D | hwc_fbupdate.cpp | 48 bool FBUpdateLowRes::prepare(hwc_context_t *ctx, hwc_display_contents_1 *list, in prepare() argument 50 if(!ctx->mMDP.hasOverlay) { in prepare() 55 mModeOn = configure(ctx, list, fbZorder); in prepare() 60 bool FBUpdateLowRes::configure(hwc_context_t *ctx, hwc_display_contents_1 *list, in configure() argument 64 if (LIKELY(ctx->mOverlay)) { in configure() 65 overlay::Overlay& ov = *(ctx->mOverlay); in configure() 115 getActionSafePosition(ctx, mDpy, dpos.x, dpos.y, dpos.w, dpos.h); in configure() 127 bool FBUpdateLowRes::draw(hwc_context_t *ctx, private_handle_t *hnd) in draw() argument 133 overlay::Overlay& ov = *(ctx->mOverlay); in draw() 151 bool FBUpdateHighRes::prepare(hwc_context_t *ctx, hwc_display_contents_1 *list, in prepare() argument [all …]
|
D | hwc_copybit.h | 35 bool prepare(hwc_context_t *ctx, hwc_display_contents_1_t *list, 38 bool draw(hwc_context_t *ctx, hwc_display_contents_1_t *list, 53 bool canUseCopybitForYUV (hwc_context_t *ctx); 54 bool canUseCopybitForRGB (hwc_context_t *ctx, 56 bool validateParams (hwc_context_t *ctx,
|
D | hwc_copybit.cpp | 72 bool CopyBit::canUseCopybitForYUV(hwc_context_t *ctx) { in canUseCopybitForYUV() argument 74 if(ctx->mMDP.hasOverlay) { in canUseCopybitForYUV() 80 bool CopyBit::canUseCopybitForRGB(hwc_context_t *ctx, in canUseCopybitForRGB() argument 88 if(ctx->listStats[dpy].yuvCount) { in canUseCopybitForRGB() 99 int fbWidth = ctx->dpyAttr[dpy].xres; in canUseCopybitForRGB() 100 int fbHeight = ctx->dpyAttr[dpy].yres; in canUseCopybitForRGB() 135 bool CopyBit::prepare(hwc_context_t *ctx, hwc_display_contents_1_t *list, in prepare() argument 151 if(!(validateParams(ctx, list))) { in prepare() 156 if(ctx->listStats[dpy].skipCount) { in prepare() 161 bool useCopybitForYUV = canUseCopybitForYUV(ctx); in prepare() [all …]
|
D | hwc_qclient.h | 47 QClient(hwc_context_t *ctx); 55 MPDeathNotifier(hwc_context_t* ctx) : mHwcContext(ctx){} in MPDeathNotifier() argument
|
D | hwc_qclient.cpp | 42 QClient::QClient(hwc_context_t *ctx) : mHwcContext(ctx), in QClient() argument 43 mMPDeathNotifier(new MPDeathNotifier(ctx)) in QClient()
|
/hardware/msm7k/libcopybit/ |
D | copybit.cpp | 250 struct copybit_context_t* ctx = (struct copybit_context_t*)dev; in set_parameter_copybit() local 252 if (ctx) { in set_parameter_copybit() 257 ctx->mFlags &= ~0x7; in set_parameter_copybit() 260 ctx->mFlags &= ~0x7; in set_parameter_copybit() 261 ctx->mFlags |= MDP_ROT_90; in set_parameter_copybit() 264 ctx->mFlags &= ~0x7; in set_parameter_copybit() 265 ctx->mFlags |= MDP_ROT_180; in set_parameter_copybit() 268 ctx->mFlags &= ~0x7; in set_parameter_copybit() 269 ctx->mFlags |= MDP_ROT_270; in set_parameter_copybit() 280 ctx->mAlpha = value; in set_parameter_copybit() [all …]
|
/hardware/invensense/libsensors_iio/ |
D | sensors_mpl.cpp | 207 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev; in poll__close() local 208 if (ctx) { in poll__close() 209 delete ctx; in poll__close() 217 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev; in poll__activate() local 218 return ctx->activate(handle, enabled); in poll__activate() 224 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev; in poll__setDelay() local 225 int s= ctx->setDelay(handle, ns); in poll__setDelay() 232 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev; in poll__poll() local 233 return ctx->pollEvents(data, count); in poll__poll()
|
/hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib/ |
D | driver_cmd_wext.c | 64 eloop_cancel_timeout(wpa_driver_wext_scan_timeout, drv, drv->ctx); in wpa_driver_wext_set_scan_timeout() 66 drv->ctx); in wpa_driver_wext_set_scan_timeout() 215 if (drv->ctx == NULL) { in wpa_driver_set_backgroundscan_params() 219 wpa_s = (struct wpa_supplicant *)(drv->ctx); in wpa_driver_set_backgroundscan_params() 272 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "HANGED"); in wpa_driver_set_backgroundscan_params() 284 struct wpa_supplicant *wpa_s = (struct wpa_supplicant *)(drv->ctx); in wpa_driver_wext_driver_cmd() 307 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "HANGED"); in wpa_driver_wext_driver_cmd() 344 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "HANGED"); in wpa_driver_wext_driver_cmd()
|
D | driver_cmd_nl80211.c | 35 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "HANGED"); in wpa_driver_send_hang_msg() 50 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "STOPPED"); in wpa_driver_nl80211_driver_cmd() 53 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "STARTED"); in wpa_driver_nl80211_driver_cmd() 83 wpa_supplicant_event(drv->ctx, in wpa_driver_nl80211_driver_cmd()
|
/hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib/ |
D | driver_cmd_nl80211.c | 35 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "HANGED"); in wpa_driver_send_hang_msg() 50 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "STOPPED"); in wpa_driver_nl80211_driver_cmd() 53 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "STARTED"); in wpa_driver_nl80211_driver_cmd() 82 wpa_supplicant_event(drv->ctx, in wpa_driver_nl80211_driver_cmd()
|
/hardware/libhardware/modules/hwcomposer/ |
D | hwcomposer.cpp | 98 struct hwc_context_t* ctx = (struct hwc_context_t*)dev; in hwc_device_close() local 99 if (ctx) { in hwc_device_close() 100 free(ctx); in hwc_device_close()
|
/hardware/libhardware/modules/gralloc/ |
D | framebuffer.cpp | 63 fb_context_t* ctx = (fb_context_t*)dev; in fb_setSwapInterval() local 76 fb_context_t* ctx = (fb_context_t*)dev; in fb_setUpdateRect() local 90 fb_context_t* ctx = (fb_context_t*)dev; in fb_post() local 303 fb_context_t* ctx = (fb_context_t*)dev; in fb_close() local 304 if (ctx) { in fb_close() 305 free(ctx); in fb_close()
|
/hardware/ti/wlan/mac80211/wpa_supplicant_lib/ |
D | driver_mac80211.c | 119 wpa_driver_wext_event_wireless_custom(void *ctx, char *custom) in wpa_driver_wext_event_wireless_custom() argument 132 wpa_supplicant_event(ctx, EVENT_MICHAEL_MIC_FAILURE, &data); in wpa_driver_wext_event_wireless_custom() 175 wpa_supplicant_event(ctx, EVENT_ASSOCINFO, &data); in wpa_driver_wext_event_wireless_custom() 187 wpa_supplicant_event(ctx, EVENT_STKSTART, &data); in wpa_driver_wext_event_wireless_custom() 191 wpa_msg(ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "STOPPED"); in wpa_driver_wext_event_wireless_custom() 193 wpa_msg(ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "STARTED"); in wpa_driver_wext_event_wireless_custom() 195 wpa_msg(ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "HANGED"); in wpa_driver_wext_event_wireless_custom() 202 void *ctx, const char *ev, size_t len) in wpa_driver_wext_event_wireless_michaelmicfailure() argument 219 wpa_supplicant_event(ctx, EVENT_MICHAEL_MIC_FAILURE, &data); in wpa_driver_wext_event_wireless_michaelmicfailure() 247 wpa_supplicant_event(drv->ctx, EVENT_PMKID_CANDIDATE, &data); in wpa_driver_wext_event_wireless_pmkidcand() [all …]
|
D | driver_mac80211_nl.c | 52 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "HANGED"); in wpa_driver_send_hang_msg() 188 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "STOPPED"); in wpa_driver_nl80211_driver_cmd() 191 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "STARTED"); in wpa_driver_nl80211_driver_cmd() 193 wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "HANGED"); in wpa_driver_nl80211_driver_cmd()
|
/hardware/samsung_slsi/exynos5/gralloc/ |
D | framebuffer.cpp | 67 fb_context_t* ctx = (fb_context_t*)dev; in fb_setSwapInterval() local 101 fb_context_t* ctx = (fb_context_t*)dev; in fb_close() local 102 if (ctx) { in fb_close() 103 free(ctx); in fb_close()
|