Lines Matching refs:segments
1344 static u32 interpolate_value(u32 value, const struct linear_segments *segments, in interpolate_value() argument
1351 if (value >= segments[0].x) in interpolate_value()
1352 return segments[0].y; in interpolate_value()
1353 if (value < segments[len-1].x) in interpolate_value()
1354 return segments[len-1].y; in interpolate_value()
1358 if (value == segments[i].x) in interpolate_value()
1359 return segments[i].y; in interpolate_value()
1360 if (value > segments[i].x) in interpolate_value()
1365 dy = segments[i].y - segments[i - 1].y; in interpolate_value()
1366 dx = segments[i - 1].x - segments[i].x; in interpolate_value()
1367 tmp64 = value - segments[i].x; in interpolate_value()
1370 ret = segments[i].y - tmp64; in interpolate_value()