Lines Matching full:fcs
57 /* then we should see this FCS checked PPP data */
87 /* There is FCS error in this packet */
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()
349 zassert_true(ret, "FCS calc failed, expecting 0x%x got 0x%x", 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
422 /* Skip FCS and sync bytes (2 + 1) */ in ppp_calc_fcs()
425 ret = calc_fcs(pkt, &fcs); in ppp_calc_fcs()
426 zassert_true(ret, "FCS calc failed"); in ppp_calc_fcs()
428 zassert_equal(pkt_fcs, fcs, "FCS calc failed, expecting 0x%x got 0x%x", in ppp_calc_fcs()
429 pkt_fcs, fcs); in ppp_calc_fcs()