Home
last modified time | relevance | path

Searched refs:hdl (Results 1 – 25 of 36) sorted by relevance

12

/AliOS-Things-master/components/netmgr/src/
A Dnetmgr_service.c24 netmgr_hdl_t hdl; member
76 cur->hdl = fd; in add_hdl_info()
119 return cur->hdl; in get_hdl_by_name()
131 if(cur->hdl == hdl) { in get_hdl_type()
178 netmgr_wifi_deinit(cur->hdl); in netmgr_service_deinit()
181 close(cur->hdl); in netmgr_service_deinit()
270 if(hdl == -1) in netmgr_set_auto_reconnect()
325 int netmgr_disconnect(netmgr_hdl_t hdl) in netmgr_disconnect() argument
333 int netmgr_save_config(netmgr_hdl_t hdl) in netmgr_save_config() argument
344 netmgr_wifi_set_msg_cb(hdl, cb); in netmgr_set_msg_cb()
[all …]
A Dnetmgr_eth.c14 netmgr_hdl_t hdl; member
74 netmgr_dev_t *node = (netmgr_dev_t *)param->hdl; in netmgr_eth_service()
156 int netmgr_config_eth(netmgr_hdl_t hdl, eth_mac_duplex_e duplex, eth_mac_speed_e speed) in netmgr_config_eth() argument
162 if ((hdl == NULL) in netmgr_config_eth()
168 param.hdl = hdl; in netmgr_config_eth()
A Dnetmgr_gprs.c17 netmgr_hdl_t hdl; member
157 int netmgr_config_gprs(netmgr_hdl_t hdl, int mode) in netmgr_config_gprs() argument
163 aos_check_return_einval(hdl); in netmgr_config_gprs()
165 param.hdl = hdl; in netmgr_config_gprs()
A Dnetmgr_wifi.c149 netmgr_hdl_t hdl; member
316 msg.hdl = 0; in wifi_stat_chg_cb()
1396 wifi_get_mac(conn->hdl, mac); in update_wifi_status()
1880 int netmgr_wifi_init(netmgr_hdl_t hdl) in netmgr_wifi_init() argument
1909 g_wifi_conn_info->hdl = hdl; in netmgr_wifi_init()
1984 void netmgr_wifi_deinit(netmgr_hdl_t hdl) in netmgr_wifi_deinit() argument
2029 void* netmgr_wifi_get_netif(netmgr_hdl_t hdl) in netmgr_wifi_get_netif() argument
2313 if(conn->hdl != hdl) { in netmgr_wifi_connect()
2591 int netmgr_wifi_disconnect(netmgr_hdl_t hdl) in netmgr_wifi_disconnect() argument
2972 if (-1 != wifi_get_mac(conn->hdl, mac)) { in netmgr_wifi_get_ip_stat()
[all …]
/AliOS-Things-master/components/amp_adapter/platform/aos/network/
A Daos_wifi.c20 netmgr_hdl_t hdl; in aos_wifi_set_ifconfig() local
30 netmgr_hdl_t hdl; in aos_wifi_get_ifconfig() local
40 netmgr_hdl_t hdl; in aos_wifi_set_msg_cb() local
45 return netmgr_set_msg_cb(hdl, cb); in aos_wifi_set_msg_cb()
50 netmgr_hdl_t hdl; in aos_wifi_del_msg_cb() local
66 netmgr_hdl_t hdl; in aos_wifi_connect() local
89 netmgr_hdl_t hdl; in aos_get_wifi_info() local
127 netmgr_hdl_t hdl; in aos_wifi_disconnect() local
132 return netmgr_disconnect(hdl); in aos_wifi_disconnect()
137 netmgr_hdl_t hdl; in aos_wifi_get_state() local
[all …]
/AliOS-Things-master/components/a2sa/src/driver/platform/rtos/
A Dtemplate.c15 csi_codec_output_t hdl; member
108 if (mixer.hdl.callback != NULL) { in codec_hw_vol_put()
123 csi_codec_output_t *hdl; member
167 playback->hdl = codec; in playback_open()
219 pcm_stream_handler_t hdl = NULL; in codec_pcm_stream_open() local
228 return hdl; in codec_pcm_stream_open()
251 int *mode = (int *)hdl; in codec_pcm_stream_start()
257 playback_start(hdl); in codec_pcm_stream_start()
302 int *mode = (int *)hdl; in codec_pcm_stream_pause()
340 int *mode = (int *)hdl; in codec_pcm_stream_stop()
[all …]
A Daudio_rtos.c66 pcm_dev->swParams.hdl = params->hdl; in pcm_sw_params()
86 if(!pcm_dev->hdl) { in pcm_hw_prepare()
89 if(!pcm_dev->hdl) { in pcm_hw_prepare()
95 pcm_dev->ops->close(pcm_dev->hdl); in pcm_hw_prepare()
98 if(!pcm_dev->hdl) { in pcm_hw_prepare()
122 ret = pcm_dev->ops->start(pcm_dev->hdl); in pcm_start()
239 ret = pcm_dev->ops->suspend(pcm_dev->hdl); in pcm_suspend()
259 ret = pcm_dev->ops->resume(pcm_dev->hdl); in pcm_resume()
286 ret = pcm_dev->ops->stop(pcm_dev->hdl); in pcm_stop()
307 ret = pcm_dev->ops->close(pcm_dev->hdl); in pcm_close()
[all …]
/AliOS-Things-master/hardware/chip/haas1000/hal/
A Daudio.c230 if(NULL == hdl) { in codec_pcm_stream_start()
234 if(hdl == capture_stream_hdl) { in codec_pcm_stream_start()
236 data_dump_start(hdl); in codec_pcm_stream_start()
247 if(NULL == hdl) { in codec_pcm_stream_write()
251 if(hdl == capture_stream_hdl) { in codec_pcm_stream_write()
264 if(NULL == hdl) { in codec_pcm_stream_read()
299 if(NULL == hdl) { in codec_pcm_stream_pause()
337 if(NULL == hdl) { in codec_pcm_stream_stop()
343 data_dump_stop(hdl); in codec_pcm_stream_stop()
354 if(NULL == hdl) { in codec_pcm_stream_close()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/hal/
A Daudio.c139 if(NULL == hdl) { in codec_pcm_stream_start()
144 if(hdl == capture_stream_hdl) { in codec_pcm_stream_start()
159 if(NULL == hdl) { in codec_pcm_stream_write()
163 if(hdl == capture_stream_hdl) { in codec_pcm_stream_write()
177 if(NULL == hdl) { in codec_pcm_stream_read()
196 if(NULL == hdl) { in codec_pcm_stream_pause()
234 if(NULL == hdl) { in codec_pcm_stream_stop()
238 if(hdl == capture_stream_hdl) { in codec_pcm_stream_stop()
251 if(NULL == hdl) { in codec_pcm_stream_close()
261 if(hdl == capture_stream_hdl) { in codec_pcm_stream_close()
[all …]
/AliOS-Things-master/components/netmgr/include/
A Dnetmgr_wifi.h83 int netmgr_wifi_init(netmgr_hdl_t hdl);
88 void netmgr_wifi_deinit(netmgr_hdl_t hdl);
103 int netmgr_wifi_set_ifconfig(netmgr_hdl_t hdl, netmgr_ifconfig_info_t* info);
118 void netmgr_wifi_set_auto_reconnect(netmgr_hdl_t hdl, bool enable);
126 int netmgr_wifi_get_config(netmgr_hdl_t hdl, netmgr_wifi_config_t* config);
141 int netmgr_wifi_get_state(netmgr_hdl_t hdl);
149 int netmgr_wifi_connect(netmgr_hdl_t hdl, netmgr_wifi_params_t* params);
156 int netmgr_wifi_disconnect(netmgr_hdl_t hdl);
163 int netmgr_wifi_save_config(netmgr_hdl_t hdl);
175 int netmgr_wifi_set_msg_cb(netmgr_hdl_t hdl, netmgr_msg_cb_t cb);
[all …]
A Dnetmgr.h259 netmgr_type_t get_hdl_type(netmgr_hdl_t hdl);
306 int netmgr_disconnect(netmgr_hdl_t hdl);
315 netmgr_conn_state_t netmgr_get_state(netmgr_hdl_t hdl);
324 int netmgr_save_config(netmgr_hdl_t hdl);
354 int netmgr_set_msg_cb(netmgr_hdl_t hdl, netmgr_msg_cb_t cb);
364 int netmgr_del_msg_cb(netmgr_hdl_t hdl, netmgr_msg_cb_t cb);
374 void* netmgr_wifi_get_netif(netmgr_hdl_t hdl);
393 void netmgr_wifi_start_monitor(netmgr_hdl_t hdl);
400 void netmgr_wifi_stop_monitor(netmgr_hdl_t hdl);
407 void netmgr_wifi_start_mgnt_monitor(netmgr_hdl_t hdl);
[all …]
A Dnetmgr_ethernet.h38 int netmgr_eth_init(netmgr_hdl_t hdl);
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/network/netmgr/
A Dmodule_netmgr.c30 netmgr_hdl_t hdl; member
40 netmgr_hdl_t hdl; in js_cb_conn_status() local
49 hdl = params->hdl; in js_cb_conn_status()
77 netmgr_hdl_t hdl; in check_ip_task() local
85 hdl = params->hdl; in check_ip_task()
127 netmgr_hdl_t hdl; in native_netmgr_service_deinit() local
190 netmgr_hdl_t hdl; in native_netmgr_set_auto_reconnect() local
217 netmgr_hdl_t hdl; in native_netmgr_connect() local
264 connect_task_params.hdl = hdl; in native_netmgr_connect()
287 netmgr_hdl_t hdl; in native_netmgr_disconnect() local
[all …]
/AliOS-Things-master/components/amp_adapter/platform/linux/
A Daos_wifi.c19 netmgr_hdl_t hdl; member
51 cur->hdl = fd; in add_hdl_info()
94 return cur->hdl; in get_hdl_by_name()
148 void netmgr_set_auto_reconnect(netmgr_hdl_t hdl, bool enable) in netmgr_set_auto_reconnect() argument
154 int netmgr_get_config(netmgr_hdl_t hdl, netmgr_config_t* config) in netmgr_get_config() argument
160 int netmgr_del_config(netmgr_hdl_t hdl, netmgr_del_config_t* config) in netmgr_del_config() argument
166 netmgr_conn_state_t netmgr_get_state(netmgr_hdl_t hdl) in netmgr_get_state() argument
180 int netmgr_disconnect(netmgr_hdl_t hdl) in netmgr_disconnect() argument
185 int netmgr_save_config(netmgr_hdl_t hdl) in netmgr_save_config() argument
196 int netmgr_set_msg_cb(netmgr_hdl_t hdl, netmgr_msg_cb_t cb) in netmgr_set_msg_cb() argument
[all …]
/AliOS-Things-master/components/a2sa/internal/driver/platform/rtos/
A Daudio_rtos.h48 int (*start)(pcm_stream_handler_t hdl);
49 int (*write)(pcm_stream_handler_t hdl, void *buf, unsigned int len);
50 int (*read)(pcm_stream_handler_t hdl, void *buf, unsigned int len);
51 int (*pause)(pcm_stream_handler_t hdl, int enable);
52 int (*stop)(pcm_stream_handler_t hdl);
53 int (*close)(pcm_stream_handler_t hdl);
54 int (*recover)(pcm_stream_handler_t hdl);
55 int (*suspend)(pcm_stream_handler_t hdl);
56 int (*resume)(pcm_stream_handler_t hdl);
65 pcm_stream_handler_t hdl; member
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/netmgr/
A Dmodule_netmgr.c31 netmgr_hdl_t hdl; member
51 netmgr_hdl_t hdl; in js_cb_conn_status() local
62 hdl = params->hdl; in js_cb_conn_status()
110 netmgr_hdl_t hdl; in check_ip_task() local
119 hdl = params->hdl; in check_ip_task()
171 netmgr_hdl_t hdl; in native_netmgr_service_deinit() local
237 netmgr_hdl_t hdl; in native_netmgr_set_auto_reconnect() local
263 netmgr_hdl_t hdl; in native_netmgr_connect() local
346 onConnect_task_params.hdl = hdl; in native_netmgr_connect()
379 netmgr_hdl_t hdl; in native_netmgr_disconnect() local
[all …]
/AliOS-Things-master/components/py_engine/modules/netmgr/
A Dmodnetmgr.c56 netmgr_hdl_t hdl = netmgr_get_dev(WIFI_DEV_PATH); in hapy_netmgr_init() local
58 if (hdl >= 0) { in hapy_netmgr_init()
146 netmgr_hdl_t hdl = netmgr_get_dev(WIFI_DEV_PATH); in hapy_netmgr_getDev() local
147 return mp_obj_new_int(hdl); in hapy_netmgr_getDev()
153 netmgr_hdl_t hdl = netmgr_get_dev(WIFI_DEV_PATH); in hapy_netmgr_autoReconnect() local
155 netmgr_set_auto_reconnect(hdl, isAutoReconnect); in hapy_netmgr_autoReconnect()
162 netmgr_hdl_t hdl = netmgr_get_dev(WIFI_DEV_PATH); in hapy_netmgr_autoSavaAP() local
220 netmgr_hdl_t hdl = netmgr_get_dev(WIFI_DEV_PATH); in hapy_netmgr_getConfig() local
249 netmgr_hdl_t hdl = netmgr_get_dev(WIFI_DEV_PATH); in hapy_netmgr_saveConfig() local
250 mp_int_t ret = netmgr_save_config(hdl); in hapy_netmgr_saveConfig()
[all …]
/AliOS-Things-master/components/osal_aos/rhino/
A Daos_workqueue.c64 workqueue->hdl = wq; in aos_workqueue_create()
71 if (!workqueue || !(workqueue->hdl)) { in aos_workqueue_del()
75 krhino_workqueue_del(workqueue->hdl); in aos_workqueue_del()
77 aos_free(workqueue->hdl); in aos_workqueue_del()
136 ret = krhino_work_run(workqueue->hdl, *work); in aos_work_run()
/AliOS-Things-master/components/osal_aos/rhino/include/
A Drhino_p.h17 #define CHECK_HANDLE(hdl) do { \ argument
18 if (hdl == NULL || (void *)(*hdl) == NULL) { \
/AliOS-Things-master/components/amp_adapter/platform/aos/
A Daos_system.c80 netmgr_hdl_t hdl; in aos_get_ip() local
83 hdl = netmgr_get_dev("/dev/wifi0"); in aos_get_ip()
84 if(hdl < 0) { in aos_get_ip()
88 if(netmgr_get_ifconfig(hdl, &info) < 0) { in aos_get_ip()
/AliOS-Things-master/components/py_engine/modules/network/
A Dmodnetwork.c130 netmgr_hdl_t hdl; // can get through netmgr_wifi_get_dev member
154 static int wifi_set_mac(netmgr_hdl_t hdl, uint8_t *mac) in wifi_set_mac() argument
156 return ioctl(hdl, WIFI_DEV_CMD_SET_MAC, mac); in wifi_set_mac()
159 static int wifi_get_mac(netmgr_hdl_t hdl, uint8_t *mac) in wifi_get_mac() argument
161 return ioctl(hdl, WIFI_DEV_CMD_GET_MAC, mac); in wifi_get_mac()
164 static int wifi_get_rssi(netmgr_hdl_t hdl, int *rssi) in wifi_get_rssi() argument
168 int ret = ioctl(hdl, WIFI_DEV_CMD_STA_GET_LINK_STATUS, &out)); in wifi_get_rssi()
348 HAAS_EXCEPTIONS(netmgr_connect(self->hdl, &wifi_sta_config)); in haas_wlan_connect()
360 HAAS_EXCEPTIONS(netmgr_disconnect(self->hdl)); in haas_wlan_disconnect()
484 HAAS_EXCEPTIONS(netmgr_get_ifconfig(self->hdl, &info)); in haas_wlan_ifconfig()
[all …]
/AliOS-Things-master/components/linkkit/wrappers/os/
A DHAL_AWSS_rhino.c275 netmgr_hdl_t hdl; in HAL_Sys_Net_Is_Ready() local
278 hdl = netmgr_get_dev("/dev/wifi0"); in HAL_Sys_Net_Is_Ready()
279 if (hdl < 0) { in HAL_Sys_Net_Is_Ready()
283 return (netmgr_get_state(hdl) == CONN_STATE_NETWORK_CONNECTED) ? 1 : 0; in HAL_Sys_Net_Is_Ready()
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/
A Daudio_provider.cc104 static int pcm_stream_read(void *hdl, void *buf, unsigned int len) in pcm_stream_read() argument
122 if (NULL == hdl) in pcm_stream_read()
128 if (hdl == handle) in pcm_stream_read()
138 ret = data_dump_read(hdl, tempBuf, len * channel_num); in pcm_stream_read()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/
A Drtc_api.c327 alarm_irq_handler hdl; in rtc_alarm_intr_handler() local
334 hdl = (alarm_irq_handler)rtc_alarm_handler; in rtc_alarm_intr_handler()
335 hdl(); in rtc_alarm_intr_handler()
/AliOS-Things-master/hardware/board/haaseduk1/board_test/
A Dboard_test.c251 netmgr_hdl_t hdl; in mfg_wifi_connect() local
254 hdl = netmgr_get_dev("/dev/wifi0"); in mfg_wifi_connect()
256 if (hdl == -1) { in mfg_wifi_connect()
266 netmgr_connect(hdl, &params); in mfg_wifi_connect()

Completed in 107 milliseconds

12