Lines Matching +full:data +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>
97 * can operate as a full duplex (both Tx and Rx data paths
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()
143 * can operate as a full duplex (both Tx and Rx data paths
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()
188 * can operate as a full duplex (both Tx and Rx data paths
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()
303 * can operate as a full duplex (both Tx and Rx data paths
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()
422 * can operate as a full duplex (both Tx and Rx data paths
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()
500 * can operate as a full duplex (both Tx and Rx data paths
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()
564 * Callback to perform calendar data synchronization
569 * can operate as a full duplex (both Tx and Rx data paths
570 * active) or as a halfplex (either the Tx data path is
571 * active or the Rx data path is active, but not both).
572 * @timeout: Timeout to wait for calendar data in seconds
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()
581 /* SRX0 interface should be good, send calendar data */ in cvmx_spi_calendar_sync_cb()
584 ("SPI%d: Rx is synchronized, start sending calendar data\n", in cvmx_spi_calendar_sync_cb()
594 /* The corespondant board should be sending calendar data */ 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()
626 * can operate as a full duplex (both Tx and Rx data paths
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()