/system/bt/bta/av/ |
D | bta_av_api.cc | 64 tBTA_AV_API_ENABLE* p_buf = in BTA_AvEnable() local 70 p_buf->hdr.event = BTA_AV_API_ENABLE_EVT; in BTA_AvEnable() 71 p_buf->p_cback = p_cback; in BTA_AvEnable() 72 p_buf->features = features; in BTA_AvEnable() 73 p_buf->sec_mask = sec_mask; in BTA_AvEnable() 75 bta_sys_sendmsg(p_buf); in BTA_AvEnable() 88 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_AvDisable() local 91 p_buf->event = BTA_AV_API_DISABLE_EVT; in BTA_AvDisable() 93 bta_sys_sendmsg(p_buf); in BTA_AvDisable() 112 tBTA_AV_API_REG* p_buf = in BTA_AvRegister() local [all …]
|
D | bta_av_ci.cc | 49 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in bta_av_ci_src_data_ready() local 51 p_buf->layer_specific = chnl; in bta_av_ci_src_data_ready() 52 p_buf->event = BTA_AV_CI_SRC_DATA_READY_EVT; in bta_av_ci_src_data_ready() 54 bta_sys_sendmsg(p_buf); in bta_av_ci_src_data_ready() 79 tBTA_AV_CI_SETCONFIG* p_buf = in bta_av_ci_setconfig() local 82 p_buf->hdr.layer_specific = bta_av_handle; in bta_av_ci_setconfig() 83 p_buf->hdr.event = (err_code == A2DP_SUCCESS) ? BTA_AV_CI_SETCONFIG_OK_EVT in bta_av_ci_setconfig() 85 p_buf->err_code = err_code; in bta_av_ci_setconfig() 86 p_buf->category = category; in bta_av_ci_setconfig() 87 p_buf->recfg_needed = recfg_needed; in bta_av_ci_setconfig() [all …]
|
/system/bt/bta/hd/ |
D | bta_hd_api.cc | 58 tBTA_HD_API_ENABLE* p_buf = in BTA_HdEnable() local 61 memset(p_buf, 0, sizeof(tBTA_HD_API_ENABLE)); in BTA_HdEnable() 63 p_buf->hdr.event = BTA_HD_API_ENABLE_EVT; in BTA_HdEnable() 64 p_buf->p_cback = p_cback; in BTA_HdEnable() 66 bta_sys_sendmsg(p_buf); in BTA_HdEnable() 83 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdDisable() local 84 p_buf->event = BTA_HD_API_DISABLE_EVT; in BTA_HdDisable() 85 bta_sys_sendmsg(p_buf); in BTA_HdDisable() 103 tBTA_HD_REGISTER_APP* p_buf = in BTA_HdRegisterApp() local 105 p_buf->hdr.event = BTA_HD_API_REGISTER_APP_EVT; in BTA_HdRegisterApp() [all …]
|
/system/bt/bta/gatt/ |
D | bta_gattc_api.cc | 131 tBTA_GATTC_API_OPEN* p_buf = in BTA_GATTC_Open() local 134 p_buf->hdr.event = BTA_GATTC_API_OPEN_EVT; in BTA_GATTC_Open() 135 p_buf->client_if = client_if; in BTA_GATTC_Open() 136 p_buf->is_direct = is_direct; in BTA_GATTC_Open() 137 p_buf->transport = transport; in BTA_GATTC_Open() 138 p_buf->initiating_phys = initiating_phys; in BTA_GATTC_Open() 139 p_buf->opportunistic = opportunistic; in BTA_GATTC_Open() 140 p_buf->remote_bda = remote_bda; in BTA_GATTC_Open() 142 bta_sys_sendmsg(p_buf); in BTA_GATTC_Open() 162 tBTA_GATTC_API_CANCEL_OPEN* p_buf = (tBTA_GATTC_API_CANCEL_OPEN*)osi_malloc( in BTA_GATTC_CancelOpen() local [all …]
|
D | bta_gatts_api.cc | 60 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_GATTS_Disable() local 61 p_buf->event = BTA_GATTS_API_DISABLE_EVT; in BTA_GATTS_Disable() 62 bta_sys_sendmsg(p_buf); in BTA_GATTS_Disable() 81 tBTA_GATTS_API_REG* p_buf = in BTA_GATTS_AppRegister() local 88 p_buf->hdr.event = BTA_GATTS_API_REG_EVT; in BTA_GATTS_AppRegister() 89 p_buf->app_uuid = app_uuid; in BTA_GATTS_AppRegister() 90 p_buf->p_cback = p_cback; in BTA_GATTS_AppRegister() 92 bta_sys_sendmsg(p_buf); in BTA_GATTS_AppRegister() 107 tBTA_GATTS_API_DEREG* p_buf = in BTA_GATTS_AppDeregister() local 110 p_buf->hdr.event = BTA_GATTS_API_DEREG_EVT; in BTA_GATTS_AppDeregister() [all …]
|
/system/bt/bta/pan/ |
D | bta_pan_ci.cc | 55 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in bta_pan_ci_tx_ready() local 57 p_buf->layer_specific = handle; in bta_pan_ci_tx_ready() 58 p_buf->event = BTA_PAN_CI_TX_READY_EVT; in bta_pan_ci_tx_ready() 60 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() 101 tBTA_PAN_CI_TX_FLOW* p_buf = in bta_pan_ci_tx_flow() local 104 p_buf->hdr.layer_specific = handle; in bta_pan_ci_tx_flow() [all …]
|
D | bta_pan_api.cc | 55 tBTA_PAN_API_ENABLE* p_buf = in BTA_PanEnable() local 61 p_buf->hdr.event = BTA_PAN_API_ENABLE_EVT; in BTA_PanEnable() 62 p_buf->p_cback = p_cback; in BTA_PanEnable() 64 bta_sys_sendmsg(p_buf); in BTA_PanEnable() 78 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_PanDisable() local 81 p_buf->event = BTA_PAN_API_DISABLE_EVT; in BTA_PanDisable() 83 bta_sys_sendmsg(p_buf); in BTA_PanDisable() 100 tBTA_PAN_API_SET_ROLE* p_buf = in BTA_PanSetRole() local 103 p_buf->hdr.event = BTA_PAN_API_SET_ROLE_EVT; in BTA_PanSetRole() 104 p_buf->role = role; in BTA_PanSetRole() [all …]
|
D | bta_pan_act.cc | 93 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() 122 p_buf->hdr.event = BTA_PAN_CONN_CLOSE_EVT; in bta_pan_conn_state_cback() 127 p_buf->result = state; in bta_pan_conn_state_cback() 128 p_buf->hdr.layer_specific = handle; in bta_pan_conn_state_cback() 130 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/bta/hf_client/ |
D | bta_hf_client_api.cc | 82 tBTA_HF_CLIENT_API_OPEN* p_buf = in BTA_HfClientOpen() local 90 p_buf->hdr.event = BTA_HF_CLIENT_API_OPEN_EVT; in BTA_HfClientOpen() 91 p_buf->hdr.layer_specific = *p_handle; in BTA_HfClientOpen() 92 p_buf->bd_addr = bd_addr; in BTA_HfClientOpen() 93 p_buf->sec_mask = sec_mask; in BTA_HfClientOpen() 95 bta_sys_sendmsg(p_buf); in BTA_HfClientOpen() 110 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HfClientClose() local 112 p_buf->event = BTA_HF_CLIENT_API_CLOSE_EVT; in BTA_HfClientClose() 113 p_buf->layer_specific = handle; in BTA_HfClientClose() 115 bta_sys_sendmsg(p_buf); in BTA_HfClientClose() [all …]
|
D | bta_hf_client_rfc.cc | 57 tBTA_HF_CLIENT_RFC* p_buf = in bta_hf_client_port_cback() local 59 p_buf->hdr.event = BTA_HF_CLIENT_RFC_DATA_EVT; in bta_hf_client_port_cback() 60 p_buf->hdr.layer_specific = client_cb->handle; in bta_hf_client_port_cback() 61 bta_sys_sendmsg(p_buf); in bta_hf_client_port_cback() 89 tBTA_HF_CLIENT_RFC* p_buf = in bta_hf_client_mgmt_cback() local 94 p_buf->hdr.event = BTA_HF_CLIENT_RFC_OPEN_EVT; in bta_hf_client_mgmt_cback() 96 p_buf->hdr.event = BTA_HF_CLIENT_RFC_OPEN_EVT; in bta_hf_client_mgmt_cback() 116 p_buf->hdr.event = BTA_HF_CLIENT_RFC_CLOSE_EVT; in bta_hf_client_mgmt_cback() 130 osi_free(p_buf); in bta_hf_client_mgmt_cback() 139 p_buf->hdr.event = BTA_HF_CLIENT_RFC_CLOSE_EVT; in bta_hf_client_mgmt_cback() [all …]
|
/system/bt/bta/hh/ |
D | bta_hh_api.cc | 63 tBTA_HH_API_ENABLE* p_buf = in BTA_HhEnable() local 71 p_buf->hdr.event = BTA_HH_API_ENABLE_EVT; in BTA_HhEnable() 72 p_buf->p_cback = p_cback; in BTA_HhEnable() 73 p_buf->sec_mask = sec_mask; in BTA_HhEnable() 75 bta_sys_sendmsg(p_buf); in BTA_HhEnable() 89 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HhDisable() local 92 p_buf->event = BTA_HH_API_DISABLE_EVT; in BTA_HhDisable() 94 bta_sys_sendmsg(p_buf); in BTA_HhDisable() 107 BT_HDR* p_buf = (BT_HDR*)osi_calloc(sizeof(BT_HDR)); in BTA_HhClose() local 109 p_buf->event = BTA_HH_API_CLOSE_EVT; in BTA_HhClose() [all …]
|
/system/bt/stack/rfcomm/ |
D | rfc_ts_frames.cc | 45 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_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_sabme() 56 RFCOMM_SABME_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme() 58 p_buf->len = 4; in rfc_send_sabme() 60 rfc_check_send_cmd(p_mcb, p_buf); in rfc_send_sabme() 73 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_ua() local 75 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_ua() 76 p_data = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_ua() 83 *p_data = RFCOMM_UA_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua() [all …]
|
D | port_api.cc | 678 BT_HDR* p_buf; in PORT_ReadData() local 706 p_buf = (BT_HDR*)fixed_queue_try_peek_first(p_port->rx.queue); in PORT_ReadData() 707 if (p_buf == NULL) break; in PORT_ReadData() 709 if (p_buf->len > max_len) { in PORT_ReadData() 710 memcpy(p_data, (uint8_t*)(p_buf + 1) + p_buf->offset, max_len); in PORT_ReadData() 711 p_buf->offset += max_len; in PORT_ReadData() 712 p_buf->len -= max_len; in PORT_ReadData() 724 memcpy(p_data, (uint8_t*)(p_buf + 1) + p_buf->offset, p_buf->len); in PORT_ReadData() 726 *p_len += p_buf->len; in PORT_ReadData() 727 max_len -= p_buf->len; in PORT_ReadData() [all …]
|
/system/bt/stack/avct/ |
D | avct_lcb_act.cc | 51 static BT_HDR* avct_lcb_msg_asmbl(tAVCT_LCB* p_lcb, BT_HDR* p_buf) { in avct_lcb_msg_asmbl() argument 56 if (p_buf->len < 1) { in avct_lcb_msg_asmbl() 57 osi_free(p_buf); in avct_lcb_msg_asmbl() 63 p = (uint8_t*)(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 memcpy(p_lcb->p_rx_msg, p_buf, sizeof(BT_HDR) + p_buf->offset + p_buf->len); in avct_lcb_msg_asmbl() 99 osi_free(p_buf); in avct_lcb_msg_asmbl() 119 osi_free(p_buf); in avct_lcb_msg_asmbl() [all …]
|
D | avct_bcb_act.cc | 68 static BT_HDR* avct_bcb_msg_asmbl(UNUSED_ATTR tAVCT_BCB* p_bcb, BT_HDR* p_buf) { in avct_bcb_msg_asmbl() argument 72 if (p_buf->len == 0) { in avct_bcb_msg_asmbl() 73 osi_free_and_reset((void**)&p_buf); in avct_bcb_msg_asmbl() 79 p = (uint8_t*)(p_buf + 1) + p_buf->offset; in avct_bcb_msg_asmbl() 84 osi_free_and_reset((void**)&p_buf); in avct_bcb_msg_asmbl() 88 return p_buf; in avct_bcb_msg_asmbl() 199 ul_msg.p_buf = p_bcb->p_tx_msg; in avct_bcb_open_ind() 416 osi_free_and_reset((void**)&p_data->ul_msg.p_buf); in avct_bcb_discard_msg() 419 p_bcb->p_tx_msg = p_data->ul_msg.p_buf; in avct_bcb_discard_msg() 448 BT_HDR* p_buf; in avct_bcb_send_msg() local [all …]
|
/system/bt/stack/gatt/ |
D | att_protocol.cc | 50 BT_HDR* p_buf = in attp_build_mtu_cmd() local 53 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 57 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 58 p_buf->len = GATT_HDR_SIZE; /* opcode + 2 bytes mtu */ in attp_build_mtu_cmd() 60 return p_buf; in attp_build_mtu_cmd() 72 BT_HDR* p_buf = (BT_HDR*)osi_malloc(GATT_DATA_BUF_SIZE); in attp_build_exec_write_cmd() local 75 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 77 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 78 p_buf->len = GATT_OP_CODE_SIZE; in attp_build_exec_write_cmd() 85 p_buf->len += 1; in attp_build_exec_write_cmd() [all …]
|
/system/bt/stack/l2cap/ |
D | l2c_fcr.cc | 89 static void process_s_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word); 90 static void process_i_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word, 93 static void prepare_I_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, 95 static void process_stream_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf); 96 static bool do_sar_reassembly(tL2C_CCB* p_ccb, BT_HDR* p_buf, 134 static uint16_t l2c_fcr_tx_get_fcs(BT_HDR* p_buf) { in l2c_fcr_tx_get_fcs() argument 135 uint8_t* p = ((uint8_t*)(p_buf + 1)) + p_buf->offset; in l2c_fcr_tx_get_fcs() 137 return (l2c_fcr_updcrc(L2CAP_FCR_INIT_CRC, p, p_buf->len)); in l2c_fcr_tx_get_fcs() 149 static uint16_t l2c_fcr_rx_get_fcs(BT_HDR* p_buf) { in l2c_fcr_rx_get_fcs() argument 150 uint8_t* p = ((uint8_t*)(p_buf + 1)) + p_buf->offset; in l2c_fcr_rx_get_fcs() [all …]
|
D | l2c_utils.cc | 191 BT_HDR* p_buf = static_cast<BT_HDR*>(list_front(p_lcb->link_xmit_data_q)); in l2cu_release_lcb() local 192 list_remove(p_lcb->link_xmit_data_q, p_buf); in l2cu_release_lcb() 193 osi_free(p_buf); in l2cu_release_lcb() 223 tL2CAP_SEC_DATA* p_buf = in l2cu_release_lcb() local 225 if (p_buf->p_callback) in l2cu_release_lcb() 226 p_buf->p_callback(p_lcb->remote_bd_addr, p_lcb->transport, in l2cu_release_lcb() 227 p_buf->p_ref_data, BTM_DEV_RESET); in l2cu_release_lcb() 228 osi_free(p_buf); in l2cu_release_lcb() 319 BT_HDR* p_buf = (BT_HDR*)osi_malloc(L2CAP_CMD_BUF_SIZE); in l2cu_build_header() local 322 p_buf->offset = L2CAP_SEND_CMD_OFFSET; in l2cu_build_header() [all …]
|
/system/bt/stack/smp/ |
D | smp_l2c.cc | 41 BT_HDR* p_buf); 47 BT_HDR* p_buf); 135 BT_HDR* p_buf) { in smp_data_received() argument 137 uint8_t* p = (uint8_t*)(p_buf + 1) + p_buf->offset; in smp_data_received() 140 if (p_buf->len < 1) { in smp_data_received() 143 __func__, p_buf->len); in smp_data_received() 144 osi_free(p_buf); in smp_data_received() 155 osi_free(p_buf); in smp_data_received() 167 osi_free(p_buf); in smp_data_received() 180 p_buf->data + p_buf->offset, p_buf->len); in smp_data_received() [all …]
|
D | smp_utils.cc | 308 const uint8_t* p_buf, size_t buf_len) { in smp_log_metrics() argument 314 STREAM_TO_UINT8(cmd, p_buf); in smp_log_metrics() 318 STREAM_TO_UINT8(failure_reason, p_buf); in smp_log_metrics() 365 BT_HDR* p_buf; in smp_send_cmd() local 373 p_buf = (*smp_cmd_build_act[cmd_code])(cmd_code, p_cb); in smp_send_cmd() 375 if (p_buf != NULL && smp_send_msg_to_L2CAP(p_cb->pairing_bda, p_buf)) { in smp_send_cmd() 450 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIRING_REQ_SIZE + in smp_build_pairing_cmd() local 455 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pairing_cmd() 464 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pairing_cmd() 466 p_buf->len = SMP_PAIRING_REQ_SIZE; in smp_build_pairing_cmd() [all …]
|
/system/bt/stack/avdt/ |
D | avdt_msg.cc | 1064 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/src/ |
D | btif_a2dp_sink.cc | 148 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() 401 FROM_HERE, base::BindOnce(btif_a2dp_sink_command_ready, (BT_HDR*)p_buf)); in btif_a2dp_sink_update_decoder() 406 BT_HDR* p_buf = reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(BT_HDR))); in btif_a2dp_sink_on_idle() local 407 p_buf->event = BTIF_MEDIA_SINK_SUSPEND; in btif_a2dp_sink_on_idle() 409 FROM_HERE, base::BindOnce(btif_a2dp_sink_command_ready, p_buf)); in btif_a2dp_sink_on_idle() 418 BT_HDR* p_buf = reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(BT_HDR))); in btif_a2dp_sink_on_stopped() local 419 p_buf->event = BTIF_MEDIA_SINK_SUSPEND; in btif_a2dp_sink_on_stopped() [all …]
|
/system/bt/stack/bnep/ |
D | bnep_utils.cc | 43 static uint8_t* bnepu_init_hdr(BT_HDR* p_buf, uint16_t hdr_len, 168 BT_HDR* p_buf = (BT_HDR*)osi_malloc(BNEP_BUF_SIZE); in bnep_send_conn_req() local 174 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_req() 175 p = p_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req() 205 p_buf->len = (uint16_t)(p - p_start); in bnep_send_conn_req() 207 bnepu_check_send_packet(p_bcb, p_buf); in bnep_send_conn_req() 220 BT_HDR* p_buf = (BT_HDR*)osi_malloc(BNEP_BUF_SIZE); in bnep_send_conn_responce() local 226 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_responce() 227 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_responce() 237 p_buf->len = 4; in bnep_send_conn_responce() [all …]
|
/system/nfc/src/nfc/llcp/ |
D | llcp_api.cc | 638 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 …]
|
/system/bt/btif/co/ |
D | bta_pan_co.cc | 155 BT_HDR* p_buf; in bta_pan_co_tx_path() local 176 p_buf = bta_pan_ci_readbuf(handle, src, dst, &protocol, &ext, &forward); in bta_pan_co_tx_path() 177 if (p_buf) { in bta_pan_co_tx_path() 181 __func__, p_buf->len, p_buf->offset); in bta_pan_co_tx_path() 188 (char*)(p_buf + 1) + p_buf->offset, p_buf->len, ext, in bta_pan_co_tx_path() 190 osi_free(p_buf); in bta_pan_co_tx_path() 193 } while (p_buf != NULL); in bta_pan_co_tx_path()
|