Lines Matching refs:p_reg
174 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_AddService() local
181 if (!p_reg) { in GATTS_AddService()
211 list.asgn_range.app_uuid128 = p_reg->app_uuid128; in GATTS_AddService()
362 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_DeleteService() local
363 if (p_reg == NULL) { in GATTS_DeleteService()
369 gatt_find_hdl_buffer_by_app_id(p_reg->app_uuid128, p_svc_uuid, svc_inst); in GATTS_DeleteService()
375 if (is_active_service(p_reg->app_uuid128, p_svc_uuid, svc_inst)) { in GATTS_DeleteService()
441 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueIndication() local
445 if ((p_reg == NULL) || (p_tcb == NULL)) { in GATTS_HandleValueIndication()
462 if (!gatt_tcb_get_cid_available_for_indication(p_tcb, p_reg->eatt_support, in GATTS_HandleValueIndication()
504 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueNotification() local
509 if ((p_reg == NULL) || (p_tcb == NULL)) { in GATTS_HandleValueNotification()
528 uint16_t cid = gatt_tcb_get_att_cid(*p_tcb, p_reg->eatt_support); in GATTS_HandleValueNotification()
557 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_SendRsp() local
564 if ((p_reg == NULL) || (p_tcb == NULL)) { in GATTS_SendRsp()
608 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_ConfigureMTU() local
610 if ((p_tcb == NULL) || (p_reg == NULL) || (mtu < GATT_DEF_BLE_MTU_SIZE) || in GATTC_ConfigureMTU()
616 (p_reg == nullptr) ? "BAD" : "ok"); in GATTC_ConfigureMTU()
669 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_Discover() local
671 if ((p_tcb == NULL) || (p_reg == NULL) || (disc_type >= GATT_DISC_MAX)) { in GATTC_Discover()
742 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_Read() local
747 if ((p_tcb == NULL) || (p_reg == NULL) || (p_read == NULL) || in GATTC_Read()
823 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_Write() local
825 if ((p_tcb == NULL) || (p_reg == NULL) || (p_write == NULL) || in GATTC_Write()
876 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTC_ExecuteWrite() local
881 if ((p_tcb == NULL) || (p_reg == NULL)) { in GATTC_ExecuteWrite()
993 tGATT_REG* p_reg; in GATT_Register() local
997 for (i_gatt_if = 0, p_reg = gatt_cb.cl_rcb; i_gatt_if < GATT_MAX_APPS; in GATT_Register()
998 i_gatt_if++, p_reg++) { in GATT_Register()
999 if (p_reg->in_use && p_reg->app_uuid128 == app_uuid128) { in GATT_Register()
1006 for (i_gatt_if = 0, p_reg = gatt_cb.cl_rcb; i_gatt_if < GATT_MAX_APPS; in GATT_Register()
1007 i_gatt_if++, p_reg++) { in GATT_Register()
1008 if (!p_reg->in_use) { in GATT_Register()
1009 *p_reg = {}; in GATT_Register()
1011 p_reg->app_uuid128 = app_uuid128; in GATT_Register()
1012 gatt_if = p_reg->gatt_if = (tGATT_IF)i_gatt_if; in GATT_Register()
1013 p_reg->app_cb = *p_cb_info; in GATT_Register()
1014 p_reg->in_use = true; in GATT_Register()
1015 p_reg->eatt_support = eatt_support; in GATT_Register()
1016 p_reg->name = name; in GATT_Register()
1044 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATT_Deregister() local
1046 if ((gatt_if == 0) || (p_reg == NULL)) { in GATT_Deregister()
1068 gatt_free_srvc_db_buffer_app_id(p_reg->app_uuid128); in GATT_Deregister()
1083 if (p_clcb->in_use && (p_clcb->p_reg->gatt_if == gatt_if) && in GATT_Deregister()
1094 *p_reg = {}; in GATT_Deregister()
1111 tGATT_REG* p_reg; in GATT_StartIf() local
1120 p_reg = gatt_get_regcb(gatt_if); in GATT_StartIf()
1121 if (p_reg != NULL) { in GATT_StartIf()
1126 if (p_reg->app_cb.p_conn_cb && p_tcb) { in GATT_StartIf()
1128 (*p_reg->app_cb.p_conn_cb)(gatt_if, bda, conn_id, true, in GATT_StartIf()
1163 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATT_Connect() local
1164 if (!p_reg) { in GATT_Connect()
1188 ret = gatt_act_connect(p_reg, bd_addr, transport, initiating_phys); in GATT_Connect()
1209 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, true, !is_direct); in GATT_Connect()
1234 tGATT_REG* p_reg; in GATT_CancelConnect() local
1236 p_reg = gatt_get_regcb(gatt_if); in GATT_CancelConnect()
1237 if (!p_reg) { in GATT_CancelConnect()
1245 return gatt_auto_connect_dev_remove(p_reg->gatt_if, bd_addr); in GATT_CancelConnect()
1314 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATT_GetConnectionInfor() local
1320 if (!p_tcb || !p_reg) return false; in GATT_GetConnectionInfor()
1345 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATT_GetConnIdIfConnected() local
1349 if (p_reg && p_tcb && (gatt_get_ch_state(p_tcb) == GATT_CH_OPEN)) { in GATT_GetConnIdIfConnected()