Lines Matching defs:rate
77 static u8 sisfb_search_refresh_rate(struct sis_video_info *ivideo, unsigned int rate,
184 unsigned int j = 0, xres = 0, yres = 0, depth = 0, rate = 0;
214 if(sscanf(strbuf1, "%u %u %u %u", &xres, &yres, &depth, &rate) == 4) {
215 if((rate <= 32) || (depth > 32)) {
216 j = rate; rate = depth; depth = j;
220 sisfb_parm_rate = rate;
594 int mode_idx, int rate_idx, int rate)
624 if(rate < (monitor->vmin - 1))
626 if(rate > (monitor->vmax + 1))
632 dclock = (htotal * vtotal * rate) / 1000;
717 sisfb_search_refresh_rate(struct sis_video_info *ivideo, unsigned int rate, int mode_idx)
726 if(sisfb_vrate[i].refresh == rate) {
729 } else if(sisfb_vrate[i].refresh > rate) {
730 if((sisfb_vrate[i].refresh - rate) <= 3) {
731 DPRINTK("sisfb: Adjusting rate from %d up to %d\n",
732 rate, sisfb_vrate[i].refresh);
736 ((rate - sisfb_vrate[i-1].refresh) <= 2)) {
737 DPRINTK("sisfb: Adjusting rate from %d down to %d\n",
738 rate, sisfb_vrate[i-1].refresh);
743 } else if((rate - sisfb_vrate[i].refresh) <= 2) {
744 DPRINTK("sisfb: Adjusting rate from %d down to %d\n",
745 rate, sisfb_vrate[i].refresh);
755 printk(KERN_INFO "sisfb: Unsupported rate %d for %dx%d\n",
756 rate, xres, yres);
1564 /* Sic, sisfb_parm_rate - want to know originally desired rate here */
1602 "sisfb: WARNING: Refresh rate exceeds monitor specs!\n");
4006 } else if(!strncasecmp(this_opt, "rate:", 5)) {
6410 printk(KERN_INFO "sisfb: WARNING: Refresh rate "
6600 static unsigned int rate = 0;
6627 if(rate)
6628 sisfb_parm_rate = rate;
6725 module_param(rate, int, 0);
6775 MODULE_PARM_DESC(rate,
6776 "\nSelects the desired vertical refresh rate for CRT1 (external VGA) in Hz.\n"
6836 "\nSetting this to 1 will force the driver to use the default refresh rate for\n"
6837 "CRT2 if CRT2 type is VGA. (default: 0, use same rate as CRT1)\n");