Searched refs:th_val (Results 1 – 2 of 2) sorted by relevance
80 u32 th_val = 0; in keembay_wdt_set_pretimeout_reg() local83 th_val = wdog->timeout - wdog->pretimeout; in keembay_wdt_set_pretimeout_reg()85 keembay_wdt_writel(wdt, TIM_WATCHDOG_INT_THRES, th_val * wdt->rate); in keembay_wdt_set_pretimeout_reg()
676 u32 th_val, th_exp, bits; in opt4060_calc_th_reg() local689 th_val = (adc_val >> (8 + th_exp)) & 0xfff; in opt4060_calc_th_reg()691 return (th_exp << 12) + th_val; in opt4060_calc_th_reg()700 u32 th_val, th_exp; in opt4060_calc_val_from_th_reg() local703 th_val = th_reg & 0xfff; in opt4060_calc_val_from_th_reg()705 return th_val << (8 + th_exp); in opt4060_calc_val_from_th_reg()