• Home
  • Raw
  • Download

Lines Matching refs:pcb

193   tPAN_CONN* pcb = pan_get_pcb_by_handle(handle);  in pan_conn_ind_cb()  local
194 if (pcb) { in pan_conn_ind_cb()
207 if (pcb->con_state == PAN_STATE_CONNECTED) { in pan_conn_ind_cb()
211 pcb->prv_src_uuid = pcb->src_uuid; in pan_conn_ind_cb()
212 pcb->prv_dst_uuid = pcb->dst_uuid; in pan_conn_ind_cb()
214 if (pcb->src_uuid == UUID_SERVCLASS_NAP && in pan_conn_ind_cb()
218 (*pan_cb.pan_bridge_req_cb)(pcb->rem_bda, false); in pan_conn_ind_cb()
223 pcb->src_uuid = local_uuid16; in pan_conn_ind_cb()
224 pcb->dst_uuid = remote_uuid16; in pan_conn_ind_cb()
242 pcb = pan_allocate_pcb(p_bda, handle); in pan_conn_ind_cb()
243 if (!pcb) { in pan_conn_ind_cb()
252 pcb->src_uuid = local_uuid16; in pan_conn_ind_cb()
253 pcb->dst_uuid = remote_uuid16; in pan_conn_ind_cb()
254 pcb->con_state = PAN_STATE_CONN_START; in pan_conn_ind_cb()
283 tPAN_CONN* pcb; in pan_connect_state_cb() local
288 pcb = pan_get_pcb_by_handle(handle); in pan_connect_state_cb()
289 if (!pcb) { in pan_connect_state_cb()
298 (*pan_cb.pan_conn_state_cb)(pcb->handle, pcb->rem_bda, result, in pan_connect_state_cb()
303 if (pcb->con_state != PAN_STATE_CONNECTED && in pan_connect_state_cb()
304 (pcb->con_flags & PAN_FLAGS_CONN_COMPLETED)) { in pan_connect_state_cb()
307 pcb->con_state = PAN_STATE_CONNECTED; in pan_connect_state_cb()
308 pcb->con_flags &= (~PAN_FLAGS_CONN_COMPLETED); in pan_connect_state_cb()
310 pcb->src_uuid = pcb->prv_src_uuid; in pan_connect_state_cb()
311 pcb->dst_uuid = pcb->prv_dst_uuid; in pan_connect_state_cb()
314 if ((pcb->src_uuid == UUID_SERVCLASS_NAP) && pan_cb.pan_bridge_req_cb) in pan_connect_state_cb()
315 (*pan_cb.pan_bridge_req_cb)(pcb->rem_bda, true); in pan_connect_state_cb()
320 if (pcb->con_state == PAN_STATE_CONNECTED) { in pan_connect_state_cb()
322 if ((pcb->src_uuid == UUID_SERVCLASS_NAP) && pan_cb.pan_bridge_req_cb) in pan_connect_state_cb()
323 (*pan_cb.pan_bridge_req_cb)(pcb->rem_bda, false); in pan_connect_state_cb()
327 pan_release_pcb(pcb); in pan_connect_state_cb()
332 if (pcb->src_uuid == UUID_SERVCLASS_PANU) in pan_connect_state_cb()
337 if (pcb->dst_uuid == UUID_SERVCLASS_PANU) in pan_connect_state_cb()
342 pcb->con_state = PAN_STATE_CONNECTED; in pan_connect_state_cb()
346 (*pan_cb.pan_conn_state_cb)(pcb->handle, pcb->rem_bda, PAN_SUCCESS, in pan_connect_state_cb()
350 if (pan_cb.pan_bridge_req_cb && pcb->src_uuid == UUID_SERVCLASS_NAP) { in pan_connect_state_cb()
352 (*pan_cb.pan_bridge_req_cb)(pcb->rem_bda, true); in pan_connect_state_cb()
379 tPAN_CONN *pcb, *dst_pcb; in pan_data_buf_ind_cb() local
386 pcb = pan_get_pcb_by_handle(handle); in pan_data_buf_ind_cb()
387 if (!pcb) { in pan_data_buf_ind_cb()
393 if (pcb->con_state != PAN_STATE_CONNECTED) { in pan_data_buf_ind_cb()
395 pcb->con_state, handle); in pan_data_buf_ind_cb()
407 if (pcb->src_uuid == UUID_SERVCLASS_NAP) in pan_data_buf_ind_cb()
413 if (pcb->src_uuid != UUID_SERVCLASS_PANU) { in pan_data_buf_ind_cb()
417 pcb->src_uuid); in pan_data_buf_ind_cb()
419 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_buf_ind_cb()
420 pan_cb.pcb[i].handle != handle && in pan_data_buf_ind_cb()
421 pcb->src_uuid == pan_cb.pcb[i].src_uuid) { in pan_data_buf_ind_cb()
422 BNEP_Write(pan_cb.pcb[i].handle, dst, p_data, len, protocol, &src, in pan_data_buf_ind_cb()
428 (*pan_cb.pan_data_buf_ind_cb)(pcb->handle, src, dst, protocol, p_buf, in pan_data_buf_ind_cb()
431 (*pan_cb.pan_data_ind_cb)(pcb->handle, src, dst, protocol, p_data, len, in pan_data_buf_ind_cb()
457 (*pan_cb.pan_data_buf_ind_cb)(pcb->handle, src, dst, protocol, p_buf, ext, in pan_data_buf_ind_cb()
460 (*pan_cb.pan_data_ind_cb)(pcb->handle, src, dst, protocol, p_data, len, ext, in pan_data_buf_ind_cb()