• Home
  • Raw
  • Download

Lines Matching refs:p_clcb

66     tGATT_PROFILE_CLCB    *p_clcb = NULL;  in gatt_profile_find_conn_id_by_bd_addr()  local
68 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++) in gatt_profile_find_conn_id_by_bd_addr()
70 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) in gatt_profile_find_conn_id_by_bd_addr()
72 return p_clcb->conn_id; in gatt_profile_find_conn_id_by_bd_addr()
91 tGATT_PROFILE_CLCB *p_clcb = NULL; in gatt_profile_find_clcb_by_bd_addr() local
93 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++) in gatt_profile_find_clcb_by_bd_addr()
95 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) in gatt_profile_find_clcb_by_bd_addr()
97 return p_clcb; in gatt_profile_find_clcb_by_bd_addr()
101 return p_clcb; in gatt_profile_find_clcb_by_bd_addr()
116 tGATT_PROFILE_CLCB *p_clcb = NULL; in gatt_profile_clcb_alloc() local
118 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++) in gatt_profile_clcb_alloc()
120 if (!p_clcb->in_use) in gatt_profile_clcb_alloc()
122 p_clcb->in_use = TRUE; in gatt_profile_clcb_alloc()
123 p_clcb->conn_id = conn_id; in gatt_profile_clcb_alloc()
124 p_clcb->connected = TRUE; in gatt_profile_clcb_alloc()
125 memcpy (p_clcb->bda, bda, BD_ADDR_LEN); in gatt_profile_clcb_alloc()
129 return p_clcb; in gatt_profile_clcb_alloc()
143 tGATT_PROFILE_CLCB *p_clcb = NULL; in gatt_profile_clcb_dealloc() local
145 for (i_clcb = 0, p_clcb= gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; i_clcb++, p_clcb++) in gatt_profile_clcb_dealloc()
147 if (p_clcb->in_use && p_clcb->connected && (p_clcb->conn_id == conn_id)) in gatt_profile_clcb_dealloc()
149 memset(p_clcb, 0, sizeof(tGATT_PROFILE_CLCB)); in gatt_profile_clcb_dealloc()