Lines Matching refs:p_reg

1464     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
1691 p_clcb->p_reg = p_reg; in gatt_clcb_alloc()
2050 *p_gatt_if = gatt_cb.clcb[i].p_reg->gatt_if; in gatt_find_app_hold_link()
2176 tGATT_CMPL_CBACK *p_cmpl_cb = (p_clcb->p_reg) ? p_clcb->p_reg->app_cb.p_cmpl_cb : NULL; in gatt_end_operation()
2178 …tGATT_DISC_CMPL_CB *p_disc_cmpl_cb = (p_clcb->p_reg) ? p_clcb->p_reg->app_cb.p_disc_cmpl_cb : NUL… in gatt_end_operation()
2257 tGATT_REG *p_reg=NULL; in gatt_cleanup_upon_disc() local
2292 p_reg = &gatt_cb.cl_rcb[i]; in gatt_cleanup_upon_disc()
2293 if (p_reg->in_use && p_reg->app_cb.p_conn_cb) in gatt_cleanup_upon_disc()
2295 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_cleanup_upon_disc()
2296 …DEBUG ("found p_reg tcb_idx=%d gatt_if=%d conn_id=0x%x", p_tcb->tcb_idx, p_reg->gatt_if, conn_id); in gatt_cleanup_upon_disc()
2297 (*p_reg->app_cb.p_conn_cb)(p_reg->gatt_if, bda, conn_id, FALSE, reason, transport); in gatt_cleanup_upon_disc()
2458 BOOLEAN gatt_add_bg_dev_list(tGATT_REG *p_reg, BD_ADDR bd_addr, BOOLEAN is_initator) in gatt_add_bg_dev_list() argument
2460 tGATT_IF gatt_if = p_reg->gatt_if; in gatt_add_bg_dev_list()
2500 if (p_reg->listening == GATT_LISTEN_TO_ALL) in gatt_add_bg_dev_list()
2501 p_reg->listening = GATT_LISTEN_TO_NONE; in gatt_add_bg_dev_list()
2503 p_reg->listening ++; in gatt_add_bg_dev_list()
2613 BOOLEAN gatt_remove_bg_dev_from_list(tGATT_REG *p_reg, BD_ADDR bd_addr, BOOLEAN is_initiator) in gatt_remove_bg_dev_from_list() argument
2615 tGATT_IF gatt_if = p_reg->gatt_if; in gatt_remove_bg_dev_from_list()
2649 p_reg->listening --; in gatt_remove_bg_dev_from_list()
2683 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); in gatt_deregister_bgdev_list() local
2708 if (p_reg != NULL && p_reg->listening > 0) in gatt_deregister_bgdev_list()
2709 p_reg->listening --; in gatt_deregister_bgdev_list()
2755 tGATT_REG *p_reg; in gatt_update_auto_connect_dev() local
2760 if ((p_reg = gatt_get_regcb(gatt_if)) == NULL) in gatt_update_auto_connect_dev()
2768 ret = gatt_add_bg_dev_list(p_reg, bd_addr, is_initator); in gatt_update_auto_connect_dev()
2778 ret = gatt_remove_bg_dev_from_list(p_reg, bd_addr, is_initator); in gatt_update_auto_connect_dev()
2819 tGATT_REG *p_reg = &gatt_cb.cl_rcb[0]; in gatt_update_listen_mode() local
2824 for (; ii < GATT_MAX_APPS; ii ++, p_reg ++) in gatt_update_listen_mode()
2826 if ( p_reg->in_use && p_reg->listening > listening) in gatt_update_listen_mode()
2828 listening = p_reg->listening; in gatt_update_listen_mode()