Home
last modified time | relevance | path

Searched refs:llcp_cb (Results 1 – 7 of 7) sorted by relevance

/system/nfc/src/nfc/llcp/
Dllcp_main.cc40 tLLCP_CB llcp_cb; variable
55 memset(&llcp_cb, 0, sizeof(tLLCP_CB)); in llcp_init()
59 llcp_cb.lcb.local_link_miu = in llcp_init()
61 llcp_cb.lcb.local_opt = LLCP_OPT_VALUE; in llcp_init()
62 llcp_cb.lcb.local_wt = LLCP_WAITING_TIME; in llcp_init()
63 llcp_cb.lcb.local_lto = LLCP_LTO_VALUE; in llcp_init()
65 llcp_cb.lcb.inact_timeout_init = LLCP_INIT_INACTIVITY_TIMEOUT; in llcp_init()
66 llcp_cb.lcb.inact_timeout_target = LLCP_TARGET_INACTIVITY_TIMEOUT; in llcp_init()
67 llcp_cb.lcb.symm_delay = LLCP_DELAY_RESP_TIME; in llcp_init()
68 llcp_cb.lcb.data_link_timeout = LLCP_DATA_LINK_CONNECTION_TOUT; in llcp_init()
[all …]
Dllcp_sdp.cc71 if (llcp_cb.sdp_cb.p_snl) { in llcp_sdp_check_send_snl()
74 llcp_cb.sdp_cb.p_snl->len += LLCP_PDU_HEADER_SIZE; in llcp_sdp_check_send_snl()
75 llcp_cb.sdp_cb.p_snl->offset -= LLCP_PDU_HEADER_SIZE; in llcp_sdp_check_send_snl()
77 p = (uint8_t*)(llcp_cb.sdp_cb.p_snl + 1) + llcp_cb.sdp_cb.p_snl->offset; in llcp_sdp_check_send_snl()
81 GKI_enqueue(&llcp_cb.lcb.sig_xmit_q, llcp_cb.sdp_cb.p_snl); in llcp_sdp_check_send_snl()
82 llcp_cb.sdp_cb.p_snl = nullptr; in llcp_sdp_check_send_snl()
86 if (llcp_cb.p_dta_cback && llcp_cb.dta_snl_resp) { in llcp_sdp_check_send_snl()
87 llcp_cb.dta_snl_resp = false; in llcp_sdp_check_send_snl()
88 (*llcp_cb.p_dta_cback)(); in llcp_sdp_check_send_snl()
107 p = (uint8_t*)(llcp_cb.sdp_cb.p_snl + 1) + llcp_cb.sdp_cb.p_snl->offset + in llcp_sdp_add_sdreq()
[all …]
Dllcp_link.cc100 if ((llcp_cb.lcb.inact_timer.in_use == false) && in llcp_link_start_inactivity_timer()
101 (llcp_cb.lcb.inact_timeout > 0)) { in llcp_link_start_inactivity_timer()
103 "Start inactivity_timer: %d ms", llcp_cb.lcb.inact_timeout); in llcp_link_start_inactivity_timer()
105 nfc_start_quick_timer(&llcp_cb.lcb.inact_timer, NFC_TTYPE_LLCP_LINK_INACT, in llcp_link_start_inactivity_timer()
106 ((uint32_t)llcp_cb.lcb.inact_timeout) * in llcp_link_start_inactivity_timer()
121 if (llcp_cb.lcb.inact_timer.in_use) { in llcp_link_stop_inactivity_timer()
124 nfc_stop_quick_timer(&llcp_cb.lcb.inact_timer); in llcp_link_stop_inactivity_timer()
138 if (llcp_cb.lcb.symm_state == LLCP_LINK_SYMM_LOCAL_XMIT_NEXT) { in llcp_link_start_link_timer()
141 &llcp_cb.lcb.timer, NFC_TTYPE_LLCP_LINK_MANAGER, in llcp_link_start_link_timer()
142 (((uint32_t)llcp_cb.lcb.symm_delay) * QUICK_TIMER_TICKS_PER_SEC) / in llcp_link_start_link_timer()
[all …]
Dllcp_util.cc70 BE_STREAM_TO_UINT8(llcp_cb.lcb.peer_version, p); in llcp_util_parse_link_params()
72 << StringPrintf("Peer Version - 0x%02X", llcp_cb.lcb.peer_version); in llcp_util_parse_link_params()
81 BE_STREAM_TO_UINT16(llcp_cb.lcb.peer_miu, p); in llcp_util_parse_link_params()
82 llcp_cb.lcb.peer_miu &= LLCP_MIUX_MASK; in llcp_util_parse_link_params()
83 llcp_cb.lcb.peer_miu += LLCP_DEFAULT_MIU; in llcp_util_parse_link_params()
85 << StringPrintf("Peer MIU - %d bytes", llcp_cb.lcb.peer_miu); in llcp_util_parse_link_params()
94 BE_STREAM_TO_UINT16(llcp_cb.lcb.peer_wks, p); in llcp_util_parse_link_params()
96 << StringPrintf("Peer WKS - 0x%04X", llcp_cb.lcb.peer_wks); in llcp_util_parse_link_params()
105 BE_STREAM_TO_UINT8(llcp_cb.lcb.peer_lto, p); in llcp_util_parse_link_params()
106 llcp_cb.lcb.peer_lto *= LLCP_LTO_UNIT; /* 10ms unit */ in llcp_util_parse_link_params()
[all …]
Dllcp_api.cc75 llcp_cb.p_dta_cback = p_dta_cback; in LLCP_RegisterDtaCback()
129 llcp_cb.lcb.local_link_miu = LLCP_MIU; in LLCP_SetConfig()
131 llcp_cb.lcb.local_link_miu = link_miu; in LLCP_SetConfig()
133 llcp_cb.lcb.local_opt = opt; in LLCP_SetConfig()
134 llcp_cb.lcb.local_wt = wt; in LLCP_SetConfig()
141 llcp_cb.lcb.local_lto = LLCP_DEFAULT_LTO_IN_MS; in LLCP_SetConfig()
147 llcp_cb.lcb.local_lto = LLCP_MAX_LTO_IN_MS; in LLCP_SetConfig()
149 llcp_cb.lcb.local_lto = link_timeout; in LLCP_SetConfig()
151 llcp_cb.lcb.inact_timeout_init = inact_timeout_init; in LLCP_SetConfig()
152 llcp_cb.lcb.inact_timeout_target = inact_timeout_target; in LLCP_SetConfig()
[all …]
Dllcp_dlc.cc135 (uint32_t)(llcp_cb.lcb.data_link_timeout * in llcp_dlsm_idle()
146 if (p_params->miu > llcp_cb.lcb.peer_miu) { in llcp_dlsm_idle()
150 p_params->miu = llcp_cb.lcb.peer_miu; in llcp_dlsm_idle()
171 (uint32_t)(llcp_cb.lcb.data_link_timeout * in llcp_dlsm_idle()
214 if (p_params->miu > llcp_cb.lcb.peer_miu) { in llcp_dlsm_w4_remote_resp()
218 p_params->miu = llcp_cb.lcb.peer_miu; in llcp_dlsm_w4_remote_resp()
238 if (llcp_cb.overall_rx_congested) { in llcp_dlsm_w4_remote_resp()
313 if (llcp_cb.overall_rx_congested) { in llcp_dlsm_w4_local_resp()
404 (uint32_t)(llcp_cb.lcb.data_link_timeout * in llcp_dlsm_connected()
438 llcp_cb.total_tx_i_pdu++; in llcp_dlsm_connected()
[all …]
/system/nfc/src/nfc/include/
Dllcp_int.h289 extern tLLCP_CB llcp_cb;