/drivers/spi/ |
D | spi-sc18is602.c | 139 static int sc18is602_setup_transfer(struct sc18is602 *hw, u32 hz, u8 mode) in sc18is602_setup_transfer() argument 152 if (hz >= hw->freq / 4) { in sc18is602_setup_transfer() 155 } else if (hz >= hw->freq / 16) { in sc18is602_setup_transfer() 158 } else if (hz >= hw->freq / 64) { in sc18is602_setup_transfer() 187 uint32_t hz; in sc18is602_check_transfer() local 198 hz = spi->max_speed_hz; in sc18is602_check_transfer() 200 hz = t->speed_hz; in sc18is602_check_transfer() 201 if (hz == 0) in sc18is602_check_transfer() 223 u32 hz = t->speed_hz ? : spi->max_speed_hz; in sc18is602_transfer_one() local 230 status = sc18is602_setup_transfer(hw, hz, spi->mode); in sc18is602_transfer_one()
|
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-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 | 326 unsigned hz; in uwire_setup_transfer() local 376 hz = spi->max_speed_hz; in uwire_setup_transfer() 378 hz = t->speed_hz; in uwire_setup_transfer() 380 if (!hz) { in uwire_setup_transfer() 403 div2 = (rate / div1 + hz - 1) / hz; in uwire_setup_transfer() 409 dev_name(&spi->dev), rate / 10 / 8, hz); in uwire_setup_transfer()
|
D | spi-fsl-espi.c | 135 u32 hz = 0; in fsl_espi_setup_transfer() local 140 hz = t->speed_hz; in fsl_espi_setup_transfer() 151 if (!hz) in fsl_espi_setup_transfer() 152 hz = spi->max_speed_hz; in fsl_espi_setup_transfer() 180 if ((mpc8xxx_spi->spibrg / hz) > 64) { in fsl_espi_setup_transfer() 182 pm = DIV_ROUND_UP(mpc8xxx_spi->spibrg, hz * 16 * 4); in fsl_espi_setup_transfer() 186 hz, mpc8xxx_spi->spibrg / (4 * 16 * (32 + 1))); in fsl_espi_setup_transfer() 190 pm = DIV_ROUND_UP(mpc8xxx_spi->spibrg, hz * 4); in fsl_espi_setup_transfer()
|
D | spi-mxs.c | 72 uint32_t hz = 0; in mxs_spi_setup_transfer() local 84 hz = dev->max_speed_hz; in mxs_spi_setup_transfer() 86 hz = min(hz, t->speed_hz); in mxs_spi_setup_transfer() 87 if (hz == 0) { in mxs_spi_setup_transfer() 92 mxs_ssp_set_clk_rate(ssp, hz); in mxs_spi_setup_transfer()
|
D | spi-fsl-spi.c | 228 u32 hz = 0; in fsl_spi_setup_transfer() local 235 hz = t->speed_hz; in fsl_spi_setup_transfer() 248 if (!hz) in fsl_spi_setup_transfer() 249 hz = spi->max_speed_hz; in fsl_spi_setup_transfer() 273 if ((mpc8xxx_spi->spibrg / hz) > 64) { in fsl_spi_setup_transfer() 275 pm = (mpc8xxx_spi->spibrg - 1) / (hz * 64) + 1; in fsl_spi_setup_transfer() 279 hz, mpc8xxx_spi->spibrg / 1024); in fsl_spi_setup_transfer() 283 pm = (mpc8xxx_spi->spibrg - 1) / (hz * 4) + 1; in fsl_spi_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-sh-msiof.c | 375 unsigned long hz; in sh_msiof_spi_hz() local 377 hz = t ? t->speed_hz : 0; in sh_msiof_spi_hz() 378 if (!hz) in sh_msiof_spi_hz() 379 hz = spi->max_speed_hz; in sh_msiof_spi_hz() 380 return hz; in sh_msiof_spi_hz()
|
D | spi-sirf.c | 378 int hz = 0; in spi_sirfsoc_setup_transfer() local 386 hz = t && t->speed_hz ? t->speed_hz : spi->max_speed_hz; in spi_sirfsoc_setup_transfer() 391 regval = (sspi->ctrl_freq / (2 * hz)) - 1; in spi_sirfsoc_setup_transfer() 394 dev_err(&spi->dev, "Speed %d not supported\n", hz); in spi_sirfsoc_setup_transfer()
|
D | spi-davinci.c | 282 u32 hz = 0, spifmt = 0, prescale = 0; in davinci_spi_setup_transfer() local 291 hz = t->speed_hz; in davinci_spi_setup_transfer() 313 if (!hz) in davinci_spi_setup_transfer() 314 hz = spi->max_speed_hz; in davinci_spi_setup_transfer() 318 prescale = davinci_spi_get_prescale(dspi, hz); in davinci_spi_setup_transfer()
|
D | spi-oc-tiny.c | 66 static unsigned int tiny_spi_baud(struct spi_device *spi, unsigned int hz) in tiny_spi_baud() argument 70 return min(DIV_ROUND_UP(hw->freq, hz * 2), (1U << hw->baudwidth)) - 1; in tiny_spi_baud()
|
/drivers/iio/common/st_sensors/ |
D | st_sensors_core.c | 47 if (sensor->odr.odr_avl[i].hz == 0) in st_sensors_match_odr() 50 if (sensor->odr.odr_avl[i].hz == odr) { in st_sensors_match_odr() 51 odr_out->hz = sensor->odr.odr_avl[i].hz; in st_sensors_match_odr() 88 sdata->odr = odr_out.hz; in st_sensors_set_odr() 168 sdata->odr = odr_out.hz; in st_sensors_set_enable() 410 if (sdata->sensor->odr.odr_avl[i].hz == 0) in st_sensors_sysfs_sampling_frequency_avail() 414 sdata->sensor->odr.odr_avl[i].hz); in st_sensors_sysfs_sampling_frequency_avail()
|
/drivers/pwm/ |
D | pwm-tegra.c | 71 unsigned long rate, hz; in tegra_pwm_config() local 90 hz = 1000000000ul / period_ns; in tegra_pwm_config() 92 rate = (rate + (hz / 2)) / hz; in tegra_pwm_config()
|
/drivers/ssb/ |
D | driver_mipscore.c | 284 unsigned long hz, ns; in ssb_mipscore_init() local 293 hz = ssb_clockspeed(bus); in ssb_mipscore_init() 294 if (!hz) in ssb_mipscore_init() 295 hz = 100000000; in ssb_mipscore_init() 296 ns = 1000000000 / hz; in ssb_mipscore_init()
|
/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()
|
/drivers/gpu/drm/via/ |
D | via_verifier.c | 113 hazard_t hz; member 346 investigate_hazard(uint32_t cmd, hazard_t hz, drm_via_state_t *cur_seq) in investigate_hazard() argument 350 if (cur_seq->unfinished && (cur_seq->unfinished != seqs[hz])) { in investigate_hazard() 356 switch (hz) { in investigate_hazard() 628 hazard_t hz; in via_check_header2() local 695 if ((hz = hz_table[cmd >> 24])) { in via_check_header2() 696 if ((hz_mode = investigate_hazard(cmd, hz, hc_state))) { in via_check_header2() 1099 table[init_table[i].code] = init_table[i].hz; in setup_hazard_table()
|
/drivers/staging/sm7xxfb/ |
D | sm7xxfb.c | 54 u_int hz; member 478 sfb->width, sfb->height, sfb->fb.var.bits_per_pixel, sfb->hz); in sm7xx_set_timing() 484 VGAMode[j].hz == sfb->hz) { in sm7xx_set_timing() 490 VGAMode[j].bpp, VGAMode[j].hz); in sm7xx_set_timing() 637 sfb->hz = 60; in smtcfb_setmode()
|
D | sm7xx.h | 105 int hz; member
|
/drivers/input/keyboard/ |
D | lm8323.c | 456 int div512, perstep, steps, hz, up, kill; in lm8323_pwm_work() local 481 hz = 32768 / 512; in lm8323_pwm_work() 484 hz = 32768 / 16; in lm8323_pwm_work() 487 perstep = (hz * pwm->fade_time) / (steps * 1000); in lm8323_pwm_work()
|
/drivers/gpu/host1x/ |
D | intr.c | 307 u32 hz = clk_get_rate(host->clk); in host1x_intr_start() local 311 err = host1x_hw_intr_init_host_sync(host, DIV_ROUND_UP(hz, 1000000), in host1x_intr_start()
|
/drivers/mmc/core/ |
D | core.h | 37 void mmc_set_clock(struct mmc_host *host, unsigned int hz);
|
/drivers/video/ |
D | fbmon.c | 707 int num_modes, hz, hscan, pixclock; in fb_get_monitor_limits() local 733 hz = (hscan + vtotal / 2) / vtotal; in fb_get_monitor_limits() 747 if (specs->vfmax == 0 || specs->vfmax < hz) in fb_get_monitor_limits() 748 specs->vfmax = hz; in fb_get_monitor_limits() 750 if (specs->vfmin == 0 || specs->vfmin > hz) in fb_get_monitor_limits() 751 specs->vfmin = hz; in fb_get_monitor_limits()
|
/drivers/tty/vt/ |
D | keyboard.c | 234 unsigned int *hz = data; in kd_sound_helper() local 239 input_inject_event(handle, EV_SND, SND_TONE, *hz); in kd_sound_helper() 240 if (*hz) in kd_sound_helper() 244 input_inject_event(handle, EV_SND, SND_BELL, *hz ? 1 : 0); in kd_sound_helper() 259 void kd_mksound(unsigned int hz, unsigned int ticks) in kd_mksound() argument 263 input_handler_for_each_handle(&kbd_handler, &hz, kd_sound_helper); in kd_mksound() 265 if (hz && ticks) in kd_mksound()
|
/drivers/mmc/host/ |
D | cb710-mmc.c | 28 static void cb710_mmc_select_clock_divider(struct mmc_host *mmc, int hz) in cb710_mmc_select_clock_divider() argument 46 if (hz >= src_hz >> cb710_clock_divider_log2[divider_idx]) in cb710_mmc_select_clock_divider() 60 hz, src_freq_idx, divider_idx & 7, divider_idx & 8); in cb710_mmc_select_clock_divider()
|