/drivers/pwm/ |
D | pwm-atmel-hlcdc.c | 60 unsigned long clk_freq; in atmel_hlcdc_pwm_config() local 66 clk_freq = clk_get_rate(new_clk); in atmel_hlcdc_pwm_config() 67 if (!clk_freq) in atmel_hlcdc_pwm_config() 71 do_div(clk_period_ns, clk_freq); in atmel_hlcdc_pwm_config() 78 clk_freq = clk_get_rate(new_clk); in atmel_hlcdc_pwm_config() 79 if (!clk_freq) in atmel_hlcdc_pwm_config() 83 do_div(clk_period_ns, clk_freq); in atmel_hlcdc_pwm_config()
|
/drivers/i2c/busses/ |
D | i2c-designware-platdrv.c | 142 u32 clk_freq, ht = 0; in dw_i2c_plat_probe() local 162 clk_freq = 400000; in dw_i2c_plat_probe() 178 &clk_freq); in dw_i2c_plat_probe() 183 if (clk_freq != 100000 && clk_freq != 400000) { in dw_i2c_plat_probe() 190 clk_freq = pdata->i2c_scl_freq; in dw_i2c_plat_probe() 204 if (clk_freq == 100000) in dw_i2c_plat_probe()
|
D | i2c-sun6i-p2wi.c | 189 u32 clk_freq = 100000; in p2wi_probe() local 197 of_property_read_u32(np, "clock-frequency", &clk_freq); in p2wi_probe() 198 if (clk_freq > P2WI_MAX_FREQ) { in p2wi_probe() 201 clk_freq); in p2wi_probe() 291 clk_div = parent_clk_freq / clk_freq; in p2wi_probe()
|
D | i2c-qup.c | 563 u32 clk_freq = 100000; in qup_i2c_probe() local 573 of_property_read_u32(node, "clock-frequency", &clk_freq); in qup_i2c_probe() 576 if (!clk_freq || clk_freq > 400000) { in qup_i2c_probe() 578 clk_freq); in qup_i2c_probe() 654 fs_div = ((src_clk_freq / clk_freq) / 2) - 3; in qup_i2c_probe() 662 one_bit_t = (USEC_PER_SEC / clk_freq) + 1; in qup_i2c_probe()
|
D | i2c-nomadik.c | 179 u32 clk_freq; member 402 div = (dev->clk_freq > 100000) ? 3 : 2; in setup_i2c_controller() 412 brcr2 = (i2c_clk/(dev->clk_freq * div)) & 0xffff; in setup_i2c_controller() 954 if (of_property_read_u32(np, "clock-frequency", &nmk->clk_freq)) in nmk_i2c_of_probe() 955 nmk->clk_freq = 100000; in nmk_i2c_of_probe() 958 if (nmk->clk_freq <= 100000) in nmk_i2c_of_probe()
|
D | i2c-jz4780.c | 704 unsigned int clk_freq = 0; in jz4780_i2c_probe() local 740 &clk_freq); in jz4780_i2c_probe() 746 i2c->speed = clk_freq / 1000; in jz4780_i2c_probe()
|
/drivers/hwmon/ |
D | g762.c | 139 u32 clk_freq; member 183 static inline unsigned int rpm_from_cnt(u8 cnt, u32 clk_freq, u16 p, in rpm_from_cnt() argument 189 return (clk_freq * 30 * gear_mult) / ((cnt ? cnt : 1) * p * clk_div); in rpm_from_cnt() 196 static inline unsigned char cnt_from_rpm(unsigned long rpm, u32 clk_freq, u16 p, in cnt_from_rpm() argument 199 unsigned long f1 = clk_freq * 30 * gear_mult; in cnt_from_rpm() 279 data->clk_freq = val; in do_set_clk_freq() 525 data->set_cnt = cnt_from_rpm(val, data->clk_freq, in do_set_fan_target() 600 unsigned long clk_freq; in g762_of_clock_enable() local 619 clk_freq = clk_get_rate(clk); in g762_of_clock_enable() 620 ret = do_set_clk_freq(&client->dev, clk_freq); in g762_of_clock_enable() [all …]
|
/drivers/net/wireless/ti/wl18xx/ |
D | main.c | 714 u16 clk_freq; in wl18xx_set_clk() local 723 ret = wl18xx_top_reg_read(wl, PRIMARY_CLK_DETECT, &clk_freq); in wl18xx_set_clk() 727 wl1271_debug(DEBUG_BOOT, "clock freq %d (%d, %d, %d, %d, %s)", clk_freq, in wl18xx_set_clk() 728 wl18xx_clk_table[clk_freq].n, wl18xx_clk_table[clk_freq].m, in wl18xx_set_clk() 729 wl18xx_clk_table[clk_freq].p, wl18xx_clk_table[clk_freq].q, in wl18xx_set_clk() 730 wl18xx_clk_table[clk_freq].swallow ? "swallow" : "spit"); in wl18xx_set_clk() 734 wl18xx_clk_table_coex[clk_freq].n); in wl18xx_set_clk() 739 wl18xx_clk_table_coex[clk_freq].m); in wl18xx_set_clk() 750 wl18xx_clk_table[clk_freq].n); in wl18xx_set_clk() 755 wl18xx_clk_table[clk_freq].m); in wl18xx_set_clk() [all …]
|
/drivers/spi/ |
D | spi-pl022.c | 1731 ssp_clock_params * clk_freq) in calculate_effective_freq() argument 1795 clk_freq->cpsdvsr = (u8) (best_cpsdvsr & 0xFF); in calculate_effective_freq() 1796 clk_freq->scr = (u8) (best_scr & 0xFF); in calculate_effective_freq() 1801 clk_freq->cpsdvsr, clk_freq->scr); in calculate_effective_freq() 1840 struct ssp_clock_params clk_freq = { .cpsdvsr = 0, .scr = 0}; in pl022_setup() local 1899 if ((0 == chip_info->clk_freq.cpsdvsr) in pl022_setup() 1900 && (0 == chip_info->clk_freq.scr)) { in pl022_setup() 1903 &clk_freq); in pl022_setup() 1907 memcpy(&clk_freq, &chip_info->clk_freq, sizeof(clk_freq)); in pl022_setup() 1908 if ((clk_freq.cpsdvsr % 2) != 0) in pl022_setup() [all …]
|
D | spi-mxs.c | 463 int devid, clk_freq; in mxs_spi_probe() local 488 &clk_freq); in mxs_spi_probe() 490 clk_freq = clk_freq_default; in mxs_spi_probe() 528 clk_set_rate(ssp->clk, clk_freq); in mxs_spi_probe()
|
/drivers/bus/ |
D | sunxi-rsb.c | 630 u32 clk_delay, clk_freq = 3000000; in sunxi_rsb_probe() local 634 of_property_read_u32(np, "clock-frequency", &clk_freq); in sunxi_rsb_probe() 635 if (clk_freq > RSB_MAX_FREQ) { in sunxi_rsb_probe() 638 clk_freq); in sunxi_rsb_probe() 702 clk_div = p_clk_freq / clk_freq / 2; in sunxi_rsb_probe()
|
/drivers/media/pci/cx25821/ |
D | cx25821-cards.c | 38 .clk_freq = 0,
|
D | cx25821.h | 152 u32 clk_freq; member 254 u32 clk_freq; member
|
D | cx25821-core.c | 886 dev->clk_freq = 28000000; in cx25821_dev_setup()
|
/drivers/scsi/ |
D | mac53c94.c | 48 int clk_freq; member 133 writeb(CLKF_VAL(state->clk_freq), ®s->clk_factor); in mac53c94_init() 460 state->clk_freq = 25000000; in mac53c94_probe() 462 state->clk_freq = *(int *)clkprop; in mac53c94_probe()
|
D | mesh.c | 171 int clk_freq; member 657 v = (ms->clk_freq / 5000) * period; in set_sdtr() 662 tr = (ms->clk_freq + 250000) / 500000; in set_sdtr() 668 tr = ((ms->clk_freq / (v + 2)) + 199999) / 200000; in set_sdtr() 1943 ms->clk_freq = *cfp; in mesh_probe() 1946 ms->clk_freq = 50000000; in mesh_probe() 1952 minper = 1000000000 / (ms->clk_freq / 5); /* ns */ in mesh_probe()
|
/drivers/media/pci/cobalt/ |
D | m00473_freewheel_memmap_package.h | 33 uint32_t clk_freq; /* Reg 0x0018 */ member
|
D | cobalt-v4l2.c | 305 u32 clk_freq; in cobalt_start_streaming() local 329 clk_freq = ioread32(&fw->clk_freq); in cobalt_start_streaming() 330 iowrite32(clk_freq / 1000000, &clkloss->ref_clk_cnt_val); in cobalt_start_streaming() 337 iowrite32(div_u64((u64)clk_freq * tot_size, bt->pixelclock), in cobalt_start_streaming()
|
/drivers/mmc/host/ |
D | tifm_sd.c | 98 unsigned int clk_freq; member 603 ((1000000000UL / host->clk_freq) * host->clk_div); in tifm_sd_set_data_timeout() 834 host->clk_freq = 20000000; in tifm_sd_ios() 840 host->clk_freq = 24000000; in tifm_sd_ios() 893 host->clk_freq = 20000000; in tifm_sd_initialize_host()
|
/drivers/media/pci/cx23885/ |
D | cx23885.h | 216 u32 clk_freq; member 369 u32 clk_freq; member
|
D | cx23885-core.c | 844 dev->clk_freq = 25000000; in cx23885_dev_setup() 850 dev->clk_freq = 28000000; in cx23885_dev_setup() 872 if (cx23885_boards[dev->board].clk_freq > 0) in cx23885_dev_setup() 873 dev->clk_freq = cx23885_boards[dev->board].clk_freq; in cx23885_dev_setup() 882 dev->clk_freq = 25000000; in cx23885_dev_setup()
|
D | cx23885-cards.c | 57 .clk_freq = 0, 2129 &dev->clk_freq); in cx23885_card_setup()
|
/drivers/media/platform/exynos4-is/ |
D | fimc-core.c | 878 static int fimc_parse_dt(struct fimc_dev *fimc, u32 *clk_freq) in fimc_parse_dt() argument 929 of_property_read_u32(node, "clock-frequency", clk_freq); in fimc_parse_dt()
|
/drivers/media/i2c/cx25840/ |
D | cx25840-core.c | 470 u32 clk_freq = 0; in cx23885_initialize() local 475 clk_freq = *((u32 *)v4l2_get_subdev_hostdata(&state->sd)); in cx23885_initialize() 512 if (clk_freq == 25000000) { in cx23885_initialize() 561 if (clk_freq == 25000000) { in cx23885_initialize()
|