Lines Matching refs:bnep_cb

55 tBNEP_CB   bnep_cb;  variable
85 memset(&bnep_cb.l2cap_my_cfg, 0, sizeof(tL2CAP_CFG_INFO)); in bnep_register_with_l2cap()
87 bnep_cb.l2cap_my_cfg.mtu_present = TRUE; in bnep_register_with_l2cap()
88 bnep_cb.l2cap_my_cfg.mtu = BNEP_MTU_SIZE; in bnep_register_with_l2cap()
89 bnep_cb.l2cap_my_cfg.flush_to_present = TRUE; in bnep_register_with_l2cap()
90 bnep_cb.l2cap_my_cfg.flush_to = BNEP_FLUSH_TO; in bnep_register_with_l2cap()
92 bnep_cb.reg_info.pL2CA_ConnectInd_Cb = bnep_connect_ind; in bnep_register_with_l2cap()
93 bnep_cb.reg_info.pL2CA_ConnectCfm_Cb = bnep_connect_cfm; in bnep_register_with_l2cap()
94 bnep_cb.reg_info.pL2CA_ConfigInd_Cb = bnep_config_ind; in bnep_register_with_l2cap()
95 bnep_cb.reg_info.pL2CA_ConfigCfm_Cb = bnep_config_cfm; in bnep_register_with_l2cap()
96 bnep_cb.reg_info.pL2CA_DisconnectInd_Cb = bnep_disconnect_ind; in bnep_register_with_l2cap()
97 bnep_cb.reg_info.pL2CA_DisconnectCfm_Cb = bnep_disconnect_cfm; in bnep_register_with_l2cap()
98 bnep_cb.reg_info.pL2CA_DataInd_Cb = bnep_data_ind; in bnep_register_with_l2cap()
99 bnep_cb.reg_info.pL2CA_CongestionStatus_Cb = bnep_congestion_ind; in bnep_register_with_l2cap()
102 if (!L2CA_Register (BT_PSM_BNEP, &bnep_cb.reg_info)) in bnep_register_with_l2cap()
130 if (!(bnep_cb.profile_registered) || (p_bcb) in bnep_connect_ind()
147 L2CA_ConfigReq (l2cap_cid, &bnep_cb.l2cap_my_cfg); in bnep_connect_ind()
188 L2CA_ConfigReq (l2cap_cid, &bnep_cb.l2cap_my_cfg); in bnep_connect_cfm()
202 if (bnep_cb.p_conn_state_cb && in bnep_connect_cfm()
205 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_CONN_FAILED, FALSE); in bnep_connect_cfm()
337 if ((p_bcb->con_flags & BNEP_FLAGS_IS_ORIG) && (bnep_cb.p_conn_state_cb)) in bnep_config_cfm()
339 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_CONN_FAILED_CFG, FALSE); in bnep_config_cfm()
378 if (bnep_cb.p_conn_state_cb) in bnep_disconnect_ind()
379 … (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, BNEP_CONN_DISCONNECTED, FALSE); in bnep_disconnect_ind()
383 if ((bnep_cb.p_conn_state_cb) && ((p_bcb->con_flags & BNEP_FLAGS_IS_ORIG) || in bnep_disconnect_ind()
385 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_CONN_FAILED, FALSE); in bnep_disconnect_ind()
431 if(bnep_cb.p_tx_data_flow_cb) in bnep_congestion_ind()
433 bnep_cb.p_tx_data_flow_cb(p_bcb->handle, BNEP_TX_FLOW_OFF); in bnep_congestion_ind()
440 if(bnep_cb.p_tx_data_flow_cb) in bnep_congestion_ind()
442 bnep_cb.p_tx_data_flow_cb(p_bcb->handle, BNEP_TX_FLOW_ON); in bnep_congestion_ind()
656 if (bnep_cb.p_data_buf_cb) in bnep_data_ind()
658 … (*bnep_cb.p_data_buf_cb)(p_bcb->handle, p_src_addr, p_dst_addr, protocol, p_buf, fw_ext_present); in bnep_data_ind()
660 else if (bnep_cb.p_data_ind_cb) in bnep_data_ind()
662 …(*bnep_cb.p_data_ind_cb)(p_bcb->handle, p_src_addr, p_dst_addr, protocol, p, rem_len, fw_ext_prese… in bnep_data_ind()
711 if ((p_bcb->con_flags & BNEP_FLAGS_IS_ORIG) && (bnep_cb.p_conn_state_cb)) in bnep_conn_timer_timeout()
712 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_CONN_FAILED, FALSE); in bnep_conn_timer_timeout()
726 if ((p_bcb->con_flags & BNEP_FLAGS_IS_ORIG) && (bnep_cb.p_conn_state_cb)) in bnep_conn_timer_timeout()
727 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_CONN_FAILED, FALSE); in bnep_conn_timer_timeout()
745 if (bnep_cb.p_conn_state_cb) in bnep_conn_timer_timeout()
746 … (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_SET_FILTER_FAIL, FALSE); in bnep_conn_timer_timeout()
766 if (bnep_cb.p_conn_state_cb) in bnep_conn_timer_timeout()
767 … (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_SET_FILTER_FAIL, FALSE); in bnep_conn_timer_timeout()
804 if (bnep_cb.p_conn_state_cb) in bnep_connected()
805 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_SUCCESS, is_role_change); in bnep_connected()