Home
last modified time | relevance | path

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

123456789

/system/bt/bta/av/
Dbta_av_api.cc56 tBTA_AV_API_ENABLE* p_buf = in BTA_AvEnable() local
62 p_buf->hdr.event = BTA_AV_API_ENABLE_EVT; in BTA_AvEnable()
63 p_buf->p_cback = p_cback; in BTA_AvEnable()
64 p_buf->features = features; in BTA_AvEnable()
66 bta_sys_sendmsg(p_buf); in BTA_AvEnable()
79 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_AvDisable() local
82 p_buf->event = BTA_AV_API_DISABLE_EVT; in BTA_AvDisable()
84 bta_sys_sendmsg(p_buf); in BTA_AvDisable()
103 tBTA_AV_API_REG* p_buf = in BTA_AvRegister() local
106 p_buf->hdr.layer_specific = chnl; in BTA_AvRegister()
[all …]
Dbta_av_ci.cc44 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in bta_av_ci_src_data_ready() local
46 p_buf->layer_specific = chnl; in bta_av_ci_src_data_ready()
47 p_buf->event = BTA_AV_CI_SRC_DATA_READY_EVT; in bta_av_ci_src_data_ready()
49 bta_sys_sendmsg(p_buf); in bta_av_ci_src_data_ready()
74 tBTA_AV_CI_SETCONFIG* p_buf = in bta_av_ci_setconfig() local
77 p_buf->hdr.layer_specific = bta_av_handle; in bta_av_ci_setconfig()
78 p_buf->hdr.event = (err_code == A2DP_SUCCESS) ? BTA_AV_CI_SETCONFIG_OK_EVT in bta_av_ci_setconfig()
80 p_buf->err_code = err_code; in bta_av_ci_setconfig()
81 p_buf->category = category; in bta_av_ci_setconfig()
82 p_buf->recfg_needed = recfg_needed; in bta_av_ci_setconfig()
[all …]
/system/bt/bta/hd/
Dbta_hd_api.cc57 tBTA_HD_API_ENABLE* p_buf = in BTA_HdEnable() local
60 memset(p_buf, 0, sizeof(tBTA_HD_API_ENABLE)); in BTA_HdEnable()
62 p_buf->hdr.event = BTA_HD_API_ENABLE_EVT; in BTA_HdEnable()
63 p_buf->p_cback = p_cback; in BTA_HdEnable()
65 bta_sys_sendmsg(p_buf); in BTA_HdEnable()
82 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_HdDisable() local
83 p_buf->event = BTA_HD_API_DISABLE_EVT; in BTA_HdDisable()
84 bta_sys_sendmsg(p_buf); in BTA_HdDisable()
102 tBTA_HD_REGISTER_APP* p_buf = in BTA_HdRegisterApp() local
104 p_buf->hdr.event = BTA_HD_API_REGISTER_APP_EVT; in BTA_HdRegisterApp()
[all …]
/system/bt/bta/gatt/
Dbta_gattc_api.cc130 tBTA_GATTC_API_OPEN* p_buf = in BTA_GATTC_Open() local
133 p_buf->hdr.event = BTA_GATTC_API_OPEN_EVT; in BTA_GATTC_Open()
134 p_buf->client_if = client_if; in BTA_GATTC_Open()
135 p_buf->is_direct = is_direct; in BTA_GATTC_Open()
136 p_buf->transport = transport; in BTA_GATTC_Open()
137 p_buf->initiating_phys = initiating_phys; in BTA_GATTC_Open()
138 p_buf->opportunistic = opportunistic; in BTA_GATTC_Open()
139 p_buf->remote_bda = remote_bda; in BTA_GATTC_Open()
141 bta_sys_sendmsg(p_buf); in BTA_GATTC_Open()
161 tBTA_GATTC_API_CANCEL_OPEN* p_buf = (tBTA_GATTC_API_CANCEL_OPEN*)osi_malloc( in BTA_GATTC_CancelOpen() local
[all …]
Dbta_gatts_api.cc64 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); 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()
93 p_buf->app_uuid = app_uuid; in BTA_GATTS_AppRegister()
94 p_buf->p_cback = p_cback; in BTA_GATTS_AppRegister()
95 p_buf->eatt_support = eatt_support; in BTA_GATTS_AppRegister()
97 bta_sys_sendmsg(p_buf); in BTA_GATTS_AppRegister()
112 tBTA_GATTS_API_DEREG* p_buf = in BTA_GATTS_AppDeregister() local
[all …]
/system/bt/bta/hh/
Dbta_hh_api.cc59 tBTA_HH_API_ENABLE* p_buf = in BTA_HhEnable() local
65 p_buf->hdr.event = BTA_HH_API_ENABLE_EVT; in BTA_HhEnable()
66 p_buf->p_cback = p_cback; in BTA_HhEnable()
68 bta_sys_sendmsg(p_buf); in BTA_HhEnable()
82 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HhDisable() local
85 p_buf->event = BTA_HH_API_DISABLE_EVT; in BTA_HhDisable()
87 bta_sys_sendmsg(p_buf); in BTA_HhDisable()
100 BT_HDR* p_buf = (BT_HDR*)osi_calloc(sizeof(BT_HDR)); in BTA_HhClose() local
102 p_buf->event = BTA_HH_API_CLOSE_EVT; in BTA_HhClose()
103 p_buf->layer_specific = (uint16_t)dev_handle; in BTA_HhClose()
[all …]
/system/bt/bta/pan/
Dbta_pan_ci.cc48 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in bta_pan_ci_tx_ready() local
50 p_buf->layer_specific = handle; in bta_pan_ci_tx_ready()
51 p_buf->event = BTA_PAN_CI_TX_READY_EVT; in bta_pan_ci_tx_ready()
53 bta_sys_sendmsg(p_buf); in bta_pan_ci_tx_ready()
70 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in bta_pan_ci_rx_ready() local
72 p_buf->layer_specific = handle; in bta_pan_ci_rx_ready()
73 p_buf->event = BTA_PAN_CI_RX_READY_EVT; in bta_pan_ci_rx_ready()
75 bta_sys_sendmsg(p_buf); in bta_pan_ci_rx_ready()
94 tBTA_PAN_CI_TX_FLOW* p_buf = in bta_pan_ci_tx_flow() local
97 p_buf->hdr.layer_specific = handle; in bta_pan_ci_tx_flow()
[all …]
Dbta_pan_api.cc57 tBTA_PAN_API_ENABLE* p_buf = in BTA_PanEnable() local
63 p_buf->hdr.event = BTA_PAN_API_ENABLE_EVT; in BTA_PanEnable()
64 p_buf->p_cback = p_cback; in BTA_PanEnable()
66 bta_sys_sendmsg(p_buf); in BTA_PanEnable()
80 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_PanDisable() local
83 p_buf->event = BTA_PAN_API_DISABLE_EVT; in BTA_PanDisable()
85 bta_sys_sendmsg(p_buf); in BTA_PanDisable()
101 tBTA_PAN_API_SET_ROLE* p_buf = in BTA_PanSetRole() local
104 p_buf->hdr.event = BTA_PAN_API_SET_ROLE_EVT; in BTA_PanSetRole()
105 p_buf->role = role; in BTA_PanSetRole()
[all …]
Dbta_pan_act.cc93 tBTA_PAN_CONN* p_buf = (tBTA_PAN_CONN*)osi_malloc(sizeof(tBTA_PAN_CONN)); in bta_pan_conn_state_cback() local
96 p_buf->hdr.event = BTA_PAN_CONN_OPEN_EVT; in bta_pan_conn_state_cback()
120 p_buf->hdr.event = BTA_PAN_CONN_CLOSE_EVT; in bta_pan_conn_state_cback()
125 p_buf->result = state; in bta_pan_conn_state_cback()
126 p_buf->hdr.layer_specific = handle; in bta_pan_conn_state_cback()
128 bta_sys_sendmsg(p_buf); in bta_pan_conn_state_cback()
148 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in bta_pan_data_flow_cb() local
149 p_buf->layer_specific = handle; in bta_pan_data_flow_cb()
150 p_buf->event = BTA_PAN_BNEP_FLOW_ENABLE_EVT; in bta_pan_data_flow_cb()
151 bta_sys_sendmsg(p_buf); in bta_pan_data_flow_cb()
[all …]
/system/bt/bta/hf_client/
Dbta_hf_client_api.cc87 tBTA_HF_CLIENT_API_OPEN* p_buf = in BTA_HfClientOpen() local
95 p_buf->hdr.event = BTA_HF_CLIENT_API_OPEN_EVT; in BTA_HfClientOpen()
96 p_buf->hdr.layer_specific = *p_handle; in BTA_HfClientOpen()
97 p_buf->bd_addr = bd_addr; in BTA_HfClientOpen()
99 bta_sys_sendmsg(p_buf); in BTA_HfClientOpen()
114 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_HfClientClose() local
116 p_buf->event = BTA_HF_CLIENT_API_CLOSE_EVT; in BTA_HfClientClose()
117 p_buf->layer_specific = handle; in BTA_HfClientClose()
119 bta_sys_sendmsg(p_buf); in BTA_HfClientClose()
134 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_HfClientAudioOpen() local
[all …]
Dbta_hf_client_rfc.cc56 tBTA_HF_CLIENT_RFC* p_buf = in bta_hf_client_port_cback() local
58 p_buf->hdr.event = BTA_HF_CLIENT_RFC_DATA_EVT; in bta_hf_client_port_cback()
59 p_buf->hdr.layer_specific = client_cb->handle; in bta_hf_client_port_cback()
60 bta_sys_sendmsg(p_buf); in bta_hf_client_port_cback()
88 tBTA_HF_CLIENT_RFC* p_buf = in bta_hf_client_mgmt_cback() local
93 p_buf->hdr.event = BTA_HF_CLIENT_RFC_OPEN_EVT; in bta_hf_client_mgmt_cback()
95 p_buf->hdr.event = BTA_HF_CLIENT_RFC_OPEN_EVT; in bta_hf_client_mgmt_cback()
115 p_buf->hdr.event = BTA_HF_CLIENT_RFC_CLOSE_EVT; in bta_hf_client_mgmt_cback()
129 osi_free(p_buf); in bta_hf_client_mgmt_cback()
138 p_buf->hdr.event = BTA_HF_CLIENT_RFC_CLOSE_EVT; in bta_hf_client_mgmt_cback()
[all …]
/system/bt/stack/rfcomm/
Drfc_ts_frames.cc46 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_sabme() local
48 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_sabme()
49 p_data = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_sabme()
57 RFCOMM_SABME_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme()
59 p_buf->len = 4; in rfc_send_sabme()
61 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_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_ua()
84 *p_data = RFCOMM_UA_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua()
[all …]
Dport_api.cc696 BT_HDR* p_buf; in PORT_ReadData() local
724 p_buf = (BT_HDR*)fixed_queue_try_peek_first(p_port->rx.queue); in PORT_ReadData()
725 if (p_buf == NULL) break; in PORT_ReadData()
727 if (p_buf->len > max_len) { in PORT_ReadData()
728 memcpy(p_data, (uint8_t*)(p_buf + 1) + p_buf->offset, max_len); in PORT_ReadData()
729 p_buf->offset += max_len; in PORT_ReadData()
730 p_buf->len -= max_len; in PORT_ReadData()
742 memcpy(p_data, (uint8_t*)(p_buf + 1) + p_buf->offset, p_buf->len); in PORT_ReadData()
744 *p_len += p_buf->len; in PORT_ReadData()
745 max_len -= p_buf->len; in PORT_ReadData()
[all …]
/system/bt/stack/avct/
Davct_lcb_act.cc54 static BT_HDR* avct_lcb_msg_asmbl(tAVCT_LCB* p_lcb, BT_HDR* p_buf) { in avct_lcb_msg_asmbl() argument
59 if (p_buf->len < 1) { in avct_lcb_msg_asmbl()
60 osi_free(p_buf); in avct_lcb_msg_asmbl()
66 p = (uint8_t*)(p_buf + 1) + p_buf->offset; in avct_lcb_msg_asmbl()
70 if (p_buf->len < avct_lcb_pkt_type_len[pkt_type]) { in avct_lcb_msg_asmbl()
71 osi_free(p_buf); in avct_lcb_msg_asmbl()
83 p_ret = p_buf; in avct_lcb_msg_asmbl()
99 memcpy(p_lcb->p_rx_msg, p_buf, sizeof(BT_HDR) + p_buf->offset + p_buf->len); in avct_lcb_msg_asmbl()
102 osi_free(p_buf); in avct_lcb_msg_asmbl()
122 osi_free(p_buf); in avct_lcb_msg_asmbl()
[all …]
Davct_bcb_act.cc72 static BT_HDR* avct_bcb_msg_asmbl(UNUSED_ATTR tAVCT_BCB* p_bcb, BT_HDR* p_buf) { in avct_bcb_msg_asmbl() argument
76 if (p_buf->len == 0) { in avct_bcb_msg_asmbl()
77 osi_free_and_reset((void**)&p_buf); in avct_bcb_msg_asmbl()
83 p = (uint8_t*)(p_buf + 1) + p_buf->offset; in avct_bcb_msg_asmbl()
88 osi_free_and_reset((void**)&p_buf); in avct_bcb_msg_asmbl()
92 return p_buf; in avct_bcb_msg_asmbl()
196 ul_msg.p_buf = p_bcb->p_tx_msg; in avct_bcb_open_ind()
413 osi_free_and_reset((void**)&p_data->ul_msg.p_buf); in avct_bcb_discard_msg()
416 p_bcb->p_tx_msg = p_data->ul_msg.p_buf; in avct_bcb_discard_msg()
445 BT_HDR* p_buf; in avct_bcb_send_msg() local
[all …]
/system/bt/stack/gatt/
Datt_protocol.cc51 BT_HDR* p_buf = in attp_build_mtu_cmd() local
54 p = (uint8_t*)(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()
73 BT_HDR* p_buf = (BT_HDR*)osi_malloc(GATT_DATA_BUF_SIZE); in attp_build_exec_write_cmd() local
76 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd()
78 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd()
79 p_buf->len = GATT_OP_CODE_SIZE; in attp_build_exec_write_cmd()
86 p_buf->len += 1; in attp_build_exec_write_cmd()
[all …]
/system/bt/stack/l2cap/
Dl2c_fcr.cc90 static void process_s_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word);
91 static void process_i_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word,
94 static void prepare_I_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf,
96 static bool do_sar_reassembly(tL2C_CCB* p_ccb, BT_HDR* p_buf,
130 static uint16_t l2c_fcr_tx_get_fcs(BT_HDR* p_buf) { in l2c_fcr_tx_get_fcs() argument
131 uint8_t* p = ((uint8_t*)(p_buf + 1)) + p_buf->offset; in l2c_fcr_tx_get_fcs()
133 return (l2c_fcr_updcrc(L2CAP_FCR_INIT_CRC, p, p_buf->len)); in l2c_fcr_tx_get_fcs()
145 static uint16_t l2c_fcr_rx_get_fcs(BT_HDR* p_buf) { in l2c_fcr_rx_get_fcs() argument
146 uint8_t* p = ((uint8_t*)(p_buf + 1)) + p_buf->offset; in l2c_fcr_rx_get_fcs()
152 l2c_fcr_updcrc(L2CAP_FCR_INIT_CRC, p, p_buf->len + L2CAP_PKT_OVERHEAD)); in l2c_fcr_rx_get_fcs()
[all …]
Dl2c_utils.cc194 BT_HDR* p_buf = static_cast<BT_HDR*>(list_front(p_lcb->link_xmit_data_q)); in l2cu_release_lcb() local
195 list_remove(p_lcb->link_xmit_data_q, p_buf); in l2cu_release_lcb()
196 osi_free(p_buf); in l2cu_release_lcb()
216 tL2CAP_SEC_DATA* p_buf = in l2cu_release_lcb() local
218 if (p_buf->p_callback) in l2cu_release_lcb()
219 p_buf->p_callback(p_lcb->remote_bd_addr, p_lcb->transport, in l2cu_release_lcb()
220 p_buf->p_ref_data, BTM_DEV_RESET); in l2cu_release_lcb()
221 osi_free(p_buf); in l2cu_release_lcb()
298 BT_HDR* p_buf = (BT_HDR*)osi_malloc(L2CAP_CMD_BUF_SIZE); in l2cu_build_header() local
301 p_buf->offset = L2CAP_SEND_CMD_OFFSET; in l2cu_build_header()
[all …]
/system/bt/stack/smp/
Dsmp_l2c.cc42 BT_HDR* p_buf);
48 BT_HDR* p_buf);
149 BT_HDR* p_buf) { in smp_data_received() argument
151 uint8_t* p = (uint8_t*)(p_buf + 1) + p_buf->offset; in smp_data_received()
154 if (p_buf->len < 1) { in smp_data_received()
157 __func__, p_buf->len); in smp_data_received()
158 osi_free(p_buf); in smp_data_received()
169 osi_free(p_buf); in smp_data_received()
181 osi_free(p_buf); in smp_data_received()
194 p_buf->data + p_buf->offset, p_buf->len); in smp_data_received()
[all …]
Dsmp_utils.cc310 const uint8_t* p_buf, size_t buf_len) { in smp_log_metrics() argument
316 STREAM_TO_UINT8(cmd, p_buf); in smp_log_metrics()
320 STREAM_TO_UINT8(failure_reason, p_buf); in smp_log_metrics()
376 BT_HDR* p_buf; in smp_send_cmd() local
385 p_buf = (*smp_cmd_build_act[cmd_code])(cmd_code, p_cb); in smp_send_cmd()
387 if (p_buf != NULL && smp_send_msg_to_L2CAP(p_cb->pairing_bda, p_buf)) { in smp_send_cmd()
462 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIRING_REQ_SIZE + in smp_build_pairing_cmd() local
467 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pairing_cmd()
476 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pairing_cmd()
478 p_buf->len = SMP_PAIRING_REQ_SIZE; in smp_build_pairing_cmd()
[all …]
/system/bt/stack/avdt/
Davdt_msg.cc1064 BT_HDR* p_buf; in avdt_msg_send() local
1093 p_buf = p_ccb->p_curr_msg; in avdt_msg_send()
1106 p_buf = (BT_HDR*)osi_malloc(AVDT_CMD_BUF_SIZE); in avdt_msg_send()
1109 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send()
1110 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
1111 memcpy((uint8_t*)(p_buf + 1) + p_buf->offset, in avdt_msg_send()
1113 p_buf->len); in avdt_msg_send()
1123 p_buf = (BT_HDR*)osi_malloc(AVDT_CMD_BUF_SIZE); in avdt_msg_send()
1126 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send()
1127 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
[all …]
/system/bt/btif/co/
Dbta_pan_co.cc110 BT_HDR* p_buf; in bta_pan_co_tx_path() local
131 p_buf = bta_pan_ci_readbuf(handle, src, dst, &protocol, &ext, &forward); in bta_pan_co_tx_path()
132 if (p_buf) { in bta_pan_co_tx_path()
136 __func__, p_buf->len, p_buf->offset); in bta_pan_co_tx_path()
143 (char*)(p_buf + 1) + p_buf->offset, p_buf->len, ext, in bta_pan_co_tx_path()
145 osi_free(p_buf); in bta_pan_co_tx_path()
148 } while (p_buf != NULL); in bta_pan_co_tx_path()
/system/bt/btif/src/
Dbtif_a2dp_sink.cc148 tBTIF_MEDIA_SINK_DECODER_UPDATE* p_buf);
389 tBTIF_MEDIA_SINK_DECODER_UPDATE* p_buf = in btif_a2dp_sink_update_decoder() local
397 memcpy(p_buf->codec_info, p_codec_info, AVDT_CODEC_SIZE); in btif_a2dp_sink_update_decoder()
398 p_buf->hdr.event = BTIF_MEDIA_SINK_DECODER_UPDATE; in btif_a2dp_sink_update_decoder()
402 base::BindOnce(btif_a2dp_sink_command_ready, (BT_HDR_RIGID*)p_buf)); in btif_a2dp_sink_update_decoder()
407 BT_HDR_RIGID* p_buf = in btif_a2dp_sink_on_idle() local
409 p_buf->event = BTIF_MEDIA_SINK_SUSPEND; in btif_a2dp_sink_on_idle()
411 FROM_HERE, base::BindOnce(btif_a2dp_sink_command_ready, p_buf)); in btif_a2dp_sink_on_idle()
420 BT_HDR_RIGID* p_buf = in btif_a2dp_sink_on_stopped() local
422 p_buf->event = BTIF_MEDIA_SINK_SUSPEND; in btif_a2dp_sink_on_stopped()
[all …]
/system/bt/stack/bnep/
Dbnep_utils.cc42 static uint8_t* bnepu_init_hdr(BT_HDR* p_buf, uint16_t hdr_len,
167 BT_HDR* p_buf = (BT_HDR*)osi_malloc(BNEP_BUF_SIZE); in bnep_send_conn_req() local
173 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_req()
174 p = p_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req()
204 p_buf->len = (uint16_t)(p - p_start); in bnep_send_conn_req()
206 bnepu_check_send_packet(p_bcb, p_buf); in bnep_send_conn_req()
219 BT_HDR* p_buf = (BT_HDR*)osi_malloc(BNEP_BUF_SIZE); in bnep_send_conn_responce() local
225 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_responce()
226 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_responce()
236 p_buf->len = 4; in bnep_send_conn_responce()
[all …]
/system/nfc/src/nfc/llcp/
Dllcp_api.cc638 tLLCP_STATUS LLCP_SendUI(uint8_t ssap, uint8_t dsap, NFC_HDR* p_buf) { in LLCP_SendUI() argument
656 if (p_buf->len <= llcp_cb.lcb.peer_miu) { in LLCP_SendUI()
657 if (p_buf->offset >= LLCP_MIN_OFFSET) { in LLCP_SendUI()
658 status = llcp_util_send_ui(ssap, dsap, p_app_cb, p_buf); in LLCP_SendUI()
661 p_buf->offset, LLCP_MIN_OFFSET); in LLCP_SendUI()
673 GKI_freebuf(p_buf); in LLCP_SendUI()
698 NFC_HDR* p_buf; in LLCP_ReadLogicalLinkData() local
712 p_buf = (NFC_HDR*)p_app_cb->ui_rx_q.p_first; in LLCP_ReadLogicalLinkData()
713 p_ui_pdu = (uint8_t*)(p_buf + 1) + p_buf->offset; in LLCP_ReadLogicalLinkData()
723 p_ui_pdu += p_buf->layer_specific; in LLCP_ReadLogicalLinkData()
[all …]

123456789