Lines Matching refs:pcb
299 tPAN_CONN *pcb;
327 pcb = pan_get_pcb_by_addr (rem_bda);
332 if ((pan_cb.num_conns > 1) || (pan_cb.num_conns && (!pcb)))
364 if (pan_cb.num_conns && pan_cb.active_role == PAN_ROLE_CLIENT && !pcb)
392 if (!pcb)
393 pcb = pan_allocate_pcb (rem_bda, BNEP_INVALID_HANDLE);
394 if (!pcb)
403 if (pcb->con_state == PAN_STATE_IDLE)
407 else if (pcb->con_state == PAN_STATE_CONNECTED)
409 pcb->con_flags |= PAN_FLAGS_CONN_COMPLETED;
415 pcb->con_state = PAN_STATE_CONN_START;
416 pcb->prv_src_uuid = pcb->src_uuid;
417 pcb->prv_dst_uuid = pcb->dst_uuid;
419 pcb->src_uuid = src_uuid.uu.uuid16;
420 pcb->dst_uuid = dst_uuid.uu.uuid16;
425 result = BNEP_Connect (rem_bda, &src_uuid, &dst_uuid, &(pcb->handle));
428 pan_release_pcb (pcb);
435 *handle = pcb->handle;
457 tPAN_CONN *pcb;
461 pcb = pan_get_pcb_by_handle (handle);
462 if(!pcb)
468 result = BNEP_Disconnect (pcb->handle);
469 if (pcb->con_state != PAN_STATE_IDLE)
472 if (pan_cb.pan_bridge_req_cb && pcb->src_uuid == UUID_SERVCLASS_NAP)
473 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, FALSE);
475 pan_release_pcb (pcb);
526 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED)
527 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
571 tPAN_CONN *pcb;
587 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED)
588 BNEP_Write(pan_cb.pcb[i].handle, dst, data, p_buf->len, protocol, src, ext);
600 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED &&
601 pan_cb.pcb[i].src_uuid == UUID_SERVCLASS_PANU)
612 result = BNEP_WriteBuf (pan_cb.pcb[i].handle, dst, p_buf, protocol, src, ext);
629 pcb = pan_get_pcb_by_handle (handle);
630 if (!pcb)
637 if (pcb->con_state != PAN_STATE_CONNECTED)
644 result = BNEP_WriteBuf (pcb->handle, dst, p_buf, protocol, src, ext);
683 tPAN_CONN *pcb;
687 pcb = pan_get_pcb_by_handle (handle);
688 if(!pcb)
694 result = BNEP_SetProtocolFilters (pcb->handle, num_filters, p_start_array, p_end_array);
732 tPAN_CONN *pcb;
736 pcb = pan_get_pcb_by_handle (handle);
737 if(!pcb)
743 result = BNEP_SetMulticastFilters (pcb->handle,