Lines Matching defs:map
281 * Sensor to fan map
297 * Sensor to PM device map
707 tempr_map_t *map;
711 map = sensorp->obs2exp_map;
712 if (entries < 2 || map == NULL) {
713 /* no map or can't map it */
717 * Any point beyond the range specified by the map is
719 * two entries in the map.
722 if (temp < map[i].observed)
726 * equation with map[i-1] and map[i] being the two ends
729 denominator = map[i].observed - map[i-1].observed;
738 ftemp = map[i-1].expected + (temp - map[i-1].observed) *
739 (float)(map[i].expected - map[i-1].expected)/denominator;
755 tempr_map_t *map;
760 map = sensorp->obs2exp_map;
761 if (entries < 2 || map == NULL)
762 /* no map or can't map it */
766 * Any point beyond the range specified by the map is
768 * two entries in the map.
771 if (temp < map[i].expected)
776 * equation with map[i-1] and map[i] being the two ends
779 denominator = map[i].expected - map[i-1].expected;
788 ftemp = map[i-1].observed + (temp - map[i-1].expected) *
789 (float)(map[i].observed - map[i-1].observed)/denominator;
1119 /* print map table */
1157 tempr_map_t *map;
1161 map = (tempr_map_t *)malloc(mapentries *
1164 if (map == NULL) {
1180 observed == map[cnt-1].observed &&
1181 expected == map[cnt-1].expected) {
1184 map[cnt].observed = observed;
1185 map[cnt].expected = expected;
1189 sensorp->obs2exp_map = map;