Searched refs:hz (Results 1 - 107 of 107) sorted by relevance

/linux-4.4.14/sound/pci/hda/
H A Dhda_beep.c73 static int beep_linear_tone(struct hda_beep *beep, int hz) beep_linear_tone() argument
75 if (hz <= 0) beep_linear_tone()
77 hz *= 1000; /* fixed point */ beep_linear_tone()
78 hz = hz - DIGBEEP_HZ_MIN beep_linear_tone()
80 if (hz < 0) beep_linear_tone()
81 hz = 0; /* turn off PC beep*/ beep_linear_tone()
82 else if (hz >= (DIGBEEP_HZ_MAX - DIGBEEP_HZ_MIN)) beep_linear_tone()
83 hz = 1; /* max frequency */ beep_linear_tone()
85 hz /= DIGBEEP_HZ_STEP; beep_linear_tone()
86 hz = 255 - hz; beep_linear_tone()
88 return hz; beep_linear_tone()
97 static int beep_standard_tone(struct hda_beep *beep, int hz) beep_standard_tone() argument
99 if (hz <= 0) beep_standard_tone()
101 hz = 12000 / hz; beep_standard_tone()
102 if (hz > 0xff) beep_standard_tone()
104 if (hz <= 0) beep_standard_tone()
106 return hz; beep_standard_tone()
110 unsigned int code, int hz) snd_hda_beep_event()
116 if (hz) snd_hda_beep_event()
117 hz = 1000; snd_hda_beep_event()
121 beep->tone = beep_linear_tone(beep, hz); snd_hda_beep_event()
123 beep->tone = beep_standard_tone(beep, hz); snd_hda_beep_event()
109 snd_hda_beep_event(struct input_dev *dev, unsigned int type, unsigned int code, int hz) snd_hda_beep_event() argument
/linux-4.4.14/arch/mips/bcm47xx/
H A Dtime.c33 unsigned long hz = 0; plat_time_init() local
49 hz = ssb_cpu_clock(&bcm47xx_bus.ssb.mipscore) / 2; plat_time_init()
55 hz = bcma_cpu_clock(&bcm47xx_bus.bcma.bus.drv_mips) / 2; plat_time_init()
64 hz = 100000000; plat_time_init()
70 hz = 100000000; plat_time_init()
76 if (!hz) plat_time_init()
77 hz = 100000000; plat_time_init()
80 mips_hpt_frequency = hz; plat_time_init()
/linux-4.4.14/include/linux/
H A Dclocksource.h141 * clocksource_hz2mult - calculates mult from hz and shift
142 * @hz: Clocksource frequency in Hz
145 * Helper functions that converts a hz counter
149 static inline u32 clocksource_hz2mult(u32 hz, u32 shift_constant) clocksource_hz2mult() argument
151 /* hz = cyc/(Billion ns) clocksource_hz2mult()
154 * mult = 1Billion/hz * 2^shift clocksource_hz2mult()
155 * mult = 1000000000 * 2^shift / hz clocksource_hz2mult()
156 * mult = (1000000000<<shift) / hz clocksource_hz2mult()
160 tmp += hz/2; /* round for do_div */ clocksource_hz2mult()
161 do_div(tmp, hz); clocksource_hz2mult()
213 static inline int clocksource_register_hz(struct clocksource *cs, u32 hz) clocksource_register_hz() argument
215 return __clocksource_register_scale(cs, 1, hz); clocksource_register_hz()
223 static inline void __clocksource_update_freq_hz(struct clocksource *cs, u32 hz) __clocksource_update_freq_hz() argument
225 __clocksource_update_freq_scale(cs, 1, hz); __clocksource_update_freq_hz()
H A Dvt_kern.h30 extern void kd_mksound(unsigned int hz, unsigned int ticks);
/linux-4.4.14/sound/ppc/
H A Dbeep.c36 int hz; member in struct:pmac_beep
100 unsigned int code, int hz) snd_pmac_beep_event()
115 case SND_BELL: if (hz) hz = 1000; snd_pmac_beep_event()
124 if (! hz) { snd_pmac_beep_event()
135 if (hz <= srate / BEEP_BUFLEN || hz > srate / 2) snd_pmac_beep_event()
136 hz = 1000; snd_pmac_beep_event()
146 if (hz == beep->hz && beep->volume == beep->volume_play) { snd_pmac_beep_event()
149 period = srate * 256 / hz; /* fixed point */ snd_pmac_beep_event()
159 beep->hz = hz; snd_pmac_beep_event()
99 snd_pmac_beep_event(struct input_dev *dev, unsigned int type, unsigned int code, int hz) snd_pmac_beep_event() argument
/linux-4.4.14/arch/m68k/amiga/
H A Damisound.c71 void amiga_mksound( unsigned int hz, unsigned int ticks ) amiga_mksound() argument
81 if (hz > 20 && hz < 32767) { amiga_mksound()
82 unsigned long period = (clock_constant / hz); amiga_mksound()
/linux-4.4.14/arch/m68k/atari/
H A Datasound.c54 void atari_mksound (unsigned int hz, unsigned int ticks) atari_mksound() argument
71 if (hz) { atari_mksound()
75 period = PSG_FREQ / hz; atari_mksound()
79 /* Set generator A frequency to hz. */ atari_mksound()
/linux-4.4.14/drivers/clocksource/
H A Dmmio.c47 * @hz: Frequency of the clocksource in Hz
53 unsigned long hz, int rating, unsigned bits, clocksource_mmio_init()
72 return clocksource_register_hz(&cs->clksrc, hz); clocksource_mmio_init()
52 clocksource_mmio_init(void __iomem *base, const char *name, unsigned long hz, int rating, unsigned bits, cycle_t (*read)(struct clocksource *)) clocksource_mmio_init() argument
H A Dmetag_generic.c20 * as a free-running time base (hz clocksource), and the interrupt timer
/linux-4.4.14/arch/x86/realmode/rm/
H A Dwakemain.c10 static void beep(unsigned int hz) beep() argument
14 if (!hz) { beep()
17 u16 div = 1193181/hz; beep()
/linux-4.4.14/drivers/i2c/busses/
H A Di2c-brcmstb.c89 u32 hz; member in struct:bsc_clk_param
121 .hz = 375000,
126 .hz = 390000,
131 .hz = 187500,
136 .hz = 200000,
141 .hz = 93750,
146 .hz = 97500,
151 .hz = 46875,
156 .hz = 50000,
524 if (bsc_clk[i].hz == clk_freq_hz) { brcmstb_i2c_set_bus_speed()
539 bsc_clk[i].hz); brcmstb_i2c_set_bus_speed()
606 bsc_clk[0].hz); brcmstb_i2c_probe()
607 dev->clk_freq_hz = bsc_clk[0].hz; brcmstb_i2c_probe()
H A Di2c-bcm-kona.c743 pr_err("%d hz bus speed not supported\n", bus_speed); bcm_kona_i2c_assign_bus_speed()
H A Di2c-mt65xx.c64 #define I2C_DEFAULT_SPEED 100000 /* hz */
/linux-4.4.14/arch/mips/kernel/
H A Dcevt-ds1287.c33 int ds1287_set_base_clock(unsigned int hz) ds1287_set_base_clock() argument
37 switch (hz) { ds1287_set_base_clock()
/linux-4.4.14/drivers/spi/
H A Dspi-bitbang.c143 u32 hz; spi_bitbang_setup_transfer() local
147 hz = t->speed_hz; spi_bitbang_setup_transfer()
150 hz = 0; spi_bitbang_setup_transfer()
166 if (!hz) spi_bitbang_setup_transfer()
167 hz = spi->max_speed_hz; spi_bitbang_setup_transfer()
168 if (hz) { spi_bitbang_setup_transfer()
169 cs->nsecs = (1000000000/2) / hz; spi_bitbang_setup_transfer()
H A Dspi-st-ssc4.c216 u32 hz = spi->max_speed_hz; spi_st_setup() local
220 if (!hz) { spi_st_setup()
242 sscbrg = spi_st_clk / (2 * hz); spi_st_setup()
245 "baudrate %d outside valid range %d\n", sscbrg, hz); spi_st_setup()
256 "setting baudrate:target= %u hz, actual= %u hz, sscbrg= %u\n", spi_st_setup()
257 hz, spi_st->baud, sscbrg); spi_st_setup()
H A Dspi-s3c24xx.c36 * @hz: Last frequency calculated for @sppre field.
42 unsigned int hz; member in struct:s3c24xx_spi_devstate
124 unsigned int hz; s3c24xx_spi_update_state() local
128 hz = t ? t->speed_hz : spi->max_speed_hz; s3c24xx_spi_update_state()
130 if (!hz) s3c24xx_spi_update_state()
131 hz = spi->max_speed_hz; s3c24xx_spi_update_state()
146 if (cs->hz != hz) { s3c24xx_spi_update_state()
148 div = DIV_ROUND_UP(clk, hz * 2) - 1; s3c24xx_spi_update_state()
154 div, hz, clk / (2 * (div + 1))); s3c24xx_spi_update_state()
156 cs->hz = hz; s3c24xx_spi_update_state()
192 cs->hz = -1; s3c24xx_spi_setup()
H A Dspi-sc18is602.c135 static int sc18is602_setup_transfer(struct sc18is602 *hw, u32 hz, u8 mode) sc18is602_setup_transfer() argument
148 if (hz >= hw->freq / 4) { sc18is602_setup_transfer()
151 } else if (hz >= hw->freq / 16) { sc18is602_setup_transfer()
154 } else if (hz >= hw->freq / 64) { sc18is602_setup_transfer()
H A Dspi-omap-uwire.c314 unsigned hz; uwire_setup_transfer() local
348 hz = t->speed_hz; uwire_setup_transfer()
350 hz = spi->max_speed_hz; uwire_setup_transfer()
352 if (!hz) { uwire_setup_transfer()
375 div2 = (rate / div1 + hz - 1) / hz; uwire_setup_transfer()
381 dev_name(&spi->dev), rate / 10 / 8, hz); uwire_setup_transfer()
H A Dspi-mxs.c77 const unsigned int hz = min(dev->max_speed_hz, t->speed_hz); mxs_spi_setup_transfer() local
79 if (hz == 0) { mxs_spi_setup_transfer()
84 if (hz != spi->sck) { mxs_spi_setup_transfer()
85 mxs_ssp_set_clk_rate(ssp, hz); mxs_spi_setup_transfer()
87 * Save requested rate, hz, rather than the actual rate, mxs_spi_setup_transfer()
91 spi->sck = hz; mxs_spi_setup_transfer()
H A Dspi-fsl-espi.c140 u32 hz = 0; fsl_espi_setup_transfer() local
145 hz = t->speed_hz; fsl_espi_setup_transfer()
152 if (!hz) fsl_espi_setup_transfer()
153 hz = spi->max_speed_hz; fsl_espi_setup_transfer()
179 if ((mpc8xxx_spi->spibrg / hz) > 64) { fsl_espi_setup_transfer()
181 pm = DIV_ROUND_UP(mpc8xxx_spi->spibrg, hz * 16 * 4); fsl_espi_setup_transfer()
185 hz, mpc8xxx_spi->spibrg / (4 * 16 * (32 + 1))); fsl_espi_setup_transfer()
189 pm = DIV_ROUND_UP(mpc8xxx_spi->spibrg, hz * 4); fsl_espi_setup_transfer()
H A Dspi-fsl-spi.c228 u32 hz = 0; fsl_spi_setup_transfer() local
235 hz = t->speed_hz; fsl_spi_setup_transfer()
242 if (!hz) fsl_spi_setup_transfer()
243 hz = spi->max_speed_hz; fsl_spi_setup_transfer()
267 if ((mpc8xxx_spi->spibrg / hz) > 64) { fsl_spi_setup_transfer()
269 pm = (mpc8xxx_spi->spibrg - 1) / (hz * 64) + 1; fsl_spi_setup_transfer()
273 hz, mpc8xxx_spi->spibrg / 1024); fsl_spi_setup_transfer()
277 pm = (mpc8xxx_spi->spibrg - 1) / (hz * 4) + 1; fsl_spi_setup_transfer()
H A Dspi-bcm63xx-hsspi.c126 struct spi_device *spi, int hz) bcm63xx_hsspi_set_clk()
131 reg = DIV_ROUND_UP(2048, DIV_ROUND_UP(bs->speed_hz, hz)); bcm63xx_hsspi_set_clk()
136 if (hz > HSSPI_MAX_SYNC_CLOCK) bcm63xx_hsspi_set_clk()
125 bcm63xx_hsspi_set_clk(struct bcm63xx_hsspi *bs, struct spi_device *spi, int hz) bcm63xx_hsspi_set_clk() argument
H A Dspi-oc-tiny.c65 static unsigned int tiny_spi_baud(struct spi_device *spi, unsigned int hz) tiny_spi_baud() argument
69 return min(DIV_ROUND_UP(hw->freq, hz * 2), (1U << hw->baudwidth)) - 1; tiny_spi_baud()
H A Dspi-au1550.c233 unsigned bpw, hz; au1550_spi_setupxfer() local
238 hz = t->speed_hz; au1550_spi_setupxfer()
241 hz = spi->max_speed_hz; au1550_spi_setupxfer()
244 if (!hz) au1550_spi_setupxfer()
263 cfg |= au1550_spi_baudcfg(hw, hz); au1550_spi_setupxfer()
H A Dspi-davinci.c286 u32 hz = 0, spifmt = 0; davinci_spi_setup_transfer() local
296 hz = t->speed_hz; davinci_spi_setup_transfer()
317 if (!hz) davinci_spi_setup_transfer()
318 hz = spi->max_speed_hz; davinci_spi_setup_transfer()
322 prescale = davinci_spi_get_prescale(dspi, hz); davinci_spi_setup_transfer()
H A Dspi-sirf.c875 int hz = 0; spi_sirfsoc_setup_transfer() local
881 hz = t && t->speed_hz ? t->speed_hz : spi->max_speed_hz; spi_sirfsoc_setup_transfer()
883 usp_mode2 = regval = (sspi->ctrl_freq / (2 * hz)) - 1; spi_sirfsoc_setup_transfer()
885 dev_err(&spi->dev, "Speed %d not supported\n", hz); spi_sirfsoc_setup_transfer()
H A Dspi-bcm63xx.c228 dev_dbg(&spi->dev, "Setting clock register to %02x (hz %d)\n", bcm63xx_spi_setup_transfer()
H A Dspi-mpc52xx-psc.c31 #define MCLK 20000000 /* PSC port MClk in hz */
H A Dspi-ppc4xx.c208 dev_dbg(&spi->dev, "setting pre-scaler to %d (hz %d)\n", cdm, speed); spi_ppc4xx_setupxfer()
H A Dspi-ti-qspi.c157 dev_dbg(qspi->dev, "hz: %d, clock divider %d\n", ti_qspi_setup()
H A Dspi-imx.c1037 dev_dbg(&spi->dev, "%s: mode %d, %u bpw, %d hz\n", __func__, spi_imx_setup()
/linux-4.4.14/drivers/ssb/
H A Ddriver_mipscore.c296 unsigned long hz, ns; ssb_mipscore_init() local
305 hz = ssb_clockspeed(bus); ssb_mipscore_init()
306 if (!hz) ssb_mipscore_init()
307 hz = 100000000; ssb_mipscore_init()
308 ns = 1000000000 / hz; ssb_mipscore_init()
/linux-4.4.14/arch/mips/include/asm/octeon/
H A Dcvmx-sysinfo.h73 /* cpu clock speed in hz */
76 /* dram data rate in hz (data rate = 2 * clock rate */
104 /* DFA reference clock in hz (if applicable)*/
H A Docteon.h93 /* CPU clock speed, in hz. */
95 /* DRAM clock speed, in hz. */
97 /* SPI4 clock in hz. */
145 /* CPU clock speed, in hz. */
149 /* SPI4 clock in hz. */
151 /* DRAM clock speed, in hz. */
H A Dcvmx-bootinfo.h76 /* CPU clock speed, in hz */
79 /* DRAM clock speed, in hz */
110 /* DFA reference clock in hz (if applicable)*/
/linux-4.4.14/drivers/scsi/ufs/
H A Dufshcd-pltfrm.c74 if (!of_get_property(np, "freq-table-hz", &len)) { ufshcd_parse_clock_info()
75 dev_info(dev, "freq-table-hz property not specified\n"); ufshcd_parse_clock_info()
84 dev_err(dev, "%s len mismatch\n", "freq-table-hz"); ufshcd_parse_clock_info()
96 ret = of_property_read_u32_array(np, "freq-table-hz", ufshcd_parse_clock_info()
100 "freq-table-hz", ret); ufshcd_parse_clock_info()
119 dev_dbg(dev, "%s: min %u max %u name %s\n", "freq-table-hz", ufshcd_parse_clock_info()
/linux-4.4.14/drivers/iio/common/st_sensors/
H A Dst_sensors_core.c75 if (sensor_settings->odr.odr_avl[i].hz == 0) st_sensors_match_odr()
78 if (sensor_settings->odr.odr_avl[i].hz == odr) { st_sensors_match_odr()
79 odr_out->hz = sensor_settings->odr.odr_avl[i].hz; st_sensors_match_odr()
119 sdata->odr = odr_out.hz; st_sensors_set_odr()
204 sdata->odr = odr_out.hz; st_sensors_set_enable()
556 if (sdata->sensor_settings->odr.odr_avl[i].hz == 0) st_sensors_sysfs_sampling_frequency_avail()
560 sdata->sensor_settings->odr.odr_avl[i].hz); st_sensors_sysfs_sampling_frequency_avail()
/linux-4.4.14/drivers/pwm/
H A Dpwm-tegra.c71 unsigned long rate, hz; tegra_pwm_config() local
90 hz = NSEC_PER_SEC / period_ns; tegra_pwm_config()
92 rate = (rate + (hz / 2)) / hz; tegra_pwm_config()
/linux-4.4.14/arch/cris/arch-v10/kernel/
H A Dtime.c24 /* it will make jiffies at 96 hz instead of 100 hz though */
193 * Base frequency is 25000 hz, divider 250 -> 100 HZ time_init()
197 * timer settings below (hz and divide factor) !!! time_init()
/linux-4.4.14/arch/m68k/q40/
H A Dq40ints.c110 void q40_mksound(unsigned int hz, unsigned int ticks) q40_mksound() argument
112 /* for now ignore hz, except that hz==0 switches off sound */ q40_mksound()
114 if (hz == 0) { q40_mksound()
/linux-4.4.14/arch/arm/mach-shmobile/
H A Dtimer.c25 * based on maximum cpu core hz setting and the shmobile_setup_delay_hz()
/linux-4.4.14/arch/mips/lasat/
H A Dsysctl.c166 .procname = "cpu-hz",
173 .procname = "bus-hz",
/linux-4.4.14/include/media/
H A Dsmiapp.h79 int (*set_xclk)(struct v4l2_subdev *sd, int hz);
/linux-4.4.14/arch/mips/pmcs-msp71xx/
H A Dmsp_time.c82 "assuming %ld hz ...\n", cpu_rate); plat_time_init()
/linux-4.4.14/Documentation/spi/
H A Dspidev_test.c289 * max speed hz main()
293 pabort("can't set max speed hz"); main()
297 pabort("can't get max speed hz"); main()
/linux-4.4.14/sound/soc/rockchip/
H A Drockchip_spdif.c101 mclk = 96000 * 128; /* 12288000 hz */ rk_spdif_hw_params()
104 mclk = 44100 * 256; /* 11289600 hz */ rk_spdif_hw_params()
107 mclk = 192000 * 128; /* 24576000 hz */ rk_spdif_hw_params()
/linux-4.4.14/drivers/video/fbdev/
H A Dsm712.h85 int hz; member in struct:modeinit
H A Dsm712fb.c54 u_int hz; member in struct:smtcfb_info
1116 "sfb->width=%d sfb->height=%d sfb->fb->var.bits_per_pixel=%d sfb->hz=%d\n", sm7xx_set_timing()
1117 sfb->width, sfb->height, sfb->fb->var.bits_per_pixel, sfb->hz); sm7xx_set_timing()
1123 vgamode[j].hz != sfb->hz) sm7xx_set_timing()
1127 "vgamode[j].mmsizex=%d vgamode[j].mmSizeY=%d vgamode[j].bpp=%d vgamode[j].hz=%d\n", sm7xx_set_timing()
1129 vgamode[j].bpp, vgamode[j].hz); sm7xx_set_timing()
1267 sfb->hz = 60; smtcfb_setmode()
H A Dpvr2fb.c246 /* 640x480 @ 60hz (VGA) */
/linux-4.4.14/drivers/mmc/core/
H A Dcore.h42 void mmc_set_clock(struct mmc_host *host, unsigned int hz);
H A Dcore.c1058 * is below "hz".
1060 void mmc_set_clock(struct mmc_host *host, unsigned int hz) mmc_set_clock() argument
1062 WARN_ON(hz && hz < host->f_min); mmc_set_clock()
1064 if (hz > host->f_max) mmc_set_clock()
1065 hz = host->f_max; mmc_set_clock()
1067 host->ios.clock = hz; mmc_set_clock()
/linux-4.4.14/kernel/time/
H A Djiffies.c123 /* shift_hz stores hz<<8 for extra accuracy */ register_refined_jiffies()
H A Dclocksource.c652 * @scale: Scale factor multiplied against freq to get clocksource hz
720 * @scale: Scale factor multiplied against freq to get clocksource hz
/linux-4.4.14/drivers/mmc/host/
H A Dmtk-sd.c517 static void msdc_set_mclk(struct msdc_host *host, unsigned char timing, u32 hz) msdc_set_mclk() argument
524 if (!hz) { msdc_set_mclk()
542 if (hz >= (host->src_clk_freq >> 2)) { msdc_set_mclk()
546 div = (host->src_clk_freq + ((hz << 2) - 1)) / (hz << 2); msdc_set_mclk()
552 hz >= (host->src_clk_freq >> 1)) { msdc_set_mclk()
558 } else if (hz >= host->src_clk_freq) { msdc_set_mclk()
564 if (hz >= (host->src_clk_freq >> 1)) { msdc_set_mclk()
568 div = (host->src_clk_freq + ((hz << 2) - 1)) / (hz << 2); msdc_set_mclk()
578 host->mclk = hz; msdc_set_mclk()
H A Dcb710-mmc.c28 static void cb710_mmc_select_clock_divider(struct mmc_host *mmc, int hz) cb710_mmc_select_clock_divider() argument
46 if (hz >= src_hz >> cb710_clock_divider_log2[divider_idx]) cb710_mmc_select_clock_divider()
60 hz, src_freq_idx, divider_idx & 7, divider_idx & 8); cb710_mmc_select_clock_divider() local
/linux-4.4.14/drivers/gpu/drm/via/
H A Dvia_verifier.c114 hazard_t hz; member in struct:__anon4645
347 investigate_hazard(uint32_t cmd, hazard_t hz, drm_via_state_t *cur_seq) investigate_hazard() argument
351 if (cur_seq->unfinished && (cur_seq->unfinished != seqs[hz])) { investigate_hazard()
357 switch (hz) { investigate_hazard()
629 hazard_t hz; via_check_header2() local
696 if ((hz = hz_table[cmd >> 24])) { via_check_header2()
697 if ((hz_mode = investigate_hazard(cmd, hz, hc_state))) { via_check_header2()
1100 table[init_table[i].code] = init_table[i].hz; setup_hazard_table()
/linux-4.4.14/drivers/gpu/host1x/
H A Dintr.c307 u32 hz = clk_get_rate(host->clk); host1x_intr_start() local
311 err = host1x_hw_intr_init_host_sync(host, DIV_ROUND_UP(hz, 1000000), host1x_intr_start()
/linux-4.4.14/drivers/media/usb/hdpvr/
H A Dhdpvr.h220 * VIDEO STANDARD or FREQUNCY 0 = 60hz, 1 = 50hz
/linux-4.4.14/include/uapi/drm/
H A Dexynos_drm.h172 * @refresh_min: min hz of refresh.
173 * @refresh_max: max hz of refresh.
/linux-4.4.14/drivers/media/i2c/
H A Dsaa7115.c318 R_09_LUMA_CNTL, 0x53, /* 0x53, was 0x56 for 60hz. luminance control */
367 R_5A_V_OFF_FOR_SLICER, 0x06, /* standard 60hz value for ITU656 line counting */
421 R_F0_LFCO_PER_LINE, 0xad, /* Set PLL Register. 60hz 525 lines per frame, 27 MHz */
440 R_5A_V_OFF_FOR_SLICER, 0x03, /* standard 50hz value */
449 /* but Hauppauge uses 0, and changing that to 2 causes indeed problems (for 50hz) */
478 /* but Hauppauge uses 0, and changing that to 2 causes indeed problems (for 50hz) */
499 R_F0_LFCO_PER_LINE, 0xb0, /* Set PLL Register. 50hz 625 lines per frame, 27 MHz */
759 u32 hz; saa711x_s_clock_freq() local
773 /* hz is the refresh rate times 100 */ saa711x_s_clock_freq()
774 hz = (state->std & V4L2_STD_525_60) ? 5994 : 5000; saa711x_s_clock_freq()
775 /* acpf = (256 * freq) / field_frequency == (256 * 100 * freq) / hz */ saa711x_s_clock_freq()
776 acpf = (25600 * freq) / hz; saa711x_s_clock_freq()
1871 /* init to 60hz/48khz */ saa711x_probe()
H A Dov7670.c174 #define REG_BD50MAX 0xa5 /* 50hz banding step limit */
180 #define REG_BD60MAX 0xab /* 60hz banding step limit */
/linux-4.4.14/drivers/input/keyboard/
H A Dlm8323.c456 int div512, perstep, steps, hz, up, kill; lm8323_pwm_work() local
481 hz = 32768 / 512; lm8323_pwm_work()
484 hz = 32768 / 16; lm8323_pwm_work()
487 perstep = (hz * pwm->fade_time) / (steps * 1000); lm8323_pwm_work()
/linux-4.4.14/include/uapi/linux/spi/
H A Dspidev.h131 /* Read / Write SPI device default max speed hz */
/linux-4.4.14/drivers/video/fbdev/core/
H A Dfbmon.c720 int num_modes, hz, hscan, pixclock; fb_get_monitor_limits() local
746 hz = (hscan + vtotal / 2) / vtotal; fb_get_monitor_limits()
760 if (specs->vfmax == 0 || specs->vfmax < hz) fb_get_monitor_limits()
761 specs->vfmax = hz; fb_get_monitor_limits()
763 if (specs->vfmin == 0 || specs->vfmin > hz) fb_get_monitor_limits()
764 specs->vfmin = hz; fb_get_monitor_limits()
/linux-4.4.14/sound/soc/codecs/
H A Dcs42l52.c939 unsigned int code, int hz) cs42l52_beep_event()
944 dev_dbg(codec->dev, "Beep event %x %x\n", code, hz); cs42l52_beep_event()
948 if (hz) cs42l52_beep_event()
949 hz = 261; cs42l52_beep_event()
957 cs42l52->beep_rate = hz; cs42l52_beep_event()
938 cs42l52_beep_event(struct input_dev *dev, unsigned int type, unsigned int code, int hz) cs42l52_beep_event() argument
H A Dcs42l56.c1013 unsigned int code, int hz) cs42l56_beep_event()
1018 dev_dbg(codec->dev, "Beep event %x %x\n", code, hz); cs42l56_beep_event()
1022 if (hz) cs42l56_beep_event()
1023 hz = 261; cs42l56_beep_event()
1031 cs42l56->beep_rate = hz; cs42l56_beep_event()
1012 cs42l56_beep_event(struct input_dev *dev, unsigned int type, unsigned int code, int hz) cs42l56_beep_event() argument
H A Dwm8962.c3195 unsigned int code, int hz) wm8962_beep_event()
3200 dev_dbg(codec->dev, "Beep event %x %x\n", code, hz); wm8962_beep_event()
3204 if (hz) wm8962_beep_event()
3205 hz = 1000; wm8962_beep_event()
3213 wm8962->beep_rate = hz; wm8962_beep_event()
3194 wm8962_beep_event(struct input_dev *dev, unsigned int type, unsigned int code, int hz) wm8962_beep_event() argument
/linux-4.4.14/sound/isa/sb/
H A Demu8000_pcm.c149 static int calc_rate_offset(int hz) calc_rate_offset() argument
151 return snd_sf_linear_to_log(hz, OFFSET_SAMPLERATE, SAMPLERATE_RATIO); calc_rate_offset()
/linux-4.4.14/drivers/iio/gyro/
H A Dst_gyro_core.c424 gdata->odr = gdata->sensor_settings->odr.odr_avl[0].hz; st_gyro_common_probe()
/linux-4.4.14/drivers/iio/pressure/
H A Dst_pressure_core.c444 press_data->odr = press_data->sensor_settings->odr.odr_avl[0].hz; st_press_common_probe()
/linux-4.4.14/sound/hda/
H A Dhdac_device.c700 unsigned int hz; member in struct:hda_rate_tbl
755 for (i = 0; rate_bits[i].hz; i++) snd_hdac_calc_stream_format()
756 if (rate_bits[i].hz == rate) { snd_hdac_calc_stream_format()
760 if (!rate_bits[i].hz) snd_hdac_calc_stream_format()
/linux-4.4.14/include/linux/iio/common/
H A Dst_sensors.h72 unsigned int hz; member in struct:st_sensor_odr_avl
/linux-4.4.14/tools/power/cpupower/utils/
H A Dcpufreq-set.c50 {"hz", -3},
/linux-4.4.14/drivers/tty/vt/
H A Dkeyboard.c229 unsigned int *hz = data; kd_sound_helper() local
234 input_inject_event(handle, EV_SND, SND_TONE, *hz); kd_sound_helper()
235 if (*hz) kd_sound_helper()
239 input_inject_event(handle, EV_SND, SND_BELL, *hz ? 1 : 0); kd_sound_helper()
254 void kd_mksound(unsigned int hz, unsigned int ticks) kd_mksound() argument
258 input_handler_for_each_handle(&kbd_handler, &hz, kd_sound_helper); kd_mksound()
260 if (hz && ticks) kd_mksound()
/linux-4.4.14/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_core.c528 const int hz[] = {188, 98, 42, 20, 10, 5}; inv_mpu6050_set_lpf() local
537 while ((h < hz[i]) && (i < ARRAY_SIZE(d) - 1)) inv_mpu6050_set_lpf()
/linux-4.4.14/drivers/media/usb/cx231xx/
H A Dcx231xx-audio.c529 current default is 48000hz multiplexed => 96000hz mono snd_cx231xx_hw_capture_params()
/linux-4.4.14/drivers/media/usb/stkwebcam/
H A Dstk-sensor.c216 #define REG_BD50MAX 0xa5 /* 50hz banding step limit */
222 #define REG_BD60MAX 0xab /* 60hz banding step limit */
/linux-4.4.14/tools/perf/util/
H A Dsvghelper.c450 static char *HzToHuman(unsigned long hz) HzToHuman() argument
457 Hz = hz; HzToHuman()
/linux-4.4.14/drivers/staging/sm750fb/
H A Dddk750_chip.c291 Input Clock = 14318181 hz
/linux-4.4.14/drivers/iio/accel/
H A Dst_accel_core.c653 adata->odr = adata->sensor_settings->odr.odr_avl[0].hz; st_accel_common_probe()
H A Dmma8452.c297 static int mma8452_read_hp_filter(struct mma8452_data *data, int *hz, int *uHz) mma8452_read_hp_filter() argument
307 *hz = mma8452_hp_filter_cutoff[i][ret][0]; mma8452_read_hp_filter()
/linux-4.4.14/drivers/iio/magnetometer/
H A Dst_magn_core.c601 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; st_magn_common_probe()
/linux-4.4.14/include/uapi/linux/
H A Dcapability.h286 /* Allow more than 64hz interrupts from the real-time clock */
H A Dsysctl.h144 KERN_HZ_TIMER=65, /* int: hz timer on or off */
/linux-4.4.14/drivers/media/usb/gspca/
H A Dsonixb.c862 /* Framerate adjust register for artificial light 50 hz flicker setfreq()
870 /* case 2: * 60 hz */ setfreq()
873 case 1: /* 50 hz */ setfreq()
H A Dov519.c621 #define OV7670_RA5_BD50MAX 0xa5 /* 50hz banding step limit */
627 #define OV7670_RAB_BD60MAX 0xab /* 60hz banding step limit */
4736 case 1: /* 50 hz */ setfreq_i()
4741 case 2: /* 60 hz */ setfreq_i()
4746 case 3: /* Auto hz - ov7670 only */ setfreq_i()
4759 case 1: /* 50 hz (filter on and framerate adj) */ setfreq_i()
4770 case 2: /* 60 hz (filter on, ...) */ setfreq_i()
H A Dcpia1.c373 u8 mainsFreq; /* 0 = 50hz, 1 = 60hz */
H A Dsonixj.c2089 case 1: /* 50 hz */ setfreq()
2093 case 2: /* 60 hz */ setfreq()
2116 case 1: /* 50 hz (filter on and framerate adj) */ setfreq()
2121 case 2: /* 60 hz (filter on, no framerate adj) */ setfreq()
/linux-4.4.14/drivers/net/wan/
H A Ddscc4.c875 static inline int dscc4_set_quartz(struct dscc4_dev_priv *dpriv, int hz) dscc4_set_quartz() argument
879 if ((hz < 0) || (hz > DSCC4_HZ_MAX)) dscc4_set_quartz()
882 dpriv->pci_priv->xtal_hz = hz; dscc4_set_quartz()
/linux-4.4.14/drivers/input/misc/
H A Dyealink.c282 0xFB, 0x1E, 0x00, 0x0C, /* 1250 [hz], 12/100 [s] */
283 0xFC, 0x18, 0x00, 0x0C, /* 1000 [hz], 12/100 [s] */
/linux-4.4.14/drivers/media/usb/em28xx/
H A Dem28xx-audio.c368 current default is 48000hz multiplexed => 96000hz mono snd_em28xx_hw_capture_params()
/linux-4.4.14/drivers/gpu/drm/gma500/
H A Dgma_display.c52 /* Wait for 20ms, i.e. one cycle at 50hz. */ gma_wait_for_vblank()
/linux-4.4.14/drivers/gpu/drm/i915/
H A Dintel_dsi_panel_vbt.c513 * ui(s) = 1/f [f in hz] vbt_panel_init()
H A Dintel_drv.h195 uint32_t hz);
/linux-4.4.14/drivers/base/power/opp/
H A Dcore.c867 ret = of_property_read_u64(np, "opp-hz", &rate); _opp_add_static_v2()
869 dev_err(dev, "%s: opp-hz not found\n", __func__); _opp_add_static_v2()
/linux-4.4.14/sound/synth/emux/
H A Dsoundfont.c846 calc_rate_offset(int hz) calc_rate_offset() argument
848 return snd_sf_linear_to_log(hz, OFFSET_SAMPLERATE, SAMPLERATE_RATIO); calc_rate_offset()
/linux-4.4.14/drivers/video/fbdev/aty/
H A Dradeon_base.c585 unsigned long long hz, vclk; radeon_probe_pll_params() local
625 hz = 1000000/total_usecs; radeon_probe_pll_params()
629 vclk = (long long)hTotal * (long long)vTotal * hz; radeon_probe_pll_params()
/linux-4.4.14/drivers/media/tuners/
H A Dr820t.c881 /* agc clk 250hz */ r820t_sysfreq_sel()
907 /* agc clk 60hz */ r820t_sysfreq_sel()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4_hw.c7799 * @hz: number of ticks/second
7804 int hz, int ticks) t4_idma_monitor()
7829 if (idma->idma_stalled[i] >= SGE_IDMA_WARN_THRESH * hz) t4_idma_monitor()
7833 idma->idma_stalled[i] / hz); t4_idma_monitor()
7848 idma->idma_stalled[i] = hz; t4_idma_monitor()
7855 if (idma->idma_stalled[i] < SGE_IDMA_WARN_THRESH * hz) t4_idma_monitor()
7862 idma->idma_warn[i] = SGE_IDMA_WARN_REPEAT * hz; t4_idma_monitor()
7879 idma->idma_stalled[i] / hz, t4_idma_monitor()
7802 t4_idma_monitor(struct adapter *adapter, struct sge_idma_monitor_state *idma, int hz, int ticks) t4_idma_monitor() argument
H A Dcxgb4.h1426 int hz, int ticks);
/linux-4.4.14/drivers/misc/lis3lv02d/
H A Dlis3lv02d.c1053 if (!of_property_read_u32(np, "st,highpass-cutoff-hz", &val)) { lis3lv02d_init_dt()
/linux-4.4.14/fs/ceph/
H A Dmds_client.c3366 unsigned hz = round_jiffies_relative(HZ * delay); schedule_delayed() local
3367 schedule_delayed_work(&mdsc->delayed_work, hz); schedule_delayed()
/linux-4.4.14/drivers/media/dvb-frontends/
H A Dstb0899_algo.c74 * MasterClock: master clock frequency (hz)
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_pm.c852 /* 120hz tends to be problematic even if they are under the radeon_dpm_single_display()
/linux-4.4.14/sound/pci/asihpi/
H A Dhpi.h799 HPI_TUNER_VIDEO_IS_60HZ = 0x0020, /**< 60 hz video detected. */
/linux-4.4.14/net/ipv4/
H A Dtcp_input.c3909 * OK, let's give it small replay window. If peer clock is even 1hz, it is safe

Completed in 3755 milliseconds