Lines Matching refs:handle
95 void pan_conn_ind_cb(uint16_t handle, const RawAddress& p_bda, in pan_conn_ind_cb() argument
106 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_SRC_UUID); in pan_conn_ind_cb()
112 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb()
122 handle, pan_cb.role, local_uuid16, remote_uuid16, in pan_conn_ind_cb()
130 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_SRC_UUID); in pan_conn_ind_cb()
138 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb()
152 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb()
184 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_SRC_UUID); in pan_conn_ind_cb()
198 tPAN_CONN* pcb = pan_get_pcb_by_handle(handle); in pan_conn_ind_cb()
207 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb()
230 BNEP_ConnectResp(handle, BNEP_SUCCESS); in pan_conn_ind_cb()
240 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb()
246 log::verbose("New connection indication for handle {}", handle); in pan_conn_ind_cb()
247 pcb = pan_allocate_pcb(p_bda, handle); in pan_conn_ind_cb()
250 BNEP_ConnectResp(handle, BNEP_CONN_FAILED); in pan_conn_ind_cb()
262 BNEP_ConnectResp(handle, BNEP_SUCCESS); in pan_conn_ind_cb()
285 void pan_connect_state_cb(uint16_t handle, const RawAddress& /* rem_bda */, in pan_connect_state_cb() argument
290 log::verbose("pan_connect_state_cb - for handle {}, result {}", handle, in pan_connect_state_cb()
292 pcb = pan_get_pcb_by_handle(handle); in pan_connect_state_cb()
294 log::error("PAN State change indication for wrong handle {}", handle); in pan_connect_state_cb()
302 (*pan_cb.pan_conn_state_cb)(pcb->handle, pcb->rem_bda, in pan_connect_state_cb()
350 (*pan_cb.pan_conn_state_cb)(pcb->handle, pcb->rem_bda, PAN_SUCCESS, in pan_connect_state_cb()
380 void pan_data_buf_ind_cb(uint16_t handle, const RawAddress& src, in pan_data_buf_ind_cb() argument
390 pcb = pan_get_pcb_by_handle(handle); in pan_data_buf_ind_cb()
392 log::error("PAN Data buffer indication for wrong handle {}", handle); in pan_data_buf_ind_cb()
399 pcb->con_state, handle); in pan_data_buf_ind_cb()
413 handle, protocol, len, ext); in pan_data_buf_ind_cb()
424 "PAN received broadcast packet on handle {}, src uuid 0x{:x}", handle, in pan_data_buf_ind_cb()
428 pan_cb.pcb[i].handle != handle && in pan_data_buf_ind_cb()
430 BNEP_Write(pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, in pan_data_buf_ind_cb()
436 (*pan_cb.pan_data_buf_ind_cb)(pcb->handle, src, dst, protocol, p_buf, in pan_data_buf_ind_cb()
439 (*pan_cb.pan_data_ind_cb)(pcb->handle, src, dst, protocol, p_data, len, in pan_data_buf_ind_cb()
451 dst_pcb->handle, len); in pan_data_buf_ind_cb()
454 BNEP_Write(dst_pcb->handle, dst, p_data, len, protocol, src, ext); in pan_data_buf_ind_cb()
457 dst_pcb->handle); in pan_data_buf_ind_cb()
466 (*pan_cb.pan_data_buf_ind_cb)(pcb->handle, src, dst, protocol, p_buf, ext, in pan_data_buf_ind_cb()
469 (*pan_cb.pan_data_ind_cb)(pcb->handle, src, dst, protocol, p_data, len, ext, in pan_data_buf_ind_cb()
488 void pan_tx_data_flow_cb(uint16_t handle, tBNEP_RESULT result) { in pan_tx_data_flow_cb() argument
490 (*pan_cb.pan_tx_data_flow_cb)(handle, (tPAN_RESULT)result); in pan_tx_data_flow_cb()
516 void pan_proto_filt_ind_cb(uint16_t handle, bool indication, in pan_proto_filt_ind_cb() argument
522 handle, indication, result, num_filters); in pan_proto_filt_ind_cb()
525 (*pan_cb.pan_pfilt_ind_cb)(handle, indication, (tPAN_RESULT)result, in pan_proto_filt_ind_cb()
550 void pan_mcast_filt_ind_cb(uint16_t handle, bool indication, in pan_mcast_filt_ind_cb() argument
556 handle, indication, result, num_filters); in pan_mcast_filt_ind_cb()
559 (*pan_cb.pan_mfilt_ind_cb)(handle, indication, (tPAN_RESULT)result, in pan_mcast_filt_ind_cb()