clkrate 103 arch/arm/mach-omap1/i2c.c i2c_pdata[ints[1] - 1].clkrate = ints[2]; clkrate 104 arch/arm/mach-omap1/i2c.c i2c_pdata[ints[1] - 1].clkrate |= OMAP_I2C_CMDLINE_SETUP; clkrate 119 arch/arm/mach-omap1/i2c.c if (i2c_pdata[i].clkrate & OMAP_I2C_CMDLINE_SETUP) { clkrate 120 arch/arm/mach-omap1/i2c.c i2c_pdata[i].clkrate &= ~OMAP_I2C_CMDLINE_SETUP; clkrate 139 arch/arm/mach-omap1/i2c.c int __init omap_register_i2c_bus(int bus_id, u32 clkrate, clkrate 153 arch/arm/mach-omap1/i2c.c if (!i2c_pdata[bus_id - 1].clkrate) clkrate 154 arch/arm/mach-omap1/i2c.c i2c_pdata[bus_id - 1].clkrate = clkrate; clkrate 156 arch/arm/mach-omap1/i2c.c i2c_pdata[bus_id - 1].clkrate &= ~OMAP_I2C_CMDLINE_SETUP; clkrate 18 arch/arm/mach-omap1/i2c.h extern int omap_register_i2c_bus(int bus_id, u32 clkrate, clkrate 23 arch/arm/mach-omap1/i2c.h static inline int omap_register_i2c_bus(int bus_id, u32 clkrate, clkrate 59 drivers/ata/pata_imx.c unsigned long clkrate; clkrate 62 drivers/ata/pata_imx.c clkrate = clk_get_rate(priv->clk); clkrate 65 drivers/ata/pata_imx.c !clkrate) clkrate 68 drivers/ata/pata_imx.c T = 1000000000 / clkrate; clkrate 118 drivers/gpu/drm/arc/arcpgu_drv.c unsigned long clkrate = clk_get_rate(arcpgu->clk); clkrate 121 drivers/gpu/drm/arc/arcpgu_drv.c seq_printf(m, "hw : %lu\n", clkrate); clkrate 214 drivers/gpu/drm/arm/hdlcd_drv.c unsigned long clkrate = clk_get_rate(hdlcd->clk); clkrate 217 drivers/gpu/drm/arm/hdlcd_drv.c seq_printf(m, "hw : %lu\n", clkrate); clkrate 444 drivers/gpu/ipu-v3/ipu-di.c unsigned long rate, clkrate; clkrate 447 drivers/gpu/ipu-v3/ipu-di.c clkrate = clk_get_rate(di->clk_ipu); clkrate 448 drivers/gpu/ipu-v3/ipu-di.c div = DIV_ROUND_CLOSEST(clkrate, sig->mode.pixelclock); clkrate 450 drivers/gpu/ipu-v3/ipu-di.c rate = clkrate / div; clkrate 352 drivers/i2c/busses/i2c-lpc2k.c u32 clkrate; clkrate 401 drivers/i2c/busses/i2c-lpc2k.c clkrate = clk_get_rate(i2c->clk); clkrate 402 drivers/i2c/busses/i2c-lpc2k.c if (clkrate == 0) { clkrate 409 drivers/i2c/busses/i2c-lpc2k.c clkrate = clkrate / bus_clk_rate; clkrate 411 drivers/i2c/busses/i2c-lpc2k.c scl_high = (clkrate * I2C_STD_MODE_DUTY) / 100; clkrate 413 drivers/i2c/busses/i2c-lpc2k.c scl_high = (clkrate * I2C_FAST_MODE_DUTY) / 100; clkrate 415 drivers/i2c/busses/i2c-lpc2k.c scl_high = (clkrate * I2C_FAST_MODE_PLUS_DUTY) / 100; clkrate 418 drivers/i2c/busses/i2c-lpc2k.c writel(clkrate - scl_high, i2c->base + LPC24XX_I2SCLL); clkrate 1394 drivers/i2c/busses/i2c-omap.c omap->speed = pdata->clkrate; clkrate 108 drivers/i2c/busses/i2c-s3c2410.c unsigned long clkrate; clkrate 837 drivers/i2c/busses/i2c-s3c2410.c i2c->clkrate = clkin; clkrate 901 drivers/i2c/busses/i2c-s3c2410.c delta_f = clk_get_rate(i2c->clk) - i2c->clkrate; clkrate 477 drivers/i2c/busses/i2c-stu300.c static int stu300_set_clk(struct stu300_dev *dev, unsigned long clkrate) clkrate 485 drivers/i2c/busses/i2c-stu300.c stu300_clktable[i].rate < clkrate) clkrate 490 drivers/i2c/busses/i2c-stu300.c "(%lu Hz).\n", i ? "high" : "low", clkrate); clkrate 498 drivers/i2c/busses/i2c-stu300.c "virtbase %p\n", clkrate, dev->speed, dev->virtbase); clkrate 502 drivers/i2c/busses/i2c-stu300.c val = ((clkrate/dev->speed) - 9)/3 + 1; clkrate 505 drivers/i2c/busses/i2c-stu300.c val = ((clkrate/dev->speed) - 7)/2 + 1; clkrate 510 drivers/i2c/busses/i2c-stu300.c clkrate); clkrate 517 drivers/i2c/busses/i2c-stu300.c clkrate); clkrate 546 drivers/i2c/busses/i2c-stu300.c unsigned long clkrate; clkrate 563 drivers/i2c/busses/i2c-stu300.c clkrate = clk_get_rate(dev->clk); clkrate 564 drivers/i2c/busses/i2c-stu300.c ret = stu300_set_clk(dev, clkrate); clkrate 162 drivers/media/rc/tango-ir.c u64 clkrate, clkdiv; clkrate 213 drivers/media/rc/tango-ir.c clkrate = clk_get_rate(ir->clk); clkrate 215 drivers/media/rc/tango-ir.c clkdiv = clkrate * NEC_TIME_BASE; clkrate 221 drivers/media/rc/tango-ir.c clkdiv = clkrate * RC5_TIME_BASE; clkrate 228 drivers/media/rc/tango-ir.c clkdiv = clkrate * RC6_TIME_BASE; clkrate 56 drivers/mmc/host/pxamci.c unsigned long clkrate; clkrate 175 drivers/mmc/host/pxamci.c clks = (unsigned long long)data->timeout_ns * host->clkrate; clkrate 446 drivers/mmc/host/pxamci.c unsigned long rate = host->clkrate; clkrate 665 drivers/mmc/host/pxamci.c host->clkrate = clk_get_rate(host->clk); clkrate 670 drivers/mmc/host/pxamci.c mmc->f_min = (host->clkrate + 63) / 64; clkrate 671 drivers/mmc/host/pxamci.c mmc->f_max = (mmc_has_26MHz()) ? 26000000 : host->clkrate; clkrate 234 drivers/mtd/nand/raw/lpc32xx_mlc.c uint32_t clkrate, tmp; clkrate 241 drivers/mtd/nand/raw/lpc32xx_mlc.c clkrate = clk_get_rate(host->clk); clkrate 242 drivers/mtd/nand/raw/lpc32xx_mlc.c if (clkrate == 0) clkrate 243 drivers/mtd/nand/raw/lpc32xx_mlc.c clkrate = 104000000; clkrate 259 drivers/mtd/nand/raw/lpc32xx_mlc.c tmp |= MLCTIMEREG_TCEA_DELAY(clkrate / host->ncfg->tcea_delay + 1); clkrate 260 drivers/mtd/nand/raw/lpc32xx_mlc.c tmp |= MLCTIMEREG_BUSY_DELAY(clkrate / host->ncfg->busy_delay + 1); clkrate 261 drivers/mtd/nand/raw/lpc32xx_mlc.c tmp |= MLCTIMEREG_NAND_TA(clkrate / host->ncfg->nand_ta + 1); clkrate 262 drivers/mtd/nand/raw/lpc32xx_mlc.c tmp |= MLCTIMEREG_RD_HIGH(clkrate / host->ncfg->rd_high + 1); clkrate 263 drivers/mtd/nand/raw/lpc32xx_mlc.c tmp |= MLCTIMEREG_RD_LOW(clkrate / host->ncfg->rd_low); clkrate 264 drivers/mtd/nand/raw/lpc32xx_mlc.c tmp |= MLCTIMEREG_WR_HIGH(clkrate / host->ncfg->wr_high + 1); clkrate 265 drivers/mtd/nand/raw/lpc32xx_mlc.c tmp |= MLCTIMEREG_WR_LOW(clkrate / host->ncfg->wr_low); clkrate 240 drivers/mtd/nand/raw/lpc32xx_slc.c uint32_t clkrate, tmp; clkrate 253 drivers/mtd/nand/raw/lpc32xx_slc.c clkrate = clk_get_rate(host->clk); clkrate 254 drivers/mtd/nand/raw/lpc32xx_slc.c if (clkrate == 0) clkrate 255 drivers/mtd/nand/raw/lpc32xx_slc.c clkrate = LPC32XX_DEF_BUS_RATE; clkrate 259 drivers/mtd/nand/raw/lpc32xx_slc.c SLCTAC_WWIDTH(clkrate, host->ncfg->wwidth) | clkrate 260 drivers/mtd/nand/raw/lpc32xx_slc.c SLCTAC_WHOLD(clkrate, host->ncfg->whold) | clkrate 261 drivers/mtd/nand/raw/lpc32xx_slc.c SLCTAC_WSETUP(clkrate, host->ncfg->wsetup) | clkrate 263 drivers/mtd/nand/raw/lpc32xx_slc.c SLCTAC_RWIDTH(clkrate, host->ncfg->rwidth) | clkrate 264 drivers/mtd/nand/raw/lpc32xx_slc.c SLCTAC_RHOLD(clkrate, host->ncfg->rhold) | clkrate 265 drivers/mtd/nand/raw/lpc32xx_slc.c SLCTAC_RSETUP(clkrate, host->ncfg->rsetup); clkrate 293 drivers/mtd/nand/raw/s3c2410.c unsigned long clkrate = clk_get_rate(info->clk); clkrate 299 drivers/mtd/nand/raw/s3c2410.c info->clk_rate = clkrate; clkrate 300 drivers/mtd/nand/raw/s3c2410.c clkrate /= 1000; /* turn clock into kHz for ease of use */ clkrate 303 drivers/mtd/nand/raw/s3c2410.c tacls = s3c_nand_calc_rate(plat->tacls, clkrate, tacls_max); clkrate 304 drivers/mtd/nand/raw/s3c2410.c twrph0 = s3c_nand_calc_rate(plat->twrph0, clkrate, 8); clkrate 305 drivers/mtd/nand/raw/s3c2410.c twrph1 = s3c_nand_calc_rate(plat->twrph1, clkrate, 8); clkrate 319 drivers/mtd/nand/raw/s3c2410.c tacls, to_ns(tacls, clkrate), twrph0, to_ns(twrph0, clkrate), clkrate 320 drivers/mtd/nand/raw/s3c2410.c twrph1, to_ns(twrph1, clkrate)); clkrate 84 drivers/mtd/spi-nor/hisi-sfc.c u32 clkrate; clkrate 155 drivers/mtd/spi-nor/hisi-sfc.c ret = clk_set_rate(host->clk, priv->clkrate); clkrate 352 drivers/mtd/spi-nor/hisi-sfc.c &priv->clkrate); clkrate 270 drivers/net/dsa/sja1105/sja1105_ptp.c s64 clkrate; clkrate 272 drivers/net/dsa/sja1105/sja1105_ptp.c clkrate = (s64)scaled_ppm * SJA1105_CC_MULT_NUM; clkrate 273 drivers/net/dsa/sja1105/sja1105_ptp.c clkrate = div_s64(clkrate, SJA1105_CC_MULT_DEM); clkrate 305 drivers/net/dsa/sja1105/sja1105_ptp.c priv->tstamp_cc.mult = SJA1105_CC_MULT + clkrate; clkrate 46 drivers/rtc/rtc-st-lpc.c unsigned long clkrate; clkrate 97 drivers/rtc/rtc-st-lpc.c do_div(lpt, rtc->clkrate); clkrate 111 drivers/rtc/rtc-st-lpc.c lpt = (unsigned long long)secs * rtc->clkrate; clkrate 169 drivers/rtc/rtc-st-lpc.c lpa = (unsigned long long)alarm_secs * rtc->clkrate; clkrate 242 drivers/rtc/rtc-st-lpc.c rtc->clkrate = clk_get_rate(rtc->clk); clkrate 243 drivers/rtc/rtc-st-lpc.c if (!rtc->clkrate) { clkrate 254 drivers/rtc/rtc-st-lpc.c do_div(rtc->rtc_dev->range_max, rtc->clkrate); clkrate 490 drivers/spi/spi-fsl-dspi.c unsigned long clkrate) clkrate 501 drivers/spi/spi-fsl-dspi.c scale_needed = clkrate / speed_hz; clkrate 502 drivers/spi/spi-fsl-dspi.c if (clkrate % speed_hz) clkrate 520 drivers/spi/spi-fsl-dspi.c speed_hz, clkrate); clkrate 527 drivers/spi/spi-fsl-dspi.c unsigned long clkrate) clkrate 534 drivers/spi/spi-fsl-dspi.c scale_needed = div_u64_rem((u64)delay_ns * clkrate, NSEC_PER_SEC, clkrate 554 drivers/spi/spi-fsl-dspi.c delay_ns, clkrate); clkrate 823 drivers/spi/spi-fsl-dspi.c unsigned long clkrate; clkrate 848 drivers/spi/spi-fsl-dspi.c clkrate = clk_get_rate(dspi->clk); clkrate 849 drivers/spi/spi-fsl-dspi.c hz_to_spi_baud(&pbr, &br, spi->max_speed_hz, clkrate); clkrate 852 drivers/spi/spi-fsl-dspi.c ns_delay_scale(&pcssck, &cssck, cs_sck_delay, clkrate); clkrate 855 drivers/spi/spi-fsl-dspi.c ns_delay_scale(&pasc, &asc, sck_cs_delay, clkrate); clkrate 222 drivers/spi/spi-npcm-fiu.c unsigned long clkrate; clkrate 232 drivers/spi/spi-npcm-fiu.c unsigned long clkrate; clkrate 541 drivers/spi/spi-npcm-fiu.c if (fiu->clkrate != chip->clkrate) { clkrate 542 drivers/spi/spi-npcm-fiu.c ret = clk_set_rate(fiu->clk, chip->clkrate); clkrate 545 drivers/spi/spi-npcm-fiu.c chip->clkrate, fiu->clkrate); clkrate 547 drivers/spi/spi-npcm-fiu.c fiu->clkrate = chip->clkrate; clkrate 652 drivers/spi/spi-npcm-fiu.c chip->clkrate = spi->max_speed_hz; clkrate 654 drivers/spi/spi-npcm-fiu.c fiu->clkrate = clk_get_rate(fiu->clk); clkrate 94 drivers/w1/masters/mxc_w1.c unsigned long clkrate; clkrate 111 drivers/w1/masters/mxc_w1.c clkrate = clk_get_rate(mdev->clk); clkrate 112 drivers/w1/masters/mxc_w1.c if (clkrate < 10000000) clkrate 116 drivers/w1/masters/mxc_w1.c clkdiv = DIV_ROUND_CLOSEST(clkrate, 1000000); clkrate 117 drivers/w1/masters/mxc_w1.c clkrate /= clkdiv; clkrate 118 drivers/w1/masters/mxc_w1.c if ((clkrate < 980000) || (clkrate > 1020000)) clkrate 120 drivers/w1/masters/mxc_w1.c "Incorrect time base frequency %lu Hz\n", clkrate); clkrate 47 drivers/watchdog/st_lpc_wdt.c unsigned long clkrate; clkrate 83 drivers/watchdog/st_lpc_wdt.c unsigned long clkrate = st_wdog->clkrate; clkrate 85 drivers/watchdog/st_lpc_wdt.c writel_relaxed(timeout * clkrate, st_wdog->base + LPC_LPA_LSB_OFF); clkrate 204 drivers/watchdog/st_lpc_wdt.c st_wdog->clkrate = clk_get_rate(st_wdog->clk); clkrate 206 drivers/watchdog/st_lpc_wdt.c if (!st_wdog->clkrate) { clkrate 210 drivers/watchdog/st_lpc_wdt.c st_wdog_dev.max_timeout = 0xFFFFFFFF / st_wdog->clkrate; clkrate 33 include/linux/platform_data/i2c-omap.h u32 clkrate; clkrate 680 sound/soc/fsl/fsl_ssi.c unsigned long clkrate, baudrate, tmprate; clkrate 723 sound/soc/fsl/fsl_ssi.c clkrate = clk_get_rate(ssi->baudclk); clkrate 725 sound/soc/fsl/fsl_ssi.c clkrate = clk_round_rate(ssi->baudclk, tmprate); clkrate 727 sound/soc/fsl/fsl_ssi.c clkrate /= factor; clkrate 728 sound/soc/fsl/fsl_ssi.c afreq = clkrate / (i + 1); clkrate 560 sound/soc/samsung/s3c-i2s-v2.c unsigned long clkrate = clk_get_rate(clk); clkrate 572 sound/soc/samsung/s3c-i2s-v2.c pr_debug("Input clock rate %ldHz\n", clkrate); clkrate 580 sound/soc/samsung/s3c-i2s-v2.c fsclk = clkrate / fsdiv; clkrate 589 sound/soc/samsung/s3c-i2s-v2.c actual = clkrate / (fsdiv * div);