Lines Matching refs:pcb
100 tPAN_CONN *pcb; in pan_conn_ind_cb() local
236 pcb = pan_get_pcb_by_handle (handle); in pan_conn_ind_cb()
237 if (pcb) in pan_conn_ind_cb()
250 if (pcb->con_state == PAN_STATE_CONNECTED) in pan_conn_ind_cb()
255 pcb->prv_src_uuid = pcb->src_uuid; in pan_conn_ind_cb()
256 pcb->prv_dst_uuid = pcb->dst_uuid; in pan_conn_ind_cb()
258 if (pcb->src_uuid == UUID_SERVCLASS_NAP && in pan_conn_ind_cb()
263 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, FALSE); in pan_conn_ind_cb()
268 pcb->src_uuid = local_uuid->uu.uuid16; in pan_conn_ind_cb()
269 pcb->dst_uuid = remote_uuid->uu.uuid16; in pan_conn_ind_cb()
291 pcb = pan_allocate_pcb (p_bda, handle); in pan_conn_ind_cb()
292 if (!pcb) in pan_conn_ind_cb()
302 pcb->src_uuid = local_uuid->uu.uuid16; in pan_conn_ind_cb()
303 pcb->dst_uuid = remote_uuid->uu.uuid16; in pan_conn_ind_cb()
304 pcb->con_state = PAN_STATE_CONN_START; in pan_conn_ind_cb()
333 tPAN_CONN *pcb; in pan_connect_state_cb() local
338 pcb = pan_get_pcb_by_handle (handle); in pan_connect_state_cb()
339 if (!pcb) in pan_connect_state_cb()
350 …(*pan_cb.pan_conn_state_cb) (pcb->handle, pcb->rem_bda, result, is_role_change, PAN_ROLE_INACTIVE,… in pan_connect_state_cb()
353 if (pcb->con_state != PAN_STATE_CONNECTED && in pan_connect_state_cb()
354 (pcb->con_flags & PAN_FLAGS_CONN_COMPLETED)) in pan_connect_state_cb()
358 pcb->con_state = PAN_STATE_CONNECTED; in pan_connect_state_cb()
359 pcb->con_flags &= (~PAN_FLAGS_CONN_COMPLETED); in pan_connect_state_cb()
361 pcb->src_uuid = pcb->prv_src_uuid; in pan_connect_state_cb()
362 pcb->dst_uuid = pcb->prv_dst_uuid; in pan_connect_state_cb()
365 if ((pcb->src_uuid == UUID_SERVCLASS_NAP) && pan_cb.pan_bridge_req_cb) in pan_connect_state_cb()
366 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, TRUE); in pan_connect_state_cb()
371 if (pcb->con_state == PAN_STATE_CONNECTED) in pan_connect_state_cb()
374 if ((pcb->src_uuid == UUID_SERVCLASS_NAP) && pan_cb.pan_bridge_req_cb) in pan_connect_state_cb()
375 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, FALSE); in pan_connect_state_cb()
379 pan_release_pcb (pcb); in pan_connect_state_cb()
384 if (pcb->src_uuid == UUID_SERVCLASS_PANU) in pan_connect_state_cb()
386 else if (pcb->src_uuid == UUID_SERVCLASS_GN) in pan_connect_state_cb()
391 if (pcb->dst_uuid == UUID_SERVCLASS_PANU) in pan_connect_state_cb()
393 else if (pcb->dst_uuid == UUID_SERVCLASS_GN) in pan_connect_state_cb()
398 pcb->con_state = PAN_STATE_CONNECTED; in pan_connect_state_cb()
402 …(*pan_cb.pan_conn_state_cb) (pcb->handle, pcb->rem_bda, PAN_SUCCESS, is_role_change, pan_cb.active… in pan_connect_state_cb()
405 if (pan_cb.pan_bridge_req_cb && pcb->src_uuid == UUID_SERVCLASS_NAP) in pan_connect_state_cb()
408 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, TRUE); in pan_connect_state_cb()
441 tPAN_CONN *pcb; in pan_data_ind_cb() local
457 pcb = pan_get_pcb_by_handle (handle); in pan_data_ind_cb()
458 if (!pcb) in pan_data_ind_cb()
464 if (pcb->con_state != PAN_STATE_CONNECTED) in pan_data_ind_cb()
467 pcb->con_state, handle); in pan_data_ind_cb()
475 handle, pcb->src_uuid); in pan_data_ind_cb()
478 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_ind_cb()
479 pan_cb.pcb[i].handle != handle && in pan_data_ind_cb()
480 pcb->src_uuid == pan_cb.pcb[i].src_uuid) in pan_data_ind_cb()
482 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext); in pan_data_ind_cb()
487 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, TRUE); in pan_data_ind_cb()
495 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_ind_cb()
496 pcb->src_uuid == pan_cb.pcb[i].src_uuid) in pan_data_ind_cb()
498 if (memcmp (pan_cb.pcb[i].rem_bda, dst, BD_ADDR_LEN) == 0) in pan_data_ind_cb()
500 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext); in pan_data_ind_cb()
506 if (pcb->src_uuid == UUID_SERVCLASS_NAP) in pan_data_ind_cb()
513 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward); in pan_data_ind_cb()
545 tPAN_CONN *pcb, *dst_pcb; in pan_data_buf_ind_cb() local
552 pcb = pan_get_pcb_by_handle (handle); in pan_data_buf_ind_cb()
553 if (!pcb) in pan_data_buf_ind_cb()
560 if (pcb->con_state != PAN_STATE_CONNECTED) in pan_data_buf_ind_cb()
563 pcb->con_state, handle); in pan_data_buf_ind_cb()
574 if (pcb->src_uuid == UUID_SERVCLASS_NAP) in pan_data_buf_ind_cb()
580 if (pcb->src_uuid != UUID_SERVCLASS_PANU) in pan_data_buf_ind_cb()
585 handle, pcb->src_uuid); in pan_data_buf_ind_cb()
588 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_buf_ind_cb()
589 pan_cb.pcb[i].handle != handle && in pan_data_buf_ind_cb()
590 pcb->src_uuid == pan_cb.pcb[i].src_uuid) in pan_data_buf_ind_cb()
592 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext); in pan_data_buf_ind_cb()
597 … (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward); in pan_data_buf_ind_cb()
600 … (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward); in pan_data_buf_ind_cb()
624 (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward); in pan_data_buf_ind_cb()
627 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward); in pan_data_buf_ind_cb()