Home | History | Annotate | Download | only in bnep

Lines Matching full:bnep_cb

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