Lines Matching defs:cclocks
11768 u32 cclocks;
11771 cclocks = (ns * 1000) / FPGA_CCLOCK_PS;
11773 cclocks = (ns * 1000) / ASIC_CCLOCK_PS;
11774 if (ns && !cclocks) /* if ns nonzero, must be at least 1 */
11775 cclocks = 1;
11776 return cclocks;
11781 * the cclock, a non-zero cclocks will always have a non-zero result.
11783 u32 cclock_to_ns(struct hfi1_devdata *dd, u32 cclocks)
11788 ns = (cclocks * FPGA_CCLOCK_PS) / 1000;
11790 ns = (cclocks * ASIC_CCLOCK_PS) / 1000;
11791 if (cclocks && !ns)
15131 * Convert the ns parameter to the 64 * cclocks used in the CSR.