Lines Matching refs:fcs
225 u8 fcs; member
382 static inline u8 gsm_fcs_add(u8 fcs, u8 c) in gsm_fcs_add() argument
384 return gsm_fcs8[fcs ^ c]; in gsm_fcs_add()
397 static inline u8 gsm_fcs_add_block(u8 fcs, u8 *c, int len) in gsm_fcs_add_block() argument
400 fcs = gsm_fcs8[fcs ^ *c++]; in gsm_fcs_add_block()
401 return fcs; in gsm_fcs_add_block()
735 u8 *fcs = dp + msg->len; in __gsm_data_queue() local
752 *fcs = gsm_fcs_add_block(INIT_FCS, dp , msg->data - dp); in __gsm_data_queue()
755 *fcs = gsm_fcs_add_block(*fcs, msg->data, msg->len); in __gsm_data_queue()
756 *fcs = 0xFF - *fcs; in __gsm_data_queue()
1742 gsm->fcs = gsm_fcs_add_block(gsm->fcs, gsm->buf, gsm->len); in gsm_queue()
1747 gsm->fcs = gsm_fcs_add(gsm->fcs, gsm->received_fcs); in gsm_queue()
1749 if (gsm->fcs != GOOD_FCS) { in gsm_queue()
1752 pr_debug("BAD FCS %02x\n", gsm->fcs); in gsm_queue()
1855 gsm->fcs = INIT_FCS; in gsm0_receive()
1859 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
1864 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
1869 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
1886 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
1935 gsm->fcs = gsm_fcs_add(gsm->fcs, gsm->buf[gsm->count]); in gsm1_receive()
1968 gsm->fcs = INIT_FCS; in gsm1_receive()
1971 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm1_receive()
1976 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm1_receive()