Home
last modified time | relevance | path

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

/system/bt/stack/gatt/
Dgatt_api.c149 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in GATTS_CreateService() local
155 if (p_reg == NULL) in GATTS_CreateService()
161 p_app_uuid128 = &p_reg->app_uuid128; in GATTS_CreateService()
400 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in GATTS_DeleteService() local
405 if (p_reg == NULL) in GATTS_DeleteService()
410 p_app_uuid128 = &p_reg->app_uuid128; in GATTS_DeleteService()
470 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in GATTS_StartService() local
476 if (p_reg == NULL) in GATTS_StartService()
604 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueIndication() local
609 if ( (p_reg == NULL) || (p_tcb == NULL)) in GATTS_HandleValueIndication()
[all …]
Dgatt_utils.c1464 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in gatt_sr_send_req_callback() local
1466 if (!p_reg ) in gatt_sr_send_req_callback()
1472 if ( p_reg->in_use && in gatt_sr_send_req_callback()
1473 p_reg->app_cb.p_req_cb) in gatt_sr_send_req_callback()
1475 (*p_reg->app_cb.p_req_cb)(conn_id, trans_id, type, p_data); in gatt_sr_send_req_callback()
1618 tGATT_REG *p_reg = NULL; in gatt_get_regcb() local
1626 p_reg = &gatt_cb.cl_rcb[ii - 1]; in gatt_get_regcb()
1628 if (!p_reg->in_use) { in gatt_get_regcb()
1633 return p_reg; in gatt_get_regcb()
1680 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in gatt_clcb_alloc() local
[all …]
Dgatt_main.c373 BOOLEAN gatt_act_connect (tGATT_REG *p_reg, BD_ADDR bd_addr, tBT_TRANSPORT transport) in gatt_act_connect() argument
415 GATT_TRACE_ERROR("Max TCB for gatt_if [%d] reached.", p_reg->gatt_if); in gatt_act_connect()
421 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, TRUE, FALSE); in gatt_act_connect()
523 tGATT_REG *p_reg=NULL; in gatt_channel_congestion() local
532 for (i = 0, p_reg = gatt_cb.cl_rcb ; i < GATT_MAX_APPS; i++, p_reg++) in gatt_channel_congestion()
534 if (p_reg->in_use) in gatt_channel_congestion()
536 if (p_reg->app_cb.p_congestion_cb) in gatt_channel_congestion()
538 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_channel_congestion()
539 (*p_reg->app_cb.p_congestion_cb)(conn_id, congested); in gatt_channel_congestion()
952 tGATT_REG *p_reg; in gatt_send_conn_cback() local
[all …]
Dgatt_cl.c439 if (p_clcb->p_reg->app_cb.p_disc_res_cb) in gatt_process_find_type_value_rsp()
440 (*p_clcb->p_reg->app_cb.p_disc_res_cb)(p_clcb->conn_id, p_clcb->op_subtype, &result); in gatt_process_find_type_value_rsp()
500 if (p_clcb->p_reg->app_cb.p_disc_res_cb) in gatt_process_read_info_rsp()
501 (*p_clcb->p_reg->app_cb.p_disc_res_cb)(p_clcb->conn_id, p_clcb->op_subtype, &result); in gatt_process_read_info_rsp()
667 tGATT_REG *p_reg; in gatt_process_notification() local
712 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) in gatt_process_notification()
714 if (p_reg->in_use && p_reg->app_cb.p_cmpl_cb && (event == GATTC_OPTYPE_INDICATION)) in gatt_process_notification()
728 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) in gatt_process_notification()
730 if (p_reg->in_use && p_reg->app_cb.p_cmpl_cb) in gatt_process_notification()
732 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_process_notification()
[all …]
Dgatt_int.h396 tGATT_REG *p_reg; /* owner of this CLCB */ member
535 extern BOOLEAN gatt_act_connect (tGATT_REG *p_reg, BD_ADDR bd_addr, tBT_TRANSPORT transport);
/system/bt/bta/gatt/
Dbta_gatts_utils.c92 tBTA_GATTS_RCB *p_reg; in bta_gatts_find_app_rcb_by_app_if() local
94 for (i = 0, p_reg = bta_gatts_cb.rcb; i < BTA_GATTS_MAX_APP_NUM; i ++, p_reg++) in bta_gatts_find_app_rcb_by_app_if()
96 if (p_reg->in_use && p_reg->gatt_if == server_if) in bta_gatts_find_app_rcb_by_app_if()
97 return p_reg; in bta_gatts_find_app_rcb_by_app_if()
Dbta_gatts_act.c897 tBTA_GATTS_RCB *p_reg; in bta_gatts_conn_cback() local
911 p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_conn_cback()
913 if (p_reg && p_reg->p_cback) in bta_gatts_conn_cback()
929 (*p_reg->p_cback)(evt, &cb_data); in bta_gatts_conn_cback()
/system/bt/stack/mcap/
Dmca_api.c119 tMCA_HANDLE MCA_Register(tMCA_REG *p_reg, tMCA_CTRL_CBACK *p_cback) in MCA_Register() argument
126 assert(p_reg != NULL ); in MCA_Register()
129 MCA_TRACE_API ("MCA_Register: ctrl_psm:0x%x, data_psm:0x%x", p_reg->ctrl_psm, p_reg->data_psm); in MCA_Register()
131 if ( (p_rcb = mca_rcb_alloc (p_reg)) != NULL) in MCA_Register()
133 if (p_reg->ctrl_psm) in MCA_Register()
135 if (L2C_INVALID_PSM(p_reg->ctrl_psm) || L2C_INVALID_PSM(p_reg->data_psm)) in MCA_Register()
146 if (L2CA_Register(p_reg->ctrl_psm, (tL2CAP_APPL_INFO *) &l2c_cacp_appl) && in MCA_Register()
147 L2CA_Register(p_reg->data_psm, (tL2CAP_APPL_INFO *) &l2c_dacp_appl)) in MCA_Register()
150 BTM_SetSecurityLevel(FALSE, "", BTM_SEC_SERVICE_MCAP_CTRL, p_reg->sec_mask, in MCA_Register()
151 p_reg->ctrl_psm, BTM_SEC_PROTO_MCA, MCA_CTRL_TCID); in MCA_Register()
[all …]
Dmca_main.c518 tMCA_RCB * mca_rcb_alloc(tMCA_REG *p_reg) in mca_rcb_alloc() argument
528 memcpy (&p_rcb->reg, p_reg, sizeof(tMCA_REG)); in mca_rcb_alloc()
Dmca_int.h316 extern tMCA_RCB * mca_rcb_alloc(tMCA_REG *p_reg);
/system/bt/bta/include/
Dbta_ar_api.h63 extern void bta_ar_reg_avdt(tAVDT_REG *p_reg, tAVDT_CTRL_CBACK *p_cback, tBTA_SYS_ID sys_id);
Dbta_av_api.h518 tBTA_AV_REG *p_reg; /* action function to register VDP */ member
/system/bt/bta/ar/
Dbta_ar.c101 void bta_ar_reg_avdt(tAVDT_REG *p_reg, tAVDT_CTRL_CBACK *p_cback, tBTA_SYS_ID sys_id) in bta_ar_reg_avdt() argument
126 AVDT_Register(p_reg, bta_ar_avdt_cback); in bta_ar_reg_avdt()
/system/bt/bta/sys/
Dbta_sys_main.c521 void bta_sys_register(UINT8 id, const tBTA_SYS_REG *p_reg) in bta_sys_register() argument
523 bta_sys_cb.reg[id] = (tBTA_SYS_REG *) p_reg; in bta_sys_register()
Dbta_sys.h226 extern void bta_sys_register(UINT8 id, const tBTA_SYS_REG *p_reg);
/system/bt/stack/avdt/
Davdt_api.c91 void AVDT_Register(tAVDT_REG *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()
122 memcpy(&avdt_cb.rcb, p_reg, sizeof(tAVDT_REG)); in AVDT_Register()
/system/bt/stack/include/
Dmca_api.h264 extern tMCA_HANDLE MCA_Register(tMCA_REG *p_reg, tMCA_CTRL_CBACK *p_cback);
Davdt_api.h435 extern void AVDT_Register(tAVDT_REG *p_reg, tAVDT_CTRL_CBACK *p_cback);
/system/bt/bta/av/
Dbta_av_main.c325 if(p_bta_av_cfg->p_act_tbl == NULL || p_bta_av_cfg->p_reg == NULL) in bta_av_alloc_scb()
731 (*p_bta_av_cfg->p_reg)(&cs, p_service_name, p_scb); in bta_av_api_register()
/system/bt/bta/hh/
Dbta_hh_le.c368 void bta_hh_le_register_cmpl(tBTA_GATTC_REG *p_reg) in bta_hh_le_register_cmpl() argument
372 if (p_reg->status == BTA_GATT_OK) in bta_hh_le_register_cmpl()
374 bta_hh_cb.gatt_if = p_reg->client_if; in bta_hh_le_register_cmpl()