/linux-3.4.99/kernel/ |
D | timeconst.pl | 219 my($b, $t, $hz) = @_; 220 my $s = fmuls($b, $t, $hz); 221 my $m = fmul($s, $t, $hz); 222 my $a = fadj($s, $t, $hz); 235 my ($t, $hz) = @_; 239 push(@val, muladj(32, $t, $hz)); 240 push(@val, numden($t, $hz)); 243 push(@val, muladj(32, $hz, $t)); 244 push(@val, numden($hz, $t)); 250 my($hz) = @_; [all …]
|
/linux-3.4.99/sound/pci/hda/ |
D | hda_beep.c | 58 static int beep_linear_tone(struct hda_beep *beep, int hz) in beep_linear_tone() argument 60 if (hz <= 0) in beep_linear_tone() 62 hz *= 1000; /* fixed point */ in beep_linear_tone() 63 hz = hz - DIGBEEP_HZ_MIN in beep_linear_tone() 65 if (hz < 0) in beep_linear_tone() 66 hz = 0; /* turn off PC beep*/ in beep_linear_tone() 67 else if (hz >= (DIGBEEP_HZ_MAX - DIGBEEP_HZ_MIN)) in beep_linear_tone() 68 hz = 1; /* max frequency */ in beep_linear_tone() 70 hz /= DIGBEEP_HZ_STEP; in beep_linear_tone() 71 hz = 255 - hz; in beep_linear_tone() [all …]
|
/linux-3.4.99/arch/mips/bcm47xx/ |
D | time.c | 33 unsigned long hz = 0; in plat_time_init() local 45 hz = ssb_cpu_clock(&bcm47xx_bus.ssb.mipscore) / 2; in plat_time_init() 50 hz = bcma_cpu_clock(&bcm47xx_bus.bcma.bus.drv_mips) / 2; in plat_time_init() 55 if (!hz) in plat_time_init() 56 hz = 100000000; in plat_time_init() 59 mips_hpt_frequency = hz; in plat_time_init()
|
/linux-3.4.99/sound/ppc/ |
D | beep.c | 36 int hz; member 100 unsigned int code, int hz) in snd_pmac_beep_event() argument 115 case SND_BELL: if (hz) hz = 1000; in snd_pmac_beep_event() 124 if (! hz) { in snd_pmac_beep_event() 135 if (hz <= srate / BEEP_BUFLEN || hz > srate / 2) in snd_pmac_beep_event() 136 hz = 1000; in snd_pmac_beep_event() 146 if (hz == beep->hz && beep->volume == beep->volume_play) { in snd_pmac_beep_event() 149 period = srate * 256 / hz; /* fixed point */ in snd_pmac_beep_event() 159 beep->hz = hz; in snd_pmac_beep_event()
|
/linux-3.4.99/include/linux/ |
D | clocksource.h | 247 static inline u32 clocksource_hz2mult(u32 hz, u32 shift_constant) in clocksource_hz2mult() argument 258 tmp += hz/2; /* round for do_div */ in clocksource_hz2mult() 259 do_div(tmp, hz); in clocksource_hz2mult() 302 static inline int clocksource_register_hz(struct clocksource *cs, u32 hz) in clocksource_register_hz() argument 304 return __clocksource_register_scale(cs, 1, hz); in clocksource_register_hz() 312 static inline void __clocksource_updatefreq_hz(struct clocksource *cs, u32 hz) in __clocksource_updatefreq_hz() argument 314 __clocksource_updatefreq_scale(cs, 1, hz); in __clocksource_updatefreq_hz()
|
/linux-3.4.99/arch/m68k/amiga/ |
D | amisound.c | 71 void amiga_mksound( unsigned int hz, unsigned int ticks ) in amiga_mksound() argument 81 if (hz > 20 && hz < 32767) { in amiga_mksound() 82 unsigned long period = (clock_constant / hz); in amiga_mksound()
|
/linux-3.4.99/arch/x86/kernel/acpi/realmode/ |
D | wakemain.c | 10 static void beep(unsigned int hz) in beep() argument 14 if (!hz) { in beep() 17 u16 div = 1193181/hz; in beep()
|
/linux-3.4.99/arch/m68k/atari/ |
D | atasound.c | 54 void atari_mksound (unsigned int hz, unsigned int ticks) in atari_mksound() argument 71 if (hz) { in atari_mksound() 75 period = PSG_FREQ / hz; in atari_mksound()
|
/linux-3.4.99/drivers/spi/ |
D | spi-s3c24xx.c | 45 unsigned int hz; member 130 unsigned int hz; in s3c24xx_spi_update_state() local 135 hz = t ? t->speed_hz : spi->max_speed_hz; in s3c24xx_spi_update_state() 140 if (!hz) in s3c24xx_spi_update_state() 141 hz = spi->max_speed_hz; in s3c24xx_spi_update_state() 161 if (cs->hz != hz) { in s3c24xx_spi_update_state() 163 div = DIV_ROUND_UP(clk, hz * 2) - 1; in s3c24xx_spi_update_state() 169 div, hz, clk / (2 * (div + 1))); in s3c24xx_spi_update_state() 171 cs->hz = hz; in s3c24xx_spi_update_state() 207 cs->hz = -1; in s3c24xx_spi_setup()
|
D | spi-stmp.c | 129 u32 hz; in stmp_spi_setup_transfer() local 143 hz = 1000 * ss->speed_khz / ss->divider; in stmp_spi_setup_transfer() 145 hz = min(hz, spi->max_speed_hz); in stmp_spi_setup_transfer() 147 hz = min(hz, t->speed_hz); in stmp_spi_setup_transfer() 149 if (hz == 0) { in stmp_spi_setup_transfer() 161 hz, ss->speed_khz, ss->divider, in stmp_spi_setup_transfer() 164 if (ss->speed_khz * 1000 / ss->divider < hz) { in stmp_spi_setup_transfer() 166 __func__, hz); in stmp_spi_setup_transfer() 170 rate = 1000 * ss->speed_khz/ss->divider/hz; in stmp_spi_setup_transfer()
|
D | spi-bitbang.c | 146 u32 hz; in spi_bitbang_setup_transfer() local 150 hz = t->speed_hz; in spi_bitbang_setup_transfer() 153 hz = 0; in spi_bitbang_setup_transfer() 169 if (!hz) in spi_bitbang_setup_transfer() 170 hz = spi->max_speed_hz; in spi_bitbang_setup_transfer() 171 if (hz) { in spi_bitbang_setup_transfer() 172 cs->nsecs = (1000000000/2) / hz; in spi_bitbang_setup_transfer()
|
D | spi-omap-uwire.c | 325 unsigned hz; in uwire_setup_transfer() local 375 hz = spi->max_speed_hz; in uwire_setup_transfer() 377 hz = t->speed_hz; in uwire_setup_transfer() 379 if (!hz) { in uwire_setup_transfer() 402 div2 = (rate / div1 + hz - 1) / hz; in uwire_setup_transfer() 408 dev_name(&spi->dev), rate / 10 / 8, hz); in uwire_setup_transfer()
|
D | spi-fsl-espi.c | 136 u32 hz = 0; in fsl_espi_setup_transfer() local 141 hz = t->speed_hz; in fsl_espi_setup_transfer() 152 if (!hz) in fsl_espi_setup_transfer() 153 hz = spi->max_speed_hz; in fsl_espi_setup_transfer() 181 if ((mpc8xxx_spi->spibrg / hz) > 64) { in fsl_espi_setup_transfer() 183 pm = DIV_ROUND_UP(mpc8xxx_spi->spibrg, hz * 16 * 4); in fsl_espi_setup_transfer() 187 hz, mpc8xxx_spi->spibrg / (4 * 16 * (32 + 1))); in fsl_espi_setup_transfer() 191 pm = DIV_ROUND_UP(mpc8xxx_spi->spibrg, hz * 4); in fsl_espi_setup_transfer()
|
D | spi-au1550.c | 239 unsigned bpw, hz; in au1550_spi_setupxfer() local 243 hz = spi->max_speed_hz; in au1550_spi_setupxfer() 248 hz = t->speed_hz; in au1550_spi_setupxfer() 256 if (hz > spi->max_speed_hz || hz > hw->freq_max || hz < hw->freq_min) { in au1550_spi_setupxfer() 258 hz); in au1550_spi_setupxfer() 278 cfg |= au1550_spi_baudcfg(hw, hz); in au1550_spi_setupxfer()
|
D | spi-bcm63xx.c | 124 u32 hz; in bcm63xx_spi_setup_transfer() local 128 hz = (t) ? t->speed_hz : spi->max_speed_hz; in bcm63xx_spi_setup_transfer() 132 if (hz <= bcm63xx_spi_freq_table[i][0]) { in bcm63xx_spi_setup_transfer() 149 clk_cfg, hz); in bcm63xx_spi_setup_transfer()
|
D | spi-sh-msiof.c | 374 unsigned long hz; in sh_msiof_spi_hz() local 376 hz = t ? t->speed_hz : 0; in sh_msiof_spi_hz() 377 if (!hz) in sh_msiof_spi_hz() 378 hz = spi->max_speed_hz; in sh_msiof_spi_hz() 379 return hz; in sh_msiof_spi_hz()
|
D | spi-fsl-spi.c | 233 u32 hz = 0; in fsl_spi_setup_transfer() local 240 hz = t->speed_hz; in fsl_spi_setup_transfer() 252 if (!hz) in fsl_spi_setup_transfer() 253 hz = spi->max_speed_hz; in fsl_spi_setup_transfer() 277 if ((mpc8xxx_spi->spibrg / hz) > 64) { in fsl_spi_setup_transfer() 279 pm = (mpc8xxx_spi->spibrg - 1) / (hz * 64) + 1; in fsl_spi_setup_transfer() 283 hz, mpc8xxx_spi->spibrg / 1024); in fsl_spi_setup_transfer() 287 pm = (mpc8xxx_spi->spibrg - 1) / (hz * 4) + 1; in fsl_spi_setup_transfer()
|
/linux-3.4.99/drivers/ssb/ |
D | driver_mipscore.c | 238 unsigned long hz, ns; in ssb_mipscore_init() local 247 hz = ssb_clockspeed(bus); in ssb_mipscore_init() 248 if (!hz) in ssb_mipscore_init() 249 hz = 100000000; in ssb_mipscore_init() 250 ns = 1000000000 / hz; in ssb_mipscore_init()
|
/linux-3.4.99/drivers/clocksource/ |
D | mmio.c | 53 unsigned long hz, int rating, unsigned bits, in clocksource_mmio_init() argument 72 return clocksource_register_hz(&cs->clksrc, hz); in clocksource_mmio_init()
|
/linux-3.4.99/arch/mips/kernel/ |
D | cevt-ds1287.c | 33 int ds1287_set_base_clock(unsigned int hz) in ds1287_set_base_clock() argument 37 switch (hz) { in ds1287_set_base_clock()
|
/linux-3.4.99/drivers/gpu/drm/via/ |
D | via_verifier.c | 114 hazard_t hz; member 347 investigate_hazard(uint32_t cmd, hazard_t hz, drm_via_state_t *cur_seq) in investigate_hazard() argument 351 if (cur_seq->unfinished && (cur_seq->unfinished != seqs[hz])) { in investigate_hazard() 357 switch (hz) { in investigate_hazard() 629 hazard_t hz; in via_check_header2() local 696 if ((hz = hz_table[cmd >> 24])) { in via_check_header2() 697 if ((hz_mode = investigate_hazard(cmd, hz, hc_state))) { in via_check_header2() 1100 table[init_table[i].code] = init_table[i].hz; in setup_hazard_table()
|
/linux-3.4.99/include/media/ |
D | mt9p031.h | 12 int (*set_xclk)(struct v4l2_subdev *subdev, int hz);
|
/linux-3.4.99/Documentation/video4linux/ |
D | se401.txt | 37 50=50hz, 60=60hz)
|
/linux-3.4.99/arch/m68k/q40/ |
D | q40ints.c | 110 void q40_mksound(unsigned int hz, unsigned int ticks) in q40_mksound() argument 114 if (hz == 0) { in q40_mksound()
|
/linux-3.4.99/Documentation/devicetree/bindings/rtc/ |
D | sa1100-rtc.txt | 8 interrupt and the second interrupt number is the rtc hz interrupt.
|