Searched refs:shift_in (Results 1 – 2 of 2) sorted by relevance
86 u8 shift_in, data_bit; in __rtw_cal_crc16() local94 shift_in = crc_bit15 ^ data_bit; in __rtw_cal_crc16()98 if (shift_in == 0) in __rtw_cal_crc16()103 crc_bit11 = ((crc & BIT(11)) ? 1 : 0) ^ shift_in; in __rtw_cal_crc16()110 crc_bit4 = ((crc & BIT(4)) ? 1 : 0) ^ shift_in; in __rtw_cal_crc16()
371 u8 shift_in, data_bit, crc_bit11, crc_bit4, crc_bit15; in crc16_ccitt() local378 shift_in = crc_bit15 ^ data_bit; in crc16_ccitt()381 if (shift_in == 0) in crc16_ccitt()386 crc_bit11 = ((crc & BIT(11)) ? 1 : 0) ^ shift_in; in crc16_ccitt()392 crc_bit4 = ((crc & BIT(4)) ? 1 : 0) ^ shift_in; in crc16_ccitt()