Home
last modified time | relevance | path

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

/f-stack/freebsd/arm64/rockchip/
H A Drk_tsadc.c320 int denom, ntbl, raw, i; in tsadc_temp_to_raw() local
328 if (temp >= tbl[ntbl - 1].temp) in tsadc_temp_to_raw()
329 return (tbl[ntbl - 1].raw); in tsadc_temp_to_raw()
331 for (i = 1; i < (ntbl - 1); i++) { in tsadc_temp_to_raw()
354 int denom, ntbl, temp, i; in tsadc_raw_to_temp() local
365 if (raw <= tbl[ntbl - 1].raw) in tsadc_raw_to_temp()
366 return (tbl[ntbl - 1].temp); in tsadc_raw_to_temp()
368 for (i = ntbl - 2; i > 0; i--) { in tsadc_raw_to_temp()
379 if (raw >= tbl[ntbl - 1].raw) in tsadc_raw_to_temp()
380 return (tbl[ntbl - 1].temp); in tsadc_raw_to_temp()
[all …]