• Home
  • Raw
  • Download

Lines Matching refs:p_reg

352 bool gatt_act_connect(tGATT_REG* p_reg, const RawAddress& bd_addr,  in gatt_act_connect()  argument
361 p_reg->gatt_if)) in gatt_act_connect()
374 LOG(ERROR) << "Max TCB for gatt_if [ " << +p_reg->gatt_if << "] reached."; in gatt_act_connect()
379 p_reg->gatt_if)) { in gatt_act_connect()
462 tGATT_REG* p_reg = NULL; in gatt_channel_congestion() local
470 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_channel_congestion()
471 if (p_reg->in_use) { in gatt_channel_congestion()
472 if (p_reg->app_cb.p_congestion_cb) { in gatt_channel_congestion()
473 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_channel_congestion()
474 (*p_reg->app_cb.p_congestion_cb)(conn_id, congested); in gatt_channel_congestion()
493 tGATT_REG* p_reg = &gatt_cb.cl_rcb[i]; in gatt_notify_phy_updated() local
494 if (p_reg->in_use && p_reg->app_cb.p_phy_update_cb) { in gatt_notify_phy_updated()
495 uint16_t conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_notify_phy_updated()
496 (*p_reg->app_cb.p_phy_update_cb)(p_reg->gatt_if, conn_id, tx_phy, rx_phy, in gatt_notify_phy_updated()
513 tGATT_REG* p_reg = &gatt_cb.cl_rcb[i]; in gatt_notify_conn_update() local
514 if (p_reg->in_use && p_reg->app_cb.p_conn_update_cb) { in gatt_notify_conn_update()
515 uint16_t conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_notify_conn_update()
516 (*p_reg->app_cb.p_conn_update_cb)(p_reg->gatt_if, conn_id, interval, in gatt_notify_conn_update()
806 tGATT_REG* p_reg; in gatt_send_conn_cback() local
813 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_send_conn_cback()
814 if (!p_reg->in_use) continue; in gatt_send_conn_cback()
816 if (apps.find(p_reg->gatt_if) != apps.end()) in gatt_send_conn_cback()
817 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, true, true); in gatt_send_conn_cback()
819 if (p_reg->app_cb.p_conn_cb) { in gatt_send_conn_cback()
820 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_send_conn_cback()
821 (*p_reg->app_cb.p_conn_cb)(p_reg->gatt_if, p_tcb->peer_bda, conn_id, true, in gatt_send_conn_cback()