Lines Matching refs:gatt_cb
133 if (gatt_cb.cb_info.p_srv_chg_callback)
137 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_REMOVE_CLIENT,&req, NULL);
139 GKI_freebuf (GKI_remove_from_queue (&gatt_cb.srv_chg_clt_q, p_buf));
155 tGATTS_SRV_CHG *p_buf = (tGATTS_SRV_CHG *)GKI_getfirst(&gatt_cb.srv_chg_clt_q);
167 if (gatt_cb.cb_info.p_srv_chg_callback)
168 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_UPDATE_CLIENT,&req, NULL);
186 tGATTS_PENDING_NEW_SRV_START *p_buf = (tGATTS_PENDING_NEW_SRV_START *)GKI_getfirst(&gatt_cb.pending_new_srv_start_q);
246 GKI_enqueue (&gatt_cb.pending_new_srv_start_q, p_buf);
269 GKI_enqueue (&gatt_cb.srv_chg_clt_q, p_buf);
288 tGATT_CB *p_cb = &gatt_cb;
315 tGATT_HDL_LIST_INFO *p_list_info= &gatt_cb.hdl_list_info;
343 tGATT_HDL_LIST_INFO *p_list_info= &gatt_cb.hdl_list_info;
392 tGATT_HDL_LIST_ELEM *p_elem = &gatt_cb.hdl_list[0];
480 gatt_cb.srv_list[i_sreg].in_use = TRUE;
481 gatt_cb.srv_list[i_sreg].i_sreg = i_sreg;
482 gatt_cb.srv_list[i_sreg].s_hdl = gatt_cb.sr_reg[i_sreg].s_hdl;
483 gatt_cb.srv_list[i_sreg].is_primary = is_primary;
713 if (gatt_cb.tcb[i].in_use)
715 memcpy( bda, gatt_cb.tcb[i].peer_bda, BD_ADDR_LEN);
746 if (p_tcb->indicate_handle == gatt_cb.handle_of_h_r)
754 if (p_buf->handle == gatt_cb.handle_of_h_r)
779 tGATTS_SRV_CHG *p_buf = (tGATTS_SRV_CHG *)GKI_getfirst(&gatt_cb.srv_chg_clt_q);
814 if (gatt_cb.tcb[i].in_use &&
815 !memcmp(gatt_cb.tcb[i].peer_bda, bda, BD_ADDR_LEN))
839 if (!memcmp(gatt_cb.tcb[i].peer_bda, bda, BD_ADDR_LEN))
862 if ( (tcb_idx < GATT_MAX_PHY_CHANNEL) && gatt_cb.tcb[tcb_idx].in_use)
863 p_tcb = &gatt_cb.tcb[tcb_idx];
883 p_tcb = &gatt_cb.tcb[i];
902 if (!gatt_cb.tcb[i].in_use)
935 p_tcb = &gatt_cb.tcb[i];
1207 if (gatt_cb.sr_reg[i_rcb].in_use &&
1208 gatt_cb.sr_reg[i_rcb].s_hdl <= handle &&
1209 gatt_cb.sr_reg[i_rcb].e_hdl >= handle )
1232 for (i_rcb = 0, p_sreg = gatt_cb.sr_reg; i_rcb < GATT_MAX_SR_PROFILES; i_rcb++, p_sreg++)
1267 for (ii = 0, p_sreg = gatt_cb.sr_reg; ii < GATT_MAX_SR_PROFILES; ii++, p_sreg++)
1451 gatt_cb.enable_err_rsp = enable;
1452 gatt_cb.req_op_code = req_op_code;
1453 gatt_cb.err_status = err_status;
1476 p_reg = &gatt_cb.cl_rcb[ii];
1502 if (gatt_cb.clcb[i].in_use && (gatt_cb.clcb[i].conn_id == conn_id))
1532 if (!gatt_cb.clcb[i].in_use)
1534 p_clcb = &gatt_cb.clcb[i];
1583 if (gatt_cb.tcb[xx].in_use && gatt_cb.tcb[xx].att_lcid == lcid)
1585 p_tcb = &gatt_cb.tcb[xx];
1632 if (gatt_cb.clcb[i].in_use && memcmp(gatt_cb.clcb[i].p_tcb->peer_bda, bda, BD_ADDR_LEN) == 0)
1896 *p_gatt_if = gatt_cb.clcb[i].p_reg->gatt_if;
1950 p_clcb = &gatt_cb.clcb[p_cmd->clcb_idx];
2114 p_clcb = &gatt_cb.clcb[i];
2134 p_reg = &gatt_cb.cl_rcb[i];
2249 tGATT_BG_CONN_DEV *p_dev_list = &gatt_cb.bgconn_dev[0];
2272 tGATT_BG_CONN_DEV *p_dev_list = &gatt_cb.bgconn_dev[0];
2516 tGATT_BG_CONN_DEV *p_dev_list = &gatt_cb.bgconn_dev[0];
2556 memset(&gatt_cb.bgconn_dev, 0 , sizeof(tGATT_BG_CONN_DEV)*GATT_MAX_BG_CONN_DEV);
2642 for (i = 0, p_clcb = gatt_cb.clcb; i < GATT_CL_MAX_LCB; i++, p_clcb++)
2688 tGATT_REG *p_reg = &gatt_cb.cl_rcb[0];