Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/blueberry/tests/gd/l2cap/classic/
Dl2cap_test.py72 fcs=None): argument
75 cert_channel = self.cert_l2cap.open_channel(signal_id, psm, scid, fcs=fcs)
84 fcs=None, argument
91 if rsp_config_options is None and fcs is not None:
93 options=CertL2cap.config_option_ertm(fcs=fcs))
95 …channel, cert_channel) = self._open_unconfigured_channel_from_cert(signal_id, scid, psm, mode, fcs)
98 fcs=fcs) if mode == RetransmissionFlowControlMode.ERTM else []
166 mode=RetransmissionFlowControlMode.ERTM, fcs=FcsType.NO_FCS)
550 mode=RetransmissionFlowControlMode.ERTM, fcs=FcsType.NO_FCS)
564 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.py109 config = CertL2cap.config_option_ertm(fcs=FcsType.NO_FCS, tx_window_size=tx_window_size)
113 fcs=FcsType.NO_FCS,
137 config = CertL2cap.config_option_ertm(fcs=FcsType.NO_FCS, tx_window_size=tx_window_size)
141 fcs=FcsType.NO_FCS,
/packages/modules/Bluetooth/system/stack/rfcomm/
Drfc_utils.cc85 uint8_t fcs = 0xFF; in rfc_calc_fcs() local
88 fcs = rfc_crctable[fcs ^ *p++]; in rfc_calc_fcs()
92 return (0xFF - fcs); in rfc_calc_fcs()
108 uint8_t fcs = 0xFF; in rfc_check_fcs() local
111 fcs = rfc_crctable[fcs ^ *p++]; in rfc_check_fcs()
115 fcs = rfc_crctable[fcs ^ received_fcs]; in rfc_check_fcs()
118 return (fcs == 0xCF); in rfc_check_fcs()
Drfc_ts_frames.cc514 uint8_t ead, eal, fcs; in rfc_parse_data() local
566 fcs = *(p_data + len); in rfc_parse_data()
576 !rfc_check_fcs(RFCOMM_CTRL_FRAME_LEN, p_start, fcs)) { in rfc_parse_data()
585 !rfc_check_fcs(RFCOMM_CTRL_FRAME_LEN, p_start, fcs)) { in rfc_parse_data()
594 !rfc_check_fcs(RFCOMM_CTRL_FRAME_LEN, p_start, fcs)) { in rfc_parse_data()
603 !rfc_check_fcs(RFCOMM_CTRL_FRAME_LEN, p_start, fcs)) { in rfc_parse_data()
613 } else if (!rfc_check_fcs(2, p_start, fcs)) { in rfc_parse_data()
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_fcr.cc294 uint16_t fcs; in prepare_I_frame() local
337 fcs = l2c_fcr_tx_get_fcs(p_buf); in prepare_I_frame()
346 UINT16_TO_STREAM(p, fcs); in prepare_I_frame()
389 uint16_t fcs; in l2c_fcr_send_S_frame() local
418 fcs = l2c_fcr_tx_get_fcs(p_buf); in l2c_fcr_send_S_frame()
420 UINT16_TO_STREAM(p, fcs); in l2c_fcr_send_S_frame()
472 uint16_t fcs; in l2c_fcr_proc_pdu() local
534 STREAM_TO_UINT16(fcs, p); in l2c_fcr_proc_pdu()
537 if (l2c_fcr_rx_get_fcs(p_buf) != fcs) { in l2c_fcr_proc_pdu()
1847 p_ccb->peer_cfg.fcs = p_cfg->fcs; in l2c_fcr_process_peer_cfg_req()
Dl2c_main.cc543 STREAM_TO_UINT8(cfg_info.fcs, p); in process_l2cap_cmd()
676 STREAM_TO_UINT8(cfg_info.fcs, p); in process_l2cap_cmd()
Dl2c_utils.cc639 UINT8_TO_STREAM(p, p_cfg->fcs); in l2cu_send_peer_config_req()
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dmatchers.py365 … lambda packet: L2capMatchers._is_matching_information_frame(packet, tx_seq, payload, f, fcs=False)
369 …n lambda packet: L2capMatchers._is_matching_information_frame(packet, tx_seq, payload, f, fcs=True)
373 …a packet: L2capMatchers._is_matching_information_start_frame(packet, tx_seq, payload, f, fcs=False)
490 def _is_matching_information_frame(packet, tx_seq, payload, f, fcs=False): argument
491 if fcs:
506 def _is_matching_information_start_frame(packet, tx_seq, payload, f, fcs=False): argument
507 if fcs:
/packages/modules/Bluetooth/system/gd/l2cap/
DBUILD.gn32 "fcs.cc",
DAndroid.bp13 "fcs.cc",
Dl2cap_packets.pdl12 _checksum_start_(fcs),
16 fcs : Fcs,
/packages/modules/Bluetooth/system/stack/include/
Dl2c_api.h169 uint8_t fcs; /* '0' if desire is to bypass FCS, otherwise '1' */ member
/packages/modules/Bluetooth/system/gd/
DAndroid.bp898 "l2cap/fcs.cc",