Home
last modified time | relevance | path

Searched refs:p_reg (Results 1 – 15 of 15) sorted by relevance

/system/bt/stack/gatt/
Dgatt_api.cc156 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_AddService() local
163 if (!p_reg) { in GATTS_AddService()
193 list.asgn_range.app_uuid128 = p_reg->app_uuid128; in GATTS_AddService()
337 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_DeleteService() local
338 if (p_reg == NULL) { in GATTS_DeleteService()
344 gatt_find_hdl_buffer_by_app_id(p_reg->app_uuid128, p_svc_uuid, svc_inst); in GATTS_DeleteService()
352 if (is_active_service(p_reg->app_uuid128, p_svc_uuid, svc_inst)) { in GATTS_DeleteService()
415 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueIndication() local
419 if ((p_reg == NULL) || (p_tcb == NULL)) { in GATTS_HandleValueIndication()
474 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueNotification() local
[all …]
Dgatt_main.cc352 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()
[all …]
Dgatt_utils.cc711 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in gatt_sr_send_req_callback() local
713 if (!p_reg) { in gatt_sr_send_req_callback()
718 if (p_reg->in_use && p_reg->app_cb.p_req_cb) { in gatt_sr_send_req_callback()
719 (*p_reg->app_cb.p_req_cb)(conn_id, trans_id, type, p_data); in gatt_sr_send_req_callback()
849 tGATT_REG* p_reg = NULL; in gatt_get_regcb() local
857 p_reg = &gatt_cb.cl_rcb[ii - 1]; in gatt_get_regcb()
859 if (!p_reg->in_use) { in gatt_get_regcb()
864 return p_reg; in gatt_get_regcb()
907 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in gatt_clcb_alloc() local
915 p_clcb->p_reg = p_reg; in gatt_clcb_alloc()
[all …]
Dgatt_cl.cc394 if (p_clcb->p_reg->app_cb.p_disc_res_cb) in gatt_process_find_type_value_rsp()
395 (*p_clcb->p_reg->app_cb.p_disc_res_cb)(p_clcb->conn_id, in gatt_process_find_type_value_rsp()
451 if (p_clcb->p_reg->app_cb.p_disc_res_cb) in gatt_process_read_info_rsp()
452 (*p_clcb->p_reg->app_cb.p_disc_res_cb)(p_clcb->conn_id, in gatt_process_read_info_rsp()
611 tGATT_REG* p_reg; in gatt_process_notification() local
662 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_process_notification()
663 if (p_reg->in_use && p_reg->app_cb.p_cmpl_cb && in gatt_process_notification()
679 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_process_notification()
680 if (p_reg->in_use && p_reg->app_cb.p_cmpl_cb) { in gatt_process_notification()
681 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, p_reg->gatt_if); in gatt_process_notification()
[all …]
Dgatt_int.h308 tGATT_REG* p_reg; /* owner of this CLCB */ member
398 extern bool gatt_act_connect(tGATT_REG* p_reg, const RawAddress& bd_addr,
/system/bt/bta/gatt/
Dbta_gatts_utils.cc67 tBTA_GATTS_RCB* p_reg; in bta_gatts_find_app_rcb_by_app_if() local
69 for (i = 0, p_reg = bta_gatts_cb.rcb; i < BTA_GATTS_MAX_APP_NUM; in bta_gatts_find_app_rcb_by_app_if()
70 i++, p_reg++) { in bta_gatts_find_app_rcb_by_app_if()
71 if (p_reg->in_use && p_reg->gatt_if == server_if) return p_reg; in bta_gatts_find_app_rcb_by_app_if()
Dbta_gatts_act.cc591 tBTA_GATTS_RCB* p_reg; in bta_gatts_conn_cback() local
602 p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_conn_cback()
604 if (p_reg && p_reg->p_cback) { in bta_gatts_conn_cback()
618 (*p_reg->p_cback)(evt, &cb_data); in bta_gatts_conn_cback()
627 tBTA_GATTS_RCB* p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_phy_update_cback() local
628 if (!p_reg || !p_reg->p_cback) { in bta_gatts_phy_update_cback()
639 (*p_reg->p_cback)(BTA_GATTS_PHY_UPDATE_EVT, &cb_data); in bta_gatts_phy_update_cback()
645 tBTA_GATTS_RCB* p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_conn_update_cback() local
646 if (!p_reg || !p_reg->p_cback) { in bta_gatts_conn_update_cback()
658 (*p_reg->p_cback)(BTA_GATTS_CONN_UPDATE_EVT, &cb_data); in bta_gatts_conn_update_cback()
/system/nfc/src/nfa/sys/
Dnfa_sys_main.cc121 void nfa_sys_register(uint8_t id, const tNFA_SYS_REG* p_reg) { in nfa_sys_register() argument
122 nfa_sys_cb.reg[id] = (tNFA_SYS_REG*)p_reg; in nfa_sys_register()
129 if (p_reg->proc_nfcc_pwr_mode) in nfa_sys_register()
/system/bt/bta/include/
Dbta_ar_api.h63 extern void bta_ar_reg_avdt(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback,
/system/nfc/src/nfa/include/
Dnfa_sys.h102 extern void nfa_sys_register(uint8_t id, const tNFA_SYS_REG* p_reg);
/system/bt/bta/ar/
Dbta_ar.cc95 void bta_ar_reg_avdt(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback, in bta_ar_reg_avdt() argument
115 AVDT_Register(p_reg, bta_ar_avdt_cback); in bta_ar_reg_avdt()
/system/bt/bta/sys/
Dbta_sys.h164 typedef void (*tBTA_SYS_REGISTER)(uint8_t id, const tBTA_SYS_REG* p_reg);
220 extern void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg);
Dbta_sys_main.cc481 void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg) { in bta_sys_register() argument
482 bta_sys_cb.reg[id] = (tBTA_SYS_REG*)p_reg; in bta_sys_register()
/system/bt/stack/avdt/
Davdt_api.cc91 void AVDT_Register(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback) { in AVDT_Register() argument
97 BTM_SetSecurityLevel(true, "", BTM_SEC_SERVICE_AVDTP, p_reg->sec_mask, in AVDT_Register()
99 BTM_SetSecurityLevel(false, "", BTM_SEC_SERVICE_AVDTP, p_reg->sec_mask, in AVDT_Register()
120 avdtp_cb.rcb = *p_reg; in AVDT_Register()
/system/bt/stack/include/
Davdt_api.h527 extern void AVDT_Register(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback);