Lines Matching defs:cclocks
11807 u32 cclocks;
11810 cclocks = (ns * 1000) / FPGA_CCLOCK_PS;
11812 cclocks = (ns * 1000) / ASIC_CCLOCK_PS;
11813 if (ns && !cclocks) /* if ns nonzero, must be at least 1 */
11814 cclocks = 1;
11815 return cclocks;
11820 * the cclock, a non-zero cclocks will always have a non-zero result.
11822 u32 cclock_to_ns(struct hfi1_devdata *dd, u32 cclocks)
11827 ns = (cclocks * FPGA_CCLOCK_PS) / 1000;
11829 ns = (cclocks * ASIC_CCLOCK_PS) / 1000;
11830 if (cclocks && !ns)
15170 * Convert the ns parameter to the 64 * cclocks used in the CSR.