Searched refs:cclocks (Results 1 – 1 of 1) sorted by relevance
11766 u32 cclocks; in ns_to_cclock() local11769 cclocks = (ns * 1000) / FPGA_CCLOCK_PS; in ns_to_cclock()11771 cclocks = (ns * 1000) / ASIC_CCLOCK_PS; in ns_to_cclock()11772 if (ns && !cclocks) /* if ns nonzero, must be at least 1 */ in ns_to_cclock()11773 cclocks = 1; in ns_to_cclock()11774 return cclocks; in ns_to_cclock()11781 u32 cclock_to_ns(struct hfi1_devdata *dd, u32 cclocks) in cclock_to_ns() argument11786 ns = (cclocks * FPGA_CCLOCK_PS) / 1000; in cclock_to_ns()11788 ns = (cclocks * ASIC_CCLOCK_PS) / 1000; in cclock_to_ns()11789 if (cclocks && !ns) in cclock_to_ns()