Searched refs:p_fd (Results 1 – 10 of 10) sorted by relevance
28 if (!p_fd) in aos_hal_pwm_init()30 *p_fd = -1; in aos_hal_pwm_init()36 if (*p_fd < 0) { in aos_hal_pwm_init()60 free(p_fd); in aos_hal_pwm_init()61 p_fd = NULL; in aos_hal_pwm_init()80 if (!p_fd || *p_fd < 0) in aos_hal_pwm_start()105 if (!p_fd || *p_fd < 0) in aos_hal_pwm_stop()130 if (!p_fd || *p_fd < 0) in aos_hal_pwm_para_chg()161 if (*p_fd < 0) in aos_hal_pwm_finalize()171 *p_fd = -1; in aos_hal_pwm_finalize()[all …]
30 if (!p_fd) in aos_hal_timer_init()32 *p_fd = -1; in aos_hal_timer_init()38 if (*p_fd < 0) { in aos_hal_timer_init()52 free(p_fd); in aos_hal_timer_init()53 p_fd = NULL; in aos_hal_timer_init()73 if (!p_fd || *p_fd < 0) in aos_hal_timer_start()107 if (!p_fd || *p_fd < 0) in aos_hal_timer_stop()132 if (!p_fd || *p_fd < 0) in aos_hal_timer_para_chg()162 if (*p_fd < 0) in aos_hal_timer_finalize()172 *p_fd = -1; in aos_hal_timer_finalize()[all …]
28 if (!p_fd) in aos_hal_wdg_init()30 *p_fd = -1; in aos_hal_wdg_init()36 if (*p_fd < 0) { in aos_hal_wdg_init()48 free(p_fd); in aos_hal_wdg_init()49 p_fd = NULL; in aos_hal_wdg_init()68 if (!p_fd || *p_fd < 0) in aos_hal_wdg_reload()94 if (*p_fd < 0) in aos_hal_wdg_finalize()97 if (*p_fd >= 0) { in aos_hal_wdg_finalize()98 close(*p_fd); in aos_hal_wdg_finalize()104 *p_fd = -1; in aos_hal_wdg_finalize()[all …]
21 int32_t *p_fd = NULL; in aos_hal_adc_init() local28 if (!p_fd) in aos_hal_adc_init()30 *p_fd = -1; in aos_hal_adc_init()35 if (*p_fd < 0) { in aos_hal_adc_init()53 free(p_fd); in aos_hal_adc_init()54 p_fd = NULL; in aos_hal_adc_init()74 if (!p_fd || *p_fd < 0) in aos_hal_adc_value_get()103 if (*p_fd < 0) in aos_hal_adc_finalize()106 if (*p_fd >= 0) { in aos_hal_adc_finalize()116 *p_fd = -1; in aos_hal_adc_finalize()[all …]
29 if (!p_fd) in aos_hal_i2c_init()31 *p_fd = -1; in aos_hal_i2c_init()37 if (*p_fd < 0) { in aos_hal_i2c_init()64 free(p_fd); in aos_hal_i2c_init()65 p_fd = NULL; in aos_hal_i2c_init()87 if (!p_fd || *p_fd < 0) in aos_hal_i2c_master_send()119 if (!p_fd || *p_fd < 0) in aos_hal_i2c_master_recv()164 if (!p_fd || *p_fd < 0) in aos_hal_i2c_mem_write()197 if (!p_fd || *p_fd < 0) in aos_hal_i2c_mem_read()236 *p_fd = -1; in aos_hal_i2c_finalize()[all …]
13 int *p_fd = NULL; in sensor_i2c_open() local22 if (*p_fd >= 0) { in sensor_i2c_open()32 if (*p_fd < 0) { in sensor_i2c_open()46 close(*p_fd); in sensor_i2c_open()47 *p_fd = -1; in sensor_i2c_open()55 int *p_fd = NULL; in sensor_i2c_master_send() local80 int *p_fd = NULL; in sensor_i2c_master_recv() local105 int *p_fd = NULL; in sensor_i2c_mem_write() local129 int *p_fd = NULL; in sensor_i2c_mem_read() local160 close(*p_fd); in sensor_i2c_close()[all …]
34 if (*p_fd >= 0) { in pca9544_i2c_init()44 if (*p_fd < 0) { in pca9544_i2c_init()62 close(*p_fd); in pca9544_i2c_init()63 *p_fd = -1; in pca9544_i2c_init()96 if (!p_fd || (*p_fd < 0)) { in pca9544_i2c_master_send()141 if (!p_fd || (*p_fd < 0)) { in pca9544_i2c_master_recv()186 if (!p_fd || (*p_fd < 0)) { in pca9544_i2c_mem_write()230 if (!p_fd || (*p_fd < 0)) { in pca9544_i2c_mem_read()267 if (!p_fd || (*p_fd < 0)) { in pca9544_i2c_finalize()272 close(*p_fd); in pca9544_i2c_finalize()[all …]
15 int32_t *p_fd = NULL; in vfs_i2c_init() local31 if (*p_fd >= 0) { in vfs_i2c_init()39 if (*p_fd < 0) { in vfs_i2c_init()86 if (!p_fd || (*p_fd < 0)) { in vfs_i2c_master_send()117 if (!p_fd || (*p_fd < 0)) { in vfs_i2c_master_recv()147 if (!p_fd || (*p_fd < 0)) { in vfs_i2c_mem_write()177 if (!p_fd || (*p_fd < 0)) { in vfs_i2c_mem_read()207 if (!p_fd || (*p_fd < 0)) { in vfs_i2c_finalize()212 if (*p_fd >= 0) in vfs_i2c_finalize()219 *p_fd = -1; in vfs_i2c_finalize()[all …]
93 int32_t *p_fd = (int32_t *)tim->priv; in aos_hal_timer_reload() local94 return ioctl(*p_fd, IOC_TIMER_RELOAD, (unsigned long)false); in aos_hal_timer_reload()
68 int32_t *p_fd = (int32_t *)tim->priv; in aos_hal_timer_reload() local69 return ioctl(*p_fd, IOC_TIMER_RELOAD, (unsigned long)false); in aos_hal_timer_reload()
Completed in 15 milliseconds