Home
last modified time | relevance | path

Searched refs:clock_freq (Results 1 – 25 of 26) sorted by relevance

12

/openbmc/linux/drivers/spi/
H A Dspi-jcore.c41 unsigned int clock_freq; member
88 if (speed >= hw->clock_freq / 2) in jcore_spi_baudrate()
91 hw->speed_reg = ((hw->clock_freq / 2 / speed) - 1) << 27; in jcore_spi_baudrate()
147 u32 clock_freq; in jcore_spi_probe() local
187 clock_freq = 50000000; in jcore_spi_probe()
191 clock_freq = clk_get_rate(clk); in jcore_spi_probe()
196 hw->clock_freq = clock_freq; in jcore_spi_probe()
/openbmc/linux/drivers/input/misc/
H A Dsparcspkr.c28 u32 clock_freq; member
45 u32 val, clock_freq = info->clock_freq; in bbc_count_to_reg() local
51 if (count <= clock_freq >> 20) in bbc_count_to_reg()
54 if (count >= clock_freq >> 12) in bbc_count_to_reg()
60 if (count <= clock_freq >> i) in bbc_count_to_reg()
208 info->clock_freq = of_getintprop_default(dp, "clock-frequency", 0); in bbc_beep_probe()
210 if (!info->clock_freq) in bbc_beep_probe()
/openbmc/linux/drivers/nfc/fdp/
H A Di2c.c218 u8 *clock_type, u32 *clock_freq, in fdp_nci_i2c_read_device_properties() argument
230 r = device_property_read_u32(dev, FDP_DP_CLOCK_FREQ_NAME, clock_freq); in fdp_nci_i2c_read_device_properties()
233 *clock_freq = 26000; in fdp_nci_i2c_read_device_properties()
268 *clock_type, *clock_freq, *fw_vsc_cfg != NULL ? "yes" : "no"); in fdp_nci_i2c_read_device_properties()
284 u32 clock_freq; in fdp_nci_i2c_probe() local
328 fdp_nci_i2c_read_device_properties(dev, &clock_type, &clock_freq, in fdp_nci_i2c_probe()
334 clock_type, clock_freq, fw_vsc_cfg); in fdp_nci_i2c_probe()
H A Dfdp.c57 u32 clock_freq; member
120 u32 clock_freq) in fdp_nci_set_clock() argument
126 nd = (24 * fc) / clock_freq; in fdp_nci_set_clock()
127 delta = 24 * fc - nd * clock_freq; in fdp_nci_set_clock()
128 num = (32768 * delta) / clock_freq; in fdp_nci_set_clock()
547 r = fdp_nci_set_clock(ndev, info->clock_type, info->clock_freq); in fdp_nci_post_setup()
701 int tx_tailroom, u8 clock_type, u32 clock_freq, in fdp_nci_probe() argument
717 info->clock_freq = clock_freq; in fdp_nci_probe()
H A Dfdp.h26 u8 clock_type, u32 clock_freq, const u8 *fw_vsc_cfg);
/openbmc/qemu/util/
H A Dqemu-timer-common.c34 int64_t clock_freq; variable
45 clock_freq = freq.QuadPart; in init_get_clock()
/openbmc/linux/drivers/media/i2c/
H A Dwm8739.c49 u32 clock_freq; member
125 state->clock_freq = audiofreq; in wm8739_s_clock_freq()
153 v4l2_info(sd, "Frequency: %u Hz\n", state->clock_freq); in wm8739_log_status()
214 state->clock_freq = 48000; in wm8739_probe()
/openbmc/linux/drivers/watchdog/
H A Dmarvell_gti_wdt.c77 u32 clock_freq; member
164 timeout_wdog = (u64)priv->clock_freq * wdev->pretimeout; in gti_wdt_settimeout()
219 priv->clock_freq = clk_get_rate(priv->sclk); in gti_wdt_get_cntfrq()
220 if (!priv->clock_freq) in gti_wdt_get_cntfrq()
290 max_pretimeout = (max_pretimeout * 1024) / priv->clock_freq; in gti_wdt_probe()
/openbmc/linux/drivers/cpufreq/
H A Dspeedstep-centrino.c326 unsigned clock_freq; in get_cur_freq() local
329 clock_freq = extract_clock(l, cpu, 0); in get_cur_freq()
331 if (unlikely(clock_freq == 0)) { in get_cur_freq()
339 clock_freq = extract_clock(l, cpu, 1); in get_cur_freq()
341 return clock_freq; in get_cur_freq()
/openbmc/linux/drivers/scsi/
H A Dwd33c93.h215 uchar clock_freq; member
333 dma_setup_t setup, dma_stop_t stop, int clock_freq);
H A Dwd33c93.c1473 instance->this_id | hostdata->clock_freq); in reset_wd33c93()
1874 dma_setup_t setup, dma_stop_t stop, int clock_freq) in wd33c93_init() argument
1888 hostdata->clock_freq = set_clk_freq(clock_freq, &i); in wd33c93_init()
1931 hostdata->clock_freq = set_clk_freq(val, &val); in wd33c93_init()
1962 if (WD33C93_FS_16_20 == hostdata->clock_freq /* divisor 4 */ in wd33c93_init()
2085 hd->clock_freq, hd->no_sync, hd->no_dma, hd->dma_mode, hd->fast); in wd33c93_show_info()
/openbmc/linux/include/linux/
H A Di2c-algo-pca.h67 int clock_freq; member
/openbmc/qemu/hw/ppc/
H A Dppc440_bamboo.c65 uint32_t clock_freq = 400000000; in bamboo_load_device_tree() local
101 clock_freq); in bamboo_load_device_tree()
H A Dsam460ex.c142 uint32_t clock_freq = CPU_FREQ; in sam460ex_load_device_tree() local
179 clock_freq = kvmppc_get_clockfreq(); in sam460ex_load_device_tree()
183 clock_freq); in sam460ex_load_device_tree()
H A De500.c382 uint32_t clock_freq = PLATFORM_CLK_FREQ_HZ; in ppce500_load_device_tree() local
470 clock_freq = kvmppc_get_clockfreq(); in ppce500_load_device_tree()
506 qemu_fdt_setprop_cell(fdt, cpu_name, "clock-frequency", clock_freq); in ppce500_load_device_tree()
/openbmc/linux/include/sound/
H A Dad1816a.h127 unsigned int clock_freq; member
/openbmc/qemu/include/qemu/
H A Dtimer.h834 extern int64_t clock_freq;
840 return muldiv64(ti.QuadPart, NANOSECONDS_PER_SECOND, clock_freq); in get_clock()
/openbmc/linux/drivers/mmc/host/
H A Dushc.c110 int clock_freq; member
269 if (req->data && ushc->clock_freq < 6000000) { in ushc_request()
367 ushc->clock_freq = clk; in ushc_set_bus_freq()
/openbmc/linux/drivers/i2c/algos/
H A Di2c-algo-pca.c59 pca_set_con(adap, I2C_PCA_CON_ENSIO | adap->bus_settings.clock_freq); in pca_reset()
445 pca_data->bus_settings.clock_freq = clock; in pca_init()
/openbmc/linux/sound/isa/ad1816a/
H A Dad1816a_lib.c227 if (chip->clock_freq) in snd_ad1816a_playback_prepare()
228 rate = (rate * 33000) / chip->clock_freq; in snd_ad1816a_playback_prepare()
259 if (chip->clock_freq) in snd_ad1816a_capture_prepare()
260 rate = (rate * 33000) / chip->clock_freq; in snd_ad1816a_capture_prepare()
H A Dad1816a.c146 chip->clock_freq = clockfreq[dev]; in snd_card_ad1816a_probe()
/openbmc/linux/sound/soc/qcom/qdsp6/
H A Dq6prm.c138 req->clock_id.clock_freq = freq; in q6prm_request_lpass_clock()
H A Daudioreach.h612 uint32_t clock_freq; member
/openbmc/linux/drivers/net/can/flexcan/
H A Dflexcan-core.c2047 u32 clock_freq = 0; in flexcan_probe() local
2059 "clock-frequency", &clock_freq); in flexcan_probe()
2065 clock_freq = pdata->clock_frequency; in flexcan_probe()
2070 if (!clock_freq) { in flexcan_probe()
2082 clock_freq = clk_get_rate(clk_per); in flexcan_probe()
2150 priv->can.clock.freq = clock_freq; in flexcan_probe()
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A Dfiji_smumgr.c1662 uint32_t ro, efuse, efuse2, clock_freq, volt_without_cks, in fiji_populate_clock_stretcher_data_table() local
1788 clock_freq = PP_SMC_TO_HOST_UL( in fiji_populate_clock_stretcher_data_table()
1795 if (clock_freq >= in fiji_populate_clock_stretcher_data_table()
1798 if (clock_freq < in fiji_populate_clock_stretcher_data_table()

12