Lines Matching refs:pan_cb
186 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
187 pan_cb.pcb[i].handle == handle) in pan_allocate_pcb()
193 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
194 memcmp (pan_cb.pcb[i].rem_bda, p_bda, BD_ADDR_LEN) == 0) in pan_allocate_pcb()
200 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) in pan_allocate_pcb()
202 memset (&(pan_cb.pcb[i]), 0, sizeof (tPAN_CONN)); in pan_allocate_pcb()
203 memcpy (pan_cb.pcb[i].rem_bda, p_bda, BD_ADDR_LEN); in pan_allocate_pcb()
204 pan_cb.pcb[i].handle = handle; in pan_allocate_pcb()
205 return &(pan_cb.pcb[i]); in pan_allocate_pcb()
227 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_get_pcb_by_handle()
228 pan_cb.pcb[i].handle == handle) in pan_get_pcb_by_handle()
229 return &(pan_cb.pcb[i]); in pan_get_pcb_by_handle()
251 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) in pan_get_pcb_by_addr()
254 if (memcmp (pan_cb.pcb[i].rem_bda, p_bda, BD_ADDR_LEN) == 0) in pan_get_pcb_by_addr()
255 return &(pan_cb.pcb[i]); in pan_get_pcb_by_addr()
285 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE) in pan_close_all_connections()
287 BNEP_Disconnect (pan_cb.pcb[i].handle); in pan_close_all_connections()
288 pan_cb.pcb[i].con_state = PAN_STATE_IDLE; in pan_close_all_connections()
292 pan_cb.active_role = PAN_ROLE_INACTIVE; in pan_close_all_connections()
293 pan_cb.num_conns = 0; in pan_close_all_connections()
333 pan_cb.role, pan_cb.active_role, pan_cb.num_conns); in pan_dump_status()
335 for (i = 0, p_pcb = pan_cb.pcb; i < MAX_PAN_CONNS; i++, p_pcb++) in pan_dump_status()