Lines Matching defs:mode
96 * @mode: The operating mode for the SPI interface. The interface
105 int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout,
114 INVOKE_CB(cvmx_spi_callbacks.reset_cb, interface, mode);
117 INVOKE_CB(cvmx_spi_callbacks.calendar_setup_cb, interface, mode,
121 INVOKE_CB(cvmx_spi_callbacks.clock_detect_cb, interface, mode, timeout);
124 INVOKE_CB(cvmx_spi_callbacks.training_cb, interface, mode, timeout);
127 INVOKE_CB(cvmx_spi_callbacks.calendar_sync_cb, interface, mode,
131 INVOKE_CB(cvmx_spi_callbacks.interface_up_cb, interface, mode);
142 * @mode: The operating mode for the SPI interface. The interface
150 int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout)
157 cvmx_dprintf("SPI%d: Restart %s\n", interface, modes[mode]);
160 INVOKE_CB(cvmx_spi_callbacks.reset_cb, interface, mode);
166 INVOKE_CB(cvmx_spi_callbacks.clock_detect_cb, interface, mode, timeout);
169 INVOKE_CB(cvmx_spi_callbacks.training_cb, interface, mode, timeout);
172 INVOKE_CB(cvmx_spi_callbacks.calendar_sync_cb, interface, mode,
176 INVOKE_CB(cvmx_spi_callbacks.interface_up_cb, interface, mode);
187 * @mode: The operating mode for the SPI interface. The interface
195 int cvmx_spi_reset_cb(int interface, cvmx_spi_mode_t mode)
302 * @mode: The operating mode for the SPI interface. The interface
311 int cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode,
316 if (mode & CVMX_SPI_MODE_RX_HALFPLEX) {
350 if (mode & CVMX_SPI_MODE_TX_HALFPLEX) {
421 * @mode: The operating mode for the SPI interface. The interface
430 int cvmx_spi_clock_detect_cb(int interface, cvmx_spi_mode_t mode, int timeout)
438 * Regardless of operating mode, both Tx and Rx clocks must be
499 * @mode: The operating mode for the SPI interface. The interface
508 int cvmx_spi_training_cb(int interface, cvmx_spi_mode_t mode, int timeout)
568 * @mode: The operating mode for the SPI interface. The interface
577 int cvmx_spi_calendar_sync_cb(int interface, cvmx_spi_mode_t mode, int timeout)
580 if (mode & CVMX_SPI_MODE_RX_HALFPLEX) {
592 if (mode & CVMX_SPI_MODE_TX_HALFPLEX) {
625 * @mode: The operating mode for the SPI interface. The interface
633 int cvmx_spi_interface_up_cb(int interface, cvmx_spi_mode_t mode)
639 if (mode & CVMX_SPI_MODE_RX_HALFPLEX) {
647 if (mode & CVMX_SPI_MODE_TX_HALFPLEX) {