Home
last modified time | relevance | path

Searched refs:hwclock (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/cpufreq/
H A Dpmac64-cpufreq.c481 struct device_node *cpuid = NULL, *hwclock = NULL; in g5_pm72_cpufreq_init() local
500 /* Lookup the i2c hwclock */ in g5_pm72_cpufreq_init()
501 for_each_node_by_name(hwclock, "i2c-hwclock") { in g5_pm72_cpufreq_init()
502 const char *loc = of_get_property(hwclock, in g5_pm72_cpufreq_init()
508 if (!of_get_property(hwclock, "platform-get-frequency", NULL)) in g5_pm72_cpufreq_init()
512 if (hwclock == NULL) { in g5_pm72_cpufreq_init()
518 DBG("cpufreq: i2c clock chip found: %pOF\n", hwclock); in g5_pm72_cpufreq_init()
522 pmf_find_function(hwclock, "get-frequency"); in g5_pm72_cpufreq_init()
524 pmf_find_function(hwclock, "se in g5_pm72_cpufreq_init()
[all...]
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dpmac64-cpufreq.c481 struct device_node *cpuid = NULL, *hwclock = NULL; in g5_pm72_cpufreq_init() local
500 /* Lookup the i2c hwclock */ in g5_pm72_cpufreq_init()
501 for_each_node_by_name(hwclock, "i2c-hwclock") { in g5_pm72_cpufreq_init()
502 const char *loc = of_get_property(hwclock, in g5_pm72_cpufreq_init()
508 if (!of_get_property(hwclock, "platform-get-frequency", NULL)) in g5_pm72_cpufreq_init()
512 if (hwclock == NULL) { in g5_pm72_cpufreq_init()
518 DBG("cpufreq: i2c clock chip found: %pOF\n", hwclock); in g5_pm72_cpufreq_init()
522 pmf_find_function(hwclock, "get-frequency"); in g5_pm72_cpufreq_init()
524 pmf_find_function(hwclock, "se in g5_pm72_cpufreq_init()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/
H A Dtg3.c6348 static void tg3_hwclock_to_timestamp(struct tg3 *tp, u64 hwclock, in tg3_hwclock_to_timestamp() argument
6352 timestamp->hwtstamp = ns_to_ktime((hwclock & TG3_TSTAMP_MASK) + in tg3_hwclock_to_timestamp()
6574 u64 hwclock = tr32(TG3_TX_TSTAMP_LSB); in tg3_tx() local
6575 hwclock |= (u64)tr32(TG3_TX_TSTAMP_MSB) << 32; in tg3_tx()
6577 tg3_hwclock_to_timestamp(tp, hwclock, &timestamp); in tg3_tx()
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/
H A Dtg3.c6333 static void tg3_hwclock_to_timestamp(struct tg3 *tp, u64 hwclock, in tg3_hwclock_to_timestamp() argument
6337 timestamp->hwtstamp = ns_to_ktime((hwclock & TG3_TSTAMP_MASK) + in tg3_hwclock_to_timestamp()
6559 u64 hwclock = tr32(TG3_TX_TSTAMP_LSB); in tg3_tx() local
6560 hwclock |= (u64)tr32(TG3_TX_TSTAMP_MSB) << 32; in tg3_tx()
6562 tg3_hwclock_to_timestamp(tp, hwclock, &timestamp); in tg3_tx()

Completed in 36 milliseconds