Searched refs:cvmx_clock_get_count (Results 1 - 6 of 6) sorted by relevance

/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-clock.h86 static inline uint64_t cvmx_clock_get_count(cvmx_clock_t clock) function
129 cvmx_dprintf("cvmx_clock_get_count: Unknown clock type\n");
H A Dcvmx-utils.h117 uint64_t done = cvmx_clock_get_count(CVMX_CLOCK_CORE) + (uint64_t)timeout_usec * \
126 } else if (cvmx_clock_get_count(CVMX_CLOCK_CORE) > done) { \
H A Dcvmx-tim.h212 const uint64_t cycles = cvmx_clock_get_count(CVMX_CLOCK_TIM); /* Get our reference time early for accuracy */
314 const uint64_t cycles = cvmx_clock_get_count(CVMX_CLOCK_TIM);
H A Dcvmx-access-native.h601 * cvmx_clock_get_count(CVMX_CLOCK_CORE) to get cycle counter.
607 return cvmx_clock_get_count(CVMX_CLOCK_CORE);
616 * cvmx_clock_get_count(CVMX_CLOCK_SCLK) instead. For Octeon2, the clock rate
623 return cvmx_clock_get_count(CVMX_CLOCK_IPD);
665 uint64_t done = cvmx_clock_get_count(CVMX_CLOCK_SCLK) + cycles;
667 while (cvmx_clock_get_count(CVMX_CLOCK_SCLK) < done)
H A Dcvmx-srio.c812 stop_cycle = cvmx_clock_get_rate(CVMX_CLOCK_CORE)/4 + cvmx_clock_get_count(CVMX_CLOCK_CORE);
818 } while (!sriomaintx_port_0_err_stat.s.pt_ok && (cvmx_clock_get_count(CVMX_CLOCK_CORE) < stop_cycle));
833 stop_cycle = cvmx_clock_get_rate(CVMX_CLOCK_CORE)/8 + cvmx_clock_get_count(CVMX_CLOCK_CORE);
838 } while (!link_resp.s.valid && (cvmx_clock_get_count(CVMX_CLOCK_CORE) < stop_cycle));
960 stop_cycle = cvmx_clock_get_rate(CVMX_CLOCK_CORE)/10 + cvmx_clock_get_count(CVMX_CLOCK_CORE);
964 if ((return_code == 0) && (cvmx_clock_get_count(CVMX_CLOCK_CORE) > stop_cycle))
1160 stop_cycle = cvmx_clock_get_rate(CVMX_CLOCK_CORE)/10 + cvmx_clock_get_count(CVMX_CLOCK_CORE);
1164 if ((return_code == 0) && (cvmx_clock_get_count(CVMX_CLOCK_CORE) > stop_cycle))
H A Dcvmx-tim.c248 cvmx_tim.start_time = cvmx_clock_get_count(CVMX_CLOCK_TIM);

Completed in 73 milliseconds