Lines Matching refs:fcs
295 u8 fcs; member
473 static inline u8 gsm_fcs_add(u8 fcs, u8 c) in gsm_fcs_add() argument
475 return gsm_fcs8[fcs ^ c]; in gsm_fcs_add()
488 static inline u8 gsm_fcs_add_block(u8 fcs, u8 *c, int len) in gsm_fcs_add_block() argument
491 fcs = gsm_fcs8[fcs ^ *c++]; in gsm_fcs_add_block()
492 return fcs; in gsm_fcs_add_block()
1097 u8 *fcs = dp + msg->len; in __gsm_data_queue() local
1114 *fcs = gsm_fcs_add_block(INIT_FCS, dp , msg->data - dp); in __gsm_data_queue()
1117 *fcs = gsm_fcs_add_block(*fcs, msg->data, msg->len); in __gsm_data_queue()
1118 *fcs = 0xFF - *fcs; in __gsm_data_queue()
2761 if (gsm->fcs != GOOD_FCS) { in gsm_queue()
2764 pr_debug("BAD FCS %02x\n", gsm->fcs); in gsm_queue()
2895 gsm->fcs = INIT_FCS; in gsm0_receive()
2899 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
2904 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
2909 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
2926 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
2948 gsm->fcs = gsm_fcs_add_block(gsm->fcs, gsm->buf, in gsm0_receive()
2955 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
3030 gsm->fcs = gsm_fcs_add_block(gsm->fcs, gsm->buf, in gsm1_receive()
3034 gsm->fcs = gsm_fcs_add(gsm->fcs, gsm->buf[gsm->count]); in gsm1_receive()
3068 gsm->fcs = INIT_FCS; in gsm1_receive()
3071 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm1_receive()
3076 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm1_receive()