• Home
  • Raw
  • Download

Lines Matching refs:pcb

253   tPAN_CONN* pcb = pan_get_pcb_by_addr(rem_bda);  in PAN_Connect()  local
258 if ((pan_cb.num_conns > 1) || (pan_cb.num_conns && (!pcb))) { in PAN_Connect()
280 if (pan_cb.num_conns && pan_cb.active_role == PAN_ROLE_CLIENT && !pcb) { in PAN_Connect()
298 if (!pcb) pcb = pan_allocate_pcb(rem_bda, BNEP_INVALID_HANDLE); in PAN_Connect()
299 if (!pcb) { in PAN_Connect()
305 if (pcb->con_state == PAN_STATE_IDLE) { in PAN_Connect()
307 } else if (pcb->con_state == PAN_STATE_CONNECTED) { in PAN_Connect()
308 pcb->con_flags |= PAN_FLAGS_CONN_COMPLETED; in PAN_Connect()
313 pcb->con_state = PAN_STATE_CONN_START; in PAN_Connect()
314 pcb->prv_src_uuid = pcb->src_uuid; in PAN_Connect()
315 pcb->prv_dst_uuid = pcb->dst_uuid; in PAN_Connect()
317 pcb->src_uuid = src_uuid; in PAN_Connect()
318 pcb->dst_uuid = dst_uuid; in PAN_Connect()
322 Uuid::From16Bit(dst_uuid), &(pcb->handle), mx_chan_id); in PAN_Connect()
324 pan_release_pcb(pcb); in PAN_Connect()
331 *handle = pcb->handle; in PAN_Connect()
349 tPAN_CONN* pcb; in PAN_Disconnect() local
353 pcb = pan_get_pcb_by_handle(handle); in PAN_Disconnect()
354 if (!pcb) { in PAN_Disconnect()
359 result = BNEP_Disconnect(pcb->handle); in PAN_Disconnect()
360 if (pcb->con_state != PAN_STATE_IDLE) pan_cb.num_conns--; in PAN_Disconnect()
362 if (pan_cb.pan_bridge_req_cb && pcb->src_uuid == UUID_SERVCLASS_NAP) in PAN_Disconnect()
363 (*pan_cb.pan_bridge_req_cb)(pcb->rem_bda, false); in PAN_Disconnect()
365 pan_release_pcb(pcb); in PAN_Disconnect()
414 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED) in PAN_Write()
415 BNEP_Write(pan_cb.pcb[i].handle, dst, p_data, len, protocol, &src, ext); in PAN_Write()
455 tPAN_CONN* pcb; in PAN_WriteBuf() local
469 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED) in PAN_WriteBuf()
470 BNEP_Write(pan_cb.pcb[i].handle, dst, data, p_buf->len, protocol, &src, in PAN_WriteBuf()
481 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in PAN_WriteBuf()
482 pan_cb.pcb[i].src_uuid == UUID_SERVCLASS_PANU) in PAN_WriteBuf()
493 BNEP_WriteBuf(pan_cb.pcb[i].handle, dst, p_buf, protocol, &src, ext); in PAN_WriteBuf()
507 pcb = pan_get_pcb_by_handle(handle); in PAN_WriteBuf()
508 if (!pcb) { in PAN_WriteBuf()
514 if (pcb->con_state != PAN_STATE_CONNECTED) { in PAN_WriteBuf()
520 result = BNEP_WriteBuf(pcb->handle, dst, p_buf, protocol, &src, ext); in PAN_WriteBuf()
552 tPAN_CONN* pcb; in PAN_SetProtocolFilters() local
556 pcb = pan_get_pcb_by_handle(handle); in PAN_SetProtocolFilters()
557 if (!pcb) { in PAN_SetProtocolFilters()
562 result = BNEP_SetProtocolFilters(pcb->handle, num_filters, p_start_array, in PAN_SetProtocolFilters()
593 tPAN_CONN* pcb; in PAN_SetMulticastFilters() local
597 pcb = pan_get_pcb_by_handle(handle); in PAN_SetMulticastFilters()
598 if (!pcb) { in PAN_SetMulticastFilters()
603 result = BNEP_SetMulticastFilters(pcb->handle, num_mcast_filters, in PAN_SetMulticastFilters()