/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/hl/ |
D | bta_hl_api.cc | 57 tBTA_HL_API_ENABLE* p_buf = in BTA_HlEnable() local 63 p_buf->hdr.event = BTA_HL_API_ENABLE_EVT; in BTA_HlEnable() 64 p_buf->p_cback = p_ctrl_cback; in BTA_HlEnable() 66 bta_sys_sendmsg(p_buf); in BTA_HlEnable() 79 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HlDisable() local 82 p_buf->event = BTA_HL_API_DISABLE_EVT; in BTA_HlDisable() 84 bta_sys_sendmsg(p_buf); in BTA_HlDisable() 103 tBTA_HL_API_UPDATE* p_buf = in BTA_HlUpdate() local 108 p_buf->hdr.event = BTA_HL_API_UPDATE_EVT; in BTA_HlUpdate() 109 p_buf->app_id = app_id; in BTA_HlUpdate() [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 | 130 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 …]
|
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/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/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() 113 p_buf->hdr.event = BTA_HF_CLIENT_RFC_CLOSE_EVT; in bta_hf_client_mgmt_cback() 135 p_buf->hdr.event = BTA_HF_CLIENT_RFC_CLOSE_EVT; in bta_hf_client_mgmt_cback() 138 p_buf->hdr.layer_specific = client_cb != NULL ? client_cb->handle : 0; in bta_hf_client_mgmt_cback() [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 | 1071 BT_HDR* p_buf; in PORT_Purge() local 1093 while ((p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_port->rx.queue)) != NULL) in PORT_Purge() 1094 osi_free(p_buf); in PORT_Purge() 1107 while ((p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_port->tx.queue)) != NULL) in PORT_Purge() 1108 osi_free(p_buf); in PORT_Purge() 1143 BT_HDR* p_buf; in PORT_ReadData() local 1171 p_buf = (BT_HDR*)fixed_queue_try_peek_first(p_port->rx.queue); in PORT_ReadData() 1172 if (p_buf == NULL) break; in PORT_ReadData() 1174 if (p_buf->len > max_len) { in PORT_ReadData() 1175 memcpy(p_data, (uint8_t*)(p_buf + 1) + p_buf->offset, max_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 57 p = (uint8_t*)(p_buf + 1) + p_buf->offset; in avct_lcb_msg_asmbl() 61 if (p_buf->len < avct_lcb_pkt_type_len[pkt_type]) { in avct_lcb_msg_asmbl() 62 osi_free(p_buf); in avct_lcb_msg_asmbl() 74 p_ret = p_buf; in avct_lcb_msg_asmbl() 90 memcpy(p_lcb->p_rx_msg, p_buf, sizeof(BT_HDR) + p_buf->offset + p_buf->len); in avct_lcb_msg_asmbl() 93 osi_free(p_buf); in avct_lcb_msg_asmbl() 113 osi_free(p_buf); in avct_lcb_msg_asmbl() 125 p_buf->offset += AVCT_HDR_LEN_CONT; in avct_lcb_msg_asmbl() 126 p_buf->len -= AVCT_HDR_LEN_CONT; 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 | 90 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 void process_stream_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf); 97 static bool do_sar_reassembly(tL2C_CCB* p_ccb, BT_HDR* p_buf, 135 static uint16_t l2c_fcr_tx_get_fcs(BT_HDR* p_buf) { in l2c_fcr_tx_get_fcs() argument 136 uint8_t* p = ((uint8_t*)(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_t l2c_fcr_rx_get_fcs(BT_HDR* p_buf) { in l2c_fcr_rx_get_fcs() argument 151 uint8_t* p = ((uint8_t*)(p_buf + 1)) + p_buf->offset; in l2c_fcr_rx_get_fcs() [all …]
|
D | l2c_utils.cc | 197 BT_HDR* p_buf = static_cast<BT_HDR*>(list_front(p_lcb->link_xmit_data_q)); in l2cu_release_lcb() local 198 list_remove(p_lcb->link_xmit_data_q, p_buf); in l2cu_release_lcb() 199 osi_free(p_buf); in l2cu_release_lcb() 229 tL2CAP_SEC_DATA* p_buf = in l2cu_release_lcb() local 231 if (p_buf->p_callback) in l2cu_release_lcb() 232 p_buf->p_callback(p_lcb->remote_bd_addr, p_lcb->transport, in l2cu_release_lcb() 233 p_buf->p_ref_data, BTM_DEV_RESET); in l2cu_release_lcb() 234 osi_free(p_buf); in l2cu_release_lcb() 325 BT_HDR* p_buf = (BT_HDR*)osi_malloc(L2CAP_CMD_BUF_SIZE); in l2cu_build_header() local 328 p_buf->offset = L2CAP_SEND_CMD_OFFSET; in l2cu_build_header() [all …]
|
/system/bt/stack/avdt/ |
D | avdt_msg.cc | 1044 BT_HDR* p_buf; in avdt_msg_send() local 1073 p_buf = p_ccb->p_curr_msg; in avdt_msg_send() 1086 p_buf = (BT_HDR*)osi_malloc(AVDT_CMD_BUF_SIZE); in avdt_msg_send() 1089 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send() 1090 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send() 1091 memcpy((uint8_t*)(p_buf + 1) + p_buf->offset, in avdt_msg_send() 1093 p_buf->len); in avdt_msg_send() 1103 p_buf = (BT_HDR*)osi_malloc(AVDT_CMD_BUF_SIZE); in avdt_msg_send() 1106 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send() 1107 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send() [all …]
|
/system/bt/stack/smp/ |
D | smp_utils.cc | 332 BT_HDR* p_buf; in smp_send_cmd() local 340 p_buf = (*smp_cmd_build_act[cmd_code])(cmd_code, p_cb); in smp_send_cmd() 342 if (p_buf != NULL && smp_send_msg_to_L2CAP(p_cb->pairing_bda, p_buf)) { in smp_send_cmd() 417 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIRING_REQ_SIZE + in smp_build_pairing_cmd() local 422 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pairing_cmd() 431 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pairing_cmd() 433 p_buf->len = SMP_PAIRING_REQ_SIZE; in smp_build_pairing_cmd() 435 return p_buf; in smp_build_pairing_cmd() 448 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_CONFIRM_CMD_SIZE + in smp_build_confirm_cmd() local 453 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_confirm_cmd() [all …]
|
D | smp_l2c.cc | 39 BT_HDR* p_buf); 45 BT_HDR* p_buf); 139 BT_HDR* p_buf) { in smp_data_received() argument 141 uint8_t* p = (uint8_t*)(p_buf + 1) + p_buf->offset; in smp_data_received() 151 osi_free(p_buf); in smp_data_received() 163 osi_free(p_buf); in smp_data_received() 188 p_cb->rcvd_cmd_len = (uint8_t)p_buf->len; in smp_data_received() 194 osi_free(p_buf); in smp_data_received() 279 BT_HDR* p_buf) { in smp_br_data_received() argument 281 uint8_t* p = (uint8_t*)(p_buf + 1) + p_buf->offset; in smp_br_data_received() [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() 254 UNUSED_ATTR BT_HDR* p_buf, UNUSED_ATTR bool ext, in bta_pan_co_tx_writebuf() argument
|