Lines Matching refs:pcb
299 tPAN_CONN *pcb; in PAN_Connect() local
326 pcb = pan_get_pcb_by_addr (rem_bda); in PAN_Connect()
331 if ((pan_cb.num_conns > 1) || (pan_cb.num_conns && (!pcb))) in PAN_Connect()
360 if (pan_cb.num_conns && pan_cb.active_role == PAN_ROLE_CLIENT && !pcb) in PAN_Connect()
386 if (!pcb) in PAN_Connect()
387 pcb = pan_allocate_pcb (rem_bda, BNEP_INVALID_HANDLE); in PAN_Connect()
388 if (!pcb) in PAN_Connect()
397 if (pcb->con_state == PAN_STATE_IDLE) in PAN_Connect()
401 else if (pcb->con_state == PAN_STATE_CONNECTED) in PAN_Connect()
403 pcb->con_flags |= PAN_FLAGS_CONN_COMPLETED; in PAN_Connect()
409 pcb->con_state = PAN_STATE_CONN_START; in PAN_Connect()
410 pcb->prv_src_uuid = pcb->src_uuid; in PAN_Connect()
411 pcb->prv_dst_uuid = pcb->dst_uuid; in PAN_Connect()
413 pcb->src_uuid = src_uuid.uu.uuid16; in PAN_Connect()
414 pcb->dst_uuid = dst_uuid.uu.uuid16; in PAN_Connect()
419 result = BNEP_Connect (rem_bda, &src_uuid, &dst_uuid, &(pcb->handle)); in PAN_Connect()
422 pan_release_pcb (pcb); in PAN_Connect()
429 *handle = pcb->handle; in PAN_Connect()
451 tPAN_CONN *pcb; in PAN_Disconnect() local
455 pcb = pan_get_pcb_by_handle (handle); in PAN_Disconnect()
456 if(!pcb) in PAN_Disconnect()
462 result = BNEP_Disconnect (pcb->handle); in PAN_Disconnect()
463 if (pcb->con_state != PAN_STATE_IDLE) in PAN_Disconnect()
466 if (pan_cb.pan_bridge_req_cb && pcb->src_uuid == UUID_SERVCLASS_NAP) in PAN_Disconnect()
467 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, FALSE); in PAN_Disconnect()
469 pan_release_pcb (pcb); in PAN_Disconnect()
520 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED) in PAN_Write()
521 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext); in PAN_Write()
565 tPAN_CONN *pcb; in PAN_WriteBuf() local
581 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED) in PAN_WriteBuf()
582 BNEP_Write(pan_cb.pcb[i].handle, dst, data, p_buf->len, protocol, src, ext); in PAN_WriteBuf()
594 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in PAN_WriteBuf()
595 pan_cb.pcb[i].src_uuid == UUID_SERVCLASS_PANU) in PAN_WriteBuf()
606 result = BNEP_WriteBuf (pan_cb.pcb[i].handle, dst, p_buf, protocol, src, ext); in PAN_WriteBuf()
623 pcb = pan_get_pcb_by_handle (handle); in PAN_WriteBuf()
624 if (!pcb) in PAN_WriteBuf()
631 if (pcb->con_state != PAN_STATE_CONNECTED) in PAN_WriteBuf()
638 result = BNEP_WriteBuf (pcb->handle, dst, p_buf, protocol, src, ext); in PAN_WriteBuf()
676 tPAN_CONN *pcb; in PAN_SetProtocolFilters() local
680 pcb = pan_get_pcb_by_handle (handle); in PAN_SetProtocolFilters()
681 if(!pcb) in PAN_SetProtocolFilters()
687 result = BNEP_SetProtocolFilters (pcb->handle, num_filters, p_start_array, p_end_array); in PAN_SetProtocolFilters()
721 tPAN_CONN *pcb; in PAN_SetMulticastFilters() local
725 pcb = pan_get_pcb_by_handle (handle); in PAN_SetMulticastFilters()
726 if(!pcb) in PAN_SetMulticastFilters()
732 result = BNEP_SetMulticastFilters (pcb->handle, in PAN_SetMulticastFilters()