Searched refs:sum1 (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/arch/hexagon/lib/ |
D | checksum.c | 87 u64 sum0, sum1, x0, x1, *ptr8_o, *ptr8_e, *ptr8; in do_csum() local 104 sum1 = 0; in do_csum() 110 sum1 += (u64) ptr2[0]; in do_csum() 120 sum1 = HEXAGON_P_vrmpyhacc_PP(sum1, in do_csum() 123 sum1 += VR_CARRY(0, 0, 1, 0); in do_csum() 136 sum1 = HEXAGON_P_vrmpyhacc_PP(sum1, in do_csum() 144 sum1 = HEXAGON_P_vrmpyhacc_PP(sum1, x1^VR_NEGATE(1, 1, 1, 1), in do_csum() 150 sum1 = HEXAGON_P_vrmpyhacc_PP(sum1, in do_csum() 153 sum1 += VR_SELECT(0, 0, 1, 0); in do_csum() 160 sum1 += (u64) ptr[start + (mid * 16) + (end & 14)]; in do_csum() [all …]
|
/Linux-v5.10/drivers/media/rc/ |
D | ir-xmp-decoder.c | 76 u8 addr, subaddr, subaddr2, toggle, oem, obc1, obc2, sum1, sum2; in ir_xmp_decode() local 104 sum1 = (15 + n[0] + n[1] + n[2] + n[3] + in ir_xmp_decode() 109 if (sum1 != 15 || sum2 != 15) { in ir_xmp_decode() 111 sum1, sum2); in ir_xmp_decode()
|
/Linux-v5.10/drivers/hid/ |
D | hid-alps.c | 138 u16 sum1 = 0xFF, sum2 = 0xFF; in t4_calc_check_sum() local 150 sum1 += buffer[offset + i]; in t4_calc_check_sum() 151 sum2 += sum1; in t4_calc_check_sum() 155 sum1 = (sum1 & 0xFF) + (sum1 >> 8); in t4_calc_check_sum() 159 sum1 = (sum1 & 0xFF) + (sum1 >> 8); in t4_calc_check_sum() 162 return(sum2 << 8 | sum1); in t4_calc_check_sum()
|