Searched refs:sum2 (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/drivers/ptp/ |
D | ptp_dte.c | 64 u32 sum2, sum3; in dte_write_nco() local 66 sum2 = (u32)((ns >> DTE_NCO_SUM2_SHIFT) & DTE_NCO_SUM2_MASK); in dte_write_nco() 68 if (sum2 != DTE_NCO_SUM2_MASK) in dte_write_nco() 69 sum2++; in dte_write_nco() 76 writel(sum2, (regs + DTE_NCO_TIME_REG)); in dte_write_nco() 82 u32 sum2, sum3; in dte_read_nco() local 90 sum2 = readl(regs + DTE_NCO_TIME_REG); in dte_read_nco() 92 ((s64)sum2 << DTE_NCO_SUM2_SHIFT); in dte_read_nco()
|
/Linux-v4.19/drivers/media/rc/ |
D | ir-xmp-decoder.c | 83 u8 addr, subaddr, subaddr2, toggle, oem, obc1, obc2, sum1, sum2; in ir_xmp_decode() local 113 sum2 = (15 + n[8] + n[9] + n[10] + n[11] + in ir_xmp_decode() 116 if (sum1 != 15 || sum2 != 15) { in ir_xmp_decode() 118 sum1, sum2); in ir_xmp_decode()
|
/Linux-v4.19/drivers/hid/ |
D | hid-alps.c | 141 u16 sum1 = 0xFF, sum2 = 0xFF; in t4_calc_check_sum() local 154 sum2 += sum1; in t4_calc_check_sum() 159 sum2 = (sum2 & 0xFF) + (sum2 >> 8); in t4_calc_check_sum() 163 sum2 = (sum2 & 0xFF) + (sum2 >> 8); in t4_calc_check_sum() 165 return(sum2 << 8 | sum1); in t4_calc_check_sum()
|