Lines Matching refs:p_cb
41 tGAP_INFO *p_cb;
47 p_cb = &gap_cb.blk[index];
50 switch (p_cb->event)
86 if (p_cb->gap_cback)
87 p_cb->gap_cback(p_cb->event, p_data);
90 gap_free_cb(p_cb);
117 tGAP_INFO *p_cb;
129 for (index = 0, p_cb = &gap_cb.blk[0]; index < GAP_MAX_BLOCKS; index++, p_cb++)
132 if (p_cb->in_use && (p_cb->event == GAP_EVT_INQUIRY_COMPLETE))
135 if (p_cb->gap_inq_rslt_cback)
136 p_cb->gap_inq_rslt_cback (GAP_EVT_INQUIRY_RESULTS, (tGAP_INQ_RESULTS *)p_results);
161 tGAP_FINDADDR_CB *p_cb = &gap_cb.findaddr_cb;
162 tGAP_FINDADDR_RESULTS *p_result = &p_cb->results;
164 if (p_cb->in_use)
175 memcpy (p_result->bd_addr, p_cb->p_cur_inq->results.remote_bd_addr, BD_ADDR_LEN);
181 if ((p_cb->p_cur_inq = BTM_InqDbNext(p_cb->p_cur_inq)) != NULL)
183 if ((BTM_ReadRemoteDeviceName (p_cb->p_cur_inq->results.remote_bd_addr,
200 if (p_cb->p_cback)
201 p_cb->p_cback (GAP_EVT_FIND_ADDR_COMPLETE, (tGAP_FINDADDR_RESULTS *) p_result);
204 p_cb->in_use = FALSE;
205 p_cb->p_cback = (tGAP_CALLBACK *) NULL;
227 tGAP_FINDADDR_CB *p_cb = &gap_cb.findaddr_cb;
228 tGAP_FINDADDR_RESULTS *p_result = &p_cb->results;
230 if (p_cb->in_use)
244 if ((p_cb->p_cur_inq = BTM_InqDbFirst()) != NULL)
246 if ((BTM_ReadRemoteDeviceName (p_cb->p_cur_inq->results.remote_bd_addr,
260 if (p_cb->p_cback)
261 p_cb->p_cback (GAP_EVT_FIND_ADDR_COMPLETE, (tGAP_FINDADDR_RESULTS *) p_result);
264 p_cb->in_use = FALSE;
265 p_cb->p_cback = (tGAP_CALLBACK *) NULL;
325 tGAP_INFO *p_cb = &gap_cb.blk[0];
328 for (x = 0; x < GAP_MAX_BLOCKS; x++, p_cb++)
330 if (!p_cb->in_use)
332 memset (p_cb, 0, sizeof (tGAP_INFO));
334 p_cb->in_use = TRUE;
335 p_cb->index = x;
336 p_cb->p_data = (void *)NULL;
337 return (p_cb);
355 void gap_free_cb (tGAP_INFO *p_cb)
357 if (p_cb)
359 p_cb->gap_cback = NULL;
360 p_cb->in_use = FALSE;
379 tGAP_INFO *p_cb = &gap_cb.blk[0];
382 for (x = 0; x < GAP_MAX_BLOCKS; x++, p_cb++)
384 if (p_cb->in_use && p_cb->event == request)