Searched refs:shift_in (Results 1 – 3 of 3) sorted by relevance
114 u8 shift_in, data_bit; in __rtw_cal_crc16() local122 shift_in = crc_bit15 ^ data_bit; in __rtw_cal_crc16()126 if (shift_in == 0) in __rtw_cal_crc16()131 crc_bit11 = ((crc & BIT(11)) ? 1 : 0) ^ shift_in; in __rtw_cal_crc16()138 crc_bit4 = ((crc & BIT(4)) ? 1 : 0) ^ shift_in; in __rtw_cal_crc16()
820 u8 shift_in, data_bit; in __rtw89_cal_crc16() local828 shift_in = crc_bit15 ^ data_bit; in __rtw89_cal_crc16()832 if (shift_in == 0) in __rtw89_cal_crc16()837 crc_bit11 = (crc & BIT(11) ? 1 : 0) ^ shift_in; in __rtw89_cal_crc16()844 crc_bit4 = (crc & BIT(4) ? 1 : 0) ^ shift_in; in __rtw89_cal_crc16()
373 u8 shift_in, data_bit, crc_bit11, crc_bit4, crc_bit15; in crc16_ccitt() local380 shift_in = crc_bit15 ^ data_bit; in crc16_ccitt()383 if (shift_in == 0) in crc16_ccitt()388 crc_bit11 = ((crc & BIT(11)) ? 1 : 0) ^ shift_in; in crc16_ccitt()394 crc_bit4 = ((crc & BIT(4)) ? 1 : 0) ^ shift_in; in crc16_ccitt()