/external/bluetooth/bluedroid/stack/bnep/ |
D | bnep_utils.c | 40 void bnepu_process_peer_multicast_filter_set (tBNEP_CONN *p_bcb, UINT8 *p_filters, UINT16 len); 41 void bnepu_send_peer_multicast_filter_rsp (tBNEP_CONN *p_bcb, UINT16 response_code); 57 tBNEP_CONN *p_bcb; in bnepu_find_bcb_by_cid() local 60 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) in bnepu_find_bcb_by_cid() 62 if ((p_bcb->con_state != BNEP_STATE_IDLE) && (p_bcb->l2cap_cid == cid)) in bnepu_find_bcb_by_cid() 63 return (p_bcb); in bnepu_find_bcb_by_cid() 84 tBNEP_CONN *p_bcb; in bnepu_find_bcb_by_bd_addr() local 87 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) in bnepu_find_bcb_by_bd_addr() 89 if (p_bcb->con_state != BNEP_STATE_IDLE) in bnepu_find_bcb_by_bd_addr() 91 if (!memcmp ((UINT8 *)(p_bcb->rem_bda), p_bda, BD_ADDR_LEN)) in bnepu_find_bcb_by_bd_addr() [all …]
|
D | bnep_main.c | 123 tBNEP_CONN *p_bcb = bnepu_find_bcb_by_bd_addr (bd_addr); in bnep_connect_ind() local 128 if (!(bnep_cb.profile_registered) || (p_bcb) in bnep_connect_ind() 129 || ((p_bcb = bnepu_allocate_bcb(bd_addr)) == NULL)) in bnep_connect_ind() 136 p_bcb->con_state = BNEP_STATE_CFG_SETUP; in bnep_connect_ind() 139 p_bcb->l2cap_cid = l2cap_cid; in bnep_connect_ind() 148 btu_start_timer (&p_bcb->conn_tle, BTU_TTYPE_BNEP, BNEP_CONN_TIMEOUT); in bnep_connect_ind() 150 BNEP_TRACE_EVENT("BNEP - Rcvd L2CAP conn ind, CID: 0x%x", p_bcb->l2cap_cid); in bnep_connect_ind() 218 tBNEP_CONN *p_bcb; in bnep_config_ind() local 222 if ((p_bcb = bnepu_find_bcb_by_cid (l2cap_cid)) == NULL) in bnep_config_ind() 242 p_bcb->rem_mtu_size = BNEP_MTU_SIZE; in bnep_config_ind() [all …]
|
D | bnep_api.c | 141 tBNEP_CONN *p_bcb = bnepu_find_bcb_by_bd_addr (p_rem_bda); in BNEP_Connect() local 159 if (!p_bcb) in BNEP_Connect() 161 if ((p_bcb = bnepu_allocate_bcb (p_rem_bda)) == NULL) in BNEP_Connect() 164 else if (p_bcb->con_state != BNEP_STATE_CONNECTED) in BNEP_Connect() 169 memcpy ((UINT8 *)&(p_bcb->prv_src_uuid), (UINT8 *)&(p_bcb->src_uuid), sizeof (tBT_UUID)); in BNEP_Connect() 170 memcpy ((UINT8 *)&(p_bcb->prv_dst_uuid), (UINT8 *)&(p_bcb->dst_uuid), sizeof (tBT_UUID)); in BNEP_Connect() 174 p_bcb->con_flags |= BNEP_FLAGS_IS_ORIG; in BNEP_Connect() 176 memcpy ((UINT8 *)&(p_bcb->src_uuid), (UINT8 *)src_uuid, sizeof (tBT_UUID)); in BNEP_Connect() 177 memcpy ((UINT8 *)&(p_bcb->dst_uuid), (UINT8 *)dst_uuid, sizeof (tBT_UUID)); in BNEP_Connect() 179 if (p_bcb->con_state == BNEP_STATE_CONNECTED) in BNEP_Connect() [all …]
|
D | bnep_int.h | 207 extern void bnep_disconnect (tBNEP_CONN *p_bcb, UINT16 reason); 210 extern void bnep_connected (tBNEP_CONN *p_bcb); 218 extern void bnepu_release_bcb (tBNEP_CONN *p_bcb); 219 extern void bnepu_send_peer_our_filters (tBNEP_CONN *p_bcb); 220 extern void bnepu_send_peer_our_multi_filters (tBNEP_CONN *p_bcb); 221 extern BOOLEAN bnepu_does_dest_support_prot (tBNEP_CONN *p_bcb, UINT16 protocol); 222 extern void bnepu_build_bnep_hdr (tBNEP_CONN *p_bcb, BT_HDR *p_buf, UINT16 protocol, 224 extern void test_bnepu_build_bnep_hdr (tBNEP_CONN *p_bcb, BT_HDR *p_buf, UINT16 protocol, 228 extern void bnepu_check_send_packet (tBNEP_CONN *p_bcb, BT_HDR *p_buf); 229 extern void bnep_send_command_not_understood (tBNEP_CONN *p_bcb, UINT8 cmd_code); [all …]
|
/external/bluetooth/bluedroid/stack/avct/ |
D | avct_int.h | 107 tAVCT_BCB *p_bcb; /* associated BCB */ member 147 extern void avct_bcb_event(tAVCT_BCB *p_bcb, UINT8 event, tAVCT_LCB_EVT *p_data); 149 extern tAVCT_LCB *avct_lcb_by_bcb(tAVCT_BCB *p_bcb); 151 extern BOOLEAN avct_bcb_last_ccb(tAVCT_BCB *p_bcb, tAVCT_CCB *p_ccb_last); 180 typedef void (*tAVCT_BCB_ACTION)(tAVCT_BCB *p_bcb, tAVCT_LCB_EVT *p_data); 181 extern void avct_bcb_chnl_open(tAVCT_BCB *p_bcb, tAVCT_LCB_EVT *p_data); 182 extern void avct_bcb_unbind_disc(tAVCT_BCB *p_bcb, tAVCT_LCB_EVT *p_data); 183 extern void avct_bcb_open_ind(tAVCT_BCB *p_bcb, tAVCT_LCB_EVT *p_data); 184 extern void avct_bcb_open_fail(tAVCT_BCB *p_bcb, tAVCT_LCB_EVT *p_data); 185 extern void avct_bcb_close_ind(tAVCT_BCB *p_bcb, tAVCT_LCB_EVT *p_data); [all …]
|
D | avct_api.c | 242 tAVCT_BCB *p_bcb; in AVCT_CreateBrowse() local 279 p_bcb = &avct_cb.bcb[index - 1]; in AVCT_CreateBrowse() 280 p_bcb->allocated = index; in AVCT_CreateBrowse() 287 p_ccb->p_bcb = p_bcb; in AVCT_CreateBrowse() 288 AVCT_TRACE_DEBUG("ch_state: %d", p_bcb->ch_state); in AVCT_CreateBrowse() 289 avct_bcb_event(p_bcb, AVCT_LCB_UL_BIND_EVT, (tAVCT_LCB_EVT *) &p_ccb); in AVCT_CreateBrowse() 327 else if (p_ccb->p_bcb != NULL) in AVCT_RemoveBrowse() 330 avct_bcb_event(p_ccb->p_bcb, AVCT_LCB_UL_UNBIND_EVT, (tAVCT_LCB_EVT *) &p_ccb); in AVCT_RemoveBrowse() 355 if ((p_ccb = avct_ccb_by_idx(handle)) != NULL && p_ccb->p_bcb != NULL) in AVCT_GetBrowseMtu() 357 peer_mtu = p_ccb->p_bcb->peer_mtu; in AVCT_GetBrowseMtu() [all …]
|
D | avct_lcb.c | 237 void avct_bcb_event(tAVCT_BCB *p_bcb, UINT8 event, tAVCT_LCB_EVT *p_data) in avct_bcb_event() argument 244 …TRACE_EVENT("BCB lcb=%d event=%s state=%s", p_bcb->allocated, avct_lcb_evt_str[event], avct_lcb_st… in avct_bcb_event() 246 AVCT_TRACE_EVENT("BCB lcb=%d event=%d state=%d", p_bcb->allocated, event, p_bcb->state); in avct_bcb_event() 250 state_table = avct_lcb_st_tbl[p_bcb->state]; in avct_bcb_event() 253 p_bcb->state = state_table[event][AVCT_LCB_NEXT_STATE]; in avct_bcb_event() 260 (*avct_bcb_action[action])(p_bcb, p_data); in avct_bcb_event()
|
D | avct_ccb.c | 84 if(p_ccb->p_bcb == NULL) in avct_ccb_dealloc() 89 avct_bcb_event(p_ccb->p_bcb, AVCT_LCB_UL_UNBIND_EVT, (tAVCT_LCB_EVT *) &p_ccb); in avct_ccb_dealloc()
|