Home
last modified time | relevance | path

Searched refs:fsp_err (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/drivers/sdhc/
Dsdhc_renesas_ra.c98 fsp_err_t fsp_err; in sdhc_ra_get_card_present() local
103 fsp_err = R_SDHI_StatusGet(&priv->sdmmc_ctrl, &status); in sdhc_ra_get_card_present()
104 ret = err_fsp2zep(fsp_err); in sdhc_ra_get_card_present()
115 fsp_err_t fsp_err; in sdhc_ra_card_busy() local
119 fsp_err = R_SDHI_StatusGet(&priv->sdmmc_ctrl, &status); in sdhc_ra_card_busy()
120 ret = err_fsp2zep(fsp_err); in sdhc_ra_card_busy()
143 int fsp_err = 0; in sdhc_ra_send_cmd() local
146 fsp_err = sdhi_command_send_wait(&priv->sdmmc_ctrl, ra_cmd->opcode, ra_cmd->arg, in sdhc_ra_send_cmd()
148 if (fsp_err != 0) { in sdhc_ra_send_cmd()
154 return err_fsp2zep(fsp_err); in sdhc_ra_send_cmd()
[all …]
Dsdhc_renesas_ra.h29 static ALWAYS_INLINE int err_fsp2zep(int fsp_err) in err_fsp2zep() argument
33 switch (fsp_err) { in err_fsp2zep()
/Zephyr-latest/drivers/adc/
Dadc_renesas_ra.c85 fsp_err_t fsp_err = FSP_SUCCESS; in adc_ra_channel_setup() local
111 fsp_err = R_ADC_ScanCfg(&data->adc, &data->f_channel_cfg); in adc_ra_channel_setup()
112 if (FSP_SUCCESS != fsp_err) { in adc_ra_channel_setup()
125 fsp_err_t fsp_err = FSP_SUCCESS; in adc_ra_isr() local
134 fsp_err = R_ADC_Read(&data->adc, channel_id, &sample_buffer[data->buf_id]); in adc_ra_isr()
135 if (FSP_SUCCESS != fsp_err) { in adc_ra_isr()
303 fsp_err_t fsp_err = FSP_SUCCESS; in adc_ra_init() local
311 fsp_err = R_ADC_Open(&data->adc, &data->f_config); in adc_ra_init()
312 if (FSP_SUCCESS != fsp_err) { in adc_ra_init()
/Zephyr-latest/drivers/serial/
Duart_renesas_rz_scif.c87 fsp_err_t fsp_err; in uart_rz_scif_apply_config() local
89 fsp_err = R_SCIF_UART_BaudCalculate(data->fsp_ctrl, uart_config->baudrate, false, 5000, in uart_rz_scif_apply_config()
91 if (fsp_err) { in uart_rz_scif_apply_config()
160 fsp_err_t fsp_err; in uart_rz_scif_configure() local
172 fsp_err = config->fsp_api->close(data->fsp_ctrl); in uart_rz_scif_configure()
173 if (fsp_err) { in uart_rz_scif_configure()
177 fsp_err = config->fsp_api->open(data->fsp_ctrl, data->fsp_cfg); in uart_rz_scif_configure()
178 if (fsp_err) { in uart_rz_scif_configure()
Duart_renesas_ra8_sci_b.c134 fsp_err_t fsp_err; in uart_ra_sci_b_apply_config() local
136 fsp_err = R_SCI_B_UART_BaudCalculate(config->baudrate, false, 5000, fsp_baud_setting); in uart_ra_sci_b_apply_config()
137 __ASSERT(fsp_err == 0, "sci_uart: baud calculate error"); in uart_ra_sci_b_apply_config()
224 fsp_err_t fsp_err; in uart_ra_sci_b_configure() local
233 fsp_err = R_SCI_B_UART_Close(&data->sci); in uart_ra_sci_b_configure()
234 __ASSERT(fsp_err == 0, "sci_uart: configure: fsp close failed"); in uart_ra_sci_b_configure()
236 fsp_err = R_SCI_B_UART_Open(&data->sci, &data->fsp_config); in uart_ra_sci_b_configure()
237 __ASSERT(fsp_err == 0, "sci_uart: configure: fsp open failed"); in uart_ra_sci_b_configure()
587 static inline int fsp_err_to_errno(fsp_err_t fsp_err) in fsp_err_to_errno() argument
589 switch (fsp_err) { in fsp_err_to_errno()
[all …]
Duart_renesas_ra_sci.c179 fsp_err_t fsp_err; in uart_ra_sci_apply_config() local
181 fsp_err = R_SCI_UART_BaudCalculate(config->baudrate, true, 5000, fsp_baud_setting); in uart_ra_sci_apply_config()
182 if (fsp_err != FSP_SUCCESS) { in uart_ra_sci_apply_config()
268 fsp_err_t fsp_err; in uart_ra_sci_configure() local
277 fsp_err = R_SCI_UART_Close(&data->sci); in uart_ra_sci_configure()
278 fsp_err |= R_SCI_UART_Open(&data->sci, &data->fsp_config); in uart_ra_sci_configure()
279 if (fsp_err != FSP_SUCCESS) { in uart_ra_sci_configure()
529 static int fsp_err_to_errno(fsp_err_t fsp_err) in fsp_err_to_errno() argument
531 switch (fsp_err) { in fsp_err_to_errno()
946 fsp_err_t fsp_err; in uart_ra_sci_init() local
[all …]
/Zephyr-latest/drivers/mdio/
Dmdio_renesas_ra.c84 fsp_err_t fsp_err; in renesas_ra_mdio_initialize() local
91 fsp_err = R_ETHER_PHY_Open(&data->ether_phy_ctrl, &data->ether_phy_cfg); in renesas_ra_mdio_initialize()
93 if (fsp_err != FSP_SUCCESS) { in renesas_ra_mdio_initialize()
/Zephyr-latest/drivers/i2c/
Di2c_renesas_ra_iic.c117 fsp_err_t fsp_err = FSP_SUCCESS; in i2c_ra_iic_transfer() local
198 fsp_err = in i2c_ra_iic_transfer()
202 fsp_err = in i2c_ra_iic_transfer()
207 if (fsp_err != FSP_SUCCESS) { in i2c_ra_iic_transfer()
208 switch (fsp_err) { in i2c_ra_iic_transfer()
220 LOG_ERR("%s: Unknown error. FSP_ERR=%d\n", __func__, fsp_err); in i2c_ra_iic_transfer()
270 fsp_err_t fsp_err = FSP_SUCCESS; in i2c_ra_iic_init() local
300 fsp_err = R_IIC_MASTER_Open(&data->ctrl, &data->fsp_config); in i2c_ra_iic_init()
301 __ASSERT(fsp_err == FSP_SUCCESS, "%s: Open iic master failed. FSP_ERR=%d", __func__, in i2c_ra_iic_init()
302 fsp_err); in i2c_ra_iic_init()
/Zephyr-latest/drivers/spi/
Dspi_b_renesas_ra8.c88 fsp_err_t fsp_err; in ra_spi_b_configure() local
128 fsp_err = R_SPI_B_CalculateBitrate(config->frequency, in ra_spi_b_configure()
131 __ASSERT(fsp_err == 0, "spi_b: spi frequency calculate error: %d", fsp_err); in ra_spi_b_configure()
146 fsp_err = R_SPI_B_Open(&data->spi, &data->fsp_config); in ra_spi_b_configure()
147 if (fsp_err != FSP_SUCCESS) { in ra_spi_b_configure()
148 LOG_ERR("R_SPI_B_Open error: %d", fsp_err); in ra_spi_b_configure()
Dspi_renesas_ra.c84 fsp_err_t fsp_err; in ra_spi_configure() local
136 fsp_err = R_SPI_CalculateBitrate(config->frequency, in ra_spi_configure()
138 if (fsp_err != FSP_SUCCESS) { in ra_spi_configure()
139 LOG_ERR("spi frequency calculate error %d", fsp_err); in ra_spi_configure()
156 fsp_err = R_SPI_Open(&data->spi, &data->fsp_config); in ra_spi_configure()
157 if (fsp_err != FSP_SUCCESS) { in ra_spi_configure()
158 LOG_ERR("R_SPI_Open error: %d", fsp_err); in ra_spi_configure()