Home
last modified time | relevance | path

Searched refs:tb_freq (Results 1 – 11 of 11) sorted by relevance

/openbmc/qemu/hw/ppc/
H A Dppc.c513 return ns_to_tb(tb_env->tb_freq, vmclk) + tb_offset; in cpu_ppc_get_tb()
556 *tb_offsetp = value - ns_to_tb(tb_env->tb_freq, vmclk); in cpu_ppc_store_tb()
680 if (tb_env->tb_freq != 0) { in cpu_ppc_tb_stop()
691 tb_env->tb_freq = 0; in cpu_ppc_tb_stop()
702 if (tb_env->tb_freq == 0) { in cpu_ppc_tb_start()
709 tb_env->tb_freq = tb_env->decr_freq; in cpu_ppc_tb_start()
1020 freq = first_ppc_cpu->env.tb_env->tb_freq; in timebase_load()
1109 tb_env->tb_freq = freq; in cpu_ppc_tb_init()
1210 next = now + tb_to_ns_round_up(tb_env->tb_freq, next); in cpu_4xx_fit_cb()
1382 tb_env->tb_freq = freq; in ppc_40x_set_tb_clk()
[all …]
H A Dppc440_bamboo.c64 uint32_t tb_freq = 400000000; in bamboo_load_device_tree() local
103 tb_freq); in bamboo_load_device_tree()
H A Dsam460ex.c141 uint32_t tb_freq = CPU_FREQ; in sam460ex_load_device_tree() local
178 tb_freq = kvmppc_get_tbfreq(); in sam460ex_load_device_tree()
185 tb_freq); in sam460ex_load_device_tree()
H A Dppc_booke.c166 *next = now + muldiv64(ticks, NANOSECONDS_PER_SECOND, tb_env->tb_freq); in booke_update_fixed_timer()
346 tb_env->tb_freq = freq; in ppc_booke_timers_init()
H A Dppc405.h117 uint32_t tb_freq; member
H A De500.c383 uint32_t tb_freq = PLATFORM_CLK_FREQ_HZ; in ppce500_load_device_tree() local
471 tb_freq = kvmppc_get_tbfreq(); in ppce500_load_device_tree()
507 qemu_fdt_setprop_cell(fdt, cpu_name, "timebase-frequency", tb_freq); in ppce500_load_device_tree()
H A Dppc405_uc.c567 gpt->tb_freq, NANOSECONDS_PER_SECOND); in ppc4xx_gpt_read()
619 gpt->tb_offset = muldiv64(value, NANOSECONDS_PER_SECOND, gpt->tb_freq) in ppc4xx_gpt_write()
H A Dpegasos2.c1016 cpu->env.tb_env->tb_freq); in build_fdt()
/openbmc/linux/arch/powerpc/platforms/ps3/
H A Dplatform.h214 int __init ps3_repository_read_tb_freq(u64 node_id, u64 *tb_freq);
215 int __init ps3_repository_read_be_tb_freq(unsigned int be_index, u64 *tb_freq);
H A Drepository.c1008 int __init ps3_repository_read_tb_freq(u64 node_id, u64 *tb_freq) in ps3_repository_read_tb_freq() argument
1015 tb_freq, NULL); in ps3_repository_read_tb_freq()
1018 int __init ps3_repository_read_be_tb_freq(unsigned int be_index, u64 *tb_freq) in ps3_repository_read_be_tb_freq() argument
1023 *tb_freq = 0; in ps3_repository_read_be_tb_freq()
1026 : ps3_repository_read_tb_freq(node_id, tb_freq); in ps3_repository_read_be_tb_freq()
/openbmc/qemu/include/hw/ppc/
H A Dppc.h29 uint32_t tb_freq; /* TB frequency */ member