/system/bt/stack/rfcomm/ |
D | rfc_utils.cc | 89 uint8_t fcs = 0xFF; in rfc_calc_fcs() local 92 fcs = rfc_crctable[fcs ^ *p++]; in rfc_calc_fcs() 96 return (0xFF - fcs); in rfc_calc_fcs() 112 uint8_t fcs = 0xFF; in rfc_check_fcs() local 115 fcs = rfc_crctable[fcs ^ *p++]; in rfc_check_fcs() 119 fcs = rfc_crctable[fcs ^ received_fcs]; in rfc_check_fcs() 122 return (fcs == 0xCF); in rfc_check_fcs()
|
D | rfc_ts_frames.cc | 509 uint8_t ead, eal, fcs; in rfc_parse_data() local 563 fcs = *(p_data + len); in rfc_parse_data() 573 !rfc_check_fcs(RFCOMM_CTRL_FRAME_LEN, p_start, fcs)) { in rfc_parse_data() 582 !rfc_check_fcs(RFCOMM_CTRL_FRAME_LEN, p_start, fcs)) { in rfc_parse_data() 591 !rfc_check_fcs(RFCOMM_CTRL_FRAME_LEN, p_start, fcs)) { in rfc_parse_data() 600 !rfc_check_fcs(RFCOMM_CTRL_FRAME_LEN, p_start, fcs)) { in rfc_parse_data() 610 } else if (!rfc_check_fcs(2, p_start, fcs)) { in rfc_parse_data()
|
/system/bt/gd/l2cap/classic/cert/ |
D | l2cap_test.py | 73 fcs=None): argument 76 cert_channel = self.cert_l2cap.open_channel(signal_id, psm, scid, fcs=fcs) 85 fcs=None, argument 92 if rsp_config_options is None and fcs is not None: 94 options=CertL2cap.config_option_ertm(fcs=fcs)) 96 …channel, cert_channel) = self._open_unconfigured_channel_from_cert(signal_id, scid, psm, mode, fcs) 99 fcs=fcs) if mode == RetransmissionFlowControlMode.ERTM else [] 156 mode=RetransmissionFlowControlMode.ERTM, fcs=FcsType.NO_FCS) 539 mode=RetransmissionFlowControlMode.ERTM, fcs=FcsType.NO_FCS) 553 mode=RetransmissionFlowControlMode.ERTM, fcs=FcsType.DEFAULT) [all …]
|
D | cert_l2cap.py | 42 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: 198 def open_channel(self, signal_id, psm, scid, fcs=None): argument 205 self.control_channel, fcs) 210 def verify_and_respond_open_channel_from_remote(self, psm=0x33, scid=None, fcs=None): argument 219 …tL2capChannel(self._device, scid, dcid, self._acl.acl_stream, self._acl, self.control_channel, fcs) 295 fcs=None, argument 305 if fcs is not None: [all …]
|
D | l2cap_performance_test.py | 101 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/ |
D | matchers.py | 231 … lambda packet: L2capMatchers._is_matching_information_frame(packet, tx_seq, payload, f, fcs=False) 235 …n lambda packet: L2capMatchers._is_matching_information_frame(packet, tx_seq, payload, f, fcs=True) 239 …a packet: L2capMatchers._is_matching_information_start_frame(packet, tx_seq, payload, f, fcs=False) 356 def _is_matching_information_frame(packet, tx_seq, payload, f, fcs=False): argument 357 if fcs: 372 def _is_matching_information_start_frame(packet, tx_seq, payload, f, fcs=False): argument 373 if fcs:
|
/system/bt/stack/l2cap/ |
D | l2c_fcr.cc | 414 uint16_t fcs; in prepare_I_frame() local 458 fcs = l2c_fcr_tx_get_fcs(p_buf); in prepare_I_frame() 467 UINT16_TO_STREAM(p, fcs); in prepare_I_frame() 511 uint16_t fcs; in l2c_fcr_send_S_frame() local 545 fcs = l2c_fcr_tx_get_fcs(p_buf); in l2c_fcr_send_S_frame() 547 UINT16_TO_STREAM(p, fcs); in l2c_fcr_send_S_frame() 604 uint16_t fcs; in l2c_fcr_proc_pdu() local 674 STREAM_TO_UINT16(fcs, p); in l2c_fcr_proc_pdu() 677 if (l2c_fcr_rx_get_fcs(p_buf) != fcs) { in l2c_fcr_proc_pdu() 1335 uint16_t fcs; in process_stream_frame() local [all …]
|
D | l2c_main.cc | 548 STREAM_TO_UINT8(cfg_info.fcs, p); in process_l2cap_cmd() 662 STREAM_TO_UINT8(cfg_info.fcs, p); in process_l2cap_cmd()
|
D | l2c_utils.cc | 611 UINT8_TO_STREAM(p, p_cfg->fcs); in l2cu_send_peer_config_req() 2029 if (p_cfg->fcs_present && p_cfg->fcs == L2CAP_CFG_FCS_BYPASS) in l2cu_process_our_cfg_req()
|
/system/bt/gd/l2cap/ |
D | Android.bp | 4 "fcs.cc",
|
D | l2cap_packets.pdl | 12 _checksum_start_(fcs), 16 fcs : Fcs,
|
/system/bt/stack/include/ |
D | l2c_api.h | 144 uint8_t fcs; /* '0' if desire is to bypass FCS, otherwise '1' */ member
|
/system/bt/gd/ |
D | Android.bp | 734 "l2cap/fcs.cc",
|