Lines Matching refs:mode
60 int mode = getUserMode(); in configure() local
61 if (mode == -1) { in configure()
63 mode = getBestMode(); in configure()
65 setResolution(mode); in configure()
253 const msm_hdmi_mode_timing_info* mode) in setDisplayTiming() argument
260 (mode->video_format << 16); in setDisplayTiming()
264 info.xres = mode->active_h; in setDisplayTiming()
265 info.yres = mode->active_v; in setDisplayTiming()
267 info.pixclock = (mode->pixel_freq)*1000; in setDisplayTiming()
268 info.vmode = mode->interlaced ? in setDisplayTiming()
271 info.right_margin = mode->front_porch_h; in setDisplayTiming()
272 info.hsync_len = mode->pulse_width_h; in setDisplayTiming()
273 info.left_margin = mode->back_porch_h; in setDisplayTiming()
274 info.lower_margin = mode->front_porch_v; in setDisplayTiming()
275 info.vsync_len = mode->pulse_width_v; in setDisplayTiming()
276 info.upper_margin = mode->back_porch_v; in setDisplayTiming()
378 int ExternalDisplay::getModeOrder(int mode) in getModeOrder() argument
382 switch (mode) { in getModeOrder()
440 int mode = atoi(property_value); in getUserMode() local
442 if(isValidMode(mode) && !isInterlacedMode(mode)) { in getUserMode()
443 ALOGD_IF(DEBUG, "%s: setting the HDMI mode = %d", __FUNCTION__, mode); in getUserMode()
444 return mode; in getUserMode()
455 int mode = mEDIDModes[i]; in getBestMode() local
456 int order = getModeOrder(mode); in getBestMode()
459 bestMode = mode; in getBestMode()
511 const struct msm_hdmi_mode_timing_info *mode = in setResolution() local
517 mode = cur; in setResolution()
521 setDisplayTiming(mVInfo, mode); in setResolution()
524 mode->video_format, mVInfo.xres, mVInfo.yres, in setResolution()
532 metadata.data.video_info_code = mode->video_format; in setResolution()