Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_api.cc169 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_AddService() local
176 if (!p_reg) { in GATTS_AddService()
212 list.asgn_range.app_uuid128 = p_reg->app_uuid128; in GATTS_AddService()
368 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_DeleteService() local
369 if (p_reg == NULL) { in GATTS_DeleteService()
375 gatt_find_hdl_buffer_by_app_id(p_reg->app_uuid128, p_svc_uuid, svc_inst); in GATTS_DeleteService()
381 if (is_active_service(p_reg->app_uuid128, p_svc_uuid, svc_inst)) { in GATTS_DeleteService()
447 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueIndication() local
451 if ((p_reg == NULL) || (p_tcb == NULL)) { in GATTS_HandleValueIndication()
468 if (!gatt_tcb_get_cid_available_for_indication(p_tcb, p_reg->eatt_support, in GATTS_HandleValueIndication()
[all …]
Dgatt_main.cc440 bool gatt_act_connect(tGATT_REG* p_reg, const RawAddress& bd_addr, in gatt_act_connect() argument
450 p_reg->gatt_if)) in gatt_act_connect()
463 LOG(ERROR) << "Max TCB for gatt_if [ " << +p_reg->gatt_if << "] reached."; in gatt_act_connect()
468 p_reg->gatt_if)) { in gatt_act_connect()
478 bool gatt_act_connect(tGATT_REG* p_reg, const RawAddress& bd_addr, in gatt_act_connect() argument
480 return gatt_act_connect(p_reg, bd_addr, BLE_ADDR_PUBLIC, transport, in gatt_act_connect()
633 tGATT_REG* p_reg = NULL; in gatt_channel_congestion() local
641 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_channel_congestion()
642 if (p_reg->in_use) { in gatt_channel_congestion()
643 if (p_reg->app_cb.p_congestion_cb) { in gatt_channel_congestion()
[all …]
Dgatt_cl.cc414 if (p_clcb->p_reg->app_cb.p_disc_res_cb) in gatt_process_find_type_value_rsp()
415 (*p_clcb->p_reg->app_cb.p_disc_res_cb)( in gatt_process_find_type_value_rsp()
472 if (p_clcb->p_reg->app_cb.p_disc_res_cb) in gatt_process_read_info_rsp()
473 (*p_clcb->p_reg->app_cb.p_disc_res_cb)( in gatt_process_read_info_rsp()
641 tGATT_REG* p_reg; in gatt_process_notification() local
716 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_process_notification()
717 if (p_reg->in_use && p_reg->app_cb.p_cmpl_cb) tcb.ind_count++; in gatt_process_notification()
736 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_process_notification()
737 if (p_reg->in_use && p_reg->app_cb.p_cmpl_cb) { in gatt_process_notification()
738 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, p_reg->gatt_if); in gatt_process_notification()
[all …]
Dgatt_utils.cc821 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in gatt_sr_send_req_callback() local
823 if (!p_reg) { in gatt_sr_send_req_callback()
828 if (p_reg->in_use && p_reg->app_cb.p_req_cb) { in gatt_sr_send_req_callback()
829 (*p_reg->app_cb.p_req_cb)(conn_id, trans_id, type, p_data); in gatt_sr_send_req_callback()
961 tGATT_REG* p_reg = NULL; in gatt_get_regcb() local
969 p_reg = &gatt_cb.cl_rcb[ii - 1]; in gatt_get_regcb()
971 if (!p_reg->in_use) { in gatt_get_regcb()
976 return p_reg; in gatt_get_regcb()
1013 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in gatt_clcb_alloc() local
1016 clcb.p_reg = p_reg; in gatt_clcb_alloc()
[all …]
Dgatt_int.h363 tGATT_REG* p_reg; /* owner of this CLCB */ member
474 bool gatt_act_connect(tGATT_REG* p_reg, const RawAddress& bd_addr,
476 bool gatt_act_connect(tGATT_REG* p_reg, const RawAddress& bd_addr,
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gatts_act.cc585 tBTA_GATTS_RCB* p_reg; in bta_gatts_conn_cback() local
595 p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_conn_cback()
597 if (p_reg && p_reg->p_cback) { in bta_gatts_conn_cback()
610 (*p_reg->p_cback)(evt, &cb_data); in bta_gatts_conn_cback()
619 tBTA_GATTS_RCB* p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_phy_update_cback() local
620 if (!p_reg || !p_reg->p_cback) { in bta_gatts_phy_update_cback()
631 (*p_reg->p_cback)(BTA_GATTS_PHY_UPDATE_EVT, &cb_data); in bta_gatts_phy_update_cback()
637 tBTA_GATTS_RCB* p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_conn_update_cback() local
638 if (!p_reg || !p_reg->p_cback) { in bta_gatts_conn_update_cback()
650 (*p_reg->p_cback)(BTA_GATTS_CONN_UPDATE_EVT, &cb_data); in bta_gatts_conn_update_cback()
[all …]
Dbta_gatts_utils.cc66 tBTA_GATTS_RCB* p_reg; in bta_gatts_find_app_rcb_by_app_if() local
68 for (i = 0, p_reg = bta_gatts_cb.rcb; i < BTA_GATTS_MAX_APP_NUM; in bta_gatts_find_app_rcb_by_app_if()
69 i++, p_reg++) { in bta_gatts_find_app_rcb_by_app_if()
70 if (p_reg->in_use && p_reg->gatt_if == server_if) return p_reg; in bta_gatts_find_app_rcb_by_app_if()
/packages/modules/Bluetooth/system/test/mock/
Dmock_bta_sys_main.h118 std::function<void(uint8_t id, const tBTA_SYS_REG* p_reg)> body{
119 [](uint8_t id, const tBTA_SYS_REG* p_reg) {}};
120 void operator()(uint8_t id, const tBTA_SYS_REG* p_reg) { body(id, p_reg); }; in operator()
Dmock_bta_sys_main.cc79 void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg) { in bta_sys_register() argument
81 test::mock::bta_sys_main::bta_sys_register(id, p_reg); in bta_sys_register()
Dmock_bta_ar.cc46 void bta_ar_reg_avdt(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback) { in bta_ar_reg_avdt() argument
Dmock_stack_gatt_main.cc42 bool gatt_act_connect(tGATT_REG* p_reg, const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, 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
/packages/modules/Bluetooth/system/bta/sys/
Dbta_sys_main.cc120 void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg) { in bta_sys_register() argument
121 bta_sys_cb.reg[id] = (tBTA_SYS_REG*)p_reg; in bta_sys_register()
Dbta_sys.h209 void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg);
/packages/modules/Bluetooth/system/bta/ar/
Dbta_ar.cc76 void bta_ar_reg_avdt(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback) { in bta_ar_reg_avdt() argument
79 AVDT_Register(p_reg, bta_ar_avdt_cback); in bta_ar_reg_avdt()
/packages/modules/Bluetooth/system/bta/include/
Dbta_ar_api.h62 void bta_ar_reg_avdt(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback);
/packages/modules/Bluetooth/system/stack/avdt/
Davdt_api.cc97 void AVDT_Register(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback) { in AVDT_Register() argument
108 avdtp_cb.rcb = *p_reg; in AVDT_Register()
/packages/modules/Bluetooth/system/stack/include/
Davdt_api.h564 void AVDT_Register(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback);