Lines Matching defs:ts_coeff
178 struct temp_coeff ts_coeff;
192 len = scnprintf(buf, sizeof(buf), "%d\n", pvt->ts_coeff.j);
204 ret = kstrtos32_from_user(user_buf, count, 0, &pvt->ts_coeff.j);
232 &pvt->ts_coeff.h);
234 &pvt->ts_coeff.g);
236 &pvt->ts_coeff.cal5);
267 struct temp_coeff *ts_coeff = &pvt->ts_coeff;
269 s64 tmp = ts_coeff->g +
270 div_s64(ts_coeff->h * (s64)nbs, ts_coeff->cal5) -
271 ts_coeff->h / 2 +
272 div_s64(ts_coeff->j * (s64)pvt->ip_freq, HZ_PER_MHZ);
725 struct temp_coeff *ts_coeff = &pvt->ts_coeff;
736 ts_coeff->h = PVT_SERIES5_H_CONST;
737 ts_coeff->g = PVT_SERIES5_G_CONST;
738 ts_coeff->j = PVT_SERIES5_J_CONST;
739 ts_coeff->cal5 = PVT_SERIES5_CAL5_CONST;
742 ts_coeff->h = PVT_SERIES6_H_CONST;
743 ts_coeff->g = PVT_SERIES6_G_CONST;
744 ts_coeff->j = PVT_SERIES6_J_CONST;
745 ts_coeff->cal5 = PVT_SERIES6_CAL5_CONST;
756 device_property_read_u32(dev, "moortec,ts-coeff-h", &ts_coeff->h);
757 device_property_read_u32(dev, "moortec,ts-coeff-g", &ts_coeff->g);
758 device_property_read_u32(dev, "moortec,ts-coeff-j", &ts_coeff->j);
759 device_property_read_u32(dev, "moortec,ts-coeff-cal5", &ts_coeff->cal5);
762 ts_coeff->h, ts_coeff->g, ts_coeff->j, ts_coeff->cal5);