/hal_espressif-latest/components/bt/host/bluedroid/bta/av/ |
D | bta_av_api.c | 61 tBTA_AV_API_ENABLE *p_buf; in BTA_AvEnable() local 66 if ((p_buf = (tBTA_AV_API_ENABLE *) osi_malloc(sizeof(tBTA_AV_API_ENABLE))) != NULL) { in BTA_AvEnable() 67 p_buf->hdr.event = BTA_AV_API_ENABLE_EVT; in BTA_AvEnable() 68 p_buf->p_cback = p_cback; in BTA_AvEnable() 69 p_buf->features = features; in BTA_AvEnable() 70 p_buf->sec_mask = sec_mask; in BTA_AvEnable() 71 bta_sys_sendmsg(p_buf); in BTA_AvEnable() 86 BT_HDR *p_buf; in BTA_AvDisable() local 89 if ((p_buf = (BT_HDR *) osi_malloc(sizeof(BT_HDR))) != NULL) { in BTA_AvDisable() 90 p_buf->event = BTA_AV_API_DISABLE_EVT; in BTA_AvDisable() [all …]
|
D | bta_av_ci.c | 50 BT_HDR *p_buf; in bta_av_ci_src_data_ready() local 52 if ((p_buf = (BT_HDR *) osi_malloc(sizeof(BT_HDR))) != NULL) { in bta_av_ci_src_data_ready() 53 p_buf->layer_specific = chnl; in bta_av_ci_src_data_ready() 54 p_buf->event = BTA_AV_CI_SRC_DATA_READY_EVT; in bta_av_ci_src_data_ready() 55 bta_sys_sendmsg(p_buf); in bta_av_ci_src_data_ready() 75 tBTA_AV_CI_SETCONFIG *p_buf; in bta_av_ci_setconfig() local 77 …if ((p_buf = (tBTA_AV_CI_SETCONFIG *) osi_malloc(sizeof(tBTA_AV_CI_SETCONFIG) + num_seid)) != NULL… in bta_av_ci_setconfig() 78 p_buf->hdr.layer_specific = hndl; in bta_av_ci_setconfig() 79 p_buf->hdr.event = (err_code == AVDT_SUCCESS) ? in bta_av_ci_setconfig() 81 p_buf->err_code = err_code; in bta_av_ci_setconfig() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/gatt/ |
D | bta_gatts_api.c | 58 BT_HDR *p_buf; in BTA_GATTS_Disable() local 65 if ((p_buf = (BT_HDR *) osi_malloc(sizeof(BT_HDR))) != NULL) { in BTA_GATTS_Disable() 66 p_buf->event = BTA_GATTS_API_DISABLE_EVT; in BTA_GATTS_Disable() 67 bta_sys_sendmsg(p_buf); in BTA_GATTS_Disable() 88 tBTA_GATTS_API_REG *p_buf; in BTA_GATTS_AppRegister() local 95 if ((p_buf = (tBTA_GATTS_API_REG *) osi_malloc(sizeof(tBTA_GATTS_API_REG))) != NULL) { in BTA_GATTS_AppRegister() 96 p_buf->hdr.event = BTA_GATTS_API_REG_EVT; in BTA_GATTS_AppRegister() 99 memcpy(&p_buf->app_uuid, p_app_uuid, sizeof(tBT_UUID)); in BTA_GATTS_AppRegister() 101 p_buf->p_cback = p_cback; in BTA_GATTS_AppRegister() 103 bta_sys_sendmsg(p_buf); in BTA_GATTS_AppRegister() [all …]
|
D | bta_gattc_api.c | 58 BT_HDR *p_buf; in BTA_GATTC_Disable() local 64 if ((p_buf = (BT_HDR *) osi_malloc(sizeof(BT_HDR))) != NULL) { in BTA_GATTC_Disable() 65 p_buf->event = BTA_GATTC_API_DISABLE_EVT; in BTA_GATTC_Disable() 66 bta_sys_sendmsg(p_buf); in BTA_GATTC_Disable() 87 tBTA_GATTC_API_REG *p_buf; in BTA_GATTC_AppRegister() local 93 if ((p_buf = (tBTA_GATTC_API_REG *) osi_malloc(sizeof(tBTA_GATTC_API_REG))) != NULL) { in BTA_GATTC_AppRegister() 94 p_buf->hdr.event = BTA_GATTC_API_REG_EVT; in BTA_GATTC_AppRegister() 96 memcpy(&p_buf->app_uuid, p_app_uuid, sizeof(tBT_UUID)); in BTA_GATTC_AppRegister() 98 p_buf->p_cback = p_client_cb; in BTA_GATTC_AppRegister() 100 bta_sys_sendmsg(p_buf); in BTA_GATTC_AppRegister() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_ag/ |
D | bta_ag_api.c | 60 tBTA_AG_API_ENABLE *p_buf; in BTA_AgEnable() local 73 if ((p_buf = (tBTA_AG_API_ENABLE *) osi_malloc(sizeof(tBTA_AG_API_ENABLE))) != NULL) { in BTA_AgEnable() 74 p_buf->hdr.event = BTA_AG_API_ENABLE_EVT; in BTA_AgEnable() 75 p_buf->parse_mode = parse_mode; in BTA_AgEnable() 76 p_buf->p_cback = p_cback; in BTA_AgEnable() 77 bta_sys_sendmsg(p_buf); in BTA_AgEnable() 94 BT_HDR *p_buf; in BTA_AgDisable() local 95 if ((p_buf = (BT_HDR *) osi_malloc(sizeof(BT_HDR))) != NULL) { in BTA_AgDisable() 96 p_buf->event = BTA_AG_API_DISABLE_EVT; in BTA_AgDisable() 97 bta_sys_sendmsg(p_buf); in BTA_AgDisable() [all …]
|
D | bta_ag_rfc.c | 95 BT_HDR *p_buf; in bta_ag_port_cback() local 107 if ((p_buf = (BT_HDR *) osi_malloc(sizeof(BT_HDR))) != NULL) { in bta_ag_port_cback() 108 p_buf->event = BTA_AG_RFC_DATA_EVT; in bta_ag_port_cback() 109 p_buf->layer_specific = handle; in bta_ag_port_cback() 110 bta_sys_sendmsg(p_buf); in bta_ag_port_cback() 127 tBTA_AG_RFC *p_buf; in bta_ag_mgmt_cback() local 168 if ((p_buf = (tBTA_AG_RFC *) osi_malloc(sizeof(tBTA_AG_RFC))) != NULL) { in bta_ag_mgmt_cback() 169 p_buf->hdr.event = event; in bta_ag_mgmt_cback() 170 p_buf->hdr.layer_specific = handle; in bta_ag_mgmt_cback() 171 p_buf->port_handle = port_handle; in bta_ag_mgmt_cback() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/hd/ |
D | bta_hd_api.c | 50 tBTA_HD_API_ENABLE *p_buf; in BTA_HdEnable() local 53 p_buf = (tBTA_HD_API_ENABLE *)osi_malloc((uint16_t)sizeof(tBTA_HD_API_ENABLE)); in BTA_HdEnable() 54 if (p_buf != NULL) { in BTA_HdEnable() 55 memset(p_buf, 0, sizeof(tBTA_HD_API_ENABLE)); in BTA_HdEnable() 56 p_buf->hdr.event = BTA_HD_API_ENABLE_EVT; in BTA_HdEnable() 57 p_buf->p_cback = p_cback; in BTA_HdEnable() 58 bta_sys_sendmsg(p_buf); in BTA_HdEnable() 72 BT_HDR *p_buf; in BTA_HdDisable() local 75 if ((p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR))) != NULL) { in BTA_HdDisable() 76 p_buf->event = BTA_HD_API_DISABLE_EVT; in BTA_HdDisable() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_client/ |
D | bta_hf_client_api.c | 86 tBTA_HF_CLIENT_API_ENABLE *p_buf; in BTA_HfClientEnable() local 96 …if ((p_buf = (tBTA_HF_CLIENT_API_ENABLE *) osi_malloc(sizeof(tBTA_HF_CLIENT_API_ENABLE))) != NULL)… in BTA_HfClientEnable() 97 p_buf->hdr.event = BTA_HF_CLIENT_API_ENABLE_EVT; in BTA_HfClientEnable() 98 p_buf->p_cback = p_cback; in BTA_HfClientEnable() 99 bta_sys_sendmsg(p_buf); in BTA_HfClientEnable() 117 BT_HDR *p_buf; in BTA_HfClientDisable() local 119 if ((p_buf = (BT_HDR *) osi_malloc(sizeof(BT_HDR))) != NULL) { in BTA_HfClientDisable() 120 p_buf->event = BTA_HF_CLIENT_API_DISABLE_EVT; in BTA_HfClientDisable() 121 bta_sys_sendmsg(p_buf); in BTA_HfClientDisable() 138 tBTA_HF_CLIENT_API_REGISTER *p_buf; in BTA_HfClientRegister() local [all …]
|
D | bta_hf_client_rfc.c | 47 BT_HDR *p_buf; in bta_hf_client_port_cback() local 57 if ((p_buf = (BT_HDR *) osi_malloc(sizeof(BT_HDR))) != NULL) { in bta_hf_client_port_cback() 58 p_buf->event = BTA_HF_CLIENT_RFC_DATA_EVT; in bta_hf_client_port_cback() 59 bta_sys_sendmsg(p_buf); in bta_hf_client_port_cback() 75 tBTA_HF_CLIENT_RFC *p_buf; in bta_hf_client_mgmt_cback() local 103 if ((p_buf = (tBTA_HF_CLIENT_RFC *) osi_malloc(sizeof(tBTA_HF_CLIENT_RFC))) != NULL) { in bta_hf_client_mgmt_cback() 104 p_buf->hdr.event = event; in bta_hf_client_mgmt_cback() 105 p_buf->port_handle = port_handle; in bta_hf_client_mgmt_cback() 106 bta_sys_sendmsg(p_buf); in bta_hf_client_mgmt_cback() 225 tBTA_HF_CLIENT_RFC *p_buf; in bta_hf_client_rfc_do_close() local [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/hh/ |
D | bta_hh_api.c | 64 tBTA_HH_API_ENABLE *p_buf; in BTA_HhEnable() local 70 p_buf = (tBTA_HH_API_ENABLE *)osi_malloc((UINT16)sizeof(tBTA_HH_API_ENABLE)); in BTA_HhEnable() 72 if (p_buf != NULL) { in BTA_HhEnable() 73 memset(p_buf, 0, sizeof(tBTA_HH_API_ENABLE)); in BTA_HhEnable() 75 p_buf->hdr.event = BTA_HH_API_ENABLE_EVT; in BTA_HhEnable() 76 p_buf->p_cback = p_cback; in BTA_HhEnable() 77 p_buf->sec_mask = sec_mask; in BTA_HhEnable() 79 bta_sys_sendmsg(p_buf); in BTA_HhEnable() 95 BT_HDR *p_buf; in BTA_HhDisable() local 98 if ((p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR))) != NULL) { in BTA_HhDisable() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/rfcomm/ |
D | rfc_ts_frames.c | 46 BT_HDR *p_buf; in rfc_send_sabme() local 50 if ((p_buf = (BT_HDR *)osi_malloc(RFCOMM_CMD_BUF_SIZE)) == NULL) { in rfc_send_sabme() 54 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_sabme() 55 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_sabme() 62 *p_data = RFCOMM_SABME_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme() 64 p_buf->len = 4; in rfc_send_sabme() 66 rfc_check_send_cmd(p_mcb, p_buf); in rfc_send_sabme() 79 BT_HDR *p_buf; in rfc_send_ua() local 83 if ((p_buf = (BT_HDR *)osi_malloc(RFCOMM_CMD_BUF_SIZE)) == NULL) { in rfc_send_ua() 87 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_ua() [all …]
|
D | port_api.c | 1150 BT_HDR *p_buf; in PORT_Purge() local 1172 while ((p_buf = (BT_HDR *)fixed_queue_dequeue(p_port->rx.queue, 0)) != NULL) { in PORT_Purge() 1173 osi_free (p_buf); in PORT_Purge() 1189 while ((p_buf = (BT_HDR *)fixed_queue_dequeue(p_port->tx.queue, 0)) != NULL) { in PORT_Purge() 1190 osi_free (p_buf); in PORT_Purge() 1228 BT_HDR *p_buf; in PORT_ReadData() local 1259 p_buf = (BT_HDR *)fixed_queue_try_peek_first(p_port->rx.queue); in PORT_ReadData() 1260 if (p_buf == NULL){ in PORT_ReadData() 1264 if (p_buf->len > max_len) { in PORT_ReadData() 1265 memcpy (p_data, (UINT8 *)(p_buf + 1) + p_buf->offset, max_len); in PORT_ReadData() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/gatt/ |
D | att_protocol.c | 49 BT_HDR *p_buf = NULL; in attp_build_mtu_cmd() local 52 if ((p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR) + GATT_HDR_SIZE + L2CAP_MIN_OFFSET)) != NULL) { in attp_build_mtu_cmd() 53 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 58 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 59 p_buf->len = GATT_HDR_SIZE; /* opcode + 2 bytes mtu */ in attp_build_mtu_cmd() 61 return p_buf; in attp_build_mtu_cmd() 74 BT_HDR *p_buf = NULL; in attp_build_exec_write_cmd() local 77 if ((p_buf = (BT_HDR *)osi_malloc(GATT_DATA_BUF_SIZE)) != NULL) { in attp_build_exec_write_cmd() 78 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 80 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() [all …]
|
D | gatt_auth.c | 100 void gatt_verify_signature(tGATT_TCB *p_tcb, BT_HDR *p_buf) in gatt_verify_signature() argument 106 UINT8 *p, *p_orig = (UINT8 *)(p_buf + 1) + p_buf->offset; in gatt_verify_signature() 109 if (p_buf->len < GATT_AUTH_SIGN_LEN + 4) { in gatt_verify_signature() 111 __func__, p_buf->len, GATT_AUTH_SIGN_LEN + 4); in gatt_verify_signature() 114 cmd_len = p_buf->len - GATT_AUTH_SIGN_LEN + 4; in gatt_verify_signature() 121 gatt_server_handle_client_req (p_tcb, op_code, (UINT16)(p_buf->len - 1), p_orig); in gatt_verify_signature() 179 tGATT_PENDING_ENC_CLCB *p_buf = in gatt_enc_cmpl_cback() local 181 if (p_buf != NULL) { in gatt_enc_cmpl_cback() 193 gatt_sec_check_complete(status , p_buf->p_clcb, p_tcb->sec_act); in gatt_enc_cmpl_cback() 194 osi_free(p_buf); in gatt_enc_cmpl_cback() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/avct/ |
D | avct_lcb_act.c | 55 static BT_HDR *avct_lcb_msg_asmbl(tAVCT_LCB *p_lcb, BT_HDR *p_buf) in avct_lcb_msg_asmbl() argument 63 p = (UINT8 *)(p_buf + 1) + p_buf->offset; in avct_lcb_msg_asmbl() 67 if (p_buf->len < avct_lcb_pkt_type_len[pkt_type]) { in avct_lcb_msg_asmbl() 68 osi_free(p_buf); in avct_lcb_msg_asmbl() 80 p_ret = p_buf; in avct_lcb_msg_asmbl() 96 osi_free(p_buf); in avct_lcb_msg_asmbl() 98 memcpy (p_lcb->p_rx_msg, p_buf, in avct_lcb_msg_asmbl() 99 sizeof(BT_HDR) + p_buf->offset + p_buf->len); in avct_lcb_msg_asmbl() 101 osi_free(p_buf); in avct_lcb_msg_asmbl() 121 osi_free(p_buf); in avct_lcb_msg_asmbl() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/l2cap/ |
D | l2c_fcr.c | 91 static void process_s_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word); 92 static void process_i_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word, BOOLEAN delay_ack… 94 static void prepare_I_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, BOOLEAN is_retransmission); 95 static void process_stream_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf); 96 static BOOLEAN do_sar_reassembly (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word); 134 static UINT16 l2c_fcr_tx_get_fcs (BT_HDR *p_buf) in l2c_fcr_tx_get_fcs() argument 136 UINT8 *p = ((UINT8 *) (p_buf + 1)) + p_buf->offset; in l2c_fcr_tx_get_fcs() 138 return (l2c_fcr_updcrc (L2CAP_FCR_INIT_CRC, p, p_buf->len)); in l2c_fcr_tx_get_fcs() 150 static UINT16 l2c_fcr_rx_get_fcs (BT_HDR *p_buf) in l2c_fcr_rx_get_fcs() argument 152 UINT8 *p = ((UINT8 *) (p_buf + 1)) + p_buf->offset; in l2c_fcr_rx_get_fcs() [all …]
|
D | l2c_ucd.c | 85 static void l2c_ucd_data_ind_cback (BD_ADDR rem_bda, BT_HDR *p_buf) in l2c_ucd_data_ind_cback() argument 93 p = (UINT8 *)(p_buf + 1) + p_buf->offset; in l2c_ucd_data_ind_cback() 96 p_buf->offset += L2CAP_UCD_OVERHEAD; in l2c_ucd_data_ind_cback() 97 p_buf->len -= L2CAP_UCD_OVERHEAD; in l2c_ucd_data_ind_cback() 101 osi_free (p_buf); in l2c_ucd_data_ind_cback() 103 p_rcb->ucd.cb_info.pL2CA_UCD_Data_Cb(rem_bda, p_buf); in l2c_ucd_data_ind_cback() 370 UINT16 L2CA_UcdDataWrite (UINT16 psm, BD_ADDR rem_bda, BT_HDR *p_buf, UINT16 flags) in L2CA_UcdDataWrite() argument 385 osi_free (p_buf); in L2CA_UcdDataWrite() 394 osi_free (p_buf); in L2CA_UcdDataWrite() 401 osi_free (p_buf); in L2CA_UcdDataWrite() [all …]
|
D | l2c_utils.c | 236 BT_HDR *p_buf = list_front(p_lcb->link_xmit_data_q); in l2cu_release_lcb() local 237 list_remove(p_lcb->link_xmit_data_q, p_buf); in l2cu_release_lcb() 238 osi_free(p_buf); in l2cu_release_lcb() 283 …tL2CAP_SEC_DATA *p_buf = (tL2CAP_SEC_DATA*) fixed_queue_dequeue(p_lcb->le_sec_pending_q, FIXED_QUE… in l2cu_release_lcb() local 284 if (p_buf->p_callback) { in l2cu_release_lcb() 285 … p_buf->p_callback(p_lcb->remote_bd_addr, p_lcb->transport, p_buf->p_ref_data, BTM_DEV_RESET); in l2cu_release_lcb() 287 osi_free(p_buf); in l2cu_release_lcb() 419 BT_HDR *p_buf = (BT_HDR *)osi_malloc(L2CAP_CMD_BUF_SIZE); in l2cu_build_header() local 422 if (!p_buf) { in l2cu_build_header() 426 p_buf->offset = L2CAP_SEND_CMD_OFFSET; in l2cu_build_header() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/smp/ |
D | smp_utils.c | 350 BT_HDR *p_buf; in smp_send_cmd() local 356 p_buf = (*smp_cmd_build_act[cmd_code])(cmd_code, p_cb); in smp_send_cmd() 358 if (p_buf != NULL && in smp_send_cmd() 359 smp_send_msg_to_L2CAP(p_cb->pairing_bda, p_buf)) { in smp_send_cmd() 415 BT_HDR *p_buf = NULL ; in smp_build_pairing_cmd() local 419 …if ((p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR) + SMP_PAIRING_REQ_SIZE + L2CAP_MIN_OFFSET)) != NU… in smp_build_pairing_cmd() 420 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pairing_cmd() 430 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pairing_cmd() 432 p_buf->len = SMP_PAIRING_REQ_SIZE; in smp_build_pairing_cmd() 435 return p_buf; in smp_build_pairing_cmd() [all …]
|
D | smp_l2c.c | 42 static void smp_data_received(UINT16 channel, BD_ADDR bd_addr, BT_HDR *p_buf); 47 static void smp_br_data_received(UINT16 channel, BD_ADDR bd_addr, BT_HDR *p_buf); 156 static void smp_data_received(UINT16 channel, BD_ADDR bd_addr, BT_HDR *p_buf) in smp_data_received() argument 159 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset; in smp_data_received() 168 osi_free (p_buf); in smp_data_received() 179 osi_free (p_buf); in smp_data_received() 203 p_cb->rcvd_cmd_len = (UINT8) p_buf->len; in smp_data_received() 207 osi_free (p_buf); in smp_data_received() 300 static void smp_br_data_received(UINT16 channel, BD_ADDR bd_addr, BT_HDR *p_buf) in smp_br_data_received() argument 303 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset; in smp_br_data_received() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/avdt/ |
D | avdt_msg.c | 1140 BT_HDR *p_buf; in avdt_msg_send() local 1169 p_buf = p_ccb->p_curr_msg; in avdt_msg_send() 1180 if ((p_buf = (BT_HDR *) osi_malloc(AVDT_CMD_BUF_SIZE)) == NULL) { in avdt_msg_send() 1187 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send() 1188 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send() 1189 memcpy((UINT8 *)(p_buf + 1) + p_buf->offset, in avdt_msg_send() 1190 (UINT8 *)(p_ccb->p_curr_msg + 1) + p_ccb->p_curr_msg->offset, p_buf->len); in avdt_msg_send() 1199 if ((p_buf = (BT_HDR *) osi_malloc(AVDT_CMD_BUF_SIZE)) == NULL) { in avdt_msg_send() 1206 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send() 1207 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/hf_ag/ |
D | bta_ag_co.c | 121 tBTA_AG_CI_RX_WRITE *p_buf; in bta_ag_ci_rx_write() local 133 …if ((p_buf = (tBTA_AG_CI_RX_WRITE *) osi_malloc((UINT16)(sizeof(tBTA_AG_CI_RX_WRITE) + len + 1))) … in bta_ag_ci_rx_write() 134 p_buf->hdr.event = BTA_AG_CI_RX_WRITE_EVT; in bta_ag_ci_rx_write() 135 p_buf->hdr.layer_specific = handle; in bta_ag_ci_rx_write() 136 p_data_area = (char *)(p_buf+1); /* Point to data area after header */ in bta_ag_ci_rx_write() 139 bta_sys_sendmsg(p_buf); in bta_ag_ci_rx_write() 162 tBTA_AG_DATA *p_buf; in bta_ag_ci_slc_ready() local 163 if ((p_buf = (tBTA_AG_DATA *)osi_malloc(sizeof(tBTA_AG_DATA))) != NULL) { in bta_ag_ci_slc_ready() 164 p_buf->hdr.event = BTA_AG_CI_SLC_READY_EVT; in bta_ag_ci_slc_ready() 165 p_buf->hdr.layer_specific = handle; in bta_ag_ci_slc_ready() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/gap/ |
D | gap_conn.c | 317 BT_HDR *p_buf = fixed_queue_try_peek_first(p_ccb->rx_queue); in GAP_ConnReadData() local 318 if (p_buf == NULL) { in GAP_ConnReadData() 322 copy_len = (p_buf->len > max_len)?max_len:p_buf->len; in GAP_ConnReadData() 326 memcpy (p_data, (UINT8 *)(p_buf + 1) + p_buf->offset, copy_len); in GAP_ConnReadData() 330 if (p_buf->len > copy_len) { in GAP_ConnReadData() 331 p_buf->offset += copy_len; in GAP_ConnReadData() 332 p_buf->len -= copy_len; in GAP_ConnReadData() 401 BT_HDR *p_buf; in GAP_ConnBTRead() local 407 p_buf = (BT_HDR *)fixed_queue_dequeue(p_ccb->rx_queue, 0); in GAP_ConnBTRead() 409 if (p_buf) { in GAP_ConnBTRead() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/l2cap/ |
D | btc_l2cap.c | 698 BT_HDR *p_buf; in btc_l2cap_write() local 699 … if ((p_buf = fixed_queue_try_peek_first(slot->tx.queue)) != NULL && p_buf->layer_specific == 0) { in btc_l2cap_write() 700 p_buf->event++; in btc_l2cap_write() 701 p_buf->layer_specific = 1; in btc_l2cap_write() 702 … BTA_JvL2capWrite(handle, slot->id, p_buf->data + p_buf->offset, p_buf->len, (void *)slot->id); in btc_l2cap_write() 922 BT_HDR *p_buf; in btc_l2cap_cb_handler() local 923 … if ((p_buf = fixed_queue_try_peek_first(slot->tx.queue)) != NULL && p_buf->layer_specific == 0) { in btc_l2cap_cb_handler() 924 p_buf->event++; in btc_l2cap_cb_handler() 925 p_buf->layer_specific = 1; in btc_l2cap_cb_handler() 926 …BTA_JvL2capWrite(p_data->l2c_cong.handle, slot->id, p_buf->data + p_buf->offset, p_buf->len, (void… in btc_l2cap_cb_handler() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/sdp/ |
D | bta_sdp_api.c | 61 tBTA_SDP_API_ENABLE *p_buf; in BTA_SdpEnable() local 82 (p_buf = (tBTA_SDP_API_ENABLE *) osi_malloc(sizeof(tBTA_SDP_API_ENABLE))) != NULL) { in BTA_SdpEnable() 83 p_buf->hdr.event = BTA_SDP_API_ENABLE_EVT; in BTA_SdpEnable() 84 p_buf->p_cback = p_cback; in BTA_SdpEnable() 85 bta_sys_sendmsg(p_buf); in BTA_SdpEnable() 106 BT_HDR *p_buf = NULL; in BTA_SdpDisable() local 109 if ((p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR))) != NULL) { in BTA_SdpDisable() 110 p_buf->event = BTA_SDP_API_DISABLE_EVT; in BTA_SdpDisable() 111 bta_sys_sendmsg(p_buf); in BTA_SdpDisable()
|