Lines Matching +full:sync +full:- +full:active

7  * Copyright (c) 2003-2008 Cavium Networks
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
34 #include <asm/octeon/cvmx-config.h>
36 #include <asm/octeon/cvmx-pko.h>
37 #include <asm/octeon/cvmx-spi.h>
39 #include <asm/octeon/cvmx-spxx-defs.h>
40 #include <asm/octeon/cvmx-stxx-defs.h>
41 #include <asm/octeon/cvmx-srxx-defs.h>
98 * active) or as a halfplex (either the Tx data path is
99 * active or the Rx data path is active, but not both).
108 int res = -1; in cvmx_spi_start_interface()
126 /* Callback to perform calendar sync */ in cvmx_spi_start_interface()
144 * active) or as a halfplex (either the Tx data path is
145 * active or the Rx data path is active, but not both).
152 int res = -1; in cvmx_spi_restart_interface()
171 /* Callback to perform calendar sync */ in cvmx_spi_restart_interface()
189 * active) or as a halfplex (either the Tx data path is
190 * active or the Rx data path is active, but not both).
192 * Returns Zero on success, non-zero error code on failure (will cause
204 uint64_t MS = cvmx_sysinfo_get()->cpu_clock_hz / 1000; in cvmx_spi_reset_cb()
304 * active) or as a halfplex (either the Tx data path is
305 * active or the Rx data path is active, but not both).
308 * Returns Zero on success, non-zero error code on failure (will cause
322 srxx_com_ctl.s.prts = num_ports - 1; in cvmx_spi_calendar_setup_cb()
423 * active) or as a halfplex (either the Tx data path is
424 * active or the Rx data path is active, but not both).
427 * Returns Zero on success, non-zero error code on failure (will cause
435 uint64_t MS = cvmx_sysinfo_get()->cpu_clock_hz / 1000; in cvmx_spi_clock_detect_cb()
455 clock_transitions--; in cvmx_spi_clock_detect_cb()
462 return -1; in cvmx_spi_clock_detect_cb()
480 clock_transitions--; in cvmx_spi_clock_detect_cb()
487 return -1; in cvmx_spi_clock_detect_cb()
501 * active) or as a halfplex (either the Tx data path is
502 * active or the Rx data path is active, but not both).
505 * Returns Zero on success, non-zero error code on failure (will cause
512 uint64_t MS = cvmx_sysinfo_get()->cpu_clock_hz / 1000; in cvmx_spi_training_cb()
516 /* SRX0 & STX0 Inf0 Links are configured - begin training */ in cvmx_spi_training_cb()
550 rx_training_needed--; in cvmx_spi_training_cb()
556 return -1; in cvmx_spi_training_cb()
570 * active) or as a halfplex (either the Tx data path is
571 * active or the Rx data path is active, but not both).
574 * Returns Zero on success, non-zero error code on failure (will cause
579 uint64_t MS = cvmx_sysinfo_get()->cpu_clock_hz / 1000; in cvmx_spi_calendar_sync_cb()
593 /* STX0 has achieved sync */ in cvmx_spi_calendar_sync_cb()
603 /* Waiting for calendar sync on STX0 STAT */ in cvmx_spi_calendar_sync_cb()
604 cvmx_dprintf("SPI%d: Waiting to sync on STX[%d] STAT\n", in cvmx_spi_calendar_sync_cb()
607 /* SPX0_CLK_STAT - SPX0_CLK_STAT[STXCAL] should be 1 (bit10) */ in cvmx_spi_calendar_sync_cb()
612 return -1; in cvmx_spi_calendar_sync_cb()
627 * active) or as a halfplex (either the Tx data path is
628 * active or the Rx data path is active, but not both).
630 * Returns Zero on success, non-zero error code on failure (will cause
660 gmxx_rxx_frm_max.s.len = 64 * 1024 - 4; in cvmx_spi_interface_up_cb()
664 gmxx_rxx_jabber.s.cnt = 64 * 1024 - 4; in cvmx_spi_interface_up_cb()