Lines Matching refs:in_use
293 if (!p_cb->hdl_list[i].in_use) in gatt_alloc_hdl_buffer()
296 p_elem->in_use = TRUE; in gatt_alloc_hdl_buffer()
322 if (p_list->in_use && p_list->asgn_range.s_handle == handle) in gatt_find_hdl_buffer_by_handle()
480 gatt_cb.srv_list[i_sreg].in_use = TRUE; in gatts_update_srv_list_elem()
713 if (gatt_cb.tcb[i].in_use) in gatt_find_the_connected_bda()
814 if (gatt_cb.tcb[i].in_use && in gatt_is_bda_connected()
862 if ( (tcb_idx < GATT_MAX_PHY_CHANNEL) && gatt_cb.tcb[tcb_idx].in_use) in gatt_get_tcb_by_idx()
902 if (!gatt_cb.tcb[i].in_use) in gatt_find_i_tcb_free()
942 p_tcb->in_use = TRUE; in gatt_allocate_tcb_by_bdaddr()
1207 if (gatt_cb.sr_reg[i_rcb].in_use && in gatt_sr_find_i_rcb_by_handle()
1234 if ( p_sreg->in_use ) in gatt_sr_find_i_rcb_by_app_id()
1269 if (!p_sreg->in_use) in gatt_sr_alloc_rcb()
1273 p_sreg->in_use = TRUE; in gatt_sr_alloc_rcb()
1333 if ( p_reg->in_use && in gatt_sr_send_req_callback()
1477 if ( (ii < GATT_MAX_APPS) && (p_reg->in_use) ) in gatt_get_regcb()
1502 if (gatt_cb.clcb[i].in_use && (gatt_cb.clcb[i].conn_id == conn_id)) in gatt_is_clcb_allocated()
1532 if (!gatt_cb.clcb[i].in_use) in gatt_clcb_alloc()
1536 p_clcb->in_use = TRUE; in gatt_clcb_alloc()
1558 if (p_clcb && p_clcb->in_use) in gatt_clcb_dealloc()
1583 if (gatt_cb.tcb[xx].in_use && gatt_cb.tcb[xx].att_lcid == lcid) in gatt_find_tcb_by_cid()
1632 … if (gatt_cb.clcb[i].in_use && memcmp(gatt_cb.clcb[i].p_tcb->peer_bda, bda, BD_ADDR_LEN) == 0) in gatt_num_clcb_by_bd_addr()
2115 if (p_clcb->in_use && p_clcb->p_tcb == p_tcb) in gatt_cleanup_upon_disc()
2135 if (p_reg->in_use && p_reg->app_cb.p_conn_cb) in gatt_cleanup_upon_disc()
2231 if (p_dev->in_use && (p_dev->gatt_if[i] == gatt_if)) in gatt_is_bg_dev_for_app()
2254 if (p_dev_list->in_use && !memcmp(p_dev_list->remote_bda, remote_bda, BD_ADDR_LEN)) in gatt_find_bg_dev()
2277 if (!p_dev_list->in_use) in gatt_alloc_bg_dev()
2279 p_dev_list->in_use = TRUE; in gatt_alloc_bg_dev()
2521 if (p_dev_list->in_use) in gatt_deregister_bgdev_list()
2644 if ( p_clcb->in_use && (p_clcb->p_reg == p_reg) && (p_clcb->p_tcb == p_tcb) ) in gatt_get_conn_id()
2694 if ( p_reg->in_use && p_reg->listening > listening) in gatt_update_listen_mode()