Home
last modified time | relevance | path

Searched refs:dpy (Results 1 – 25 of 173) sorted by relevance

1234567

/hardware/intel/common/libva/va/x11/
Dva_dri.c53 #define VA_DRICheckExtension(dpy,i,val) \ argument
54 XextCheckExtension (dpy, i, va_dri_extension_name, val)
62 static int close_display(Display *dpy, XExtCodes *extCodes);
99 PUBLIC Bool VA_DRIQueryExtension (dpy, event_basep, error_basep)
100 Display *dpy;
103 XExtDisplayInfo *info = find_display (dpy);
117 PUBLIC Bool VA_DRIQueryVersion(dpy, majorVersion, minorVersion, patchVersion) in VA_DRIQueryVersion() argument
118 Display* dpy; in VA_DRIQueryVersion()
123 XExtDisplayInfo *info = find_display (dpy);
128 VA_DRICheckExtension (dpy, info, False);
[all …]
Dva_dri2.c48 VA_DRI2Error(Display *dpy, xError *err, XExtCodes *codes, int *ret_code);
74 VA_DRI2Error(Display *dpy, xError *err, XExtCodes *codes, int *ret_code) in VA_DRI2Error() argument
89 Bool VA_DRI2QueryExtension(Display *dpy, int *eventBase, int *errorBase) in VA_DRI2QueryExtension() argument
91 XExtDisplayInfo *info = DRI2FindDisplay(dpy); in VA_DRI2QueryExtension()
102 Bool VA_DRI2QueryVersion(Display *dpy, int *major, int *minor) in VA_DRI2QueryVersion() argument
104 XExtDisplayInfo *info = DRI2FindDisplay (dpy); in VA_DRI2QueryVersion()
108 XextCheckExtension (dpy, info, va_dri2ExtensionName, False); in VA_DRI2QueryVersion()
110 LockDisplay(dpy); in VA_DRI2QueryVersion()
116 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) { in VA_DRI2QueryVersion()
117 UnlockDisplay(dpy); in VA_DRI2QueryVersion()
[all …]
Dva_nvctrl.c127 #define XNVCTRLCheckExtension(dpy,i,val) \ argument
128 XextCheckExtension (dpy, i, nvctrl_extension_name, val)
129 #define XNVCTRLSimpleCheckExtension(dpy,i) \ argument
130 XextSimpleCheckExtension (dpy, i, nvctrl_extension_name)
154 static Bool XNVCTRLQueryVersion (Display *dpy, int *major, int *minor);
161 static void XNVCTRLCheckTargetData(Display *dpy, XExtDisplayInfo *info, in XNVCTRLCheckTargetData() argument
170 if (XNVCTRLQueryVersion(dpy, &major, &minor)) { in XNVCTRLCheckTargetData()
193 Display *dpy, in XNVCTRLQueryExtension() argument
197 XExtDisplayInfo *info = find_display (dpy); in XNVCTRLQueryExtension()
210 Display *dpy, in XNVCTRLQueryVersion() argument
[all …]
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_virtual.cpp52 const int dpy = HWC_DISPLAY_VIRTUAL; in init() local
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()
65 int dpy = HWC_DISPLAY_VIRTUAL; in destroy() local
68 if(ctx->dpyAttr[dpy].connected && (displays[dpy] == NULL)) { in destroy()
[all …]
Dhwc_vsync.cpp45 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable) in hwc_vsync_control() argument
49 ioctl(ctx->dpyAttr[dpy].fd, MSMFB_OVERLAY_VSYNC_CTRL, in hwc_vsync_control()
52 __FUNCTION__, dpy, enable, strerror(errno)); in hwc_vsync_control()
58 static void handle_vsync_event(hwc_context_t* ctx, int dpy, char *data, in handle_vsync_event() argument
68 __FUNCTION__, timestamp, dpy); in handle_vsync_event()
69 ctx->proc->vsync(ctx->proc, dpy, timestamp); in handle_vsync_event()
72 static void handle_blank_event(hwc_context_t* ctx, int dpy, char *data, in handle_blank_event() argument
77 ALOGI("%s: dpy:%d panel power state: %d", __FUNCTION__, dpy, poweron); in handle_blank_event()
78 ctx->dpyAttr[dpy].isActive = poweron ? true: false; in handle_blank_event()
82 static void handle_cec_event(hwc_context_t* ctx, int dpy, char *data, in handle_cec_event() argument
[all …]
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.cpp78 static int getDpyforExternalDisplay(hwc_context_t *ctx, int dpy) { in getDpyforExternalDisplay() argument
79 if(dpy == HWC_DISPLAY_EXTERNAL && ctx->mVirtualonExtActive) in getDpyforExternalDisplay()
81 return dpy; in getDpyforExternalDisplay()
135 for(int dpy = 0; dpy < numDisplays; dpy++) { in setDMAState() local
136 hwc_display_contents_1_t *list = displays[dpy]; in setDMAState()
149 if (UNLIKELY(isYuvBuffer(hnd)) && canUseRotator(ctx, dpy) && in setDMAState()
160 if(dpy) { in setDMAState()
237 static void scaleDisplayFrame(hwc_context_t *ctx, int dpy, in scaleDisplayFrame() argument
239 uint32_t origXres = ctx->dpyAttr[dpy].xres_orig; in scaleDisplayFrame()
240 uint32_t origYres = ctx->dpyAttr[dpy].yres_orig; in scaleDisplayFrame()
[all …]
Dhwc_qclient.cpp109 int dpy = inParcel->readInt32(); in getDisplayAttributes() local
110 outParcel->writeInt32(ctx->dpyAttr[dpy].vsync_period); in getDisplayAttributes()
111 outParcel->writeInt32(ctx->dpyAttr[dpy].xres); in getDisplayAttributes()
112 outParcel->writeInt32(ctx->dpyAttr[dpy].yres); in getDisplayAttributes()
113 outParcel->writeFloat(ctx->dpyAttr[dpy].xdpi); in getDisplayAttributes()
114 outParcel->writeFloat(ctx->dpyAttr[dpy].ydpi); in getDisplayAttributes()
119 int dpy = inParcel->readInt32(); in setHSIC() local
120 ALOGD_IF(0, "In %s: dpy = %d", __FUNCTION__, dpy); in setHSIC()
134 static status_t getDisplayVisibleRegion(hwc_context_t* ctx, int dpy, in getDisplayVisibleRegion() argument
137 if(dpy >= HWC_DISPLAY_PRIMARY && dpy <= HWC_DISPLAY_VIRTUAL) { in getDisplayVisibleRegion()
[all …]
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_virtual.cpp63 const int dpy = HWC_DISPLAY_VIRTUAL; in init() local
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()
76 int dpy = HWC_DISPLAY_VIRTUAL; in destroy() local
79 if(ctx->dpyAttr[dpy].connected && (displays[dpy] == NULL)) { in destroy()
[all …]
Dhwc_vsync.cpp44 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable) in hwc_vsync_control() argument
48 ioctl(ctx->dpyAttr[dpy].fd, MSMFB_OVERLAY_VSYNC_CTRL, in hwc_vsync_control()
51 __FUNCTION__, dpy, enable, strerror(errno)); in hwc_vsync_control()
57 static void handle_vsync_event(hwc_context_t* ctx, int dpy, char *data) in handle_vsync_event() argument
66 __FUNCTION__, timestamp, dpy); in handle_vsync_event()
67 ctx->proc->vsync(ctx->proc, dpy, timestamp); in handle_vsync_event()
70 static void handle_blank_event(hwc_context_t* ctx, int dpy, char *data) in handle_blank_event() argument
74 ALOGI("%s: dpy:%d panel power state: %ld", __FUNCTION__, dpy, poweron); in handle_blank_event()
75 ctx->dpyAttr[dpy].isActive = poweron ? true: false; in handle_blank_event()
81 void (*callback)(hwc_context_t* ctx, int dpy, char *data);
[all …]
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_qclient.cpp110 int dpy = inParcel->readInt32(); in getDisplayAttributes() local
111 outParcel->writeInt32(ctx->dpyAttr[dpy].vsync_period); in getDisplayAttributes()
112 if (ctx->dpyAttr[dpy].customFBSize) { in getDisplayAttributes()
113 outParcel->writeInt32(ctx->dpyAttr[dpy].xres_new); in getDisplayAttributes()
114 outParcel->writeInt32(ctx->dpyAttr[dpy].yres_new); in getDisplayAttributes()
116 outParcel->writeInt32(ctx->dpyAttr[dpy].xres); in getDisplayAttributes()
117 outParcel->writeInt32(ctx->dpyAttr[dpy].yres); in getDisplayAttributes()
119 outParcel->writeFloat(ctx->dpyAttr[dpy].xdpi); in getDisplayAttributes()
120 outParcel->writeFloat(ctx->dpyAttr[dpy].ydpi); in getDisplayAttributes()
125 int dpy = inParcel->readInt32(); in setHSIC() local
[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()
91 return dpy; in getDpyforExternalDisplay()
145 for(int dpy = 0; dpy < numDisplays; dpy++) { in setDMAState() local
146 hwc_display_contents_1_t *list = displays[dpy]; in setDMAState()
159 if (canUseRotator(ctx, dpy) && in setDMAState()
170 if(dpy) { in setDMAState()
242 static void scaleDisplayFrame(hwc_context_t *ctx, int dpy, in scaleDisplayFrame() argument
244 uint32_t origXres = ctx->dpyAttr[dpy].xres; in scaleDisplayFrame()
245 uint32_t origYres = ctx->dpyAttr[dpy].yres; in scaleDisplayFrame()
[all …]
/hardware/intel/common/libva/va/
Dva.c43 #define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext) argument
44 #define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; } argument
100 int vaDisplayIsValid(VADisplay dpy) in vaDisplayIsValid() argument
102 VADisplayContextP pDisplayContext = (VADisplayContextP)dpy; in vaDisplayIsValid()
190 static VAStatus va_getDriverName(VADisplay dpy, char **driver_name) in va_getDriverName() argument
192 VADisplayContextP pDisplayContext = (VADisplayContextP)dpy; in va_getDriverName()
197 static VAStatus va_openDriver(VADisplay dpy, char *driver_name) in va_openDriver() argument
199 VADriverContextP ctx = CTX(dpy); in va_openDriver()
364 VAPrivFunc vaGetLibFunc(VADisplay dpy, const char *func) in vaGetLibFunc() argument
367 if (!vaDisplayIsValid(dpy)) in vaGetLibFunc()
[all …]
Dva_trace.h55 void va_TraceInit(VADisplay dpy);
56 void va_TraceEnd(VADisplay dpy);
59 VADisplay dpy,
65 VADisplay dpy
69 VADisplay dpy,
78 VADisplay dpy,
89 VADisplay dpy,
95 VADisplay dpy,
106 VADisplay dpy,
116 VADisplay dpy,
[all …]
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_vsync.cpp46 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable) in hwc_vsync_control() argument
50 ioctl(ctx->dpyAttr[dpy].fd, MSMFB_OVERLAY_VSYNC_CTRL, in hwc_vsync_control()
53 __FUNCTION__, dpy, enable, strerror(errno)); in hwc_vsync_control()
59 static void handle_vsync_event(hwc_context_t* ctx, int dpy, char *data) in handle_vsync_event() argument
68 __FUNCTION__, timestamp, dpy); in handle_vsync_event()
69 ctx->proc->vsync(ctx->proc, dpy, timestamp); in handle_vsync_event()
72 static void handle_blank_event(hwc_context_t* ctx, int dpy, char *data) in handle_blank_event() argument
76 ALOGI("%s: dpy:%d panel power state: %ld", __FUNCTION__, dpy, poweron); in handle_blank_event()
78 ctx->dpyAttr[dpy].isActive = poweron ? true: false; in handle_blank_event()
83 static void handle_thermal_event(hwc_context_t* ctx, int dpy, char *data) in handle_thermal_event() argument
[all …]
Dhwc_virtual.cpp42 const int dpy = HWC_DISPLAY_VIRTUAL; in init() local
44 initCompositionResources(ctx, dpy); in init()
46 if(ctx->mFBUpdate[dpy]) in init()
47 ctx->mFBUpdate[dpy]->reset(); in init()
48 if(ctx->mMDPComp[dpy]) in init()
49 ctx->mMDPComp[dpy]->reset(); in init()
54 int dpy = HWC_DISPLAY_VIRTUAL; in destroy() local
57 if(ctx->dpyAttr[dpy].connected && (displays[dpy] == NULL)) { in destroy()
58 ctx->dpyAttr[dpy].connected = false; in destroy()
59 ctx->dpyAttr[dpy].isPause = false; in destroy()
[all …]
Dhwc.cpp125 for(int dpy = 0; dpy < numDisplays; dpy++) { in setDMAState() local
126 hwc_display_contents_1_t *list = displays[dpy]; in setDMAState()
139 if (canUseRotator(ctx, dpy) && in setDMAState()
143 dpy)) { in setDMAState()
152 if(dpy) { in setDMAState()
191 static bool isHotPluggable(hwc_context_t *ctx, int dpy) { in isHotPluggable() argument
192 return ((dpy == HWC_DISPLAY_EXTERNAL) || in isHotPluggable()
193 ((dpy == HWC_DISPLAY_PRIMARY) && in isHotPluggable()
229 static void scaleDisplayFrame(hwc_context_t *ctx, int dpy, in scaleDisplayFrame() argument
231 uint32_t origXres = ctx->dpyAttr[dpy].xres; in scaleDisplayFrame()
[all …]
Dhwc_qclient.cpp121 int dpy = inParcel->readInt32(); in getDisplayAttributes() local
122 outParcel->writeInt32(ctx->dpyAttr[dpy].vsync_period); in getDisplayAttributes()
123 if (ctx->dpyAttr[dpy].customFBSize) { in getDisplayAttributes()
124 outParcel->writeInt32(ctx->dpyAttr[dpy].xres_new); in getDisplayAttributes()
125 outParcel->writeInt32(ctx->dpyAttr[dpy].yres_new); in getDisplayAttributes()
127 outParcel->writeInt32(ctx->dpyAttr[dpy].xres); in getDisplayAttributes()
128 outParcel->writeInt32(ctx->dpyAttr[dpy].yres); in getDisplayAttributes()
130 outParcel->writeFloat(ctx->dpyAttr[dpy].xdpi); in getDisplayAttributes()
131 outParcel->writeFloat(ctx->dpyAttr[dpy].ydpi); in getDisplayAttributes()
136 int dpy = inParcel->readInt32(); in setHSIC() local
[all …]
/hardware/qcom/display/msm8909/libhwcomposer/
Dhwc_virtual.cpp42 const int dpy = HWC_DISPLAY_VIRTUAL; in init() local
44 initCompositionResources(ctx, dpy); in init()
46 if(ctx->mFBUpdate[dpy]) in init()
47 ctx->mFBUpdate[dpy]->reset(); in init()
48 if(ctx->mMDPComp[dpy]) in init()
49 ctx->mMDPComp[dpy]->reset(); in init()
54 int dpy = HWC_DISPLAY_VIRTUAL; in destroy() local
57 if(ctx->dpyAttr[dpy].connected && (displays[dpy] == NULL)) { in destroy()
58 ctx->dpyAttr[dpy].connected = false; in destroy()
59 ctx->dpyAttr[dpy].isPause = false; in destroy()
[all …]
Dhwc_vsync.cpp46 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable) in hwc_vsync_control() argument
50 ioctl(ctx->dpyAttr[dpy].fd, MSMFB_OVERLAY_VSYNC_CTRL, in hwc_vsync_control()
53 __FUNCTION__, dpy, enable, strerror(errno)); in hwc_vsync_control()
59 static void handle_vsync_event(hwc_context_t* ctx, int dpy, char *data) in handle_vsync_event() argument
68 __FUNCTION__, timestamp, dpy); in handle_vsync_event()
69 ctx->proc->vsync(ctx->proc, dpy, timestamp); in handle_vsync_event()
72 static void handle_blank_event(hwc_context_t* ctx, int dpy, char *data) in handle_blank_event() argument
76 ALOGI("%s: dpy:%d panel power state: %ld", __FUNCTION__, dpy, poweron); in handle_blank_event()
78 ctx->dpyAttr[dpy].isActive = poweron ? true: false; in handle_blank_event()
83 static void handle_thermal_event(hwc_context_t* ctx, int dpy, char *data) in handle_thermal_event() argument
[all …]
Dhwc.cpp126 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()
[all …]
Dhwc_qclient.cpp122 int dpy = inParcel->readInt32(); in getDisplayAttributes() local
123 outParcel->writeInt32(ctx->dpyAttr[dpy].vsync_period); in getDisplayAttributes()
124 if (ctx->dpyAttr[dpy].customFBSize) { in getDisplayAttributes()
125 outParcel->writeInt32(ctx->dpyAttr[dpy].xres_new); in getDisplayAttributes()
126 outParcel->writeInt32(ctx->dpyAttr[dpy].yres_new); in getDisplayAttributes()
128 outParcel->writeInt32(ctx->dpyAttr[dpy].xres); in getDisplayAttributes()
129 outParcel->writeInt32(ctx->dpyAttr[dpy].yres); in getDisplayAttributes()
131 outParcel->writeFloat(ctx->dpyAttr[dpy].xdpi); in getDisplayAttributes()
132 outParcel->writeFloat(ctx->dpyAttr[dpy].ydpi); in getDisplayAttributes()
137 int dpy = inParcel->readInt32(); in setHSIC() local
[all …]
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_uevents.cpp83 int dpy = isHDMI(str) ? HWC_DISPLAY_EXTERNAL : extDpyNum; in handle_uevent() local
86 ctx->mExtDisplay->setExtDpyNum(dpy); in handle_uevent()
112 if(ctx->mFBUpdate[dpy]) { 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()
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()
[all …]
Dhwc.cpp111 static void reset_layer_prop(hwc_context_t* ctx, int dpy, int numAppLayers) { in reset_layer_prop() argument
112 if(ctx->layerProp[dpy]) { in reset_layer_prop()
113 delete[] ctx->layerProp[dpy]; in reset_layer_prop()
114 ctx->layerProp[dpy] = NULL; in reset_layer_prop()
116 ctx->layerProp[dpy] = new LayerProp[numAppLayers]; in reset_layer_prop()
119 static int display_commit(hwc_context_t *ctx, int dpy) { in display_commit() argument
120 int fbFd = ctx->dpyAttr[dpy].fd; in display_commit()
122 ALOGE("%s: Invalid FB fd for display: %d", __FUNCTION__, dpy); in display_commit()
139 const int dpy = HWC_DISPLAY_PRIMARY; in hwc_prepare_primary() local
143 ctx->dpyAttr[dpy].isActive) { in hwc_prepare_primary()
[all …]

1234567