Lines Matching refs:llcp_cb

117         llcp_cb.lcb.local_link_miu = LLCP_MIU;  in LLCP_SetConfig()
120 llcp_cb.lcb.local_link_miu = link_miu; in LLCP_SetConfig()
122 llcp_cb.lcb.local_opt = opt; in LLCP_SetConfig()
123 llcp_cb.lcb.local_wt = wt; in LLCP_SetConfig()
129 llcp_cb.lcb.local_lto = LLCP_DEFAULT_LTO_IN_MS; in LLCP_SetConfig()
135 llcp_cb.lcb.local_lto = LLCP_MAX_LTO_IN_MS; in LLCP_SetConfig()
138 llcp_cb.lcb.local_lto = link_timeout; in LLCP_SetConfig()
140 llcp_cb.lcb.inact_timeout_init = inact_timeout_init; in LLCP_SetConfig()
141 llcp_cb.lcb.inact_timeout_target = inact_timeout_target; in LLCP_SetConfig()
142 llcp_cb.lcb.symm_delay = symm_delay; in LLCP_SetConfig()
143 llcp_cb.lcb.data_link_timeout = data_link_timeout; in LLCP_SetConfig()
144 llcp_cb.lcb.delay_first_pdu_timeout = delay_first_pdu_timeout; in LLCP_SetConfig()
175 *p_link_miu = llcp_cb.lcb.local_link_miu; in LLCP_GetConfig()
176 *p_opt = llcp_cb.lcb.local_opt; in LLCP_GetConfig()
177 *p_wt = llcp_cb.lcb.local_wt; in LLCP_GetConfig()
178 *p_link_timeout = llcp_cb.lcb.local_lto; in LLCP_GetConfig()
179 *p_inact_timeout_init = llcp_cb.lcb.inact_timeout_init; in LLCP_GetConfig()
180 *p_inact_timeout_target = llcp_cb.lcb.inact_timeout_target; in LLCP_GetConfig()
181 *p_symm_delay = llcp_cb.lcb.symm_delay; in LLCP_GetConfig()
182 *p_data_link_timeout = llcp_cb.lcb.data_link_timeout; in LLCP_GetConfig()
183 *p_delay_first_pdu_timeout = llcp_cb.lcb.delay_first_pdu_timeout; in LLCP_GetConfig()
230 *p_wt = llcp_cb.lcb.local_wt; in LLCP_GetDiscoveryConfig()
243 UINT16_TO_BE_STREAM (p, (llcp_cb.lcb.local_link_miu - LLCP_DEFAULT_MIU)); in LLCP_GetDiscoveryConfig()
249 UINT16_TO_BE_STREAM (p, llcp_cb.lcb.wks); in LLCP_GetDiscoveryConfig()
262 UINT16_TO_BE_STREAM (p, (llcp_cb.lcb.local_link_miu - LLCP_DEFAULT_MIU)); in LLCP_GetDiscoveryConfig()
266 UINT16_TO_BE_STREAM (p, llcp_cb.lcb.wks); in LLCP_GetDiscoveryConfig()
271 UINT8_TO_BE_STREAM (p, (llcp_cb.lcb.local_lto/LLCP_LTO_UNIT)); in LLCP_GetDiscoveryConfig()
275 UINT8_TO_BE_STREAM (p, llcp_cb.lcb.local_opt); in LLCP_GetDiscoveryConfig()
297 LLCP_TRACE_API1 ("LLCP_ActivateLink () link_state = %d", llcp_cb.lcb.link_state); in LLCP_ActivateLink()
299 if ( (llcp_cb.lcb.link_state == LLCP_LINK_STATE_DEACTIVATED) in LLCP_ActivateLink()
302 llcp_cb.lcb.p_link_cback = p_link_cback; in LLCP_ActivateLink()
323 LLCP_TRACE_API1 ("LLCP_DeactivateLink () link_state = %d", llcp_cb.lcb.link_state); in LLCP_DeactivateLink()
325 if (llcp_cb.lcb.link_state != LLCP_LINK_STATE_DEACTIVATED) in LLCP_DeactivateLink()
380 if (llcp_cb.server_cb[sap].p_app_cback == NULL) in LLCP_RegisterServer()
382 p_app_cb = &llcp_cb.server_cb[sap]; in LLCP_RegisterServer()
406 else if (llcp_cb.wks_cb[reg_sap].p_app_cback) in LLCP_RegisterServer()
413 p_app_cb = &llcp_cb.wks_cb[reg_sap]; in LLCP_RegisterServer()
423 else if (llcp_cb.server_cb[reg_sap - LLCP_LOWER_BOUND_SDP_SAP].p_app_cback) in LLCP_RegisterServer()
430 p_app_cb = &llcp_cb.server_cb[reg_sap - LLCP_LOWER_BOUND_SDP_SAP]; in LLCP_RegisterServer()
469 llcp_cb.lcb.wks |= (1 << reg_sap); in LLCP_RegisterServer()
476 llcp_cb.num_logical_data_link++; in LLCP_RegisterServer()
520 if (llcp_cb.client_cb[sap].p_app_cback == NULL) in LLCP_RegisterClient()
522 p_app_cb = &llcp_cb.client_cb[sap]; in LLCP_RegisterClient()
543 llcp_cb.num_logical_data_link++; in LLCP_RegisterClient()
581 llcp_cb.lcb.wks &= ~ (1 << local_sap); in LLCP_Deregister()
586 llcp_cb.total_rx_ui_pdu = 0; in LLCP_Deregister()
591 if ( (llcp_cb.dlcb[idx].state != LLCP_DLC_STATE_IDLE) in LLCP_Deregister()
592 &&(llcp_cb.dlcb[idx].local_sap == local_sap) ) in LLCP_Deregister()
594 llcp_util_deallocate_data_link (&llcp_cb.dlcb[idx]); in LLCP_Deregister()
604 llcp_cb.total_tx_ui_pdu--; in LLCP_Deregister()
609 llcp_cb.num_logical_data_link--; in LLCP_Deregister()
641 if ( (llcp_cb.lcb.link_state != LLCP_LINK_STATE_ACTIVATED) in LLCP_IsLogicalLinkCongested()
649 else if ( (num_pending_ui_pdu + p_app_cb->ui_xmit_q.count >= llcp_cb.ll_tx_congest_start) in LLCP_IsLogicalLinkCongested()
650 ||(total_pending_ui_pdu + llcp_cb.total_tx_ui_pdu >= llcp_cb.max_num_ll_tx_buff) in LLCP_IsLogicalLinkCongested()
651 …|(total_pending_ui_pdu + total_pending_i_pdu + llcp_cb.total_tx_ui_pdu + llcp_cb.total_tx_i_pdu >=… in LLCP_IsLogicalLinkCongested()
693 else if (llcp_cb.lcb.link_state != LLCP_LINK_STATE_ACTIVATED) in LLCP_SendUI()
697 else if ( (llcp_cb.lcb.peer_opt == LLCP_LSC_UNKNOWN) in LLCP_SendUI()
698 ||(llcp_cb.lcb.peer_opt & LLCP_LSC_1) ) in LLCP_SendUI()
700 if (p_buf->len <= llcp_cb.lcb.peer_miu) in LLCP_SendUI()
808 llcp_cb.total_rx_ui_pdu--; in LLCP_ReadLogicalLinkData()
877 llcp_cb.total_rx_ui_pdu--; in LLCP_FlushLogicalLinkRxData()
915 if ( (llcp_cb.lcb.peer_opt != LLCP_LSC_UNKNOWN) in LLCP_ConnectReq()
916 &&((llcp_cb.lcb.peer_opt & LLCP_LSC_2) == 0) ) in LLCP_ConnectReq()
956 if ((p_params) && (p_params->miu > llcp_cb.lcb.local_link_miu)) in LLCP_ConnectReq()
1023 if (p_params->miu > llcp_cb.lcb.local_link_miu) in LLCP_ConnectCfm()
1117 …|(total_pending_ui_pdu + total_pending_i_pdu + llcp_cb.total_tx_ui_pdu + llcp_cb.total_tx_i_pdu >=… in LLCP_IsDataLinkCongested()
1262 llcp_cb.total_rx_i_pdu--; in LLCP_ReadDataLinkData()
1342 llcp_cb.total_rx_i_pdu--; in LLCP_FlushDataLinkRxData()
1504 … (llcp_cb.lcb.link_state == LLCP_LINK_STATE_ACTIVATED) ? llcp_cb.lcb.peer_wks :0); in LLCP_GetRemoteWKS()
1506 if (llcp_cb.lcb.link_state == LLCP_LINK_STATE_ACTIVATED) in LLCP_GetRemoteWKS()
1507 return (llcp_cb.lcb.peer_wks); in LLCP_GetRemoteWKS()
1525 (llcp_cb.lcb.link_state == LLCP_LINK_STATE_ACTIVATED) in LLCP_GetRemoteLSC()
1526 ? llcp_cb.lcb.peer_opt & (LLCP_LSC_1 | LLCP_LSC_2) :0); in LLCP_GetRemoteLSC()
1528 if (llcp_cb.lcb.link_state == LLCP_LINK_STATE_ACTIVATED) in LLCP_GetRemoteLSC()
1529 return (llcp_cb.lcb.peer_opt & (LLCP_LSC_1 | LLCP_LSC_2)); in LLCP_GetRemoteLSC()
1547 (llcp_cb.lcb.link_state == LLCP_LINK_STATE_ACTIVATED) in LLCP_GetRemoteVersion()
1548 ? llcp_cb.lcb.peer_version : 0); in LLCP_GetRemoteVersion()
1550 if (llcp_cb.lcb.link_state == LLCP_LINK_STATE_ACTIVATED) in LLCP_GetRemoteVersion()
1551 return (llcp_cb.lcb.peer_version); in LLCP_GetRemoteVersion()
1571 if (llcp_cb.lcb.link_state == LLCP_LINK_STATE_ACTIVATED) in LLCP_GetLinkMIU()
1573 *p_local_link_miu = llcp_cb.lcb.local_link_miu; in LLCP_GetLinkMIU()
1574 *p_remote_link_miu = llcp_cb.lcb.effective_miu; in LLCP_GetLinkMIU()
1606 if (llcp_cb.lcb.link_state != LLCP_LINK_STATE_ACTIVATED) in LLCP_DiscoverService()
1619 if ((llcp_cb.lcb.agreed_major_version == 0x01) && (llcp_cb.lcb.agreed_minor_version < 0x01)) in LLCP_DiscoverService()
1627 if (!llcp_cb.sdp_cb.transac[i].p_cback) in LLCP_DiscoverService()
1629 llcp_cb.sdp_cb.transac[i].tid = llcp_cb.sdp_cb.next_tid; in LLCP_DiscoverService()
1630 llcp_cb.sdp_cb.next_tid++; in LLCP_DiscoverService()
1631 llcp_cb.sdp_cb.transac[i].p_cback = p_cback; in LLCP_DiscoverService()
1633 status = llcp_sdp_send_sdreq (llcp_cb.sdp_cb.transac[i].tid, p_name); in LLCP_DiscoverService()
1637 llcp_cb.sdp_cb.transac[i].p_cback = NULL; in LLCP_DiscoverService()
1640 *p_tid = llcp_cb.sdp_cb.transac[i].tid; in LLCP_DiscoverService()