Searched refs:sum2 (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/drivers/ptp/ |
D | ptp_dte.c | 54 u32 sum2, sum3; in dte_write_nco() local 56 sum2 = (u32)((ns >> DTE_NCO_SUM2_SHIFT) & DTE_NCO_SUM2_MASK); in dte_write_nco() 58 if (sum2 != DTE_NCO_SUM2_MASK) in dte_write_nco() 59 sum2++; in dte_write_nco() 66 writel(sum2, (regs + DTE_NCO_TIME_REG)); in dte_write_nco() 72 u32 sum2, sum3; in dte_read_nco() local 80 sum2 = readl(regs + DTE_NCO_TIME_REG); in dte_read_nco() 82 ((s64)sum2 << DTE_NCO_SUM2_SHIFT); in dte_read_nco()
|
/Linux-v6.1/drivers/media/rc/ |
D | ir-xmp-decoder.c | 76 u8 addr, subaddr, subaddr2, toggle, oem, obc1, obc2, sum1, sum2; in ir_xmp_decode() local 106 sum2 = (15 + n[8] + n[9] + n[10] + n[11] + in ir_xmp_decode() 109 if (sum1 != 15 || sum2 != 15) { in ir_xmp_decode() 111 sum1, sum2); in ir_xmp_decode()
|
/Linux-v6.1/drivers/hid/ |
D | hid-alps.c | 138 u16 sum1 = 0xFF, sum2 = 0xFF; in t4_calc_check_sum() local 151 sum2 += sum1; in t4_calc_check_sum() 156 sum2 = (sum2 & 0xFF) + (sum2 >> 8); in t4_calc_check_sum() 160 sum2 = (sum2 & 0xFF) + (sum2 >> 8); in t4_calc_check_sum() 162 return(sum2 << 8 | sum1); in t4_calc_check_sum()
|