Lines Matching refs:fcs
296 u8 fcs; member
474 static inline u8 gsm_fcs_add(u8 fcs, u8 c) in gsm_fcs_add() argument
476 return gsm_fcs8[fcs ^ c]; in gsm_fcs_add()
489 static inline u8 gsm_fcs_add_block(u8 fcs, u8 *c, int len) in gsm_fcs_add_block() argument
492 fcs = gsm_fcs8[fcs ^ *c++]; in gsm_fcs_add_block()
493 return fcs; in gsm_fcs_add_block()
1098 u8 *fcs = dp + msg->len; in __gsm_data_queue() local
1115 *fcs = gsm_fcs_add_block(INIT_FCS, dp , msg->data - dp); in __gsm_data_queue()
1118 *fcs = gsm_fcs_add_block(*fcs, msg->data, msg->len); in __gsm_data_queue()
1119 *fcs = 0xFF - *fcs; in __gsm_data_queue()
2762 if (gsm->fcs != GOOD_FCS) { in gsm_queue()
2765 pr_debug("BAD FCS %02x\n", gsm->fcs); in gsm_queue()
2896 gsm->fcs = INIT_FCS; in gsm0_receive()
2900 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
2905 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
2910 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
2927 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
2949 gsm->fcs = gsm_fcs_add_block(gsm->fcs, gsm->buf, in gsm0_receive()
2956 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm0_receive()
3031 gsm->fcs = gsm_fcs_add_block(gsm->fcs, gsm->buf, in gsm1_receive()
3035 gsm->fcs = gsm_fcs_add(gsm->fcs, gsm->buf[gsm->count]); in gsm1_receive()
3069 gsm->fcs = INIT_FCS; in gsm1_receive()
3072 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm1_receive()
3077 gsm->fcs = gsm_fcs_add(gsm->fcs, c); in gsm1_receive()