Lines Matching refs:in_use

310         if (!p_cb->hdl_list[i].in_use)  in gatt_alloc_hdl_buffer()
313 p_elem->in_use = TRUE; in gatt_alloc_hdl_buffer()
340 if (p_list->in_use && p_list->asgn_range.s_handle == handle) in gatt_find_hdl_buffer_by_handle()
503 gatt_cb.srv_list[i_sreg].in_use = TRUE; in gatts_update_srv_list_elem()
737 if (gatt_cb.tcb[i].in_use && gatt_cb.tcb[i].ch_state == GATT_CH_OPEN) in gatt_find_the_connected_bda()
845 if (gatt_cb.tcb[i].in_use && in gatt_is_bda_connected()
893 if ( (tcb_idx < GATT_MAX_PHY_CHANNEL) && gatt_cb.tcb[tcb_idx].in_use) in gatt_get_tcb_by_idx()
933 if (!gatt_cb.tcb[i].in_use) in gatt_find_i_tcb_free()
976 p_tcb->in_use = TRUE; in gatt_allocate_tcb_by_bdaddr()
1345 if (gatt_cb.sr_reg[i_rcb].in_use && in gatt_sr_find_i_rcb_by_handle()
1372 if ( p_sreg->in_use ) in gatt_sr_find_i_rcb_by_app_id()
1407 if (!p_sreg->in_use) in gatt_sr_alloc_rcb()
1411 p_sreg->in_use = TRUE; in gatt_sr_alloc_rcb()
1472 if ( p_reg->in_use && in gatt_sr_send_req_callback()
1628 if (!p_reg->in_use) { in gatt_get_regcb()
1654 if (gatt_cb.clcb[i].in_use && (gatt_cb.clcb[i].conn_id == conn_id)) in gatt_is_clcb_allocated()
1684 if (!gatt_cb.clcb[i].in_use) in gatt_clcb_alloc()
1688 p_clcb->in_use = TRUE; in gatt_clcb_alloc()
1710 if (p_clcb && p_clcb->in_use) in gatt_clcb_dealloc()
1736 if (gatt_cb.tcb[xx].in_use && gatt_cb.tcb[xx].att_lcid == lcid) in gatt_find_tcb_by_cid()
1785 … 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()
2269 if (p_clcb->in_use && p_clcb->p_tcb == p_tcb) in gatt_cleanup_upon_disc()
2293 if (p_reg->in_use && p_reg->app_cb.p_conn_cb) in gatt_cleanup_upon_disc()
2392 if (p_dev->in_use && (p_dev->gatt_if[i] == gatt_if)) in gatt_is_bg_dev_for_app()
2415 if (p_dev_list->in_use && !memcmp(p_dev_list->remote_bda, remote_bda, BD_ADDR_LEN)) in gatt_find_bg_dev()
2438 if (!p_dev_list->in_use) in gatt_alloc_bg_dev()
2440 p_dev_list->in_use = TRUE; in gatt_alloc_bg_dev()
2688 if (p_dev_list->in_use) in gatt_deregister_bgdev_list()
2826 if ( p_reg->in_use && p_reg->listening > listening) in gatt_update_listen_mode()