Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/octeon-sdk/
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 fo… in cvmx_tim_add_entry()
314 const uint64_t cycles = cvmx_clock_get_count(CVMX_CLOCK_TIM); in cvmx_tim_delete_entry()
H A Dcvmx-access-native.h607 return cvmx_clock_get_count(CVMX_CLOCK_CORE); in cvmx_get_cycle()
623 return cvmx_clock_get_count(CVMX_CLOCK_IPD); in cvmx_get_cycle_global()
665 uint64_t done = cvmx_clock_get_count(CVMX_CLOCK_SCLK) + cycles; in cvmx_wait_io()
667 while (cvmx_clock_get_count(CVMX_CLOCK_SCLK) < done) in cvmx_wait_io()
H A Dcvmx-clock.h86 static inline uint64_t cvmx_clock_get_count(cvmx_clock_t clock) in cvmx_clock_get_count() function
H A Dcvmx-srio.c812 stop_cycle = cvmx_clock_get_rate(CVMX_CLOCK_CORE)/4 + cvmx_clock_get_count(CVMX_CLOCK_CORE); in cvmx_srio_initialize()
818 …} while (!sriomaintx_port_0_err_stat.s.pt_ok && (cvmx_clock_get_count(CVMX_CLOCK_CORE) < stop_cycl… in cvmx_srio_initialize()
833 … stop_cycle = cvmx_clock_get_rate(CVMX_CLOCK_CORE)/8 + cvmx_clock_get_count(CVMX_CLOCK_CORE); in cvmx_srio_initialize()
838 } while (!link_resp.s.valid && (cvmx_clock_get_count(CVMX_CLOCK_CORE) < stop_cycle)); in cvmx_srio_initialize()
960 … stop_cycle = cvmx_clock_get_rate(CVMX_CLOCK_CORE)/10 + cvmx_clock_get_count(CVMX_CLOCK_CORE); in cvmx_srio_config_read32()
964 if ((return_code == 0) && (cvmx_clock_get_count(CVMX_CLOCK_CORE) > stop_cycle)) in cvmx_srio_config_read32()
1160 … stop_cycle = cvmx_clock_get_rate(CVMX_CLOCK_CORE)/10 + cvmx_clock_get_count(CVMX_CLOCK_CORE); in cvmx_srio_config_write32()
1164 if ((return_code == 0) && (cvmx_clock_get_count(CVMX_CLOCK_CORE) > stop_cycle)) in cvmx_srio_config_write32()
H A Dcvmx-tim.c248 cvmx_tim.start_time = cvmx_clock_get_count(CVMX_CLOCK_TIM); in cvmx_tim_start()