Home
last modified time | relevance | path

Searched refs:ret_val (Results 1 – 25 of 65) sorted by relevance

123

/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_cli/
Dcli_rpc.c125 int ret_val; in debug_rpc_command() local
133 ret_val = rpc_init(); in debug_rpc_command()
134 os_printf("rpc init: %d\r\n", ret_val); in debug_rpc_command()
141 ret_val = ipc_send_test_cmd(0x12); in debug_rpc_command()
142 os_printf("ipc server test: ret=%d\r\n", ret_val); in debug_rpc_command()
144 ret_val = ipc_send_get_ps_flag(); in debug_rpc_command()
145 os_printf("ipc server ps: ret= 0x%x\r\n", ret_val); in debug_rpc_command()
147 ret_val = ipc_send_get_heart_rate(); in debug_rpc_command()
148 os_printf("ipc server hr: ret= 0x%x\r\n", ret_val); in debug_rpc_command()
150 ret_val = ipc_send_set_heart_rate(0x33); in debug_rpc_command()
[all …]
/device/soc/hpmicro/sdk/hpm_sdk/drivers/src/
Dhpm_pmp_drv.c215 uint32_t ret_val = 0; in read_pmp_addr() local
218 ret_val = read_csr(CSR_PMPADDR0); in read_pmp_addr()
221 ret_val = read_csr(CSR_PMPADDR1); in read_pmp_addr()
224 ret_val = read_csr(CSR_PMPADDR2); in read_pmp_addr()
227 ret_val = read_csr(CSR_PMPADDR3); in read_pmp_addr()
230 ret_val = read_csr(CSR_PMPADDR4); in read_pmp_addr()
233 ret_val = read_csr(CSR_PMPADDR5); in read_pmp_addr()
236 ret_val = read_csr(CSR_PMPADDR6); in read_pmp_addr()
239 ret_val = read_csr(CSR_PMPADDR7); in read_pmp_addr()
242 ret_val = read_csr(CSR_PMPADDR8); in read_pmp_addr()
[all …]
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/driver/spinlock/
Damp_res_lock.c129 bk_err_t ret_val = BK_FAIL; in amp_res_lock_acquire() local
152 ret_val = amp_res_acquire_cnt(res_id, SRC_CPU, &cnt_list); in amp_res_lock_acquire()
160 ret_val = ipc_send_res_acquire_cnt(res_id, SRC_CPU, &cnt_list); in amp_res_lock_acquire()
164 if(ret_val != BK_OK) in amp_res_lock_acquire()
166 return ret_val; in amp_res_lock_acquire()
172 ret_val = rtos_get_semaphore(&amp_res_sync[res_id].res_sema, 0); in amp_res_lock_acquire()
174 if(ret_val != BK_OK) in amp_res_lock_acquire()
176 return ret_val; in amp_res_lock_acquire()
182 ret_val = rtos_get_semaphore(&amp_res_sync[res_id].res_sema, timeout_ms); in amp_res_lock_acquire()
184 return ret_val; in amp_res_lock_acquire()
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/
Ddhd_fwtrace.c207 int ret_val = BCME_OK; in fwtrace_write_to_file() local
219 ret_val = BCME_ERROR; in fwtrace_write_to_file()
224 ret_val = BCME_ERROR; in fwtrace_write_to_file()
250 ret_val = BCME_ERROR; in fwtrace_write_to_file()
259 ret_val = BCME_ERROR; in fwtrace_write_to_file()
266 return (ret_val); in fwtrace_write_to_file()
275 int ret_val = BCME_OK; in fw_trace_start() local
283 ret_val = fwtrace_open_file(fw_trace_enabled, dhdp); in fw_trace_start()
284 if (ret_val == BCME_OK) { in fw_trace_start()
289 return (ret_val); in fw_trace_start()
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/v4l2_dev/app/v4l2_interface/
Dfw-interface.c158 uint32_t ret_val; in fw_intf_isp_get_sensor_info() local
176 acamera_command( ctx_id, TSENSOR, SENSOR_INFO_PRESET, i, COMMAND_SET, &ret_val ); in fw_intf_isp_get_sensor_info()
296 uint32_t ret_val; in fw_intf_stream_start() local
297 acamera_command( ctx_id, TFPGA, DMA_RAW_CAPTURE_ENABLED_ID, ON, COMMAND_SET, &ret_val ); in fw_intf_stream_start()
310 uint32_t ret_val; in fw_intf_stream_start() local
312 acamera_command( ctx_id, TAML_SCALER, SCALER_STREAMING_ON, ON, COMMAND_SET, &ret_val ); in fw_intf_stream_start()
327 uint32_t ret_val; in fw_intf_stream_stop() local
328 acamera_command( ctx_id, TFPGA, DMA_RAW_CAPTURE_ENABLED_ID, OFF, COMMAND_SET, &ret_val ); in fw_intf_stream_stop()
347 uint32_t ret_val; in fw_intf_stream_stop() local
351 acamera_command( ctx_id, TAML_SCALER, SCALER_STREAMING_OFF, OFF, COMMAND_SET, &ret_val ); in fw_intf_stream_stop()
[all …]
Disp-v4l2-stream.c1630 uint32_t ret_val = 0; in isp_v4l2_get_cropcap() local
1649 SCALER, COMMAND_SET, &ret_val ); in isp_v4l2_get_cropcap()
1651 COMMAND_GET, &ret_val); in isp_v4l2_get_cropcap()
1652 cap->defrect.width = ret_val; in isp_v4l2_get_cropcap()
1655 COMMAND_GET, &ret_val); in isp_v4l2_get_cropcap()
1656 cap->defrect.height = ret_val; in isp_v4l2_get_cropcap()
1677 uint32_t ret_val = 0; in isp_v4l2_set_crop() local
1702 s_type, COMMAND_SET, &ret_val ); in isp_v4l2_set_crop()
1709 x_off, COMMAND_SET, &ret_val); in isp_v4l2_set_crop()
1716 width, COMMAND_SET, &ret_val); in isp_v4l2_set_crop()
[all …]
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/
Dosal_gpio.c31 int ret_val; in osal_gpio_get_direction() local
34 ret_val = gpio_request(gpio, NULL); in osal_gpio_get_direction()
35 if (ret_val != 0) { in osal_gpio_get_direction()
47 ret_val = gpiod_get_direction(desc); in osal_gpio_get_direction()
48 if (ret_val != 0 && ret_val != 1) { in osal_gpio_get_direction()
49 osal_printk("[%s]:gpiod_get_direction failed. return %d\n", __FUNCTION__, ret_val); in osal_gpio_get_direction()
56 return ret_val; in osal_gpio_get_direction()
98 int ret_val; in osal_gpio_set_value() local
100 ret_val = gpio_request(gpio, NULL); in osal_gpio_set_value()
101 if (ret_val != 0) { in osal_gpio_set_value()
[all …]
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/driver/sys_ctrl/
Dsys_driver_common.c28 uint32_t ret_val = SYS_DRV_FAILURE; in sys_amp_res_acquire() local
29 ret_val = amp_res_acquire(AMP_RES_ID_SYS_REG, SYSTEM_REG_LOCK_WAIT_TIME_MS); in sys_amp_res_acquire()
30 return ret_val; in sys_amp_res_acquire()
38 uint32_t ret_val = SYS_DRV_FAILURE; in sys_amp_res_release() local
39 ret_val = amp_res_release(AMP_RES_ID_SYS_REG); in sys_amp_res_release()
40 return ret_val; in sys_amp_res_release()
48 uint32_t ret_val = SYS_DRV_FAILURE; in sys_amp_res_init() local
49 ret_val = amp_res_init(AMP_RES_ID_SYS_REG); in sys_amp_res_init()
50 return ret_val; in sys_amp_res_init()
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/driver/mailbox/
Dmb_ipc_cmd.c321 bk_err_t ret_val = BK_FAIL; in ipc_send_cmd() local
341 ret_val = BK_ERR_PARAM; in ipc_send_cmd()
356 ret_val = mb_chnl_write(chnl_cb->chnl_id, (mb_chnl_cmd_t *)&ipc_cmd); in ipc_send_cmd()
357 if(ret_val != BK_OK) in ipc_send_cmd()
362ret_val = rtos_get_semaphore(&chnl_cb->rsp_sema, IPC_RSP_TIMEOUT); /* isr_callback will set this … in ipc_send_cmd()
363 if(ret_val != BK_OK) in ipc_send_cmd()
372 ret_val = BK_FAIL; in ipc_send_cmd()
378 ret_val = BK_OK; in ipc_send_cmd()
384 ret_val = BK_ERR_PARAM; in ipc_send_cmd()
391 ret_val = BK_OK; in ipc_send_cmd()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/bluetooth/
Drtk_btusb.c1420 int ret_val = -1; in send_hci_cmd() local
1421 while ((ret_val < 0) && (i++ < 10)) { in send_hci_cmd()
1422 ret_val = usb_control_msg( in send_hci_cmd()
1428 return ret_val; in send_hci_cmd()
1433 int ret_len = 0, ret_val = 0; in rcv_hci_evt() local
1438 ret_val = usb_interrupt_msg( in rcv_hci_evt()
1442 if (ret_val >= 0) in rcv_hci_evt()
1446 if (ret_val < 0) in rcv_hci_evt()
1447 return ret_val; in rcv_hci_evt()
1459 int ret_val; in set_bt_onoff() local
[all …]
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6750/
Dhpm_otp_drv.c36 uint32_t ret_val = 0; in otp_read_from_shadow() local
38ret_val = (addr <= SHADOW_INDEX_IN_PMIC_OTP_END) ? HPM_OTP->SHADOW[addr] : HPM_OTPSHW->SHADOW[addr… in otp_read_from_shadow()
41 return ret_val; in otp_read_from_shadow()
46 uint32_t ret_val = 0; in otp_read_from_ip() local
53 ret_val = HPM_OTP->DATA; in otp_read_from_ip()
55 return ret_val; in otp_read_from_ip()
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6360/
Dhpm_otp_drv.c37 uint32_t ret_val = 0; in otp_read_from_shadow() local
39ret_val = (addr <= SHADOW_INDEX_IN_PMIC_OTP_END) ? HPM_OTP->SHADOW[addr] : HPM_OTPSHW->SHADOW[addr… in otp_read_from_shadow()
42 return ret_val; in otp_read_from_shadow()
47 uint32_t ret_val = 0; in otp_read_from_ip() local
49 ret_val = HPM_OTP->FUSE[addr]; in otp_read_from_ip()
51 return ret_val; in otp_read_from_ip()
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/hal/phydm/
Dphydm_math_lib.c91 u16 ret_val = 0; in phydm_find_intrvl() local
96 ret_val = i; in phydm_find_intrvl()
99 ret_val = th_len; in phydm_find_intrvl()
104 return ret_val; in phydm_find_intrvl()
Dphydm_phystatus.c624 s8 ret_val; in phydm_evm_2_percent() local
626 ret_val = value; in phydm_evm_2_percent()
627 ret_val /= 2; in phydm_evm_2_percent()
631 if (ret_val >= 0) in phydm_evm_2_percent()
632 ret_val = 0; in phydm_evm_2_percent()
634 if (ret_val <= -40) in phydm_evm_2_percent()
635 ret_val = -40; in phydm_evm_2_percent()
637 ret_val = 0 - ret_val; in phydm_evm_2_percent()
638 ret_val *= 3; in phydm_evm_2_percent()
640 if (ret_val >= 0) in phydm_evm_2_percent()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/wlan/
Dvendor.c181 int ret_val; in xradio_acs_report_channel() local
199 ret_val = nla_put_u32(vendor_event, NL80211_ATTR_IFINDEX, in xradio_acs_report_channel()
201 if (ret_val) { in xradio_acs_report_channel()
213 ret_val = nla_put_u8(vendor_event, in xradio_acs_report_channel()
216 if (ret_val) { in xradio_acs_report_channel()
224 ret_val = nla_put_u8(vendor_event, in xradio_acs_report_channel()
226 if (ret_val) { in xradio_acs_report_channel()
/device/soc/esp/esp32/components/driver/
Ddac_common.c31 #define DAC_CHECK(a, str, ret_val) ({ \ argument
34 return (ret_val); \
Dsigmadelta.c25 #define SIGMADELTA_CHECK(a,str,ret_val) if(!(a)) { \ argument
27 return (ret_val); \
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
Dmali_dvfs_policy.c51 u32 ret_val; in calculate_window_render_fps() local
72 ret_val = max_window_number_shift / time_period_shift; in calculate_window_render_fps()
74 return ret_val; in calculate_window_render_fps()
/device/soc/esp/esp32/components/driver/esp32/
Dadc.c57 #define ADC_CHECK(a, str, ret_val) ({ \ argument
60 return (ret_val); \
/device/soc/esp/esp32/components/hal/esp32/include/hal/
Dadc_ll.h378 int ret_val = 0; in adc_ll_rtc_get_convert_value() local
380 ret_val = SENS.sar_meas_start1.meas1_data_sar; in adc_ll_rtc_get_convert_value()
382 ret_val = SENS.sar_meas_start2.meas2_data_sar; in adc_ll_rtc_get_convert_value()
384 return ret_val; in adc_ll_rtc_get_convert_value()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
Dmali_dvfs_policy.c62 u32 ret_val; in calculate_window_render_fps() local
83 ret_val = max_window_number_shift / time_period_shift; in calculate_window_render_fps()
85 return ret_val; in calculate_window_render_fps()
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/
Dbcm_app_utils.c159 int i, left, winner, ret_val = 0; in cca_analyze() local
179 ret_val = CCA_ERRNO_TOO_FEW; in cca_analyze()
193 ret_val = CCA_ERRNO_BAND; in cca_analyze()
207 ret_val = CCA_ERRNO_BAND; in cca_analyze()
221 ret_val = CCA_ERRNO_DURATION; in cca_analyze()
238 ret_val = CCA_ERRNO_PREF_CHAN; in cca_analyze()
251 ret_val = CCA_ERRNO_INTERFER; in cca_analyze()
267 return ret_val; in cca_analyze()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
Dbcm_app_utils.c160 int i, left, winner, ret_val = 0; in cca_analyze() local
179 ret_val = CCA_ERRNO_TOO_FEW; in cca_analyze()
192 ret_val = CCA_ERRNO_BAND; in cca_analyze()
205 ret_val = CCA_ERRNO_BAND; in cca_analyze()
218 ret_val = CCA_ERRNO_DURATION; in cca_analyze()
233 ret_val = CCA_ERRNO_PREF_CHAN; in cca_analyze()
245 ret_val = CCA_ERRNO_INTERFER; in cca_analyze()
261 return ret_val; in cca_analyze()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/
Dbcm_app_utils.c159 int i, left, winner, ret_val = 0; in cca_analyze() local
178 ret_val = CCA_ERRNO_TOO_FEW; in cca_analyze()
191 ret_val = CCA_ERRNO_BAND; in cca_analyze()
204 ret_val = CCA_ERRNO_BAND; in cca_analyze()
217 ret_val = CCA_ERRNO_DURATION; in cca_analyze()
232 ret_val = CCA_ERRNO_PREF_CHAN; in cca_analyze()
244 ret_val = CCA_ERRNO_INTERFER; in cca_analyze()
260 return ret_val; in cca_analyze()
/device/soc/esp/esp32/components/hal/
Dspi_hal.c34 #define SPI_HAL_CHECK(a, str, ret_val, ...) \ argument
37 return (ret_val); \

123