Lines Matching refs:monitor
399 static bool sisfb_interpret_edid(struct sisfb_monitor *monitor, u8 *buffer) in sisfb_interpret_edid() argument
418 monitor->feature = buffer[0x18]; in sisfb_interpret_edid()
436 monitor->hmin = buffer[j + 7]; in sisfb_interpret_edid()
437 monitor->hmax = buffer[j + 8]; in sisfb_interpret_edid()
438 monitor->vmin = buffer[j + 5]; in sisfb_interpret_edid()
439 monitor->vmax = buffer[j + 6]; in sisfb_interpret_edid()
440 monitor->dclockmax = buffer[j + 9] * 10 * 1000; in sisfb_interpret_edid()
441 monitor->datavalid = true; in sisfb_interpret_edid()
448 if(!monitor->datavalid) { in sisfb_interpret_edid()
454 monitor->hmin = 65535; monitor->hmax = 0; in sisfb_interpret_edid()
455 monitor->vmin = 65535; monitor->vmax = 0; in sisfb_interpret_edid()
456 monitor->dclockmax = 0; in sisfb_interpret_edid()
460 if(monitor->hmin > sisfb_ddcsmodes[i].h) monitor->hmin = sisfb_ddcsmodes[i].h; in sisfb_interpret_edid()
461 if(monitor->hmax < sisfb_ddcsmodes[i].h) monitor->hmax = sisfb_ddcsmodes[i].h + 1; in sisfb_interpret_edid()
462 if(monitor->vmin > sisfb_ddcsmodes[i].v) monitor->vmin = sisfb_ddcsmodes[i].v; in sisfb_interpret_edid()
463 if(monitor->vmax < sisfb_ddcsmodes[i].v) monitor->vmax = sisfb_ddcsmodes[i].v; in sisfb_interpret_edid()
464 if(monitor->dclockmax < sisfb_ddcsmodes[i].d) monitor->dclockmax = sisfb_ddcsmodes[i].d; in sisfb_interpret_edid()
482 if(monitor->hmin > sisfb_ddcfmodes[j].h) monitor->hmin = sisfb_ddcfmodes[j].h; in sisfb_interpret_edid()
483 if(monitor->hmax < sisfb_ddcfmodes[j].h) monitor->hmax = sisfb_ddcfmodes[j].h + 1; in sisfb_interpret_edid()
484 if(monitor->vmin > sisfb_ddcsmodes[j].v) monitor->vmin = sisfb_ddcsmodes[j].v; in sisfb_interpret_edid()
485 if(monitor->vmax < sisfb_ddcsmodes[j].v) monitor->vmax = sisfb_ddcsmodes[j].v; in sisfb_interpret_edid()
486 if(monitor->dclockmax < sisfb_ddcsmodes[j].d) monitor->dclockmax = sisfb_ddcsmodes[j].d; in sisfb_interpret_edid()
492 if((monitor->hmin <= monitor->hmax) && (monitor->vmin <= monitor->vmax)) { in sisfb_interpret_edid()
493 monitor->datavalid = true; in sisfb_interpret_edid()
497 return monitor->datavalid; in sisfb_interpret_edid()
501 struct sisfb_monitor *monitor, int crtno) in sisfb_handle_ddc() argument
506 monitor->datavalid = false; in sisfb_handle_ddc()
537 if(sisfb_interpret_edid(monitor, &buffer[0])) { in sisfb_handle_ddc()
539 monitor->hmin, monitor->hmax, monitor->vmin, monitor->vmax, in sisfb_handle_ddc()
540 monitor->dclockmax / 1000); in sisfb_handle_ddc()
556 sisfb_verify_rate(struct sis_video_info *ivideo, struct sisfb_monitor *monitor, in sisfb_verify_rate() argument
562 if(!monitor->datavalid) in sisfb_verify_rate()
587 if(rate < (monitor->vmin - 1)) in sisfb_verify_rate()
589 if(rate > (monitor->vmax + 1)) in sisfb_verify_rate()
596 if(dclock > (monitor->dclockmax + 1000)) in sisfb_verify_rate()
599 if(hsync < (monitor->hmin - 1)) in sisfb_verify_rate()
601 if(hsync > (monitor->hmax + 1)) in sisfb_verify_rate()