Home
last modified time | relevance | path

Searched refs:fcs (Results 1 – 14 of 14) sorted by relevance

/system/bt/stack/rfcomm/
Drfc_utils.cc88 uint8_t fcs = 0xFF; in rfc_calc_fcs() local
91 fcs = rfc_crctable[fcs ^ *p++]; in rfc_calc_fcs()
95 return (0xFF - fcs); in rfc_calc_fcs()
111 uint8_t fcs = 0xFF; in rfc_check_fcs() local
114 fcs = rfc_crctable[fcs ^ *p++]; in rfc_check_fcs()
118 fcs = rfc_crctable[fcs ^ received_fcs]; in rfc_check_fcs()
121 return (fcs == 0xCF); in rfc_check_fcs()
Drfc_ts_frames.cc510 uint8_t ead, eal, fcs; in rfc_parse_data() local
564 fcs = *(p_data + len); in rfc_parse_data()
574 !rfc_check_fcs(RFCOMM_CTRL_FRAME_LEN, p_start, fcs)) { in rfc_parse_data()
583 !rfc_check_fcs(RFCOMM_CTRL_FRAME_LEN, p_start, fcs)) { in rfc_parse_data()
592 !rfc_check_fcs(RFCOMM_CTRL_FRAME_LEN, p_start, fcs)) { in rfc_parse_data()
601 !rfc_check_fcs(RFCOMM_CTRL_FRAME_LEN, p_start, fcs)) { in rfc_parse_data()
611 } else if (!rfc_check_fcs(2, p_start, fcs)) { in rfc_parse_data()
/system/bt/gd/l2cap/classic/cert/
Dl2cap_test.py74 fcs=None): argument
77 cert_channel = self.cert_l2cap.open_channel(signal_id, psm, scid, fcs=fcs)
86 fcs=None, argument
93 if rsp_config_options is None and fcs is not None:
95 options=CertL2cap.config_option_ertm(fcs=fcs))
97 …channel, cert_channel) = self._open_unconfigured_channel_from_cert(signal_id, scid, psm, mode, fcs)
100 fcs=fcs) if mode == RetransmissionFlowControlMode.ERTM else []
157 mode=RetransmissionFlowControlMode.ERTM, fcs=FcsType.NO_FCS)
540 mode=RetransmissionFlowControlMode.ERTM, fcs=FcsType.NO_FCS)
554 mode=RetransmissionFlowControlMode.ERTM, fcs=FcsType.DEFAULT)
[all …]
Dcert_l2cap.py42 def __init__(self, device, scid, dcid, acl_stream, acl, control_channel, fcs=None): argument
51 if fcs == l2cap_packets.FcsType.DEFAULT:
72 fcs=False): argument
73 if fcs == l2cap_packets.FcsType.DEFAULT:
202 def open_channel(self, signal_id, psm, scid, fcs=None): argument
209 self.control_channel, fcs)
214 def verify_and_respond_open_channel_from_remote(self, psm=0x33, scid=None, fcs=None): argument
223 …tL2capChannel(self._device, scid, dcid, self._acl.acl_stream, self._acl, self.control_channel, fcs)
299 fcs=None, argument
309 if fcs is not None:
[all …]
Dl2cap_performance_test.py101 config = CertL2cap.config_option_ertm(fcs=FcsType.NO_FCS, tx_window_size=tx_window_size)
105 fcs=FcsType.NO_FCS,
129 config = CertL2cap.config_option_ertm(fcs=FcsType.NO_FCS, tx_window_size=tx_window_size)
133 fcs=FcsType.NO_FCS,
/system/bt/gd/cert/
Dmatchers.py345 … lambda packet: L2capMatchers._is_matching_information_frame(packet, tx_seq, payload, f, fcs=False)
349 …n lambda packet: L2capMatchers._is_matching_information_frame(packet, tx_seq, payload, f, fcs=True)
353 …a packet: L2capMatchers._is_matching_information_start_frame(packet, tx_seq, payload, f, fcs=False)
470 def _is_matching_information_frame(packet, tx_seq, payload, f, fcs=False): argument
471 if fcs:
486 def _is_matching_information_start_frame(packet, tx_seq, payload, f, fcs=False): argument
487 if fcs:
/system/bt/stack/l2cap/
Dl2c_fcr.cc296 uint16_t fcs; in prepare_I_frame() local
339 fcs = l2c_fcr_tx_get_fcs(p_buf); in prepare_I_frame()
348 UINT16_TO_STREAM(p, fcs); in prepare_I_frame()
391 uint16_t fcs; in l2c_fcr_send_S_frame() local
420 fcs = l2c_fcr_tx_get_fcs(p_buf); in l2c_fcr_send_S_frame()
422 UINT16_TO_STREAM(p, fcs); in l2c_fcr_send_S_frame()
474 uint16_t fcs; in l2c_fcr_proc_pdu() local
536 STREAM_TO_UINT16(fcs, p); in l2c_fcr_proc_pdu()
539 if (l2c_fcr_rx_get_fcs(p_buf) != fcs) { in l2c_fcr_proc_pdu()
1841 p_ccb->peer_cfg.fcs = p_cfg->fcs; in l2c_fcr_process_peer_cfg_req()
Dl2c_main.cc570 STREAM_TO_UINT8(cfg_info.fcs, p); in process_l2cap_cmd()
705 STREAM_TO_UINT8(cfg_info.fcs, p); in process_l2cap_cmd()
Dl2c_utils.cc637 UINT8_TO_STREAM(p, p_cfg->fcs); in l2cu_send_peer_config_req()
/system/bt/gd/l2cap/
DBUILD.gn32 "fcs.cc",
DAndroid.bp13 "fcs.cc",
Dl2cap_packets.pdl12 _checksum_start_(fcs),
16 fcs : Fcs,
/system/bt/stack/include/
Dl2c_api.h157 uint8_t fcs; /* '0' if desire is to bypass FCS, otherwise '1' */ member
/system/bt/gd/
DAndroid.bp966 "l2cap/fcs.cc",