• Home
  • Raw
  • Download

Lines Matching refs:p_reg

370 bool gatt_act_connect(tGATT_REG* p_reg, const RawAddress& bd_addr,  in gatt_act_connect()  argument
379 p_reg->gatt_if)) in gatt_act_connect()
392 LOG(ERROR) << "Max TCB for gatt_if [ " << +p_reg->gatt_if << "] reached."; in gatt_act_connect()
397 p_reg->gatt_if)) { in gatt_act_connect()
484 tGATT_REG* p_reg = NULL; in gatt_channel_congestion() local
492 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_channel_congestion()
493 if (p_reg->in_use) { in gatt_channel_congestion()
494 if (p_reg->app_cb.p_congestion_cb) { in gatt_channel_congestion()
495 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_channel_congestion()
496 (*p_reg->app_cb.p_congestion_cb)(conn_id, congested); in gatt_channel_congestion()
515 tGATT_REG* p_reg = &gatt_cb.cl_rcb[i]; in gatt_notify_phy_updated() local
516 if (p_reg->in_use && p_reg->app_cb.p_phy_update_cb) { in gatt_notify_phy_updated()
517 uint16_t conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_notify_phy_updated()
518 (*p_reg->app_cb.p_phy_update_cb)(p_reg->gatt_if, conn_id, tx_phy, rx_phy, in gatt_notify_phy_updated()
532 tGATT_REG* p_reg = &gatt_cb.cl_rcb[i]; in gatt_notify_conn_update() local
533 if (p_reg->in_use && p_reg->app_cb.p_conn_update_cb) { in gatt_notify_conn_update()
534 uint16_t conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_notify_conn_update()
535 (*p_reg->app_cb.p_conn_update_cb)(p_reg->gatt_if, conn_id, interval, in gatt_notify_conn_update()
754 tGATT_REG* p_reg; in gatt_send_conn_cback() local
761 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_send_conn_cback()
762 if (!p_reg->in_use) continue; in gatt_send_conn_cback()
764 if (apps.find(p_reg->gatt_if) != apps.end()) in gatt_send_conn_cback()
765 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, true, true); in gatt_send_conn_cback()
767 if (p_reg->app_cb.p_conn_cb) { in gatt_send_conn_cback()
768 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_send_conn_cback()
769 (*p_reg->app_cb.p_conn_cb)(p_reg->gatt_if, p_tcb->peer_bda, conn_id, in gatt_send_conn_cback()