| /xsrc/external/mit/xf86-video-trident/dist/src/ |
| H A D | trident_pll.c | 64 int freq, ffreq; local in function:TGUISetClock 88 freq = clock; 95 if ((ffreq > freq - clock_diff) && 96 (ffreq < freq + clock_diff)) { 108 clock_diff = (freq > ffreq) ? 109 freq - ffreq : ffreq - freq; 123 freq); 209 float freq = 0.0; local in function:CalculateMCLK 217 freq 284 int freq, ffreq; local in function:TGUISetMCLK [all...] |
| /xsrc/external/mit/xorg-server.old/dist/hw/xfree86/os-support/solaris/ |
| H A D | sun_bell.c | 55 int freq; local in function:xf86OSRingBell 76 freq = pitch; 77 freq = min(freq, (BELL_RATE / 2) - 1); 78 freq = max(freq, 2 * BELL_HZ); 83 freq -= freq % BELL_HZ; 85 if (freq != lastFreq) { 86 lastFreq = freq; [all...] |
| /xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/solaris/ |
| H A D | sun_bell.c | 55 int freq; local in function:xf86OSRingBell 76 freq = pitch; 77 freq = min(freq, (BELL_RATE / 2) - 1); 78 freq = max(freq, 2 * BELL_HZ); 83 freq -= freq % BELL_HZ; 85 if (freq != lastFreq) { 86 lastFreq = freq; [all...] |
| /xsrc/external/mit/xf86-video-cirrus/dist/src/ |
| H A D | CirrusClk.c | 24 /* CLOCK_FACTOR is double the osc freq in kHz (osc = 14.31818 MHz) */ 93 int freq, ffreq = 0, mindiff = 0; local in function:CirrusFindClock 95 freq = *rfreq; 100 cirrusClockTab[i].denom) - freq); 101 if (diff < freq / 1000) { 117 mindiff = freq; 127 diff = abs(c - freq);
|
| /xsrc/external/mit/xf86-video-siliconmotion/dist/src/ |
| H A D | smi_dac.c | 39 SMI_CommonCalcClock(int scrnIndex, long freq, int min_m, int min_n1, argument 50 double ffreq = freq / 1000.0 / BASE_FREQ; 55 xf86DrvMsg(scrnIndex,X_WARNING,"invalid frequency %1.3f MHz [freq >= %1.3f MHz]\n", 60 xf86DrvMsg(scrnIndex,X_WARNING,"invalid frequency %1.3f MHz [freq <= %1.3f MHz]\n", 96 if (freq < 70000 && max_n2 > 0 && 109 if (freq > 120000)
|
| /xsrc/external/mit/xorg-server.old/dist/hw/xfree86/common/ |
| H A D | xf86Option.c | 596 double freq = strtod(s, &end); local in function:ParseOptionValue 618 freq *= (double)units; 628 p->value.freq.freq = freq; 629 p->value.freq.units = units; 818 if (p->value.freq.units > 0) { 822 *value = p->value.freq.freq; 825 *value = p->value.freq [all...] |
| /xsrc/external/mit/xorg-server/dist/hw/xfree86/common/ |
| H A D | xf86Option.c | 603 double freq = strtod(s, &end); local in function:ParseOptionValue 623 freq *= (double) units; 634 p->value.freq.freq = freq; 635 p->value.freq.units = units; 824 if (p->value.freq.units > 0) { 828 *value = p->value.freq.freq; 831 *value = p->value.freq [all...] |
| /xsrc/external/mit/xf86-video-nsc/dist/src/gfx/ |
| H A D | gfx_i2c.c | 155 gfx_i2c_reset(unsigned char busnum, short adr, char freq) argument 161 status = acc_i2c_reset(busnum, adr, freq); 165 status = gpio_i2c_reset(busnum, adr, freq);
|
| H A D | i2c_acc.c | 185 void acc_i2c_config(unsigned char busnum, short adr, char freq); 186 char acc_i2c_set_freq(unsigned char busnum, char freq); 197 int acc_i2c_reset(unsigned char busnum, short adr, char freq); 308 * If 'freq' is -1 the frequency is set to 56 clock cycles. 313 acc_i2c_reset(unsigned char busnum, short adr, char freq) argument 316 gfx_i2c_reset(unsigned char busnum, short adr, char freq) 321 acc_i2c_config(busnum, adr, freq); 921 acc_i2c_config(unsigned char busnum, short adr, char freq) argument 924 Freq = acc_i2c_set_freq(busnum, freq); 934 acc_i2c_set_freq(unsigned char busnum, char freq) argument [all...] |
| H A D | gfx_init.c | 254 /* initialize core freq. to 0 */ 554 unsigned long freq = 0; local in function:gfx_get_core_freq 558 freq = gu1_get_core_freq(); 562 freq = gu2_get_core_freq(); 564 return freq;
|
| /xsrc/external/mit/xf86-video-geode/dist/src/gfx/ |
| H A D | gfx_i2c.c | 54 gfx_i2c_reset(unsigned char busnum, short adr, char freq) argument 60 status = acc_i2c_reset(busnum, adr, freq); 64 status = gpio_i2c_reset(busnum, adr, freq);
|
| H A D | i2c_acc.c | 85 void acc_i2c_config(unsigned char busnum, short adr, char freq); 86 char acc_i2c_set_freq(unsigned char busnum, char freq); 195 * If 'freq' is -1 the frequency is set to 56 clock cycles. 200 acc_i2c_reset(unsigned char busnum, short adr, char freq) argument 203 gfx_i2c_reset(unsigned char busnum, short adr, char freq) 208 acc_i2c_config(busnum, adr, freq); 812 acc_i2c_config(unsigned char busnum, short adr, char freq) argument 815 Freq = acc_i2c_set_freq(busnum, freq); 825 acc_i2c_set_freq(unsigned char busnum, char freq) argument 831 if (freq [all...] |
| H A D | gfx_init.c | 170 /* initialize core freq. to 0 */ 478 unsigned long freq = 0; local in function:gfx_get_core_freq 482 freq = gu1_get_core_freq(); 486 freq = gu2_get_core_freq(); 489 return freq;
|
| /xsrc/external/mit/xorg-server.old/dist/hw/xfree86/modes/ |
| H A D | xf86gtf.c | 106 xf86GTFMode(int h_pixels, int v_lines, float freq, int interlaced, int margins) argument 166 v_field_rate_rqd = interlaced ? (freq * 2.0) : (freq); 377 mode->VRefresh = freq;
|
| /xsrc/external/mit/xorg-server/dist/hw/xfree86/modes/ |
| H A D | xf86gtf.c | 101 xf86GTFMode(int h_pixels, int v_lines, float freq, int interlaced, int margins) argument 160 v_field_rate_rqd = interlaced ? (freq * 2.0) : (freq); 373 mode->VRefresh = freq;
|
| /xsrc/external/mit/xf86-video-intel/dist/src/legacy/i810/ |
| H A D | i810_wmark.c | 42 double freq; member in struct:wm_info 248 I810CalcWatermark(ScrnInfoPtr pScrn, double freq, Bool dcache) argument 291 for (i = 0; i < nr && tab[i].freq < freq; i++) ; 297 "chose watermark 0x%x: (tab.freq %.1f)\n", 298 tab[i].wm, tab[i].freq);
|
| /xsrc/external/mit/xf86-video-intel-2014/dist/src/legacy/i810/ |
| H A D | i810_wmark.c | 42 double freq; member in struct:wm_info 248 I810CalcWatermark(ScrnInfoPtr pScrn, double freq, Bool dcache) argument 291 for (i = 0; i < nr && tab[i].freq < freq; i++) ; 297 "chose watermark 0x%x: (tab.freq %.1f)\n", 298 tab[i].wm, tab[i].freq);
|
| /xsrc/external/mit/xf86-video-intel-old/dist/src/ |
| H A D | i810_wmark.c | 41 double freq; member in struct:wm_info 247 I810CalcWatermark(ScrnInfoPtr pScrn, double freq, Bool dcache) argument 290 for (i = 0; i < nr && tab[i].freq < freq; i++) ; 296 "chose watermark 0x%x: (tab.freq %.1f)\n", 297 tab[i].wm, tab[i].freq);
|
| /xsrc/external/mit/xf86-video-i740/dist/src/ |
| H A D | i740_driver.c | 1092 I740CalcFIFO(ScrnInfoPtr pScrn, double freq) argument 1110 if (freq > 200) wm = 0x18120000; 1111 else if (freq > 175) wm = 0x16110000; 1112 else if (freq > 135) wm = 0x120E0000; 1115 if (freq > 200) wm = 0x18120000; 1116 else if (freq > 175) wm = 0x16110000; 1117 else if (freq > 135) wm = 0x120E0000; 1123 if (freq > 140) wm = 0x2C1D0000; 1124 else if (freq > 120) wm = 0x2C180000; 1125 else if (freq > 10 1196 I740CalcVCLK(ScrnInfoPtr pScrn,double freq) argument [all...] |
| /xsrc/external/mit/xf86-video-s3virge/dist/src/ |
| H A D | s3v_dac.c | 51 long freq, int min_m, int min_n1, 62 ffreq = freq / 1000.0 / BASE_FREQ; 76 "invalid frequency %1.3f MHz [freq <= %1.3f MHz]\n", 82 "invalid frequency %1.3f MHz [freq >= %1.3f MHz]\n", 50 S3VCommonCalcClock(ScrnInfoPtr pScrn,DisplayModePtr mode,long freq,int min_m,int min_n1,int max_n1,int min_n2,int max_n2,long freq_min,long freq_max,unsigned char * mdiv,unsigned char * ndiv) argument
|
| /xsrc/external/mit/xf86-video-ati/dist/src/ |
| H A D | radeon_crtc.c | 147 unsigned long freq, 171 freq = freq * 1000; 173 /* ErrorF("freq: %lu\n", freq); */ 250 error = freq - current_freq; 253 error = RD_ABS(current_freq, freq); 267 } else if (current_freq == freq) { 291 if (current_freq < freq) 296 if (current_freq < freq) 146 RADEONComputePLL_old(RADEONPLLPtr pll,unsigned long freq,uint32_t * chosen_dot_clock_freq,uint32_t * chosen_feedback_div,uint32_t * chosen_frac_feedback_div,uint32_t * chosen_reference_div,uint32_t * chosen_post_div,int flags) argument 323 calc_fb_div(RADEONPLLPtr pll,unsigned long freq,int flags,int post_div,int ref_div,int * fb_div,int * fb_div_frac) argument 352 calc_fb_ref_div(RADEONPLLPtr pll,unsigned long freq,int flags,int post_div,int * fb_div,int * fb_div_frac,int * ref_div) argument 382 RADEONComputePLL_new(RADEONPLLPtr pll,unsigned long freq,uint32_t * chosen_dot_clock_freq,uint32_t * chosen_feedback_div,uint32_t * chosen_frac_feedback_div,uint32_t * chosen_reference_div,uint32_t * chosen_post_div,int flags) argument 465 RADEONComputePLL(xf86CrtcPtr crtc,RADEONPLLPtr pll,unsigned long freq,uint32_t * chosen_dot_clock_freq,uint32_t * chosen_feedback_div,uint32_t * chosen_frac_feedback_div,uint32_t * chosen_reference_div,uint32_t * chosen_post_div,int flags) argument [all...] |
| /xsrc/external/mit/xf86-video-s3/dist/src/ |
| H A D | s3_GENDAC.c | 243 long freq; local in function:S3SDAC_Init 247 freq = mode->Clock * 2; /* XXXX: frem xfree86 3.x */ 250 freq = mode->Clock / 2; 253 freq = mode->Clock; 256 S3GENDACSetClock(pScrn, freq, 358 S3GENDACSetClock(ScrnInfoPtr pScrn, long freq, int clk, int min_m, int min_n1, argument 364 S3GENDACCalcClock(freq, min_m, min_n1, max_n1, min_n2, max_n2, 373 S3GENDACCalcClock(long freq, int min_m, int min_n1, int max_n1, int min_n2, argument 383 ffreq = freq / 1000.0 / BASE_FREQ; 388 ErrorF("invalid frequency %1.3f Mhz [freq > [all...] |
| /xsrc/external/mit/xf86-video-mga/dist/src/ |
| H A D | mga_g450pll.c | 485 CARD32 freq; local in function:MGAG450SavePLLFreq 487 G450CalculVCO(pScrn, ulMNP, &freq); 489 G450ApplyPFactor(pScrn, ucP, &freq); 492 xf86DrvMsg(pScrn->scrnIndex,X_INFO,"Saved PLLClk = %u\n", (unsigned)freq); 494 return freq; 503 CARD32 freq; local in function:MGAG450PrintPLL 505 G450CalculVCO(pScrn, ulMNP, &freq); 507 G450ApplyPFactor(pScrn, ucP, &freq); 510 (unsigned)freq, (unsigned)ulMNP);
|
| /xsrc/external/mit/xf86-video-rendition/dist/src/ |
| H A D | vmodes.c | 548 double vco, pcf, diff, freq; local in function:V1000CalcClock 560 freq=vco/(1<<pp); 561 diff=fabs(target-freq); 572 freq=vco/(1<<(*P)); 576 "RENDITION: target=%f freq=%f vco=%f pcf=%f n=%d m=%d p=%d\n", 577 target, freq, vco, pcf, *N, *M, *P); 580 return freq; 589 double vco, pcf, diff, freq; local in function:V2200CalcClock 604 freq = vco/pp; 605 diff = fabs(target-freq); [all...] |
| /xsrc/external/mit/MesaLib/dist/src/freedreno/perfcntrs/ |
| H A D | freedreno_dt.c | 81 if (strcmp(fname, "qcom,gpu-freq") == 0) { 83 uint32_t freq = ntohl(buf[0]); local in function:find_freqs_fn 85 dev.max_freq = MAX2(dev.max_freq, freq); 86 dev.min_freq = MIN2(dev.min_freq, freq);
|