/Zephyr-latest/tests/unit/crc/ |
D | main.c | 217 uint8_t fcs, expected; in ZTEST() local 226 fcs = crc8(test0, sizeof(test0), 0x00, 0x00, false); in ZTEST() 228 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST() 230 fcs = crc8(test0, sizeof(test0), 0x31, 0x00, false); in ZTEST() 232 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST() 234 fcs = crc8(test1, sizeof(test1), 0x07, 0x00, false); in ZTEST() 236 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST() 238 fcs = crc8(test1, sizeof(test1), 0x31, 0xff, false); in ZTEST() 240 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST() 242 fcs = crc8(test1, sizeof(test1), 0x07, 0x00, false); in ZTEST() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | rfcomm.c | 107 uint8_t fcs = 0xff; in rfcomm_calc_fcs() local 110 fcs = rfcomm_crc_table[fcs ^ *data++]; in rfcomm_calc_fcs() 114 return (0xff - fcs); in rfcomm_calc_fcs() 120 uint8_t fcs = 0xff; in rfcomm_check_fcs() local 123 fcs = rfcomm_crc_table[fcs ^ *data++]; in rfcomm_check_fcs() 127 fcs = rfcomm_crc_table[fcs ^ recvd_fcs]; in rfcomm_check_fcs() 130 return (fcs == 0xcf); in rfcomm_check_fcs() 335 uint8_t cr, fcs; in rfcomm_send_sabm() local 345 fcs = rfcomm_calc_fcs(BT_RFCOMM_FCS_LEN_NON_UIH, buf->data); in rfcomm_send_sabm() 346 net_buf_add_u8(buf, fcs); in rfcomm_send_sabm() [all …]
|
/Zephyr-latest/tests/net/ppp/driver/src/ |
D | main.c | 268 static bool check_fcs(struct net_pkt *pkt, uint16_t *fcs) in check_fcs() argument 287 *fcs = crc; in check_fcs() 319 uint16_t fcs = 0; in ppp_verify_fcs() local 348 ret = check_fcs(pkt, &fcs); in ppp_verify_fcs() 350 0xf0b8, fcs); in ppp_verify_fcs() 360 static bool calc_fcs(struct net_pkt *pkt, uint16_t *fcs) in calc_fcs() argument 381 *fcs = crc; in calc_fcs() 390 uint16_t pkt_fcs, fcs = 0; in ppp_calc_fcs() local 425 ret = calc_fcs(pkt, &fcs); in ppp_calc_fcs() 428 zassert_equal(pkt_fcs, fcs, "FCS calc failed, expecting 0x%x got 0x%x", in ppp_calc_fcs() [all …]
|
/Zephyr-latest/tests/subsys/modem/modem_ppp/src/ |
D | main.c | 211 uint16_t fcs; in test_modem_ppp_generate_ppp_frame() local 216 fcs = crc16_ccitt(0xFFFF, &byte, 0x01); in test_modem_ppp_generate_ppp_frame() 226 fcs = crc16_ccitt(fcs, frame, size) ^ 0xFFFF; in test_modem_ppp_generate_ppp_frame() 228 frame[size - 2] = fcs >> 8; in test_modem_ppp_generate_ppp_frame() 229 frame[size - 1] = fcs; in test_modem_ppp_generate_ppp_frame()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | crypto.c | 548 uint8_t fcs = 0xff; in bt_mesh_fcs_calc() local 551 fcs = crc_table[fcs ^ *data++]; in bt_mesh_fcs_calc() 554 LOG_DBG("fcs 0x%02x", 0xff - fcs); in bt_mesh_fcs_calc() 556 return 0xff - fcs; in bt_mesh_fcs_calc() 563 uint8_t fcs = 0xff; in bt_mesh_fcs_check() local 566 fcs = crc_table[fcs ^ *data++]; in bt_mesh_fcs_check() 569 return crc_table[fcs ^ received_fcs] == 0xcf; in bt_mesh_fcs_check()
|
D | pb_adv.c | 88 uint8_t fcs; /* Expected FCS value */ member 417 if (!bt_mesh_fcs_check(link.rx.buf, link.rx.fcs)) { in prov_msg_recv() 606 link.rx.fcs = net_buf_simple_pull_u8(buf); in gen_prov_start() 609 link.rx.buf->len, link.rx.fcs); in gen_prov_start()
|
/Zephyr-latest/subsys/modem/ |
D | modem_cmux.c | 270 uint8_t fcs; in modem_cmux_transmit_frame() local 298 fcs = crc8_rohc(MODEM_CMUX_FCS_INIT_VALUE, &buf[1], (buf_idx - 1)); in modem_cmux_transmit_frame() 302 fcs = 0xFF - fcs; in modem_cmux_transmit_frame() 304 fcs = 0xFF - crc8_rohc(fcs, frame->data, data_len); in modem_cmux_transmit_frame() 314 buf[0] = fcs; in modem_cmux_transmit_frame() 729 uint8_t fcs; in modem_cmux_process_received_byte() local 855 fcs = crc8_rohc(MODEM_CMUX_FCS_INIT_VALUE, cmux->frame_header, in modem_cmux_process_received_byte() 858 fcs = 0xFF - fcs; in modem_cmux_process_received_byte() 860 fcs = 0xFF - crc8_rohc(fcs, cmux->frame.data, cmux->frame.data_len); in modem_cmux_process_received_byte() 864 if (fcs != byte) { in modem_cmux_process_received_byte()
|
D | modem_ppp.c | 27 static uint16_t modem_ppp_fcs_update(uint16_t fcs, uint8_t byte) in modem_ppp_fcs_update() argument 29 return crc16_ccitt(fcs, &byte, 1); in modem_ppp_fcs_update() 32 static uint16_t modem_ppp_fcs_final(uint16_t fcs) in modem_ppp_fcs_final() argument 34 return fcs ^ 0xFFFF; in modem_ppp_fcs_final()
|
/Zephyr-latest/dts/arm/xilinx/ |
D | zynqmp.dtsi | 126 discard-rx-fcs; 153 discard-rx-fcs; 180 discard-rx-fcs; 207 discard-rx-fcs;
|
D | zynq7000.dtsi | 73 discard-rx-fcs; 100 discard-rx-fcs;
|
/Zephyr-latest/drivers/adc/ |
D | adc_rpi_pico.c | 85 hw_set_bits(&adc_hw->fcs, ADC_FCS_OVER_BITS); in adc_clear_errors() 86 hw_set_bits(&adc_hw->fcs, ADC_FCS_UNDER_BITS); in adc_clear_errors() 87 hw_set_bits(&adc_hw->fcs, ADC_FCS_ERR_BITS); in adc_clear_errors()
|
/Zephyr-latest/drivers/net/ |
D | ppp.c | 761 static bool calc_fcs(struct net_pkt *pkt, uint16_t *fcs, uint16_t protocol) in calc_fcs() argument 788 *fcs = crc; in calc_fcs() 811 uint16_t fcs, escaped; in ppp_send() local 839 if (!calc_fcs(pkt, &fcs, protocol)) { in ppp_send() 882 escaped = htons(ppp_escape_byte(fcs, &offset)); in ppp_send() 887 escaped = htons(ppp_escape_byte(fcs >> 8, &offset)); in ppp_send()
|
/Zephyr-latest/tests/drivers/build_all/gpio/ |
D | app.overlay | 154 compatible = "fcs,fxl6408";
|
/Zephyr-latest/dts/bindings/ |
D | vendor-prefixes.txt | 236 fcs Fairchild Semiconductor
|
/Zephyr-latest/doc/releases/ |
D | release-notes-2.7.rst | 846 :dtcompatible:`fcs,fxl6408`, :dtcompatible:`ilitek,ili9341`,
|