Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/profile/esp/blufi/
Dblufi_protocol.c42 btc_msg_t msg; in btc_blufi_protocol_handler() local
58 msg.sig = BTC_SIG_API_CB; in btc_blufi_protocol_handler()
59 msg.pid = BTC_PID_BLUFI; in btc_blufi_protocol_handler()
60 msg.act = ESP_BLUFI_EVENT_SET_WIFI_OPMODE; in btc_blufi_protocol_handler()
63 btc_transfer_context(&msg, &param, sizeof(esp_blufi_cb_param_t), NULL); in btc_blufi_protocol_handler()
66 msg.sig = BTC_SIG_API_CB; in btc_blufi_protocol_handler()
67 msg.pid = BTC_PID_BLUFI; in btc_blufi_protocol_handler()
68 msg.act = ESP_BLUFI_EVENT_REQ_CONNECT_TO_AP; in btc_blufi_protocol_handler()
70 btc_transfer_context(&msg, NULL, 0, NULL); in btc_blufi_protocol_handler()
73 msg.sig = BTC_SIG_API_CB; in btc_blufi_protocol_handler()
[all …]
/hal_espressif-2.7.6/components/bt/host/bluedroid/api/
Desp_hf_client_api.c46 btc_msg_t msg; in esp_hf_client_init() local
48 msg.sig = BTC_SIG_API_CALL; in esp_hf_client_init()
49 msg.pid = BTC_PID_HF_CLIENT; in esp_hf_client_init()
50 msg.act = BTC_HF_CLIENT_INIT_EVT; in esp_hf_client_init()
53 bt_status_t stat = btc_transfer_context(&msg, NULL, 0, NULL); in esp_hf_client_init()
63 btc_msg_t msg; in esp_hf_client_deinit() local
65 msg.sig = BTC_SIG_API_CALL; in esp_hf_client_deinit()
66 msg.pid = BTC_PID_HF_CLIENT; in esp_hf_client_deinit()
67 msg.act = BTC_HF_CLIENT_DEINIT_EVT; in esp_hf_client_deinit()
70 bt_status_t stat = btc_transfer_context(&msg, NULL, 0, NULL); in esp_hf_client_deinit()
[all …]
Desp_gap_ble_api.c36 btc_msg_t msg; in esp_ble_gap_config_adv_data() local
49 msg.sig = BTC_SIG_API_CALL; in esp_ble_gap_config_adv_data()
50 msg.pid = BTC_PID_GAP_BLE; in esp_ble_gap_config_adv_data()
51 msg.act = BTC_GAP_BLE_ACT_CFG_ADV_DATA; in esp_ble_gap_config_adv_data()
54 …return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_gap_args_t), btc_gap_ble_arg_deep_copy) ==… in esp_ble_gap_config_adv_data()
61 btc_msg_t msg; in esp_ble_gap_set_scan_params() local
70 msg.sig = BTC_SIG_API_CALL; in esp_ble_gap_set_scan_params()
71 msg.pid = BTC_PID_GAP_BLE; in esp_ble_gap_set_scan_params()
72 msg.act = BTC_GAP_BLE_ACT_SET_SCAN_PARAM; in esp_ble_gap_set_scan_params()
75 …return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_gap_args_t), NULL) == BT_STATUS_SUCCESS ? … in esp_ble_gap_set_scan_params()
[all …]
Desp_a2dp_api.c32 btc_msg_t msg; in esp_a2d_sink_init() local
34 msg.sig = BTC_SIG_API_CALL; in esp_a2d_sink_init()
35 msg.pid = BTC_PID_A2DP; in esp_a2d_sink_init()
36 msg.act = BTC_AV_SINK_API_INIT_EVT; in esp_a2d_sink_init()
39 bt_status_t stat = btc_transfer_context(&msg, NULL, 0, NULL); in esp_a2d_sink_init()
49 btc_msg_t msg; in esp_a2d_sink_deinit() local
51 msg.sig = BTC_SIG_API_CALL; in esp_a2d_sink_deinit()
52 msg.pid = BTC_PID_A2DP; in esp_a2d_sink_deinit()
53 msg.act = BTC_AV_SINK_API_DEINIT_EVT; in esp_a2d_sink_deinit()
56 bt_status_t stat = btc_transfer_context(&msg, NULL, 0, NULL); in esp_a2d_sink_deinit()
[all …]
Desp_gap_bt_api.c43 btc_msg_t msg; in esp_bt_gap_set_scan_mode() local
50 msg.sig = BTC_SIG_API_CALL; in esp_bt_gap_set_scan_mode()
51 msg.pid = BTC_PID_GAP_BT; in esp_bt_gap_set_scan_mode()
52 msg.act = BTC_GAP_BT_ACT_SET_SCAN_MODE; in esp_bt_gap_set_scan_mode()
56 …return (btc_transfer_context(&msg, &arg, sizeof(btc_gap_bt_args_t), NULL) == BT_STATUS_SUCCESS ? E… in esp_bt_gap_set_scan_mode()
61 btc_msg_t msg; in esp_bt_gap_start_discovery() local
78 msg.sig = BTC_SIG_API_CALL; in esp_bt_gap_start_discovery()
79 msg.pid = BTC_PID_GAP_BT; in esp_bt_gap_start_discovery()
80 msg.act = BTC_GAP_BT_ACT_START_DISCOVERY; in esp_bt_gap_start_discovery()
86 …return (btc_transfer_context(&msg, &arg, sizeof(btc_gap_bt_args_t), NULL) == BT_STATUS_SUCCESS ? E… in esp_bt_gap_start_discovery()
[all …]
Desp_hf_ag_api.c56 btc_msg_t msg; in esp_bt_hf_init() local
57 msg.sig = BTC_SIG_API_CALL; in esp_bt_hf_init()
58 msg.pid = BTC_PID_HF; in esp_bt_hf_init()
59 msg.act = BTC_HF_INIT_EVT; in esp_bt_hf_init()
66 bt_status_t status = btc_transfer_context(&msg, &arg, sizeof(btc_hf_args_t), NULL); in esp_bt_hf_init()
75 btc_msg_t msg; in esp_bt_hf_deinit() local
76 msg.sig = BTC_SIG_API_CALL; in esp_bt_hf_deinit()
77 msg.pid = BTC_PID_HF; in esp_bt_hf_deinit()
78 msg.act = BTC_HF_DEINIT_EVT; in esp_bt_hf_deinit()
85 bt_status_t status = btc_transfer_context(&msg, &arg, sizeof(btc_hf_args_t), NULL); in esp_bt_hf_deinit()
[all …]
Desp_gatts_api.c42 btc_msg_t msg; in esp_ble_gatts_app_register() local
52 msg.sig = BTC_SIG_API_CALL; in esp_ble_gatts_app_register()
53 msg.pid = BTC_PID_GATTS; in esp_ble_gatts_app_register()
54 msg.act = BTC_GATTS_ACT_APP_REGISTER; in esp_ble_gatts_app_register()
57 …return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_gatts_args_t), NULL) == BT_STATUS_SUCCESS … in esp_ble_gatts_app_register()
63 btc_msg_t msg; in esp_ble_gatts_app_unregister() local
68 msg.sig = BTC_SIG_API_CALL; in esp_ble_gatts_app_unregister()
69 msg.pid = BTC_PID_GATTS; in esp_ble_gatts_app_unregister()
70 msg.act = BTC_GATTS_ACT_APP_UNREGISTER; in esp_ble_gatts_app_unregister()
73 …return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_gatts_args_t), NULL) == BT_STATUS_SUCCESS … in esp_ble_gatts_app_unregister()
[all …]
Desp_spp_api.c45 btc_msg_t msg; in esp_spp_init() local
49 msg.sig = BTC_SIG_API_CALL; in esp_spp_init()
50 msg.pid = BTC_PID_SPP; in esp_spp_init()
51 msg.act = BTC_SPP_ACT_INIT; in esp_spp_init()
54 …return (btc_transfer_context(&msg, &arg, sizeof(btc_spp_args_t), NULL) == BT_STATUS_SUCCESS ? ESP_… in esp_spp_init()
59 btc_msg_t msg; in esp_spp_deinit() local
63 msg.sig = BTC_SIG_API_CALL; in esp_spp_deinit()
64 msg.pid = BTC_PID_SPP; in esp_spp_deinit()
65 msg.act = BTC_SPP_ACT_UNINIT; in esp_spp_deinit()
67 …return (btc_transfer_context(&msg, &arg, sizeof(btc_spp_args_t), NULL) == BT_STATUS_SUCCESS ? ESP_… in esp_spp_deinit()
[all …]
Desp_blufi_api.c44 btc_msg_t msg; in esp_blufi_send_wifi_conn_report() local
51 msg.sig = BTC_SIG_API_CALL; in esp_blufi_send_wifi_conn_report()
52 msg.pid = BTC_PID_BLUFI; in esp_blufi_send_wifi_conn_report()
53 msg.act = BTC_BLUFI_ACT_SEND_CFG_REPORT; in esp_blufi_send_wifi_conn_report()
59 …return (btc_transfer_context(&msg, &arg, sizeof(btc_blufi_args_t), btc_blufi_call_deep_copy) == BT… in esp_blufi_send_wifi_conn_report()
64 btc_msg_t msg; in esp_blufi_send_wifi_list() local
71 msg.sig = BTC_SIG_API_CALL; in esp_blufi_send_wifi_list()
72 msg.pid = BTC_PID_BLUFI; in esp_blufi_send_wifi_list()
73 msg.act = BTC_BLUFI_ACT_SEND_WIFI_LIST; in esp_blufi_send_wifi_list()
77 …return (btc_transfer_context(&msg, &arg, sizeof(btc_blufi_args_t), btc_blufi_call_deep_copy) == BT… in esp_blufi_send_wifi_list()
[all …]
Desp_avrc_api.c45 btc_msg_t msg; in esp_avrc_ct_init() local
47 msg.sig = BTC_SIG_API_CALL; in esp_avrc_ct_init()
48 msg.pid = BTC_PID_AVRC_CT; in esp_avrc_ct_init()
49 msg.act = BTC_AVRC_CT_API_INIT_EVT; in esp_avrc_ct_init()
52 bt_status_t stat = btc_transfer_context(&msg, NULL, 0, NULL); in esp_avrc_ct_init()
62 btc_msg_t msg; in esp_avrc_ct_deinit() local
64 msg.sig = BTC_SIG_API_CALL; in esp_avrc_ct_deinit()
65 msg.pid = BTC_PID_AVRC_CT; in esp_avrc_ct_deinit()
66 msg.act = BTC_AVRC_CT_API_DEINIT_EVT; in esp_avrc_ct_deinit()
69 bt_status_t stat = btc_transfer_context(&msg, NULL, 0, NULL); in esp_avrc_ct_deinit()
[all …]
Desp_gattc_api.c42 btc_msg_t msg; in esp_ble_gattc_app_register() local
51 msg.sig = BTC_SIG_API_CALL; in esp_ble_gattc_app_register()
52 msg.pid = BTC_PID_GATTC; in esp_ble_gattc_app_register()
53 msg.act = BTC_GATTC_ACT_APP_REGISTER; in esp_ble_gattc_app_register()
56 …return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_gattc_args_t), NULL) == BT_STATUS_SUCCESS … in esp_ble_gattc_app_register()
61 btc_msg_t msg; in esp_ble_gattc_app_unregister() local
66 msg.sig = BTC_SIG_API_CALL; in esp_ble_gattc_app_unregister()
67 msg.pid = BTC_PID_GATTC; in esp_ble_gattc_app_unregister()
68 msg.act = BTC_GATTC_ACT_APP_UNREGISTER; in esp_ble_gattc_app_unregister()
71 …return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_gattc_args_t), NULL) == BT_STATUS_SUCCESS … in esp_ble_gattc_app_unregister()
[all …]
/hal_espressif-2.7.6/components/wpa_supplicant/src/wps/
Dwps_attr_build.c21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg, wps_key_mode_t mode) in wps_build_public_key() argument
81 wpabuf_put_be16(msg, ATTR_PUBLIC_KEY); in wps_build_public_key()
82 wpabuf_put_be16(msg, wpabuf_len(pubkey)); in wps_build_public_key()
83 wpabuf_put_buf(msg, pubkey); in wps_build_public_key()
90 int wps_build_req_type(struct wpabuf *msg, enum wps_request_type type) in wps_build_req_type() argument
93 wpabuf_put_be16(msg, ATTR_REQUEST_TYPE); in wps_build_req_type()
94 wpabuf_put_be16(msg, 1); in wps_build_req_type()
95 wpabuf_put_u8(msg, type); in wps_build_req_type()
100 int wps_build_resp_type(struct wpabuf *msg, enum wps_response_type type) in wps_build_resp_type() argument
103 wpabuf_put_be16(msg, ATTR_RESPONSE_TYPE); in wps_build_resp_type()
[all …]
Dwps_dev_attr.c14 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument
18 wpabuf_put_be16(msg, ATTR_MANUFACTURER); in wps_build_manufacturer()
27 wpabuf_put_be16(msg, 1); in wps_build_manufacturer()
28 wpabuf_put_u8(msg, ' '); in wps_build_manufacturer()
32 wpabuf_put_be16(msg, len); in wps_build_manufacturer()
33 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer()
38 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument
42 wpabuf_put_be16(msg, ATTR_MODEL_NAME); in wps_build_model_name()
51 wpabuf_put_be16(msg, 1); in wps_build_model_name()
52 wpabuf_put_u8(msg, ' '); in wps_build_model_name()
[all …]
Dwps_enrollee.c22 static int wps_build_mac_addr(struct wps_data *wps, struct wpabuf *msg) { in wps_build_mac_addr() argument
24 wpabuf_put_be16(msg, ATTR_MAC_ADDR); in wps_build_mac_addr()
25 wpabuf_put_be16(msg, ETH_ALEN); in wps_build_mac_addr()
26 wpabuf_put_data(msg, wps->mac_addr_e, ETH_ALEN); in wps_build_mac_addr()
31 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) in wps_build_wps_state() argument
40 wpabuf_put_be16(msg, ATTR_WPS_STATE); in wps_build_wps_state()
41 wpabuf_put_be16(msg, 1); in wps_build_wps_state()
42 wpabuf_put_u8(msg, state); in wps_build_wps_state()
47 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg) in wps_build_e_hash() argument
66 wpabuf_put_be16(msg, ATTR_E_HASH1); in wps_build_e_hash()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/
Dbt_app_core.c21 static bool bt_app_send_msg(bt_app_msg_t *msg);
22 static void bt_app_work_dispatched(bt_app_msg_t *msg);
31 bt_app_msg_t msg; in bt_app_work_dispatch() local
32 memset(&msg, 0, sizeof(bt_app_msg_t)); in bt_app_work_dispatch()
34 msg.sig = BT_APP_SIG_WORK_DISPATCH; in bt_app_work_dispatch()
35 msg.event = event; in bt_app_work_dispatch()
36 msg.cb = p_cback; in bt_app_work_dispatch()
39 return bt_app_send_msg(&msg); in bt_app_work_dispatch()
41 if ((msg.param = malloc(param_len)) != NULL) { in bt_app_work_dispatch()
42 memcpy(msg.param, p_params, param_len); in bt_app_work_dispatch()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/
Dbt_app_core.c21 static bool bt_app_send_msg(bt_app_msg_t *msg);
22 static void bt_app_work_dispatched(bt_app_msg_t *msg);
31 bt_app_msg_t msg; in bt_app_work_dispatch() local
32 memset(&msg, 0, sizeof(bt_app_msg_t)); in bt_app_work_dispatch()
34 msg.sig = BT_APP_SIG_WORK_DISPATCH; in bt_app_work_dispatch()
35 msg.event = event; in bt_app_work_dispatch()
36 msg.cb = p_cback; in bt_app_work_dispatch()
39 return bt_app_send_msg(&msg); in bt_app_work_dispatch()
41 if ((msg.param = malloc(param_len)) != NULL) { in bt_app_work_dispatch()
42 memcpy(msg.param, p_params, param_len); in bt_app_work_dispatch()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/bluedroid/classic_bt/a2dp_source/main/
Dbt_app_core.c21 static bool bt_app_send_msg(bt_app_msg_t *msg);
22 static void bt_app_work_dispatched(bt_app_msg_t *msg);
31 bt_app_msg_t msg; in bt_app_work_dispatch() local
32 memset(&msg, 0, sizeof(bt_app_msg_t)); in bt_app_work_dispatch()
34 msg.sig = BT_APP_SIG_WORK_DISPATCH; in bt_app_work_dispatch()
35 msg.event = event; in bt_app_work_dispatch()
36 msg.cb = p_cback; in bt_app_work_dispatch()
39 return bt_app_send_msg(&msg); in bt_app_work_dispatch()
41 if ((msg.param = malloc(param_len)) != NULL) { in bt_app_work_dispatch()
42 memcpy(msg.param, p_params, param_len); in bt_app_work_dispatch()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/
Dspp_task.c27 static bool spp_task_send_msg(spp_task_msg_t *msg);
28 static void spp_task_work_dispatched(spp_task_msg_t *msg);
37 spp_task_msg_t msg; in spp_task_work_dispatch() local
38 memset(&msg, 0, sizeof(spp_task_msg_t)); in spp_task_work_dispatch()
40 msg.sig = SPP_TASK_SIG_WORK_DISPATCH; in spp_task_work_dispatch()
41 msg.event = event; in spp_task_work_dispatch()
42 msg.cb = p_cback; in spp_task_work_dispatch()
45 return spp_task_send_msg(&msg); in spp_task_work_dispatch()
47 if ((msg.param = malloc(param_len)) != NULL) { in spp_task_work_dispatch()
48 memcpy(msg.param, p_params, param_len); in spp_task_work_dispatch()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/
Dspp_task.c27 static bool spp_task_send_msg(spp_task_msg_t *msg);
28 static void spp_task_work_dispatched(spp_task_msg_t *msg);
37 spp_task_msg_t msg; in spp_task_work_dispatch() local
38 memset(&msg, 0, sizeof(spp_task_msg_t)); in spp_task_work_dispatch()
40 msg.sig = SPP_TASK_SIG_WORK_DISPATCH; in spp_task_work_dispatch()
41 msg.event = event; in spp_task_work_dispatch()
42 msg.cb = p_cback; in spp_task_work_dispatch()
45 return spp_task_send_msg(&msg); in spp_task_work_dispatch()
47 if ((msg.param = malloc(param_len)) != NULL) { in spp_task_work_dispatch()
48 memcpy(msg.param, p_params, param_len); in spp_task_work_dispatch()
[all …]
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/api/core/
Desp_ble_mesh_proxy_api.c25 btc_msg_t msg = {0}; in esp_ble_mesh_proxy_identity_enable() local
29 msg.sig = BTC_SIG_API_CALL; in esp_ble_mesh_proxy_identity_enable()
30 msg.pid = BTC_PID_PROV; in esp_ble_mesh_proxy_identity_enable()
31 msg.act = BTC_BLE_MESH_ACT_PROXY_IDENTITY_ENABLE; in esp_ble_mesh_proxy_identity_enable()
33 return (btc_transfer_context(&msg, NULL, 0, NULL) == BT_STATUS_SUCCESS ? ESP_OK : ESP_FAIL); in esp_ble_mesh_proxy_identity_enable()
38 btc_msg_t msg = {0}; in esp_ble_mesh_proxy_gatt_enable() local
42 msg.sig = BTC_SIG_API_CALL; in esp_ble_mesh_proxy_gatt_enable()
43 msg.pid = BTC_PID_PROV; in esp_ble_mesh_proxy_gatt_enable()
44 msg.act = BTC_BLE_MESH_ACT_PROXY_GATT_ENABLE; in esp_ble_mesh_proxy_gatt_enable()
46 return (btc_transfer_context(&msg, NULL, 0, NULL) == BT_STATUS_SUCCESS ? ESP_OK : ESP_FAIL); in esp_ble_mesh_proxy_gatt_enable()
[all …]
Desp_ble_mesh_provisioning_api.c55 btc_msg_t msg = {0}; in esp_ble_mesh_node_prov_enable() local
63 msg.sig = BTC_SIG_API_CALL; in esp_ble_mesh_node_prov_enable()
64 msg.pid = BTC_PID_PROV; in esp_ble_mesh_node_prov_enable()
65 msg.act = BTC_BLE_MESH_ACT_PROV_ENABLE; in esp_ble_mesh_node_prov_enable()
68 return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_mesh_prov_args_t), NULL) in esp_ble_mesh_node_prov_enable()
75 btc_msg_t msg = {0}; in esp_ble_mesh_node_prov_disable() local
83 msg.sig = BTC_SIG_API_CALL; in esp_ble_mesh_node_prov_disable()
84 msg.pid = BTC_PID_PROV; in esp_ble_mesh_node_prov_disable()
85 msg.act = BTC_BLE_MESH_ACT_PROV_DISABLE; in esp_ble_mesh_node_prov_disable()
88 return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_mesh_prov_args_t), NULL) in esp_ble_mesh_node_prov_disable()
[all …]
Desp_ble_mesh_networking_api.c36 btc_msg_t msg = {0}; in ble_mesh_model_send_msg() local
65 if (op_len + length > model->pub->msg->size) { in ble_mesh_model_send_msg()
66 BT_ERR("Too small publication msg size %d", model->pub->msg->size); in ble_mesh_model_send_msg()
83 bt_mesh_model_msg_init(model->pub->msg, opcode); in ble_mesh_model_send_msg()
84 net_buf_simple_add_mem(model->pub->msg, data, length); in ble_mesh_model_send_msg()
94 msg.sig = BTC_SIG_API_CALL; in ble_mesh_model_send_msg()
95 msg.pid = BTC_PID_MODEL; in ble_mesh_model_send_msg()
96 msg.act = act; in ble_mesh_model_send_msg()
112 …status = (btc_transfer_context(&msg, &arg, sizeof(btc_ble_mesh_model_args_t), btc_ble_mesh_model_a… in ble_mesh_model_send_msg()
216 if (model == NULL || model->pub == NULL || model->pub->msg == NULL || in esp_ble_mesh_model_publish()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/
Dbt_app_core.c23 static bool bt_app_send_msg(bt_app_msg_t *msg);
24 static void bt_app_work_dispatched(bt_app_msg_t *msg);
35 bt_app_msg_t msg; in bt_app_work_dispatch() local
36 memset(&msg, 0, sizeof(bt_app_msg_t)); in bt_app_work_dispatch()
38 msg.sig = BT_APP_SIG_WORK_DISPATCH; in bt_app_work_dispatch()
39 msg.event = event; in bt_app_work_dispatch()
40 msg.cb = p_cback; in bt_app_work_dispatch()
43 return bt_app_send_msg(&msg); in bt_app_work_dispatch()
45 if ((msg.param = malloc(param_len)) != NULL) { in bt_app_work_dispatch()
46 memcpy(msg.param, p_params, param_len); in bt_app_work_dispatch()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/
Dbt_app_core.c23 static bool bt_app_send_msg(bt_app_msg_t *msg);
24 static void bt_app_work_dispatched(bt_app_msg_t *msg);
35 bt_app_msg_t msg; in bt_app_work_dispatch() local
36 memset(&msg, 0, sizeof(bt_app_msg_t)); in bt_app_work_dispatch()
38 msg.sig = BT_APP_SIG_WORK_DISPATCH; in bt_app_work_dispatch()
39 msg.event = event; in bt_app_work_dispatch()
40 msg.cb = p_cback; in bt_app_work_dispatch()
43 return bt_app_send_msg(&msg); in bt_app_work_dispatch()
45 if ((msg.param = malloc(param_len)) != NULL) { in bt_app_work_dispatch()
46 memcpy(msg.param, p_params, param_len); in bt_app_work_dispatch()
[all …]
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_health_model.c37 void btc_ble_mesh_health_client_arg_deep_copy(btc_msg_t *msg, void *p_dest, void *p_src) in btc_ble_mesh_health_client_arg_deep_copy() argument
42 if (!msg || !dst || !src) { in btc_ble_mesh_health_client_arg_deep_copy()
47 switch (msg->act) { in btc_ble_mesh_health_client_arg_deep_copy()
54 BT_ERR("%s, Out of memory, act %d", __func__, msg->act); in btc_ble_mesh_health_client_arg_deep_copy()
63 BT_ERR("%s, Out of memory, act %d", __func__, msg->act); in btc_ble_mesh_health_client_arg_deep_copy()
77 BT_ERR("%s, Out of memory, act %d", __func__, msg->act); in btc_ble_mesh_health_client_arg_deep_copy()
82 BT_DBG("%s, Unknown act %d", __func__, msg->act); in btc_ble_mesh_health_client_arg_deep_copy()
87 static void btc_ble_mesh_health_client_arg_deep_free(btc_msg_t *msg) in btc_ble_mesh_health_client_arg_deep_free() argument
91 if (!msg || !msg->arg) { in btc_ble_mesh_health_client_arg_deep_free()
96 arg = (btc_ble_mesh_health_client_args_t *)(msg->arg); in btc_ble_mesh_health_client_arg_deep_free()
[all …]

12345678910>>...12