Home
last modified time | relevance | path

Searched refs:priv (Results 1 – 25 of 162) sorted by relevance

1234567

/AliOS-Things-master/components/lwip/lwip2.0.0/netif/
A Dslipif.c224 pbuf_realloc(priv->q, priv->recved); in slipif_rxbyte()
230 priv->p = priv->q = NULL; in slipif_rxbyte()
231 priv->i = priv->recved = 0; in slipif_rxbyte()
276 pbuf_cat(priv->q, priv->p); in slipif_rxbyte()
279 priv->q = priv->p; in slipif_rxbyte()
285 ((u8_t *)priv->p->payload)[priv->i] = c; in slipif_rxbyte()
287 priv->i++; in slipif_rxbyte()
288 if (priv->i >= priv->p->len) { in slipif_rxbyte()
293 priv->p = priv->p->next; in slipif_rxbyte()
370 if (!priv) { in slipif_init()
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/ruy/
A Dpmu.cc223 priv->ll_cache_miss.Start(); in StartRecording()
224 priv->l1d_tlb_refill.Start(); in StartRecording()
227 priv->stall_backend.Start(); in StartRecording()
228 priv->br_mis_pred.Start(); in StartRecording()
237 priv->ll_cache_miss.Stop(); in StopRecording()
238 priv->l1d_tlb_refill.Stop(); in StopRecording()
239 priv->l2d_tlb_refill.Stop(); in StopRecording()
240 priv->stall_frontend.Stop(); in StopRecording()
241 priv->stall_backend.Stop(); in StopRecording()
242 priv->br_mis_pred.Stop(); in StopRecording()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/hal/
A Dpwm.c50 pwm->priv = &(PWM[pwm->port]); in hal_pwm_init()
53 pwmout_init( pwm->priv , port2pin[pwm->port][1]); in hal_pwm_init()
55 pwmout_period_us(pwm->priv , period_us); in hal_pwm_init()
57 pwmout_write(pwm->priv , pwm->config.duty_cycle); in hal_pwm_init()
72 pwmout_start(pwm->priv); in hal_pwm_start()
85 pwmout_stop(pwm->priv); in hal_pwm_stop()
103 pwmout_period_us(pwm->priv, period_us); in hal_pwm_para_chg()
105 pwmout_write(pwm->priv, para.duty_cycle); in hal_pwm_para_chg()
118 pwmout_free(pwm->priv); in hal_pwm_finalize()
A Dhw.c44 krhino_timer_dyn_create((ktimer_t **)&tim->priv, "hwtmr", _timer_cb,
48 krhino_timer_dyn_create((ktimer_t **)&tim->priv, "hwtmr", _timer_cb,
56 return krhino_timer_start(tmr->priv);
61 krhino_timer_stop(tmr->priv);
62 krhino_timer_dyn_del(tmr->priv);
63 tmr->priv = NULL;
A Dadc.c27 adc->priv = &hal_adc[adc->port]; in hal_adc_init()
29 analogin_init(adc->priv, adc_pin2chan[adc->port][0]); in hal_adc_init()
46 analogin_t *adc_t = adc->priv; in hal_adc_value_get()
84 analogin_deinit(adc->priv); in hal_adc_finalize()
/AliOS-Things-master/components/uvoice/internal/
A Duvoice_play.h76 int (*decode)(void *priv, uint8_t *buffer, int nbytes);
78 int (*message)(void *priv, player_message_t msg, void *arg);
79 int (*output)(void *priv, uint8_t *buffer, int nbytes);
80 int (*reset)(void *priv);
82 void *priv; member
92 int (*read)(void *priv, uint8_t *buffer, int nbytes);
94 int (*reset)(void *priv);
95 int (*message)(void *priv, player_message_t msg, void *arg);
96 int (*get_format)(void *priv, media_format_t *format);
98 int (*get_cacheinfo)(void *priv, cache_info_t *info);
[all …]
A Duvoice_record.h21 int (*pack)(void *priv, uint8_t *buffer, int nbytes);
22 int (*update)(void *priv, uint8_t *buffer, int nbytes, int pos);
23 int (*action)(void *priv, recorder_action_t action, void *arg);
44 int (*encode)(void *priv, uint8_t *buffer, int nbytes);
45 int (*header_gen)(void *priv, void *arg);
46 int (*header_update)(void *priv, int size);
47 int (*action)(void *priv, recorder_action_t action, void *arg);
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/
A Dwifi_wps_config.c121 ( void ) priv; in wps_registrar_init()
133 ( void ) priv; in wps_registrar_deinit()
151 ( void ) priv; in wps_registrar_process_msg()
164 ( void ) priv; in wps_registrar_get_msg()
179 ( void ) priv; in wps_registrar_add_pin()
196 ( void ) priv; in wps_registrar_button_pushed()
208 ( void ) priv; in wps_registrar_wps_cancel()
220 ( void ) priv; in wpas_wsc_ap_send_eap_reqidentity()
230 ( void ) priv; in wpas_wsc_ap_check_eap_rspidentity()
240 ( void ) priv; in wpas_wsc_registrar_send_eap_fail()
[all …]
/AliOS-Things-master/components/freetype/src/pshinter/
A Dpshglob.c646 T1_Private* priv, in psh_globals_new() argument
667 write->org = priv->standard_width[0]; in psh_globals_new()
670 read = priv->snap_widths; in psh_globals_new()
687 write->org = priv->standard_height[0]; in psh_globals_new()
689 read = priv->snap_heights; in psh_globals_new()
702 priv->blue_values, priv->num_other_blues, in psh_globals_new()
703 priv->other_blues, priv->blue_fuzz, 0 ); in psh_globals_new()
706 priv->family_blues, priv->num_family_other_blues, in psh_globals_new()
707 priv->family_other_blues, priv->blue_fuzz, 1 ); in psh_globals_new()
735 globals->blues.blue_shift = priv->blue_shift; in psh_globals_new()
[all …]
/AliOS-Things-master/hardware/chip/haas1000/hal/
A Dpwm.c52 if (pwm->priv != NULL) { in hal_pwm_init()
53 printf("%s priv=%p, SHOULD be NULL!\n", __FUNCTION__, pwm->priv); in hal_pwm_init()
77 pwm->priv = (void *)_cfg; in hal_pwm_init()
92 _HAL_PWM_PRIV_T *_cfg = (_HAL_PWM_PRIV_T *)pwm->priv; in hal_pwm_start()
111 _HAL_PWM_PRIV_T *_cfg = (_HAL_PWM_PRIV_T *)pwm->priv; in hal_pwm_stop()
132 _HAL_PWM_PRIV_T *_cfg = (_HAL_PWM_PRIV_T *)pwm->priv; in hal_pwm_para_chg()
151 _HAL_PWM_PRIV_T *_cfg = (_HAL_PWM_PRIV_T *)pwm->priv; in hal_pwm_finalize()
157 pwm->priv = NULL; in hal_pwm_finalize()
/AliOS-Things-master/components/amp_adapter/platform/aos/peripheral/
A Daos_hal_wdg.c24 if (!wdg || wdg->priv) in aos_hal_wdg_init()
44 wdg->priv = p_fd; in aos_hal_wdg_init()
66 p_fd = (int32_t *)wdg->priv; in aos_hal_wdg_reload()
89 if (!wdg || !wdg->priv) in aos_hal_wdg_finalize()
92 p_fd = (int32_t *)wdg->priv; in aos_hal_wdg_finalize()
102 wdg->priv = NULL; in aos_hal_wdg_finalize()
A Daos_hal_timer.c25 if (!tim || tim->priv) in aos_hal_timer_init()
48 tim->priv = p_fd; in aos_hal_timer_init()
71 p_fd = (int32_t *)tim->priv; in aos_hal_timer_start()
105 p_fd = (int32_t *)tim->priv; in aos_hal_timer_stop()
130 p_fd = (int32_t *)tim->priv; in aos_hal_timer_para_chg()
157 if (!tim || !tim->priv) in aos_hal_timer_finalize()
160 p_fd = (int32_t *)tim->priv; in aos_hal_timer_finalize()
170 tim->priv = NULL; in aos_hal_timer_finalize()
A Daos_hal_pwm.c24 if (!pwm || pwm->priv) in aos_hal_pwm_init()
56 pwm->priv = p_fd; in aos_hal_pwm_init()
78 p_fd = (int32_t *)pwm->priv; in aos_hal_pwm_start()
103 p_fd = (int32_t *)pwm->priv; in aos_hal_pwm_stop()
128 p_fd = (int32_t *)pwm->priv; in aos_hal_pwm_para_chg()
156 if (!pwm || !pwm->priv) in aos_hal_pwm_finalize()
159 p_fd = (int32_t *)pwm->priv; in aos_hal_pwm_finalize()
169 pwm->priv = NULL; in aos_hal_pwm_finalize()
A Daos_hal_adc.c24 if (!adc || adc->priv) in aos_hal_adc_init()
49 adc->priv = p_fd; in aos_hal_adc_init()
72 p_fd = (int32_t *)adc->priv; in aos_hal_adc_value_get()
98 if (!adc || !adc->priv) in aos_hal_adc_finalize()
101 p_fd = (int32_t *)adc->priv; in aos_hal_adc_finalize()
114 adc->priv = NULL; in aos_hal_adc_finalize()
A Daos_hal_i2c.c24 if (!i2c || i2c->priv) in aos_hal_i2c_init()
60 i2c->priv = p_fd; in aos_hal_i2c_init()
85 p_fd = (int32_t *)i2c->priv; in aos_hal_i2c_master_send()
117 p_fd = (int32_t *)i2c->priv; in aos_hal_i2c_master_recv()
162 p_fd = (int32_t *)i2c->priv; in aos_hal_i2c_mem_write()
195 p_fd = (int32_t *)i2c->priv; in aos_hal_i2c_mem_read()
221 if (!i2c || !i2c->priv) in aos_hal_i2c_finalize()
224 p_fd = (int32_t *)i2c->priv; in aos_hal_i2c_finalize()
234 i2c->priv = NULL; in aos_hal_i2c_finalize()
/AliOS-Things-master/components/uvoice/codec/
A Damr_decoder.c29 static int amr_decoder_reset(void *priv) in amr_decoder_reset() argument
31 media_decoder_t *mdecoder = (media_decoder_t *)priv; in amr_decoder_reset()
50 static int amr_decoder_process(void *priv, const uint8_t *buffer, int nbytes) in amr_decoder_process() argument
52 media_decoder_t *mdecoder = (media_decoder_t *)priv; in amr_decoder_process()
94 mdecoder->message(mdecoder->priv, in amr_decoder_process()
100 mdecoder->message(mdecoder->priv, in amr_decoder_process()
119 if (mdecoder->output(mdecoder->priv, in amr_decoder_process()
139 static int amr_decoder_action(void *priv, player_action_t action, void *arg) in amr_decoder_action() argument
A Damrwb_decoder.c30 static int amrwb_decoder_reset(void *priv) in amrwb_decoder_reset() argument
32 media_decoder_t *mdecoder = (media_decoder_t *)priv; in amrwb_decoder_reset()
51 static int amrwb_decoder_process(void *priv, const uint8_t *buffer, int nbytes) in amrwb_decoder_process() argument
53 media_decoder_t *mdecoder = (media_decoder_t *)priv; in amrwb_decoder_process()
93 mdecoder->message(mdecoder->priv, in amrwb_decoder_process()
99 mdecoder->message(mdecoder->priv, in amrwb_decoder_process()
122 if (mdecoder->output(mdecoder->priv, in amrwb_decoder_process()
142 static int amrwb_decoder_action(void *priv, player_action_t action, void *arg) in amrwb_decoder_action() argument
A Dspx_decoder.c55 static int spx_decoder_reset(void *priv) in spx_decoder_reset() argument
57 media_decoder_t *mdecoder = (media_decoder_t *)priv; in spx_decoder_reset()
73 static int spx_decoder_process(void *priv, uint8_t *buffer, int nbytes) in spx_decoder_process() argument
75 media_decoder_t *mdecoder = (media_decoder_t *)priv; in spx_decoder_process()
130 mdecoder->message(mdecoder->priv, in spx_decoder_process()
136 mdecoder->message(mdecoder->priv, in spx_decoder_process()
142 if (mdecoder->output(mdecoder->priv, mdecoder->buffer_out, in spx_decoder_process()
155 static int spx_decoder_action(void *priv, in spx_decoder_action() argument
158 media_decoder_t *mdecoder = (media_decoder_t *)priv; in spx_decoder_action()
/AliOS-Things-master/components/uvoice/media/
A Duvoice_wave.c156 mdecoder->message(mdecoder->priv, in wave_info_parse()
162 mdecoder->message(mdecoder->priv, in wave_info_parse()
172 static int wave_decode_process(void *priv, uint8_t *buffer, in wave_decode_process() argument
175 media_decoder_t *mdecoder = (media_decoder_t *)priv; in wave_decode_process()
207 if (mdecoder->output(mdecoder->priv, buffer, nbytes)) { in wave_decode_process()
218 media_decoder_t *mdecoder = (media_decoder_t *)priv; in wave_decode_action()
302 static int wave_encode_action(void *priv, in wave_encode_action() argument
308 static int wave_encode_header_gen(void *priv, void *arg) in wave_encode_header_gen() argument
310 media_encoder_t *mencoder = (media_encoder_t *)priv; in wave_encode_header_gen()
350 static int wave_encode_header_update(void *priv, int size) in wave_encode_header_update() argument
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/csi_driver/wdt/
A Dwdt.c15 wdt->priv = (WDG_InitTypeDef *)malloc(sizeof(WDG_InitTypeDef)); in csi_wdt_init()
22 if(wdt && wdt->priv) { in csi_wdt_uninit()
23 free(wdt->priv); in csi_wdt_uninit()
24 wdt->priv = NULL; in csi_wdt_uninit()
30 WDG_InitTypeDef *WDG_InitStruct = (WDG_InitTypeDef *)wdt->priv; in csi_wdt_set_timeout()
/AliOS-Things-master/components/freetype/src/cff/
A Dcffobjs.c111 PS_Private priv ) in cff_make_private_dict() argument
117 FT_MEM_ZERO( priv, sizeof ( *priv ) ); in cff_make_private_dict()
135 priv->blue_scale = cpriv->blue_scale; in cff_make_private_dict()
136 priv->blue_shift = (FT_Int)cpriv->blue_shift; in cff_make_private_dict()
137 priv->blue_fuzz = (FT_Int)cpriv->blue_fuzz; in cff_make_private_dict()
150 priv->force_bold = cpriv->force_bold; in cff_make_private_dict()
151 priv->language_group = cpriv->language_group; in cff_make_private_dict()
152 priv->lenIV = cpriv->lenIV; in cff_make_private_dict()
170 PS_PrivateRec priv; in cff_size_init() local
179 cff_make_private_dict( &font->top_font, &priv ); in cff_size_init()
[all …]
/AliOS-Things-master/components/uvoice/stream/
A Duvoice_partition.c44 media_loader_t *mloader = (media_loader_t *)priv; in partition_get_format()
118 static int partition_get_mediainfo(void *priv, in partition_get_mediainfo() argument
259 static int partition_loader_reset(void *priv) in partition_loader_reset() argument
288 static int partition_loader_read(void *priv, in partition_loader_read() argument
315 mloader->message(mloader->priv, in partition_loader_read()
322 mloader->message(mloader->priv, in partition_loader_read()
351 static int partition_loader_action(void *priv, in partition_loader_action() argument
376 mloader->message(mloader->priv, in partition_loader_action()
501 static int partition_packer_write(void *priv, in partition_packer_write() argument
546 static int partition_packer_update(void *priv, in partition_packer_update() argument
[all …]
A Duvoice_file.c38 media_loader_t *mloader = (media_loader_t *)priv; in file_get_format()
123 media_loader_t *mloader = (media_loader_t *)priv; in file_get_mediainfo()
174 static int file_loader_reset(void *priv) in file_loader_reset() argument
176 media_loader_t *mloader = (media_loader_t *)priv; in file_loader_reset()
258 media_loader_t *mloader = (media_loader_t *)priv; in file_loader_read()
293 mloader->message(mloader->priv, in file_loader_read()
306 mloader->message(mloader->priv, in file_loader_read()
339 media_loader_t *mloader = (media_loader_t *)priv; in file_loader_action()
377 mloader->message(mloader->priv, in file_loader_action()
530 media_packer_t *mpacker = (media_packer_t *)priv; in file_packer_write()
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/gpio/
A Dmodule_gpio.c89 gpio_params_t *priv = NULL; in native_gpio_close() local
102 priv = (gpio_params_t *)gpio_device->priv; in native_gpio_close()
103 if(priv->reserved != NULL) { in native_gpio_close()
104 aos_printf("func %p free memory %p \n", __func__, priv->reserved); in native_gpio_close()
105 aos_free(priv->reserved); in native_gpio_close()
106 priv->reserved = NULL; in native_gpio_close()
254 gpio_params_t *priv = NULL; in native_gpio_on() local
276 priv = (gpio_params_t *)gpio_device->priv; in native_gpio_on()
277 priv->reserved = (void *)notify; // 停止中断时,释放该内存 in native_gpio_on()
278 irq_edge = priv->irq_mode; in native_gpio_on()
/AliOS-Things-master/hardware/chip/rtl872xd/csi_driver/adc/
A Dadc.c31 adc->priv = (ADC_InitTypeDef *)malloc(sizeof(ADC_InitTypeDef)); in csi_adc_init()
32 ADC_InitTypeDef *ADC_InitStruct = (ADC_InitTypeDef *)adc->priv; in csi_adc_init()
49 if (adc->priv) { in csi_adc_uninit()
50 free(adc->priv); in csi_adc_uninit()
51 adc->priv = NULL; in csi_adc_uninit()
69 ADC_InitTypeDef *ADC_InitStruct = (ADC_InitTypeDef *)adc->priv; in csi_adc_channel_enable()
98 ADC_InitTypeDef *ADC_InitStruct = (ADC_InitTypeDef *)adc->priv; in csi_adc_continue_mode()
110 ADC_InitTypeDef *ADC_InitStruct = (ADC_InitTypeDef *)adc->priv; in csi_adc_freq_div()

Completed in 61 milliseconds

1234567