/openbmc/linux/drivers/spi/ |
H A D | spi-jcore.c | 41 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 D | sparcspkr.c | 28 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 D | i2c.c | 218 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 D | fdp.c | 57 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 D | fdp.h | 26 u8 clock_type, u32 clock_freq, const u8 *fw_vsc_cfg);
|
/openbmc/qemu/util/ |
H A D | qemu-timer-common.c | 34 int64_t clock_freq; variable 45 clock_freq = freq.QuadPart; in init_get_clock()
|
/openbmc/linux/drivers/media/i2c/ |
H A D | wm8739.c | 49 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 D | marvell_gti_wdt.c | 77 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 D | speedstep-centrino.c | 326 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 D | wd33c93.h | 215 uchar clock_freq; member 333 dma_setup_t setup, dma_stop_t stop, int clock_freq);
|
H A D | wd33c93.c | 1473 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 D | i2c-algo-pca.h | 67 int clock_freq; member
|
/openbmc/qemu/hw/ppc/ |
H A D | ppc440_bamboo.c | 65 uint32_t clock_freq = 400000000; in bamboo_load_device_tree() local 101 clock_freq); in bamboo_load_device_tree()
|
H A D | sam460ex.c | 142 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 D | e500.c | 382 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 D | ad1816a.h | 127 unsigned int clock_freq; member
|
/openbmc/qemu/include/qemu/ |
H A D | timer.h | 834 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 D | ushc.c | 110 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 D | i2c-algo-pca.c | 59 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 D | ad1816a_lib.c | 227 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 D | ad1816a.c | 146 chip->clock_freq = clockfreq[dev]; in snd_card_ad1816a_probe()
|
/openbmc/linux/sound/soc/qcom/qdsp6/ |
H A D | q6prm.c | 138 req->clock_id.clock_freq = freq; in q6prm_request_lpass_clock()
|
H A D | audioreach.h | 612 uint32_t clock_freq; member
|
/openbmc/linux/drivers/net/can/flexcan/ |
H A D | flexcan-core.c | 2047 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 D | fiji_smumgr.c | 1662 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()
|