Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 11 of 11) sorted by relevance

/hal_intel-3.6.0/zephyr/iut_test/test_zephyr/i2c/
Dtest_i2c_log.c42 int ret; in impl_test_log_i2c() local
57 ret = i2c_configure(i2c_dev, i2c_cfg); in impl_test_log_i2c()
58 if (ret) { in impl_test_log_i2c()
70 ret = sedi_i2c_master_poll_write(LOG_I2C_BUS, LOG_I2C_DEV_ADDR, data, in impl_test_log_i2c()
79 ret = i2c_transfer_async(i2c_dev, &msg, 1, LOG_I2C_DEV_ADDR, async_cb, in impl_test_log_i2c()
82 if (ret == -EWOULDBLOCK) { in impl_test_log_i2c()
85 ret = 0; /* recover async busy */ in impl_test_log_i2c()
89 ret = i2c_write(i2c_dev, data, sizeof(data), LOG_I2C_DEV_ADDR); in impl_test_log_i2c()
92 if (ret) { in impl_test_log_i2c()
116 return ret; in impl_test_log_i2c()
[all …]
/hal_intel-3.6.0/bsp_sedi/drivers/ipc/
Dsedi_ipc.c223 int ret; in sedi_ipc_set_power() local
225 ret = check_ipc_available(ipc_device); in sedi_ipc_set_power()
226 if (ret != SEDI_DRIVER_OK) { in sedi_ipc_set_power()
227 return ret; in sedi_ipc_set_power()
237 int ret, i; in sedi_ipc_write_msg() local
240 ret = check_ipc_available(ipc_device); in sedi_ipc_write_msg()
241 if (ret != SEDI_DRIVER_OK) { in sedi_ipc_write_msg()
242 return ret; in sedi_ipc_write_msg()
277 int ret; in sedi_ipc_write_dbl() local
279 ret = check_ipc_available(ipc_device); in sedi_ipc_write_dbl()
[all …]
/hal_intel-3.6.0/bsp_sedi/drivers/usart/
Dsedi_dw_uart.c607 int32_t ret; in sedi_uart_set_config() local
617 ret = sedi_uart_set_baud_rate(uart, cfg->baud_rate, sedi_pm_get_hbw_clock()); in sedi_uart_set_config()
618 if (ret != SEDI_DRIVER_OK) { in sedi_uart_set_config()
1832 int32_t ret = 0; in sedi_uart_dma_config() local
1834 PARAM_UNUSED(ret); in sedi_uart_dma_config()
1836 ret = sedi_dma_init(dma, channel, cb, param); in sedi_uart_dma_config()
1837 DBG_CHECK(SEDI_DRIVER_OK == ret, SEDI_DRIVER_ERROR); in sedi_uart_dma_config()
1839 ret = sedi_dma_set_power(dma, channel, SEDI_POWER_FULL); in sedi_uart_dma_config()
1840 DBG_CHECK(SEDI_DRIVER_OK == ret, SEDI_DRIVER_ERROR); in sedi_uart_dma_config()
1843 ret = sedi_dma_control(dma, channel, SEDI_CONFIG_DMA_BURST_LENGTH, in sedi_uart_dma_config()
[all …]
/hal_intel-3.6.0/bsp_sedi/soc/intel_ish/pm/aon/
Daon_task.c208 int ret; in store_main_fw() local
225 ret = ish_dma_copy( in store_main_fw()
235 if (ret != DMA_RC_OK) { in store_main_fw()
248 int ret; in restore_main_fw() local
270 ret = ish_dma_copy( in restore_main_fw()
277 if (ret != DMA_RC_OK) { in restore_main_fw()
289 ret = ish_dma_copy( in restore_main_fw()
300 if (ret != DMA_RC_OK) { in restore_main_fw()
538 int ret; in do_ipapg() local
546 ret = ipapg(); in do_ipapg()
[all …]
Dipapg.S107 ret
113 ret
135 ret
/hal_intel-3.6.0/bsp_sedi/drivers/i2c/
Dsedi_i2c_dw_apb_200a.c626 int32_t ret = SEDI_DRIVER_OK; in sedi_i2c_set_power() local
645 ret = SEDI_DRIVER_ERROR_UNSUPPORTED; in sedi_i2c_set_power()
649 return ret; in sedi_i2c_set_power()
746 int ret; in config_and_enable_dma_channel() local
753 ret = sedi_dma_init(dma, chan, callback_tx_dma_transfer, (void *)i2c_dev); in config_and_enable_dma_channel()
754 DBG_CHECK(0 == ret, SEDI_DRIVER_ERROR); in config_and_enable_dma_channel()
758 ret = sedi_dma_init(dma, chan, callback_rx_dma_transfer, (void *)i2c_dev); in config_and_enable_dma_channel()
759 DBG_CHECK(0 == ret, SEDI_DRIVER_ERROR); in config_and_enable_dma_channel()
763 ret = sedi_dma_init(dma, chan, callback_rx_cmd_dma_transfer, (void *)i2c_dev); in config_and_enable_dma_channel()
764 DBG_CHECK(0 == ret, SEDI_DRIVER_ERROR); in config_and_enable_dma_channel()
[all …]
/hal_intel-3.6.0/zephyr/iut_test/test_zephyr/gpio/
Dtest_gpio.c40 int ret, i; in test_gpio_output() local
54 ret = gpio_pin_get_raw(gpio_dev, i); in test_gpio_output()
55 TEST_ASSERT_EQUAL(1, ret); in test_gpio_output()
65 ret = gpio_pin_get_raw(gpio_dev, i); in test_gpio_output()
67 TEST_ASSERT_EQUAL(0, ret); in test_gpio_output()
/hal_intel-3.6.0/bsp_sedi/drivers/dma/
Dsedi_dma_ann_1p0.c443 int32_t ret; in dma_channel_apply_config() local
521 ret = dma_apply_other_regs(misc_regs, chan_regs, config, channel_id); in dma_channel_apply_config()
522 if (ret != SEDI_DRIVER_OK) { in dma_channel_apply_config()
523 return ret; in dma_channel_apply_config()
562 int ret; in dma_fill_sc_linkedlist() local
568 ret = dma_fill_linkedlist(ll_tmp + i, src, dst, in dma_fill_sc_linkedlist()
571 if (ret != SEDI_DRIVER_OK) { in dma_fill_sc_linkedlist()
572 return ret; in dma_fill_sc_linkedlist()
586 ret = dma_fill_linkedlist(ll_tmp + count - 1, src, dst, in dma_fill_sc_linkedlist()
588 return ret; in dma_fill_sc_linkedlist()
[all …]
/hal_intel-3.6.0/zephyr/iut_test/src/
Dmain.c31 int ret; in iut_run() local
68 ret = ut->func(argc, argv); in iut_run()
72 (ret == IUT_ERR_OK) ? "pass" : "fail"); in iut_run()
74 if (ret != IUT_ERR_OK) { in iut_run()
/hal_intel-3.6.0/bsp_sedi/drivers/spi/
Dsedi_spi_dw_apb.c433 uint32_t ret = SEDI_SPI_0_REG_DMA + (uint32_t)&((sedi_spi_regs_t *)0)->dr0; in lld_spi_dr_address() local
434 return ret; in lld_spi_dr_address()
573 int32_t ret = SEDI_DRIVER_OK; in sedi_spi_set_power() local
588 ret = SEDI_DRIVER_ERROR_UNSUPPORTED; in sedi_spi_set_power()
592 return ret; in sedi_spi_set_power()
739 int ret; in config_and_enable_dma_channel() local
769 ret = sedi_dma_init(dma, chan, callback_dma_transfer, (void *)spi_dev); in config_and_enable_dma_channel()
770 DBG_CHECK(0 == ret, SEDI_DRIVER_ERROR); in config_and_enable_dma_channel()
772 ret = sedi_dma_set_power(dma, chan, SEDI_POWER_FULL); in config_and_enable_dma_channel()
773 DBG_CHECK(0 == ret, SEDI_DRIVER_ERROR); in config_and_enable_dma_channel()
[all …]
/hal_intel-3.6.0/bsp_sedi/drivers/gpio/
Dsedi_gpio.c70 int32_t ret = SEDI_DRIVER_OK; in gpio_set_power() local
85 ret = SEDI_DRIVER_ERROR_UNSUPPORTED; in gpio_set_power()
89 return ret; in gpio_set_power()