Home
last modified time | relevance | path

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

/system/bt/stack/gatt/
Dgatt_api.cc174 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()
[all …]
Dgatt_main.cc370 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()
[all …]
Dgatt_utils.cc780 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in gatt_sr_send_req_callback() local
782 if (!p_reg) { in gatt_sr_send_req_callback()
787 if (p_reg->in_use && p_reg->app_cb.p_req_cb) { in gatt_sr_send_req_callback()
788 (*p_reg->app_cb.p_req_cb)(conn_id, trans_id, type, p_data); in gatt_sr_send_req_callback()
919 tGATT_REG* p_reg = NULL; in gatt_get_regcb() local
927 p_reg = &gatt_cb.cl_rcb[ii - 1]; in gatt_get_regcb()
929 if (!p_reg->in_use) { in gatt_get_regcb()
934 return p_reg; in gatt_get_regcb()
953 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in gatt_is_clcb_allocated() local
956 if (p_reg->eatt_support) possible_plcb += p_tcb->eatt; in gatt_is_clcb_allocated()
[all …]
Dgatt_cl.cc403 if (p_clcb->p_reg->app_cb.p_disc_res_cb) in gatt_process_find_type_value_rsp()
404 (*p_clcb->p_reg->app_cb.p_disc_res_cb)( in gatt_process_find_type_value_rsp()
461 if (p_clcb->p_reg->app_cb.p_disc_res_cb) in gatt_process_read_info_rsp()
462 (*p_clcb->p_reg->app_cb.p_disc_res_cb)( in gatt_process_read_info_rsp()
624 tGATT_REG* p_reg; in gatt_process_notification() local
682 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_process_notification()
683 if (p_reg->in_use && p_reg->app_cb.p_cmpl_cb && in gatt_process_notification()
704 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_process_notification()
705 if (p_reg->in_use && p_reg->app_cb.p_cmpl_cb) { in gatt_process_notification()
706 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, p_reg->gatt_if); in gatt_process_notification()
[all …]
Dgatt_int.h338 tGATT_REG* p_reg; /* owner of this CLCB */ member
443 extern bool gatt_act_connect(tGATT_REG* p_reg, const RawAddress& bd_addr,
/system/bt/bta/gatt/
Dbta_gatts_utils.cc64 tBTA_GATTS_RCB* p_reg; in bta_gatts_find_app_rcb_by_app_if() local
66 for (i = 0, p_reg = bta_gatts_cb.rcb; i < BTA_GATTS_MAX_APP_NUM; in bta_gatts_find_app_rcb_by_app_if()
67 i++, p_reg++) { in bta_gatts_find_app_rcb_by_app_if()
68 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.cc590 tBTA_GATTS_RCB* p_reg; in bta_gatts_conn_cback() local
600 p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_conn_cback()
602 if (p_reg && p_reg->p_cback) { in bta_gatts_conn_cback()
615 (*p_reg->p_cback)(evt, &cb_data); in bta_gatts_conn_cback()
624 tBTA_GATTS_RCB* p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_phy_update_cback() local
625 if (!p_reg || !p_reg->p_cback) { in bta_gatts_phy_update_cback()
636 (*p_reg->p_cback)(BTA_GATTS_PHY_UPDATE_EVT, &cb_data); in bta_gatts_phy_update_cback()
642 tBTA_GATTS_RCB* p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_conn_update_cback() local
643 if (!p_reg || !p_reg->p_cback) { in bta_gatts_conn_update_cback()
655 (*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/sys/
Dbta_sys_main.cc118 void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg) { in bta_sys_register() argument
119 bta_sys_cb.reg[id] = (tBTA_SYS_REG*)p_reg; in bta_sys_register()
Dbta_sys.h206 extern void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg);
/system/bt/bta/include/
Dbta_ar_api.h61 extern void bta_ar_reg_avdt(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback);
/system/bt/test/mock/
Dmock_bta_ar.cc48 void bta_ar_reg_avdt(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback) { in bta_ar_reg_avdt() argument
Dmock_bta_sys_main.cc54 void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg) { in bta_sys_register() argument
Dmock_stack_gatt_main.cc43 bool gatt_act_connect(tGATT_REG* p_reg, const RawAddress& bd_addr, in gatt_act_connect() argument
Dmock_stack_avdt_api.cc132 void AVDT_Register(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback) { in AVDT_Register() argument
/system/bt/bta/ar/
Dbta_ar.cc75 void bta_ar_reg_avdt(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback) { in bta_ar_reg_avdt() argument
78 AVDT_Register(p_reg, bta_ar_avdt_cback); in bta_ar_reg_avdt()
/system/nfc/src/nfa/include/
Dnfa_sys.h102 extern void nfa_sys_register(uint8_t id, const tNFA_SYS_REG* p_reg);
/system/bt/stack/test/common/
Dmock_gatt_main.cc42 bool gatt_act_connect(tGATT_REG* p_reg, const RawAddress& bd_addr, in gatt_act_connect() argument
/system/bt/stack/avdt/
Davdt_api.cc95 void AVDT_Register(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback) { in AVDT_Register() argument
106 avdtp_cb.rcb = *p_reg; in AVDT_Register()
/system/bt/stack/include/
Davdt_api.h562 extern void AVDT_Register(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback);