Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/infiniband/hw/hfi1/
Dchip.c11768 u32 cclocks; in ns_to_cclock() local
11771 cclocks = (ns * 1000) / FPGA_CCLOCK_PS; in ns_to_cclock()
11773 cclocks = (ns * 1000) / ASIC_CCLOCK_PS; in ns_to_cclock()
11774 if (ns && !cclocks) /* if ns nonzero, must be at least 1 */ in ns_to_cclock()
11775 cclocks = 1; in ns_to_cclock()
11776 return cclocks; in ns_to_cclock()
11783 u32 cclock_to_ns(struct hfi1_devdata *dd, u32 cclocks) in cclock_to_ns() argument
11788 ns = (cclocks * FPGA_CCLOCK_PS) / 1000; in cclock_to_ns()
11790 ns = (cclocks * ASIC_CCLOCK_PS) / 1000; in cclock_to_ns()
11791 if (cclocks && !ns) in cclock_to_ns()