Lines Matching refs:gatt_if

143  * Parameter        gatt_if : application if
152 uint16_t GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service,
156 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
164 LOG(ERROR) << "Inavlid gatt_if=" << +gatt_if;
278 elem.gatt_if = gatt_if;
326 * Parameter gatt_if : application interface
334 bool GATTS_DeleteService(tGATT_IF gatt_if, Uuid* p_svc_uuid,
338 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
418 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
420 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
480 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
482 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
530 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
532 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
551 cmd_sent = gatt_sr_process_app_rsp(*p_tcb, gatt_if, trans_id,
580 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
583 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
628 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
631 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
684 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
687 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
762 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
765 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
816 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
819 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
946 tGATT_IF gatt_if = 0;
964 gatt_if = p_reg->gatt_if = (tGATT_IF)i_gatt_if;
968 LOG(INFO) << "allocated gatt_if=" << +gatt_if;
969 return gatt_if;
984 * Parameters gatt_if: applicaiton interface.
989 void GATT_Deregister(tGATT_IF gatt_if) {
990 VLOG(1) << __func__ << " gatt_if=" << +gatt_if;
992 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
994 if ((gatt_if == 0) || (p_reg == NULL)) {
995 LOG(ERROR) << "invalid gatt_if: " << +gatt_if;
1005 if (it->gatt_if == gatt_if) {
1022 gatt_update_app_use_link_flag(gatt_if, p_tcb, false, true);
1028 if (p_clcb->in_use && (p_clcb->p_reg->gatt_if == gatt_if) &&
1038 gatt_deregister_bgdev_list(gatt_if);
1051 * Parameter gatt_if: applicaiton interface.
1056 void GATT_StartIf(tGATT_IF gatt_if) {
1064 VLOG(1) << __func__ << " gatt_if=" << gatt_if;
1065 p_reg = gatt_get_regcb(gatt_if);
1072 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if);
1073 (*p_reg->app_cb.p_conn_cb)(gatt_if, bda, conn_id, true, 0, transport);
1087 * Parameters gatt_if: applicaiton interface
1096 bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct,
1099 return GATT_Connect(gatt_if, bd_addr, is_direct, transport, opportunistic,
1103 bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct,
1109 LOG(INFO) << __func__ << "gatt_if=" << +gatt_if << " " << bd_addr;
1112 p_reg = gatt_get_regcb(gatt_if);
1114 LOG(ERROR) << "gatt_if = " << gatt_if << " is not registered";
1123 status = gatt_update_auto_connect_dev(gatt_if, true, bd_addr);
1139 * Parameters gatt_if: client interface. If 0 used as unconditionally
1147 bool GATT_CancelConnect(tGATT_IF gatt_if, const RawAddress& bd_addr,
1149 LOG(INFO) << __func__ << ": gatt_if=" << +gatt_if;
1151 if (gatt_if && !gatt_get_regcb(gatt_if)) {
1152 LOG(ERROR) << "gatt_if =" << +gatt_if << " is not registered";
1157 if (gatt_if) {
1158 return gatt_cancel_open(gatt_if, bd_addr);
1182 if (gatt_if) return gatt_remove_bg_dev_for_app(gatt_if, bd_addr);
1209 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
1217 gatt_update_app_use_link_flag(gatt_if, p_tcb, false, true);
1239 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
1240 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
1249 *p_gatt_if = gatt_if;
1263 * Parameters gatt_if: applicaiton interface (input)
1271 bool GATT_GetConnIdIfConnected(tGATT_IF gatt_if, const RawAddress& bd_addr,
1273 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
1278 *p_conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if);