Home
last modified time | relevance | path

Searched refs:th_val (Results 1 – 2 of 2) sorted by relevance

/linux-6.15/drivers/watchdog/
H A Dkeembay_wdt.c80 u32 th_val = 0; in keembay_wdt_set_pretimeout_reg() local
83 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()
/linux-6.15/drivers/iio/light/
H A Dopt4060.c676 u32 th_val, th_exp, bits; in opt4060_calc_th_reg() local
689 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() local
703 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()