/system/bt/stack/bnep/ |
D | bnep_main.cc | 119 tBNEP_CONN* p_bcb = bnepu_find_bcb_by_bd_addr(bd_addr); in bnep_connect_ind() local 123 if (!(bnep_cb.profile_registered) || (p_bcb) || in bnep_connect_ind() 124 ((p_bcb = bnepu_allocate_bcb(bd_addr)) == NULL)) { in bnep_connect_ind() 130 p_bcb->con_state = BNEP_STATE_CFG_SETUP; in bnep_connect_ind() 133 p_bcb->l2cap_cid = l2cap_cid; in bnep_connect_ind() 142 alarm_set_on_mloop(p_bcb->conn_timer, BNEP_CONN_TIMEOUT_MS, in bnep_connect_ind() 143 bnep_conn_timer_timeout, p_bcb); in bnep_connect_ind() 145 BNEP_TRACE_EVENT("BNEP - Rcvd L2CAP conn ind, CID: 0x%x", p_bcb->l2cap_cid); in bnep_connect_ind() 160 tBNEP_CONN* p_bcb; in bnep_connect_cfm() local 163 p_bcb = bnepu_find_bcb_by_cid(l2cap_cid); in bnep_connect_cfm() [all …]
|
D | bnep_utils.cc | 46 void bnepu_process_peer_multicast_filter_set(tBNEP_CONN* p_bcb, 48 void bnepu_send_peer_multicast_filter_rsp(tBNEP_CONN* p_bcb, 63 tBNEP_CONN* p_bcb; in bnepu_find_bcb_by_cid() local 66 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_find_bcb_by_cid() 67 if ((p_bcb->con_state != BNEP_STATE_IDLE) && (p_bcb->l2cap_cid == cid)) in bnepu_find_bcb_by_cid() 68 return (p_bcb); in bnepu_find_bcb_by_cid() 87 tBNEP_CONN* p_bcb; in bnepu_find_bcb_by_bd_addr() local 90 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_find_bcb_by_bd_addr() 91 if (p_bcb->con_state != BNEP_STATE_IDLE) { in bnepu_find_bcb_by_bd_addr() 92 if (p_bcb->rem_bda == p_bda) return (p_bcb); in bnepu_find_bcb_by_bd_addr() [all …]
|
D | bnep_api.cc | 131 tBNEP_CONN* p_bcb = bnepu_find_bcb_by_bd_addr(p_rem_bda); in BNEP_Connect() local 137 if (!p_bcb) { in BNEP_Connect() 138 p_bcb = bnepu_allocate_bcb(p_rem_bda); in BNEP_Connect() 139 if (p_bcb == NULL) return (BNEP_NO_RESOURCES); in BNEP_Connect() 140 } else if (p_bcb->con_state != BNEP_STATE_CONNECTED) in BNEP_Connect() 144 p_bcb->prv_src_uuid = p_bcb->src_uuid; in BNEP_Connect() 145 p_bcb->prv_dst_uuid = p_bcb->dst_uuid; in BNEP_Connect() 149 p_bcb->con_flags |= BNEP_FLAGS_IS_ORIG; in BNEP_Connect() 151 p_bcb->src_uuid = src_uuid; in BNEP_Connect() 152 p_bcb->dst_uuid = dst_uuid; in BNEP_Connect() [all …]
|
D | bnep_int.h | 188 extern void bnep_disconnect(tBNEP_CONN* p_bcb, uint16_t reason); 191 extern void bnep_connected(tBNEP_CONN* p_bcb); 198 extern void bnepu_release_bcb(tBNEP_CONN* p_bcb); 199 extern void bnepu_send_peer_our_filters(tBNEP_CONN* p_bcb); 200 extern void bnepu_send_peer_our_multi_filters(tBNEP_CONN* p_bcb); 201 extern bool bnepu_does_dest_support_prot(tBNEP_CONN* p_bcb, uint16_t protocol); 202 extern void bnepu_build_bnep_hdr(tBNEP_CONN* p_bcb, BT_HDR* p_buf, 206 extern void test_bnepu_build_bnep_hdr(tBNEP_CONN* p_bcb, BT_HDR* p_buf, 211 extern void bnepu_check_send_packet(tBNEP_CONN* p_bcb, BT_HDR* p_buf); 212 extern void bnep_send_command_not_understood(tBNEP_CONN* p_bcb, [all …]
|
/system/bt/stack/avct/ |
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 101 void avct_bcb_chnl_open(tAVCT_BCB* p_bcb, UNUSED_ATTR tAVCT_LCB_EVT* p_data) { in avct_bcb_chnl_open() argument 103 tAVCT_LCB* p_lcb = avct_lcb_by_bcb(p_bcb); in avct_bcb_chnl_open() 117 p_bcb->ch_state = AVCT_CH_CONN; in avct_bcb_chnl_open() 118 p_bcb->ch_lcid = in avct_bcb_chnl_open() 120 if (p_bcb->ch_lcid == 0) { in avct_bcb_chnl_open() 124 avct_bcb_event(p_bcb, AVCT_LCB_LL_CLOSE_EVT, &avct_lcb_evt); in avct_bcb_chnl_open() 138 void avct_bcb_unbind_disc(UNUSED_ATTR tAVCT_BCB* p_bcb, tAVCT_LCB_EVT* p_data) { in avct_bcb_unbind_disc() argument 139 p_data->p_ccb->p_bcb = NULL; in avct_bcb_unbind_disc() 158 void avct_bcb_open_ind(tAVCT_BCB* p_bcb, tAVCT_LCB_EVT* p_data) { in avct_bcb_open_ind() argument [all …]
|
D | avct_int.h | 109 tAVCT_BCB* p_bcb; /* associated BCB */ member 149 extern void avct_bcb_event(tAVCT_BCB* p_bcb, uint8_t event, 152 extern tAVCT_LCB* avct_lcb_by_bcb(tAVCT_BCB* p_bcb); 154 extern uint8_t avct_bcb_get_last_ccb_index(tAVCT_BCB* p_bcb, 182 typedef void (*tAVCT_BCB_ACTION)(tAVCT_BCB* p_bcb, tAVCT_LCB_EVT* p_data); 183 extern void avct_bcb_chnl_open(tAVCT_BCB* p_bcb, tAVCT_LCB_EVT* p_data); 184 extern void avct_bcb_unbind_disc(tAVCT_BCB* p_bcb, tAVCT_LCB_EVT* p_data); 185 extern void avct_bcb_open_ind(tAVCT_BCB* p_bcb, tAVCT_LCB_EVT* p_data); 186 extern void avct_bcb_open_fail(tAVCT_BCB* p_bcb, tAVCT_LCB_EVT* p_data); 187 extern void avct_bcb_close_ind(tAVCT_BCB* p_bcb, tAVCT_LCB_EVT* p_data); [all …]
|
D | avct_api.cc | 246 tAVCT_BCB* p_bcb; in AVCT_CreateBrowse() local 274 p_bcb = &avct_cb.bcb[index - 1]; in AVCT_CreateBrowse() 275 p_bcb->allocated = index; in AVCT_CreateBrowse() 281 p_ccb->p_bcb = p_bcb; in AVCT_CreateBrowse() 282 p_bcb->peer_addr = p_ccb->p_lcb->peer_addr; in AVCT_CreateBrowse() 283 AVCT_TRACE_DEBUG("ch_state: %d", p_bcb->ch_state); in AVCT_CreateBrowse() 286 avct_bcb_event(p_bcb, AVCT_LCB_UL_BIND_EVT, &avct_lcb_evt); in AVCT_CreateBrowse() 316 } else if (p_ccb->p_bcb != NULL) in AVCT_RemoveBrowse() 321 avct_bcb_event(p_ccb->p_bcb, AVCT_LCB_UL_UNBIND_EVT, &avct_lcb_evt); in AVCT_RemoveBrowse() 342 if (p_ccb != NULL && p_ccb->p_bcb != NULL) { in AVCT_GetBrowseMtu() [all …]
|
D | avct_l2c_br.cc | 124 tAVCT_BCB* p_bcb; in avct_l2c_br_connect_ind_cback() local 133 p_bcb = avct_bcb_by_lcb(p_lcb); in avct_l2c_br_connect_ind_cback() 134 p_bcb->peer_addr = bd_addr; in avct_l2c_br_connect_ind_cback() 136 if (p_bcb->allocated == 0) { in avct_l2c_br_connect_ind_cback() 140 p_bcb->allocated = p_lcb->allocated; /* copy the index from lcb */ in avct_l2c_br_connect_ind_cback() 165 p_bcb->ch_lcid = lcid; in avct_l2c_br_connect_ind_cback() 168 p_bcb->ch_state = AVCT_CH_CFG; in avct_l2c_br_connect_ind_cback()
|
D | avct_lcb.cc | 199 void avct_bcb_event(tAVCT_BCB* p_bcb, uint8_t event, tAVCT_LCB_EVT* p_data) { in avct_bcb_event() argument 204 AVCT_TRACE_EVENT("BCB lcb=%d event=%s state=%s", p_bcb->allocated, in avct_bcb_event() 205 avct_lcb_evt_str[event], avct_lcb_st_str[p_bcb->state]); in avct_bcb_event() 208 state_table = avct_lcb_st_tbl[p_bcb->state]; in avct_bcb_event() 211 p_bcb->state = state_table[event][AVCT_LCB_NEXT_STATE]; in avct_bcb_event() 217 (*avct_bcb_action[action])(p_bcb, p_data); in avct_bcb_event()
|
D | avct_ccb.cc | 80 if (p_ccb->p_bcb == NULL) { in avct_ccb_dealloc() 85 avct_bcb_event(p_ccb->p_bcb, AVCT_LCB_UL_UNBIND_EVT, in avct_ccb_dealloc()
|