Home
last modified time | relevance | path

Searched refs:freq (Results 1 – 25 of 112) sorted by relevance

12345

/linux-2.4.37.9/drivers/media/radio/
Dradio-cadet.c143 unsigned freq=0,test,fifo=0; in cadet_getfreq() local
157 freq+=test; in cadet_getfreq()
162 freq-=10700000; /* IF frequency is 10.7 MHz */ in cadet_getfreq()
163 freq=(freq*16)/1000000; /* Make it 1/16 MHz */ in cadet_getfreq()
166 freq=((fifo&0x7fff)-2010)*16; in cadet_getfreq()
169 return freq; in cadet_getfreq()
204 static void cadet_setfreq(unsigned freq) in cadet_setfreq() argument
216 freq=(freq*1000)/16; /* Make it kHz */ in cadet_setfreq()
217 freq+=10700; /* IF is 10700 kHz */ in cadet_setfreq()
220 if(freq>=test) { in cadet_setfreq()
[all …]
Dmiropcm20-radio.c33 unsigned long freq; member
51 static int pcm20_setfreq(struct pcm20_device *dev, unsigned long freq) in pcm20_setfreq() argument
56 dev->freq=freq; in pcm20_setfreq()
58 freq /= 160; in pcm20_setfreq()
60 freq /= 10; /* I don't know exactly which version in pcm20_setfreq()
62 freql = freq & 0xff; in pcm20_setfreq()
63 freqh = freq >> 8; in pcm20_setfreq()
176 if(copy_to_user(arg, &pcm20->freq, sizeof(pcm20->freq))) in pcm20_ioctl()
180 if(copy_from_user(&pcm20->freq, arg, sizeof(pcm20->freq))) in pcm20_ioctl()
182 i=pcm20_setfreq(pcm20, pcm20->freq); in pcm20_ioctl()
[all …]
Dradio-gemtek.c86 static int gemtek_setfreq(struct gemtek_device *dev, unsigned long freq) in gemtek_setfreq() argument
92 freq /= 16; in gemtek_setfreq()
93 freq += 10520; in gemtek_setfreq()
94 freq *= 7825; in gemtek_setfreq()
95 freq /= 100000; in gemtek_setfreq()
107 if (freq & (1 << i)) in gemtek_setfreq()
Dradio-rtrack2.c74 static int rt_setfreq(struct rt_device *dev, unsigned long freq) in rt_setfreq() argument
78 freq = freq / 200 + 856; in rt_setfreq()
90 if (freq & (1 << i)) in rt_setfreq()
/linux-2.4.37.9/net/ipv6/
Dip6_flowlabel.c275 fl_create(struct in6_flowlabel_req *freq, char *optval, int optlen, int *err_p) in fl_create() argument
282 olen = optlen - CMSG_ALIGN(sizeof(*freq)); in fl_create()
306 if (copy_from_user(fl->opt+1, optval+CMSG_ALIGN(sizeof(*freq)), olen)) in fl_create()
326 err = fl6_renew(fl, freq->flr_linger, freq->flr_expires); in fl_create()
329 fl->share = freq->flr_share; in fl_create()
330 addr_type = ipv6_addr_type(&freq->flr_dst); in fl_create()
334 ipv6_addr_copy(&fl->dst, &freq->flr_dst); in fl_create()
412 struct in6_flowlabel_req freq; in ipv6_flowlabel_opt() local
417 if (optlen < sizeof(freq)) in ipv6_flowlabel_opt()
420 if (copy_from_user(&freq, optval, sizeof(freq))) in ipv6_flowlabel_opt()
[all …]
/linux-2.4.37.9/drivers/media/video/
Dtuner.c53 unsigned int freq; /* keep track of the current settings */ member
591 unsigned int freq, unsigned int norm) in mt2032_set_tv_freq() argument
607 mt2032_set_if_freq(c, freq*62500 /* freq*1000*1000/16 */, in mt2032_set_tv_freq()
613 static void set_tv_freq(struct i2c_client *c, unsigned int freq) in set_tv_freq() argument
627 mt2032_set_tv_freq(c,freq,t->mode); in set_tv_freq()
631 if (freq < tv_range[0]*16 || freq > tv_range[1]*16) { in set_tv_freq()
637 freq/16,freq%16*100/16,tv_range[0],tv_range[1]); in set_tv_freq()
642 if (freq < tun->thresh1) in set_tv_freq()
644 else if (freq < tun->thresh2) in set_tv_freq()
724 div=freq + tun->IFPCoff; in set_tv_freq()
[all …]
/linux-2.4.37.9/arch/m68k/mac/
Dmacboing.c162 void mac_mksound( unsigned int freq, unsigned int length ) in mac_mksound() argument
164 __u32 cfreq = ( freq << 5 ) / 468; in mac_mksound()
179 mac_special_bell( freq, length, 128 ); in mac_mksound()
183 if ( freq < 20 || freq > 20000 || length == 0 ) in mac_mksound()
226 static void mac_quadra_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_quadra_start_bell() argument
239 mac_bell_phasepersample = ( freq * sizeof( mac_asc_wave_tab ) ) / mac_asc_samplespersec; in mac_quadra_start_bell()
309 static void mac_av_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_av_start_bell() argument
/linux-2.4.37.9/arch/ppc/platforms/
Dchrp_time.c171 unsigned int freq, *fp; in chrp_calibrate_decr() local
180 freq = 16666000; /* hardcoded default */ in chrp_calibrate_decr()
186 freq = *fp; in chrp_calibrate_decr()
189 freq/1000000, freq%1000000); in chrp_calibrate_decr()
190 tb_ticks_per_jiffy = freq / HZ; in chrp_calibrate_decr()
191 tb_to_us = mulhwu_scale_factor(freq, 1000000); in chrp_calibrate_decr()
Dprep_setup.c831 unsigned long freq, divisor = 4; in prep_res_calibrate_decr() local
834 freq = res->VitalProductData.ProcessorBusHz; in prep_res_calibrate_decr()
836 (freq/divisor)/1000000, in prep_res_calibrate_decr()
837 (freq/divisor)%1000000); in prep_res_calibrate_decr()
838 tb_to_us = mulhwu_scale_factor(freq/divisor, 1000000); in prep_res_calibrate_decr()
839 tb_ticks_per_jiffy = freq / HZ / divisor; in prep_res_calibrate_decr()
862 unsigned long t, freq; in prep_calibrate_decr_handler() local
869 freq = (t - tbstamp)*HZ; in prep_calibrate_decr_handler()
871 freq/1000000, freq%1000000); in prep_calibrate_decr_handler()
872 tb_ticks_per_jiffy = freq / HZ; in prep_calibrate_decr_handler()
[all …]
Dpmac_time.c252 unsigned int freq, *fp; in pmac_calibrate_decr() local
276 freq = *fp; in pmac_calibrate_decr()
278 freq/1000000, freq%1000000); in pmac_calibrate_decr()
279 tb_ticks_per_jiffy = freq / HZ; in pmac_calibrate_decr()
280 tb_to_us = mulhwu_scale_factor(freq, 1000000); in pmac_calibrate_decr()
Doak_setup.c274 unsigned int freq; in oak_calibrate_decr() local
277 freq = bip->bi_intfreq; in oak_calibrate_decr()
279 decrementer_count = freq / HZ; in oak_calibrate_decr()
281 count_period_den = freq; in oak_calibrate_decr()
Dapus_setup.c220 unsigned long freq; in apus_calibrate_decr() local
246 freq = 12500000; in apus_calibrate_decr()
249 freq = 15000000; in apus_calibrate_decr()
252 freq = 16666667; in apus_calibrate_decr()
257 freq = 12500000; in apus_calibrate_decr()
292 freq/1000000, freq%1000000); in apus_calibrate_decr()
293 tb_ticks_per_jiffy = freq / HZ; in apus_calibrate_decr()
294 tb_to_us = mulhwu_scale_factor(freq, 1000000); in apus_calibrate_decr()
Dspruce_setup.c100 int freq, divisor = 4; in spruce_calibrate_decr() local
103 freq = SPRUCE_BUS_SPEED; in spruce_calibrate_decr()
104 tb_ticks_per_jiffy = freq / HZ / divisor; in spruce_calibrate_decr()
105 tb_to_us = mulhwu_scale_factor(freq/divisor, 1000000); in spruce_calibrate_decr()
Dgemini_setup.c449 int freq, divisor; in gemini_calibrate_decr() local
458 freq = 66667; in gemini_calibrate_decr()
461 freq = 83000; in gemini_calibrate_decr()
464 freq = 100000; in gemini_calibrate_decr()
468 freq *= 1000; in gemini_calibrate_decr()
470 tb_ticks_per_jiffy = freq / HZ / divisor; in gemini_calibrate_decr()
471 tb_to_us = mulhwu_scale_factor(freq/divisor, 1000000); in gemini_calibrate_decr()
/linux-2.4.37.9/arch/ppc64/kernel/
Dchrp_setup.c459 unsigned long freq, processor_freq; in pSeries_calibrate_decr() local
465 freq = 16666000; /* hardcoded default */ in pSeries_calibrate_decr()
470 freq = *fp; in pSeries_calibrate_decr()
472 ppc_tb_freq = freq; in pSeries_calibrate_decr()
473 processor_freq = freq; in pSeries_calibrate_decr()
482 freq/1000000, freq%1000000 ); in pSeries_calibrate_decr()
486 tb_ticks_per_jiffy = freq / HZ; in pSeries_calibrate_decr()
488 tb_ticks_per_usec = freq / 1000000; in pSeries_calibrate_decr()
/linux-2.4.37.9/drivers/scsi/aic7xxx/
Daic79xx_proc.c102 u_int freq; in ahd_format_transinfo() local
110 freq = 0; in ahd_format_transinfo()
112 freq = aic_calc_syncsrate(tinfo->period); in ahd_format_transinfo()
113 speed = freq; in ahd_format_transinfo()
122 if (freq != 0) { in ahd_format_transinfo()
126 copy_info(info, " (%d.%03dMHz", freq / 1000, freq % 1000); in ahd_format_transinfo()
152 if (freq != 0) { in ahd_format_transinfo()
158 } else if (freq != 0) { in ahd_format_transinfo()
Daic7xxx_proc.c103 u_int freq; in ahc_format_transinfo() local
107 freq = 0; in ahc_format_transinfo()
109 freq = aic_calc_syncsrate(tinfo->period); in ahc_format_transinfo()
110 speed = freq; in ahc_format_transinfo()
119 if (freq != 0) { in ahc_format_transinfo()
121 freq / 1000, freq % 1000, in ahc_format_transinfo()
127 if (freq != 0) { in ahc_format_transinfo()
133 } else if (freq != 0) { in ahc_format_transinfo()
/linux-2.4.37.9/drivers/video/matrox/
Dmatroxfb_misc.h7 int matroxfb_PLL_calcclock(const struct matrox_pll_features* pll, unsigned int freq, unsigned int f…
9 static inline int PLL_calcclock(CPMINFO unsigned int freq, unsigned int fmax, in PLL_calcclock() argument
11 return matroxfb_PLL_calcclock(&ACCESS_FBINFO(features.pll), freq, fmax, in, feed, post); in PLL_calcclock()
/linux-2.4.37.9/drivers/net/wireless/prism54/
Doid_mgt.c311 struct obj_frequencies *freq = data; in mgt_le_to_cpu() local
313 freq->nr = le16_to_cpu(freq->nr); in mgt_le_to_cpu()
314 for (i = 0; i < freq->nr; i++) in mgt_le_to_cpu()
315 freq->mhz[i] = le16_to_cpu(freq->mhz[i]); in mgt_le_to_cpu()
380 struct obj_frequencies *freq = data; in mgt_cpu_to_le() local
382 freq->nr = cpu_to_le16(freq->nr); in mgt_cpu_to_le()
383 for (i = 0; i < freq->nr; i++) in mgt_cpu_to_le()
384 freq->mhz[i] = cpu_to_le16(freq->mhz[i]); in mgt_cpu_to_le()
835 struct obj_frequencies *freq = r->ptr; in mgt_response_to_str() local
837 printk("nr : %u\n", freq->nr); in mgt_response_to_str()
[all …]
/linux-2.4.37.9/arch/ppc/kernel/
Dtodc_time.c450 ulong freq; in todc_calibrate_decr() local
486 freq = get_tbl(); in todc_calibrate_decr()
493 freq -= tbl; in todc_calibrate_decr()
497 freq/1000000, freq%1000000); in todc_calibrate_decr()
499 tb_ticks_per_jiffy = freq / HZ; in todc_calibrate_decr()
500 tb_to_us = mulhwu_scale_factor(freq, 1000000); in todc_calibrate_decr()
Dm8260_setup.c83 int freq, divisor; in m8260_calibrate_decr() local
85 freq = binfo->bi_busfreq; in m8260_calibrate_decr()
87 tb_ticks_per_jiffy = freq / HZ / divisor; in m8260_calibrate_decr()
88 tb_to_us = mulhwu_scale_factor(freq / divisor, 1000000); in m8260_calibrate_decr()
Dm8xx_setup.c128 int freq, fp, divisor; in m8xx_calibrate_decr() local
141 freq = fp*60; /* try to make freq/1e6 an integer */ in m8xx_calibrate_decr()
143 printk("Decrementer Frequency = %d/%d\n", freq, divisor); in m8xx_calibrate_decr()
144 tb_ticks_per_jiffy = freq / HZ / divisor; in m8xx_calibrate_decr()
145 tb_to_us = mulhwu_scale_factor(freq / divisor, 1000000); in m8xx_calibrate_decr()
/linux-2.4.37.9/drivers/char/
Dsgiserial.h181 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
182 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
/linux-2.4.37.9/drivers/sbus/char/
Dzs.h177 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
178 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
/linux-2.4.37.9/drivers/tc/
Dzs.h180 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
181 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument

12345