Lines Matching refs:gatt_if
192 tGATT_IF gatt_if) { in gatt_connect() argument
203 gatt_update_app_use_link_flag(gatt_if, p_tcb, true, true); in gatt_connect()
208 return connection_manager::direct_connect_add(gatt_if, rem_bda); in gatt_connect()
265 bool gatt_update_app_hold_link_status(tGATT_IF gatt_if, tGATT_TCB* p_tcb, in gatt_update_app_hold_link_status() argument
271 auto ret = holders.insert(gatt_if); in gatt_update_app_hold_link_status()
273 VLOG(1) << "added gatt_if=" << +gatt_if; in gatt_update_app_hold_link_status()
275 VLOG(1) << "attempt to add already existing gatt_if=" << +gatt_if; in gatt_update_app_hold_link_status()
281 if (!holders.erase(gatt_if)) { in gatt_update_app_hold_link_status()
282 VLOG(1) << "attempt to remove nonexisting gatt_if=" << +gatt_if; in gatt_update_app_hold_link_status()
286 VLOG(1) << "removed gatt_if=" << +gatt_if; in gatt_update_app_hold_link_status()
301 void gatt_update_app_use_link_flag(tGATT_IF gatt_if, tGATT_TCB* p_tcb, in gatt_update_app_use_link_flag() argument
310 if (!gatt_update_app_hold_link_status(gatt_if, p_tcb, is_add)) return; in gatt_update_app_use_link_flag()
354 p_reg->gatt_if)) in gatt_act_connect()
367 LOG(ERROR) << "Max TCB for gatt_if [ " << +p_reg->gatt_if << "] reached."; in gatt_act_connect()
372 p_reg->gatt_if)) { in gatt_act_connect()
466 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_channel_congestion()
488 uint16_t conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_notify_phy_updated()
489 (*p_reg->app_cb.p_phy_update_cb)(p_reg->gatt_if, conn_id, tx_phy, rx_phy, in gatt_notify_phy_updated()
508 uint16_t conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_notify_conn_update()
509 (*p_reg->app_cb.p_conn_update_cb)(p_reg->gatt_if, conn_id, interval, in gatt_notify_conn_update()
809 if (apps.find(p_reg->gatt_if) != apps.end()) in gatt_send_conn_cback()
810 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, true, true); in gatt_send_conn_cback()
813 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_send_conn_cback()
814 (*p_reg->app_cb.p_conn_cb)(p_reg->gatt_if, p_tcb->peer_bda, conn_id, true, in gatt_send_conn_cback()