Lines Matching refs:p_reg
711 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()
1184 (p_clcb->p_reg) ? p_clcb->p_reg->app_cb.p_cmpl_cb : NULL; in gatt_end_operation()
1187 (p_clcb->p_reg) ? p_clcb->p_reg->app_cb.p_disc_cmpl_cb : NULL; in gatt_end_operation()
1276 tGATT_REG* p_reg = &gatt_cb.cl_rcb[i]; in gatt_cleanup_upon_disc() local
1277 if (p_reg->in_use && p_reg->app_cb.p_conn_cb) { in gatt_cleanup_upon_disc()
1278 uint16_t conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_cleanup_upon_disc()
1280 p_tcb->tcb_idx, p_reg->gatt_if, conn_id); in gatt_cleanup_upon_disc()
1281 (*p_reg->app_cb.p_conn_cb)(p_reg->gatt_if, bda, conn_id, false, reason, in gatt_cleanup_upon_disc()