Lines Matching refs:bnep_cb
52 tBNEP_CB bnep_cb; variable
80 memset(&bnep_cb.l2cap_my_cfg, 0, sizeof(tL2CAP_CFG_INFO)); in bnep_register_with_l2cap()
82 bnep_cb.l2cap_my_cfg.mtu_present = true; in bnep_register_with_l2cap()
83 bnep_cb.l2cap_my_cfg.mtu = BNEP_MTU_SIZE; in bnep_register_with_l2cap()
84 bnep_cb.l2cap_my_cfg.flush_to_present = true; in bnep_register_with_l2cap()
85 bnep_cb.l2cap_my_cfg.flush_to = BNEP_FLUSH_TO; in bnep_register_with_l2cap()
87 bnep_cb.reg_info.pL2CA_ConnectInd_Cb = bnep_connect_ind; in bnep_register_with_l2cap()
88 bnep_cb.reg_info.pL2CA_ConnectCfm_Cb = bnep_connect_cfm; in bnep_register_with_l2cap()
89 bnep_cb.reg_info.pL2CA_ConfigInd_Cb = bnep_config_ind; in bnep_register_with_l2cap()
90 bnep_cb.reg_info.pL2CA_ConfigCfm_Cb = bnep_config_cfm; in bnep_register_with_l2cap()
91 bnep_cb.reg_info.pL2CA_DisconnectInd_Cb = bnep_disconnect_ind; in bnep_register_with_l2cap()
92 bnep_cb.reg_info.pL2CA_DisconnectCfm_Cb = bnep_disconnect_cfm; in bnep_register_with_l2cap()
93 bnep_cb.reg_info.pL2CA_DataInd_Cb = bnep_data_ind; in bnep_register_with_l2cap()
94 bnep_cb.reg_info.pL2CA_CongestionStatus_Cb = bnep_congestion_ind; in bnep_register_with_l2cap()
97 if (!L2CA_Register(BT_PSM_BNEP, &bnep_cb.reg_info, in bnep_register_with_l2cap()
123 if (!(bnep_cb.profile_registered) || (p_bcb) || in bnep_connect_ind()
139 L2CA_ConfigReq(l2cap_cid, &bnep_cb.l2cap_my_cfg); in bnep_connect_ind()
176 L2CA_ConfigReq(l2cap_cid, &bnep_cb.l2cap_my_cfg); in bnep_connect_cfm()
189 if (bnep_cb.p_conn_state_cb && p_bcb->con_flags & BNEP_FLAGS_IS_ORIG) { in bnep_connect_cfm()
190 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, in bnep_connect_cfm()
309 if ((p_bcb->con_flags & BNEP_FLAGS_IS_ORIG) && (bnep_cb.p_conn_state_cb)) { in bnep_config_cfm()
310 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, in bnep_config_cfm()
346 if (bnep_cb.p_conn_state_cb) in bnep_disconnect_ind()
347 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, in bnep_disconnect_ind()
350 if ((bnep_cb.p_conn_state_cb) && in bnep_disconnect_ind()
353 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, in bnep_disconnect_ind()
394 if (bnep_cb.p_tx_data_flow_cb) { in bnep_congestion_ind()
395 bnep_cb.p_tx_data_flow_cb(p_bcb->handle, BNEP_TX_FLOW_OFF); in bnep_congestion_ind()
400 if (bnep_cb.p_tx_data_flow_cb) { in bnep_congestion_ind()
401 bnep_cb.p_tx_data_flow_cb(p_bcb->handle, BNEP_TX_FLOW_ON); in bnep_congestion_ind()
623 if (bnep_cb.p_data_buf_cb) { in bnep_data_ind()
624 (*bnep_cb.p_data_buf_cb)(p_bcb->handle, *p_src_addr, *p_dst_addr, protocol, in bnep_data_ind()
626 } else if (bnep_cb.p_data_ind_cb) { in bnep_data_ind()
627 (*bnep_cb.p_data_ind_cb)(p_bcb->handle, *p_src_addr, *p_dst_addr, protocol, in bnep_data_ind()
670 if ((p_bcb->con_flags & BNEP_FLAGS_IS_ORIG) && (bnep_cb.p_conn_state_cb)) in bnep_conn_timer_timeout()
671 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, in bnep_conn_timer_timeout()
684 if ((p_bcb->con_flags & BNEP_FLAGS_IS_ORIG) && (bnep_cb.p_conn_state_cb)) in bnep_conn_timer_timeout()
685 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, in bnep_conn_timer_timeout()
698 if (bnep_cb.p_conn_state_cb) in bnep_conn_timer_timeout()
699 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, in bnep_conn_timer_timeout()
714 if (bnep_cb.p_conn_state_cb) in bnep_conn_timer_timeout()
715 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, in bnep_conn_timer_timeout()
751 if (bnep_cb.p_conn_state_cb) in bnep_connected()
752 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, BNEP_SUCCESS, in bnep_connected()