/system/bt/stack/avct/ |
H A D | avct_ccb.c | 36 ** Description Allocate a connection control block; copy parameters to ccb. 39 ** Returns pointer to the ccb, or NULL if none could be allocated. 44 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; 106 ** Description Given a pointer to an ccb, return its index. 109 ** Returns Index of ccb. 115 return (UINT8) (p_ccb - avct_cb.ccb); 122 ** Description Return ccb pointer based on ccb index (or handle). 125 ** Returns pointer to the ccb, or NULL if none found. 135 p_ccb = &avct_cb.ccb[id [all...] |
H A D | avct_lcb.c | 352 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; 361 /* if ccb allocated and */ 366 AVCT_TRACE_DEBUG("avct_lcb_dealloc used by ccb: %d", i); 431 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; 448 ** Description See if given ccb is only one on the lcb. 451 ** Returns TRUE if ccb is last, FALSE otherwise. 456 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; 462 AVCT_TRACE_WARNING("%x: aloc:%d, lcb:0x%x/0x%x, ccb:0x%x/0x%x",
|
H A D | avct_lcb_act.c | 208 ** Description Deallocate ccb and call callback with disconnect event. 225 ** Description Handle an LL_OPEN event. For each allocated ccb already 227 ** unbound ccb with a new PID, bind that ccb to this lcb and 236 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; 242 /* if ccb allocated and */ 253 /* if unbound acceptor and lcb doesn't already have a ccb for this PID */ 257 /* bind ccb to lcb and send connect ind event */ 287 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; 313 tAVCT_CCB *p_ccb = &avct_cb.ccb[ [all...] |
H A D | avct_int.h | 55 /* "no event" indicator used by ccb dealloc */ 134 tAVCT_CCB ccb[AVCT_NUM_CONN]; /* connection control blocks */ member in struct:__anon784
|
H A D | avct_l2c.c | 76 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; 117 /* no ccb available, reject L2CAP connection */
|
/system/bt/stack/mcap/ |
H A D | mca_csm.c | 193 MCA_TRACE_EVENT("CCB ccb=%d event=%s state=%s", mca_ccb_to_hdl(p_ccb), mca_ccb_evt_str[event], mca_ccb_st_str[p_ccb->state]); 195 MCA_TRACE_EVENT("CCB ccb=%d event=%d state=%d", mca_ccb_to_hdl(p_ccb), event, p_ccb->state); 232 p_ccb_tmp = &mca_cb.ccb[i*MCA_NUM_LINKS]; 267 p_ccb_tmp = &mca_cb.ccb[i*MCA_NUM_LINKS]; 335 return (UINT8) (p_ccb - mca_cb.ccb + 1); 352 if (mcl && mcl <= MCA_NUM_CCBS && mca_cb.ccb[mcl-1].state) 353 p_ccb = &mca_cb.ccb[mcl-1];
|
H A D | mca_int.h | 171 tMCA_DL cb_idx; /* 1-based index to ccb or dcb */ 192 MCA_CCB_STAT_NORM, /* normal operation (based on ccb state) */ 201 * ccb[0] ...ccb[MCA_NUM_LINKS*1-1] -> rcb[0] 202 * ccb[MCA_NUM_LINKS*1]...ccb[MCA_NUM_LINKS*2-1] -> rcb[1] 203 * ccb[MCA_NUM_LINKS*2]...ccb[MCA_NUM_LINKS*3-1] -> rcb[2] 231 * dcb[0] ...dcb[MCA_NUM_MDLS*1-1] -> ccb[0] 232 * dcb[MCA_NUM_MDLS*1]...dcb[MCA_NUM_MDLS*2-1] -> ccb[ 257 tMCA_CCB ccb[MCA_NUM_CCBS]; /* control channel control blocks */ member in struct:__anon1242 [all...] |
H A D | mca_main.c | 322 /* if control channel, notify ccb that channel close */ 371 /* if control channel, notify ccb that channel open */ 414 /* if control channel, notify ccb of congestion */ 491 } /* got a valid ccb */ 557 p_ccb = &mca_cb.ccb[handle*MCA_NUM_LINKS];
|
/system/bt/stack/avdt/ |
H A D | avdt_ccb.c | 284 memset(&avdt_cb.ccb[0], 0, sizeof(tAVDT_CCB) * AVDT_NUM_LINKS); 292 ** Description State machine event handling function for ccb 305 AVDT_TRACE_EVENT("CCB ccb=%d event=%s state=%s", avdt_ccb_to_idx(p_ccb), avdt_ccb_evt_str[event], avdt_ccb_st_str[p_ccb->state]); 335 ** Description This lookup function finds the ccb for a BD address. 338 ** Returns pointer to the ccb, or NULL if none found. 343 tAVDT_CCB *p_ccb = &avdt_cb.ccb[0]; 348 /* if allocated ccb has matching ccb */ 357 /* if no ccb found */ 360 AVDT_TRACE_DEBUG("No ccb fo [all...] |
H A D | avdt_int.h | 116 /* ccb state machine states */ 167 /* ccb state machine events */ 411 /* union associated with ccb state machine events */ 434 BOOLEAN allocated; /* Whether ccb is allocated */ 486 tAVDT_CCB *p_ccb; /* ccb associated with this scb */ 541 tAVDT_CCB ccb[AVDT_NUM_LINKS]; /* channel control blocks */ member in struct:__anon808
|
/system/bt/stack/avrc/ |
H A D | avrc_int.h | 119 tAVRC_CONN_CB ccb[AVCT_NUM_CONN]; member in struct:__anon811
|
H A D | avrc_api.c | 80 if (event <= AVRC_MAX_RCV_CTRL_EVT && avrc_cb.ccb[handle].p_ctrl_cback) 88 (*avrc_cb.ccb[handle].p_ctrl_cback)(handle, avrc_event, result, peer_addr); 597 if ( ((avrc_cb.ccb[handle].control & AVRC_CT_TARGET) && (cr == AVCT_CMD)) || 598 ((avrc_cb.ccb[handle].control & AVRC_CT_CONTROL) && (cr == AVCT_RSP)) ) 617 AVRC_CO_ID_TO_BE_STREAM(p_rsp_data, avrc_cb.ccb[handle].company_id); 760 if ((avrc_cb.ccb[handle].control & AVRC_CT_TARGET) && (cr == AVCT_CMD)) 797 (*avrc_cb.ccb[handle].p_msg_cback)(handle, label, opcode, &msg); 804 handle, avrc_cb.ccb[handle].control, cr, opcode); 931 memcpy(&avrc_cb.ccb[*p_handle], p_ccb, sizeof(tAVRC_CONN_CB));
|
/system/bt/stack/sdp/ |
H A D | sdp_utils.c | 62 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) 92 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) 119 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++)
|
H A D | sdpint.h | 223 tCONN_CB ccb[SDP_MAX_CONNECTIONS]; member in struct:__anon1269
|
/system/bt/bta/av/ |
H A D | bta_av_act.c | 304 tAVRC_CONN_CB ccb; local 326 ccb.p_ctrl_cback = bta_av_rc_ctrl_cback; 327 ccb.p_msg_cback = bta_av_rc_msg_cback; 328 ccb.company_id = p_bta_av_cfg->company_id; 329 ccb.conn = role; 331 ccb.control = p_cb->features & (BTA_AV_FEAT_RCTG | BTA_AV_FEAT_RCCT | AVRC_CT_PASSIVE); 334 if (AVRC_Open(&rc_handle, &ccb, bda) != AVRC_SUCCESS)
|