Lines Matching refs:rx_frame

151 			       struct fs26_spi_rx_frame *rx_frame)  in fs26_spi_transceive()  argument
204 if (rx_frame) { in fs26_spi_transceive()
205 rx_frame->status.raw = (uint8_t)FS26_GET_DEV_STATUS(rx_buf); in fs26_spi_transceive()
206 rx_frame->data = (uint16_t)FS26_GET_DATA(rx_buf); in fs26_spi_transceive()
223 struct fs26_spi_rx_frame *rx_frame) in fs26_getreg() argument
231 return fs26_spi_transceive(spi, &tx_frame, rx_frame); in fs26_getreg()
284 struct fs26_spi_rx_frame rx_frame; in fs26_wd_refresh() local
295 if (fs26_getreg(&config->spi, FS26_FS_WD_TOKEN, &rx_frame)) { in fs26_wd_refresh()
299 data->token = rx_frame.data; in fs26_wd_refresh()
316 if (!fs26_getreg(&config->spi, FS26_FS_GRL_FLAGS, &rx_frame)) { in fs26_wd_refresh()
317 if ((rx_frame.data & FS_WD_G_MASK) == FS_WD_G) { in fs26_wd_refresh()
318 if (!fs26_getreg(&config->spi, FS26_FS_DIAG_SAFETY1, &rx_frame)) { in fs26_wd_refresh()
320 BAD_WD_REFRESH_ERROR_STRING(rx_frame.data)); in fs26_wd_refresh()
340 struct fs26_spi_rx_frame rx_frame; in fs26_poll_for_init_fs_state() local
348 if (!fs26_getreg(&config->spi, FS26_FS_STATES, &rx_frame)) { in fs26_poll_for_init_fs_state()
349 regval = rx_frame.data; in fs26_poll_for_init_fs_state()
374 struct fs26_spi_rx_frame rx_frame; in fs26_goto_init_fs_state() local
378 if (!fs26_getreg(&config->spi, FS26_FS_STATES, &rx_frame)) { in fs26_goto_init_fs_state()
379 current_state = rx_frame.data & FS_STATES_MASK; in fs26_goto_init_fs_state()
550 struct fs26_spi_rx_frame rx_frame; in wdt_nxp_fs26_disable() local
553 if (fs26_getreg(&config->spi, FS26_FS_WDW_DURATION, &rx_frame)) { in wdt_nxp_fs26_disable()
556 if ((rx_frame.data & WDW_PERIOD_MASK) == WDW_PERIOD_DISABLE) { in wdt_nxp_fs26_disable()
591 struct fs26_spi_rx_frame rx_frame; in wdt_nxp_fs26_int_thread() local
597 if ((!fs26_getreg(&config->spi, FS26_FS_GRL_FLAGS, &rx_frame)) in wdt_nxp_fs26_int_thread()
598 && ((rx_frame.data & FS_WD_G_MASK) == FS_WD_G)) { in wdt_nxp_fs26_int_thread()
600 if ((!fs26_getreg(&config->spi, FS26_FS_DIAG_SAFETY1, &rx_frame)) in wdt_nxp_fs26_int_thread()
601 && (rx_frame.data & BAD_WD_TIMING)) { in wdt_nxp_fs26_int_thread()
633 struct fs26_spi_rx_frame rx_frame; in wdt_nxp_fs26_init() local
674 if (fs26_getreg(&config->spi, FS26_FS_DIAG_SAFETY1, &rx_frame)) { in wdt_nxp_fs26_init()
678 if ((rx_frame.data & (ABIST1_PASS_MASK | LBIST_STATUS_MASK)) in wdt_nxp_fs26_init()
681 LOG_ERR("BIST failed 0x%x", rx_frame.data); in wdt_nxp_fs26_init()
686 if (fs26_getreg(&config->spi, FS26_FS_STATES, &rx_frame)) { in wdt_nxp_fs26_init()
691 if ((rx_frame.data & DBG_MODE_MASK) == DBG_MODE) { in wdt_nxp_fs26_init()
694 regval = rx_frame.data | EXIT_DBG_MODE; in wdt_nxp_fs26_init()
797 if (!fs26_getreg(&config->spi, FS26_FS_STATES, &rx_frame)) { in wdt_nxp_fs26_init()
798 if ((rx_frame.data & REG_CORRUPT_MASK) == REG_CORRUPT) { in wdt_nxp_fs26_init()