Home | History | Annotate | Download | only in llcp

Lines Matching full:llcp_cb

79     llcp_cb.p_dta_cback = p_dta_cback;
134 llcp_cb.lcb.local_link_miu = LLCP_MIU;
137 llcp_cb.lcb.local_link_miu = link_miu;
139 llcp_cb.lcb.local_opt = opt;
140 llcp_cb.lcb.local_wt = wt;
146 llcp_cb.lcb.local_lto = LLCP_DEFAULT_LTO_IN_MS;
152 llcp_cb.lcb.local_lto = LLCP_MAX_LTO_IN_MS;
155 llcp_cb.lcb.local_lto = link_timeout;
157 llcp_cb.lcb.inact_timeout_init = inact_timeout_init;
158 llcp_cb.lcb.inact_timeout_target = inact_timeout_target;
159 llcp_cb.lcb.symm_delay = symm_delay;
160 llcp_cb.lcb.data_link_timeout = data_link_timeout;
161 llcp_cb.lcb.delay_first_pdu_timeout = delay_first_pdu_timeout;
192 *p_link_miu = llcp_cb.lcb.local_link_miu;
193 *p_opt = llcp_cb.lcb.local_opt;
194 *p_wt = llcp_cb.lcb.local_wt;
195 *p_link_timeout = llcp_cb.lcb.local_lto;
196 *p_inact_timeout_init = llcp_cb.lcb.inact_timeout_init;
197 *p_inact_timeout_target = llcp_cb.lcb.inact_timeout_target;
198 *p_symm_delay = llcp_cb.lcb.symm_delay;
199 *p_data_link_timeout = llcp_cb.lcb.data_link_timeout;
200 *p_delay_first_pdu_timeout = llcp_cb.lcb.delay_first_pdu_timeout;
247 *p_wt = llcp_cb.lcb.local_wt;
260 UINT16_TO_BE_STREAM (p, (llcp_cb.lcb.local_link_miu - LLCP_DEFAULT_MIU));
266 UINT16_TO_BE_STREAM (p, llcp_cb.lcb.wks);
279 UINT16_TO_BE_STREAM (p, (llcp_cb.lcb.local_link_miu - LLCP_DEFAULT_MIU));
283 UINT16_TO_BE_STREAM (p, llcp_cb.lcb.wks);
288 UINT8_TO_BE_STREAM (p, (llcp_cb.lcb.local_lto/LLCP_LTO_UNIT));
292 UINT8_TO_BE_STREAM (p, llcp_cb.lcb.local_opt);
314 LLCP_TRACE_API1 ("LLCP_ActivateLink () link_state = %d", llcp_cb.lcb.link_state);
316 if ( (llcp_cb.lcb.link_state == LLCP_LINK_STATE_DEACTIVATED)
319 llcp_cb.lcb.p_link_cback = p_link_cback;
340 LLCP_TRACE_API1 ("LLCP_DeactivateLink () link_state = %d", llcp_cb.lcb.link_state);
342 if (llcp_cb.lcb.link_state != LLCP_LINK_STATE_DEACTIVATED)
397 if (llcp_cb.server_cb[sap].p_app_cback == NULL)
399 p_app_cb = &llcp_cb.server_cb[sap];
423 else if (llcp_cb.wks_cb[reg_sap].p_app_cback)
430 p_app_cb = &llcp_cb.wks_cb[reg_sap];
440 llcp_cb.server_cb[reg_sap - LLCP_LOWER_BOUND_SDP_SAP].p_app_cback)
447 p_app_cb = &llcp_cb.server_cb[reg_sap - LLCP_LOWER_BOUND_SDP_SAP];
486 llcp_cb.lcb.wks |= (1 << reg_sap);
493 llcp_cb.num_logical_data_link++;
537 if (llcp_cb.client_cb[sap].p_app_cback == NULL)
539 p_app_cb = &llcp_cb.client_cb[sap];
560 llcp_cb.num_logical_data_link++;
598 llcp_cb.lcb.wks &= ~ (1 << local_sap);
603 llcp_cb.total_rx_ui_pdu = 0;
608 if ( (llcp_cb.dlcb[idx].state != LLCP_DLC_STATE_IDLE)
609 &&(llcp_cb.dlcb[idx].local_sap == local_sap) )
611 llcp_util_deallocate_data_link (&llcp_cb.dlcb[idx]);
621 llcp_cb.total_tx_ui_pdu--;
626 llcp_cb.num_logical_data_link--;
658 if ( (llcp_cb.lcb.link_state != LLCP_LINK_STATE_ACTIVATED)
666 else if ( (num_pending_ui_pdu + p_app_cb->ui_xmit_q.count >= llcp_cb.ll_tx_congest_start)
667 ||(total_pending_ui_pdu + llcp_cb.total_tx_ui_pdu >= llcp_cb.max_num_ll_tx_buff)
668 ||(total_pending_ui_pdu + total_pending_i_pdu + llcp_cb.total_tx_ui_pdu + llcp_cb.total_tx_i_pdu >= llcp_cb.max_num_tx_buff) )
710 else if (llcp_cb.lcb.link_state != LLCP_LINK_STATE_ACTIVATED)
714 else if ( (llcp_cb.lcb.peer_opt == LLCP_LSC_UNKNOWN)
715 ||(llcp_cb.lcb.peer_opt & LLCP_LSC_1) )
717 if (p_buf->len <= llcp_cb.lcb.peer_miu)
825 llcp_cb.total_rx_ui_pdu--;
894 llcp_cb.total_rx_ui_pdu--;
931 if ( (llcp_cb.lcb.peer_opt != LLCP_LSC_UNKNOWN)
932 &&((llcp_cb.lcb.peer_opt & LLCP_LSC_2) == 0) )
964 if ((p_params) && (p_params->miu > llcp_cb.lcb.local_link_miu))
1028 else if (p_params->miu > llcp_cb.lcb.local_link_miu)
1122 ||(total_pending_ui_pdu + total_pending_i_pdu + llcp_cb.total_tx_ui_pdu + llcp_cb.total_tx_i_pdu >= llcp_cb.max_num_tx_buff) )
1267 llcp_cb.total_rx_i_pdu--;
1347 llcp_cb.total_rx_i_pdu--;
1509 (llcp_cb.lcb.link_state == LLCP_LINK_STATE_ACTIVATED) ? llcp_cb.lcb.peer_wks :0);
1511 if (llcp_cb.lcb.link_state == LLCP_LINK_STATE_ACTIVATED)
1512 return (llcp_cb.lcb.peer_wks);
1530 (llcp_cb.lcb.link_state == LLCP_LINK_STATE_ACTIVATED)
1531 ? llcp_cb.lcb.peer_opt & (LLCP_LSC_1 | LLCP_LSC_2) :0);
1533 if (llcp_cb.lcb.link_state == LLCP_LINK_STATE_ACTIVATED)
1534 return (llcp_cb.lcb.peer_opt & (LLCP_LSC_1 | LLCP_LSC_2));
1554 if (llcp_cb.lcb.link_state == LLCP_LINK_STATE_ACTIVATED)
1556 *p_local_link_miu = llcp_cb.lcb.local_link_miu;
1557 *p_remote_link_miu = llcp_cb.lcb.effective_miu;
1589 if (llcp_cb.lcb.link_state != LLCP_LINK_STATE_ACTIVATED)
1602 if ((llcp_cb.lcb.agreed_major_version == 0x01) && (llcp_cb.lcb.agreed_minor_version < 0x01))
1610 if (!llcp_cb.sdp_cb.transac[i].p_cback)
1612 llcp_cb.sdp_cb.transac[i].tid = llcp_cb.sdp_cb.next_tid;
1613 llcp_cb.sdp_cb.next_tid++;
1614 llcp_cb.sdp_cb.transac[i].p_cback = p_cback;
1616 status = llcp_sdp_send_sdreq (llcp_cb.sdp_cb.transac[i].tid, p_name);
1620 llcp_cb.sdp_cb.transac[i].p_cback = NULL;
1623 *p_tid = llcp_cb.sdp_cb.transac[i].tid;