Lines Matching refs:coef
86 struct equation_coefs coef;
152 tsc->coef.a1 = FIXPT_DIV(FIXPT_INT(tsc->thcode[1] - tsc->thcode[2]),
154 tsc->coef.b1 = FIXPT_INT(tsc->thcode[2]) - tsc->coef.a1 * TJ_3;
156 tsc->coef.a2 = FIXPT_DIV(FIXPT_INT(tsc->thcode[1] - tsc->thcode[0]),
158 tsc->coef.b2 = FIXPT_INT(tsc->thcode[0]) - tsc->coef.a2 * ths_tj_1;
181 val = FIXPT_DIV(FIXPT_INT(reg) - tsc->coef.b1,
182 tsc->coef.a1);
184 val = FIXPT_DIV(FIXPT_INT(reg) - tsc->coef.b2,
185 tsc->coef.a2);
203 val = celsius * tsc->coef.a1 + tsc->coef.b1;
205 val = celsius * tsc->coef.a2 + tsc->coef.b2;