Home
last modified time | relevance | path

Searched refs:p_buf (Results 1 – 25 of 138) sorted by relevance

123456

/system/bt/bta/av/
Dbta_av_api.c66 tBTA_AV_API_ENABLE *p_buf = in BTA_AvEnable() local
72 p_buf->hdr.event = BTA_AV_API_ENABLE_EVT; in BTA_AvEnable()
73 p_buf->p_cback = p_cback; in BTA_AvEnable()
74 p_buf->features = features; in BTA_AvEnable()
75 p_buf->sec_mask = sec_mask; in BTA_AvEnable()
77 bta_sys_sendmsg(p_buf); in BTA_AvEnable()
91 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in BTA_AvDisable() local
94 p_buf->event = BTA_AV_API_DISABLE_EVT; in BTA_AvDisable()
96 bta_sys_sendmsg(p_buf); in BTA_AvDisable()
115 tBTA_AV_API_REG *p_buf = in BTA_AvRegister() local
[all …]
Dbta_av_ci.c47 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in bta_av_ci_src_data_ready() local
49 p_buf->layer_specific = chnl; in bta_av_ci_src_data_ready()
50 p_buf->event = BTA_AV_CI_SRC_DATA_READY_EVT; in bta_av_ci_src_data_ready()
52 bta_sys_sendmsg(p_buf); in bta_av_ci_src_data_ready()
71 tBTA_AV_CI_SETCONFIG *p_buf = in bta_av_ci_setconfig() local
74 p_buf->hdr.layer_specific = hndl; in bta_av_ci_setconfig()
75 p_buf->hdr.event = (err_code == AVDT_SUCCESS) ? in bta_av_ci_setconfig()
77 p_buf->err_code = err_code; in bta_av_ci_setconfig()
78 p_buf->category = category; in bta_av_ci_setconfig()
79 p_buf->recfg_needed = recfg_needed; in bta_av_ci_setconfig()
[all …]
/system/bt/bta/hl/
Dbta_hl_api.c62 tBTA_HL_API_ENABLE *p_buf = in BTA_HlEnable() local
68 p_buf->hdr.event = BTA_HL_API_ENABLE_EVT; in BTA_HlEnable()
69 p_buf->p_cback = p_ctrl_cback; in BTA_HlEnable()
71 bta_sys_sendmsg(p_buf); in BTA_HlEnable()
85 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in BTA_HlDisable() local
88 p_buf->event = BTA_HL_API_DISABLE_EVT; in BTA_HlDisable()
90 bta_sys_sendmsg(p_buf); in BTA_HlDisable()
110 tBTA_HL_API_UPDATE *p_buf = in BTA_HlUpdate() local
115 p_buf->hdr.event = BTA_HL_API_UPDATE_EVT; in BTA_HlUpdate()
116 p_buf->app_id = app_id; in BTA_HlUpdate()
[all …]
/system/bt/bta/gatt/
Dbta_gatts_api.c64 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in BTA_GATTS_Disable() local
65 p_buf->event = BTA_GATTS_API_DISABLE_EVT; in BTA_GATTS_Disable()
66 bta_sys_sendmsg(p_buf); in BTA_GATTS_Disable()
85 tBTA_GATTS_API_REG *p_buf = in BTA_GATTS_AppRegister() local
92 p_buf->hdr.event = BTA_GATTS_API_REG_EVT; in BTA_GATTS_AppRegister()
94 memcpy(&p_buf->app_uuid, p_app_uuid, sizeof(tBT_UUID)); in BTA_GATTS_AppRegister()
95 p_buf->p_cback = p_cback; in BTA_GATTS_AppRegister()
97 bta_sys_sendmsg(p_buf); in BTA_GATTS_AppRegister()
115 tBTA_GATTS_API_DEREG *p_buf = in BTA_GATTS_AppDeregister() local
118 p_buf->hdr.event = BTA_GATTS_API_DEREG_EVT; in BTA_GATTS_AppDeregister()
[all …]
Dbta_gattc_api.c65 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in BTA_GATTC_Disable() local
66 p_buf->event = BTA_GATTC_API_DISABLE_EVT; in BTA_GATTC_Disable()
68 bta_sys_sendmsg(p_buf); in BTA_GATTC_Disable()
87 tBTA_GATTC_API_REG *p_buf = in BTA_GATTC_AppRegister() local
93 p_buf->hdr.event = BTA_GATTC_API_REG_EVT; in BTA_GATTC_AppRegister()
95 memcpy(&p_buf->app_uuid, p_app_uuid, sizeof(tBT_UUID)); in BTA_GATTC_AppRegister()
96 p_buf->p_cback = p_client_cb; in BTA_GATTC_AppRegister()
98 bta_sys_sendmsg(p_buf); in BTA_GATTC_AppRegister()
115 tBTA_GATTC_API_DEREG *p_buf = in BTA_GATTC_AppDeregister() local
118 p_buf->hdr.event = BTA_GATTC_API_DEREG_EVT; in BTA_GATTC_AppDeregister()
[all …]
/system/bt/bta/hf_client/
Dbta_hf_client_api.c70 tBTA_HF_CLIENT_API_ENABLE *p_buf = in BTA_HfClientEnable() local
72 p_buf->hdr.event = BTA_HF_CLIENT_API_ENABLE_EVT; in BTA_HfClientEnable()
73 p_buf->p_cback = p_cback; in BTA_HfClientEnable()
75 bta_sys_sendmsg(p_buf); in BTA_HfClientEnable()
92 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in BTA_HfClientDisable() local
94 p_buf->event = BTA_HF_CLIENT_API_DISABLE_EVT; in BTA_HfClientDisable()
96 bta_sys_sendmsg(p_buf); in BTA_HfClientDisable()
112 tBTA_HF_CLIENT_API_REGISTER *p_buf = in BTA_HfClientRegister() local
115 p_buf->hdr.event = BTA_HF_CLIENT_API_REGISTER_EVT; in BTA_HfClientRegister()
116 p_buf->features = features; in BTA_HfClientRegister()
[all …]
Dbta_hf_client_rfc.c55 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in bta_hf_client_port_cback() local
56 p_buf->event = BTA_HF_CLIENT_RFC_DATA_EVT; in bta_hf_client_port_cback()
58 bta_sys_sendmsg(p_buf); in bta_hf_client_port_cback()
108 tBTA_HF_CLIENT_RFC *p_buf = in bta_hf_client_mgmt_cback() local
110 p_buf->hdr.event = event; in bta_hf_client_mgmt_cback()
111 p_buf->port_handle = port_handle; in bta_hf_client_mgmt_cback()
113 bta_sys_sendmsg(p_buf); in bta_hf_client_mgmt_cback()
246 tBTA_HF_CLIENT_RFC *p_buf = in bta_hf_client_rfc_do_close() local
248 p_buf->hdr.event = BTA_HF_CLIENT_RFC_CLOSE_EVT; in bta_hf_client_rfc_do_close()
249 bta_sys_sendmsg(p_buf); in bta_hf_client_rfc_do_close()
/system/bt/bta/ag/
Dbta_ag_api.c70 tBTA_AG_API_ENABLE *p_buf = in BTA_AgEnable() local
72 p_buf->hdr.event = BTA_AG_API_ENABLE_EVT; in BTA_AgEnable()
73 p_buf->parse_mode = parse_mode; in BTA_AgEnable()
74 p_buf->p_cback = p_cback; in BTA_AgEnable()
76 bta_sys_sendmsg(p_buf); in BTA_AgEnable()
93 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in BTA_AgDisable() local
95 p_buf->event = BTA_AG_API_DISABLE_EVT; in BTA_AgDisable()
97 bta_sys_sendmsg(p_buf); in BTA_AgDisable()
113 tBTA_AG_API_REGISTER *p_buf = in BTA_AgRegister() local
116 p_buf->hdr.event = BTA_AG_API_REGISTER_EVT; in BTA_AgRegister()
[all …]
Dbta_ag_ci.c55 tBTA_AG_CI_RX_WRITE *p_buf = in bta_ag_ci_rx_write() local
57 p_buf->hdr.event = BTA_AG_CI_RX_WRITE_EVT; in bta_ag_ci_rx_write()
58 p_buf->hdr.layer_specific = handle; in bta_ag_ci_rx_write()
60 p_data_area = (char *)(p_buf+1); /* Point to data area after header */ in bta_ag_ci_rx_write()
64 bta_sys_sendmsg(p_buf); in bta_ag_ci_rx_write()
84 tBTA_AG_DATA *p_buf = (tBTA_AG_DATA *)osi_malloc(sizeof(tBTA_AG_DATA)); in bta_ag_ci_slc_ready() local
86 p_buf->hdr.event = BTA_AG_CI_SLC_READY_EVT; in bta_ag_ci_slc_ready()
87 p_buf->hdr.layer_specific = handle; in bta_ag_ci_slc_ready()
89 bta_sys_sendmsg(p_buf); in bta_ag_ci_slc_ready()
/system/bt/bta/hh/
Dbta_hh_api.c67 tBTA_HH_API_ENABLE *p_buf = in BTA_HhEnable() local
76 p_buf->hdr.event = BTA_HH_API_ENABLE_EVT; in BTA_HhEnable()
77 p_buf->p_cback = p_cback; in BTA_HhEnable()
78 p_buf->sec_mask = sec_mask; in BTA_HhEnable()
80 bta_sys_sendmsg(p_buf); in BTA_HhEnable()
95 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in BTA_HhDisable() local
98 p_buf->event = BTA_HH_API_DISABLE_EVT; in BTA_HhDisable()
100 bta_sys_sendmsg(p_buf); in BTA_HhDisable()
114 BT_HDR *p_buf = (BT_HDR *)osi_calloc(sizeof(BT_HDR)); in BTA_HhClose() local
116 p_buf->event = BTA_HH_API_CLOSE_EVT; in BTA_HhClose()
[all …]
/system/bt/stack/rfcomm/
Drfc_ts_frames.c45 BT_HDR *p_buf = (BT_HDR *)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_sabme() local
47 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_sabme()
48 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_sabme()
55 *p_data = RFCOMM_SABME_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme()
57 p_buf->len = 4; in rfc_send_sabme()
59 rfc_check_send_cmd(p_mcb, p_buf); in rfc_send_sabme()
74 BT_HDR *p_buf = (BT_HDR *)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_ua() local
76 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_ua()
77 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_ua()
84 *p_data = RFCOMM_UA_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua()
[all …]
Dport_api.c1139 BT_HDR *p_buf; in PORT_Purge() local
1164 while ((p_buf = (BT_HDR *)fixed_queue_try_dequeue(p_port->rx.queue)) != NULL) in PORT_Purge()
1165 osi_free(p_buf); in PORT_Purge()
1180 while ((p_buf = (BT_HDR *)fixed_queue_try_dequeue(p_port->tx.queue)) != NULL) in PORT_Purge()
1181 osi_free(p_buf); in PORT_Purge()
1216 BT_HDR *p_buf; in PORT_ReadData() local
1249 p_buf = (BT_HDR *)fixed_queue_try_peek_first(p_port->rx.queue); in PORT_ReadData()
1250 if (p_buf == NULL) in PORT_ReadData()
1253 if (p_buf->len > max_len) in PORT_ReadData()
1255 memcpy (p_data, (UINT8 *)(p_buf + 1) + p_buf->offset, max_len); in PORT_ReadData()
[all …]
/system/bt/bta/pan/
Dbta_pan_ci.c54 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in bta_pan_ci_tx_ready() local
56 p_buf->layer_specific = handle; in bta_pan_ci_tx_ready()
57 p_buf->event = BTA_PAN_CI_TX_READY_EVT; in bta_pan_ci_tx_ready()
59 bta_sys_sendmsg(p_buf); in bta_pan_ci_tx_ready()
77 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in bta_pan_ci_rx_ready() local
79 p_buf->layer_specific = handle; in bta_pan_ci_rx_ready()
80 p_buf->event = BTA_PAN_CI_RX_READY_EVT; in bta_pan_ci_rx_ready()
82 bta_sys_sendmsg(p_buf); in bta_pan_ci_rx_ready()
102 tBTA_PAN_CI_TX_FLOW *p_buf = in bta_pan_ci_tx_flow() local
105 p_buf->hdr.layer_specific = handle; in bta_pan_ci_tx_flow()
[all …]
Dbta_pan_api.c59 tBTA_PAN_API_ENABLE *p_buf = in BTA_PanEnable() local
65 p_buf->hdr.event = BTA_PAN_API_ENABLE_EVT; in BTA_PanEnable()
66 p_buf->p_cback = p_cback; in BTA_PanEnable()
68 bta_sys_sendmsg(p_buf); in BTA_PanEnable()
85 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in BTA_PanDisable() local
88 p_buf->event = BTA_PAN_API_DISABLE_EVT; in BTA_PanDisable()
90 bta_sys_sendmsg(p_buf); in BTA_PanDisable()
106 tBTA_PAN_API_SET_ROLE *p_buf = in BTA_PanSetRole() local
109 p_buf->hdr.event = BTA_PAN_API_SET_ROLE_EVT; in BTA_PanSetRole()
110 p_buf->role = role; in BTA_PanSetRole()
[all …]
Dbta_pan_act.c92 tBTA_PAN_CONN *p_buf = (tBTA_PAN_CONN *)osi_malloc(sizeof(tBTA_PAN_CONN)); in bta_pan_conn_state_cback() local
95 p_buf->hdr.event = BTA_PAN_CONN_OPEN_EVT; in bta_pan_conn_state_cback()
121 p_buf->hdr.event = BTA_PAN_CONN_CLOSE_EVT; in bta_pan_conn_state_cback()
126 p_buf->result = state; in bta_pan_conn_state_cback()
127 p_buf->hdr.layer_specific = handle; in bta_pan_conn_state_cback()
129 bta_sys_sendmsg(p_buf); in bta_pan_conn_state_cback()
150 BT_HDR *p_buf = (BT_HDR *) osi_malloc(sizeof(BT_HDR)); in bta_pan_data_flow_cb() local
151 p_buf->layer_specific = handle; in bta_pan_data_flow_cb()
152 p_buf->event = BTA_PAN_BNEP_FLOW_ENABLE_EVT; in bta_pan_data_flow_cb()
153 bta_sys_sendmsg(p_buf); in bta_pan_data_flow_cb()
[all …]
/system/bt/stack/avct/
Davct_lcb_act.c53 static BT_HDR *avct_lcb_msg_asmbl(tAVCT_LCB *p_lcb, BT_HDR *p_buf) in avct_lcb_msg_asmbl() argument
60 p = (UINT8 *)(p_buf + 1) + p_buf->offset; in avct_lcb_msg_asmbl()
64 if (p_buf->len < avct_lcb_pkt_type_len[pkt_type]) in avct_lcb_msg_asmbl()
66 osi_free(p_buf); in avct_lcb_msg_asmbl()
79 p_ret = p_buf; in avct_lcb_msg_asmbl()
96 memcpy(p_lcb->p_rx_msg, p_buf, in avct_lcb_msg_asmbl()
97 sizeof(BT_HDR) + p_buf->offset + p_buf->len); in avct_lcb_msg_asmbl()
100 osi_free(p_buf); in avct_lcb_msg_asmbl()
122 osi_free(p_buf); in avct_lcb_msg_asmbl()
136 p_buf->offset += AVCT_HDR_LEN_CONT; in avct_lcb_msg_asmbl()
[all …]
/system/bt/stack/gatt/
Datt_protocol.c51 BT_HDR *p_buf = in attp_build_mtu_cmd() local
54 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 = (BT_HDR *)osi_malloc(GATT_DATA_BUF_SIZE); in attp_build_exec_write_cmd() local
77 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd()
79 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd()
80 p_buf->len = GATT_OP_CODE_SIZE; in attp_build_exec_write_cmd()
87 p_buf->len += 1; in attp_build_exec_write_cmd()
[all …]
Dgatt_auth.c93 void gatt_verify_signature(tGATT_TCB *p_tcb, BT_HDR *p_buf) in gatt_verify_signature() argument
97 UINT8 *p, *p_orig = (UINT8 *)(p_buf + 1) + p_buf->offset; in gatt_verify_signature()
100 if (p_buf->len < GATT_AUTH_SIGN_LEN + 4) { in gatt_verify_signature()
102 __func__, p_buf->len, GATT_AUTH_SIGN_LEN + 4); in gatt_verify_signature()
105 cmd_len = p_buf->len - GATT_AUTH_SIGN_LEN + 4; in gatt_verify_signature()
112 gatt_server_handle_client_req (p_tcb, op_code, (UINT16)(p_buf->len - 1), p_orig); in gatt_verify_signature()
173 tGATT_PENDING_ENC_CLCB *p_buf = in gatt_enc_cmpl_cback() local
175 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 …]
/system/bt/stack/l2cap/
Dl2c_fcr.c96 static void process_s_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word);
97 static void process_i_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word, BOOLEAN delay_ack…
99 static void prepare_I_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, BOOLEAN is_retransmission);
100 static void process_stream_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf);
101 static BOOLEAN do_sar_reassembly (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word);
140 static UINT16 l2c_fcr_tx_get_fcs (BT_HDR *p_buf) in l2c_fcr_tx_get_fcs() argument
142 UINT8 *p = ((UINT8 *) (p_buf + 1)) + p_buf->offset; in l2c_fcr_tx_get_fcs()
144 return (l2c_fcr_updcrc (L2CAP_FCR_INIT_CRC, p, p_buf->len)); in l2c_fcr_tx_get_fcs()
156 static UINT16 l2c_fcr_rx_get_fcs (BT_HDR *p_buf) in l2c_fcr_rx_get_fcs() argument
158 UINT8 *p = ((UINT8 *) (p_buf + 1)) + p_buf->offset; in l2c_fcr_rx_get_fcs()
[all …]
Dl2c_ucd.c93 static void l2c_ucd_data_ind_cback (BD_ADDR rem_bda, BT_HDR *p_buf) in l2c_ucd_data_ind_cback() argument
101 p = (UINT8 *)(p_buf + 1) + p_buf->offset; in l2c_ucd_data_ind_cback()
104 p_buf->offset += L2CAP_UCD_OVERHEAD; in l2c_ucd_data_ind_cback()
105 p_buf->len -= L2CAP_UCD_OVERHEAD; in l2c_ucd_data_ind_cback()
110 osi_free(p_buf); in l2c_ucd_data_ind_cback()
114 p_rcb->ucd.cb_info.pL2CA_UCD_Data_Cb(rem_bda, p_buf); in l2c_ucd_data_ind_cback()
395 UINT16 L2CA_UcdDataWrite (UINT16 psm, BD_ADDR rem_bda, BT_HDR *p_buf, UINT16 flags) in L2CA_UcdDataWrite() argument
411 osi_free(p_buf); in L2CA_UcdDataWrite()
422 osi_free(p_buf); in L2CA_UcdDataWrite()
430 osi_free(p_buf); in L2CA_UcdDataWrite()
[all …]
Dl2c_utils.c214 BT_HDR *p_buf = list_front(p_lcb->link_xmit_data_q); in l2cu_release_lcb() local
215 list_remove(p_lcb->link_xmit_data_q, p_buf); in l2cu_release_lcb()
216 osi_free(p_buf); in l2cu_release_lcb()
261 … tL2CAP_SEC_DATA *p_buf = (tL2CAP_SEC_DATA*) fixed_queue_try_dequeue(p_lcb->le_sec_pending_q); in l2cu_release_lcb() local
262 if (p_buf->p_callback) in l2cu_release_lcb()
263p_buf->p_callback(p_lcb->remote_bd_addr, p_lcb->transport, p_buf->p_ref_data, BTM_DEV_RESET); in l2cu_release_lcb()
264 osi_free(p_buf); in l2cu_release_lcb()
364 BT_HDR *p_buf = (BT_HDR *)osi_malloc(L2CAP_CMD_BUF_SIZE); in l2cu_build_header() local
367 p_buf->offset = L2CAP_SEND_CMD_OFFSET; in l2cu_build_header()
368 p_buf->len = len + HCI_DATA_PREAMBLE_SIZE + L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD; in l2cu_build_header()
[all …]
/system/bt/stack/smp/
Dsmp_utils.c317 BT_HDR *p_buf; in smp_send_cmd() local
324 p_buf = (*smp_cmd_build_act[cmd_code])(cmd_code, p_cb); in smp_send_cmd()
326 if (p_buf != NULL && in smp_send_cmd()
327 smp_send_msg_to_L2CAP(p_cb->pairing_bda, p_buf)) in smp_send_cmd()
386 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR) + in smp_build_pairing_cmd() local
391 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pairing_cmd()
400 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pairing_cmd()
402 p_buf->len = SMP_PAIRING_REQ_SIZE; in smp_build_pairing_cmd()
404 return p_buf; in smp_build_pairing_cmd()
417 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR) + in smp_build_confirm_cmd() local
[all …]
Dsmp_l2c.c42 static void smp_data_received(UINT16 channel, BD_ADDR bd_addr, BT_HDR *p_buf);
46 static void smp_br_data_received(UINT16 channel, BD_ADDR bd_addr, BT_HDR *p_buf);
146 static void smp_data_received(UINT16 channel, BD_ADDR bd_addr, BT_HDR *p_buf) in smp_data_received() argument
149 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset; in smp_data_received()
159 osi_free(p_buf); in smp_data_received()
174 osi_free(p_buf); in smp_data_received()
201 p_cb->rcvd_cmd_len = (UINT8) p_buf->len; in smp_data_received()
205 osi_free(p_buf); in smp_data_received()
297 static void smp_br_data_received(UINT16 channel, BD_ADDR bd_addr, BT_HDR *p_buf) in smp_br_data_received() argument
300 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset; in smp_br_data_received()
[all …]
/system/bt/stack/avdt/
Davdt_msg.c1204 BT_HDR *p_buf; in avdt_msg_send() local
1236 p_buf = p_ccb->p_curr_msg; in avdt_msg_send()
1248 p_buf = (BT_HDR *)osi_malloc(AVDT_CMD_BUF_SIZE); in avdt_msg_send()
1251 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send()
1252 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
1253 memcpy((UINT8 *)(p_buf + 1) + p_buf->offset, in avdt_msg_send()
1254 (UINT8 *)(p_ccb->p_curr_msg + 1) + p_ccb->p_curr_msg->offset, p_buf->len); in avdt_msg_send()
1264 p_buf = (BT_HDR *)osi_malloc(AVDT_CMD_BUF_SIZE); in avdt_msg_send()
1267 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send()
1268 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
[all …]
/system/bt/stack/bnep/
Dbnep_utils.c41 static UINT8 *bnepu_init_hdr (BT_HDR *p_buf, UINT16 hdr_len, UINT8 pkt_type);
180 BT_HDR *p_buf = (BT_HDR *)osi_malloc(BNEP_BUF_SIZE); in bnep_send_conn_req() local
186 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_req()
187 p = p_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req()
220 p_buf->len = (UINT16)(p - p_start); in bnep_send_conn_req()
222 bnepu_check_send_packet (p_bcb, p_buf); in bnep_send_conn_req()
237 BT_HDR *p_buf = (BT_HDR *)osi_malloc(BNEP_BUF_SIZE); in bnep_send_conn_responce() local
242 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_responce()
243 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_responce()
253 p_buf->len = 4; in bnep_send_conn_responce()
[all …]

123456