Lines Matching refs:read_tmp

447 	unsigned int read_tmp;  in mlx90632_read_ambient_raw()  local
450 ret = regmap_read(regmap, MLX90632_RAM_3(1), &read_tmp); in mlx90632_read_ambient_raw()
453 *ambient_new_raw = (s16)read_tmp; in mlx90632_read_ambient_raw()
455 ret = regmap_read(regmap, MLX90632_RAM_3(2), &read_tmp); in mlx90632_read_ambient_raw()
458 *ambient_old_raw = (s16)read_tmp; in mlx90632_read_ambient_raw()
467 unsigned int read_tmp; in mlx90632_read_object_raw() local
478 ret = regmap_read(regmap, MLX90632_RAM_2(channel), &read_tmp); in mlx90632_read_object_raw()
482 read = (s16)read_tmp; in mlx90632_read_object_raw()
484 ret = regmap_read(regmap, MLX90632_RAM_1(channel), &read_tmp); in mlx90632_read_object_raw()
487 *object_new_raw = (read + (s16)read_tmp) / 2; in mlx90632_read_object_raw()
489 ret = regmap_read(regmap, MLX90632_RAM_2(channel_old), &read_tmp); in mlx90632_read_object_raw()
492 read = (s16)read_tmp; in mlx90632_read_object_raw()
494 ret = regmap_read(regmap, MLX90632_RAM_1(channel_old), &read_tmp); in mlx90632_read_object_raw()
497 *object_old_raw = (read + (s16)read_tmp) / 2; in mlx90632_read_object_raw()
549 unsigned int read_tmp; in mlx90632_read_ambient_raw_extended() local
552 ret = regmap_read(regmap, MLX90632_RAM_DSP5_EXTENDED_AMBIENT_1, &read_tmp); in mlx90632_read_ambient_raw_extended()
555 *ambient_new_raw = (s16)read_tmp; in mlx90632_read_ambient_raw_extended()
557 ret = regmap_read(regmap, MLX90632_RAM_DSP5_EXTENDED_AMBIENT_2, &read_tmp); in mlx90632_read_ambient_raw_extended()
560 *ambient_old_raw = (s16)read_tmp; in mlx90632_read_ambient_raw_extended()
567 unsigned int read_tmp; in mlx90632_read_object_raw_extended() local
571 ret = regmap_read(regmap, MLX90632_RAM_DSP5_EXTENDED_OBJECT_1, &read_tmp); in mlx90632_read_object_raw_extended()
574 read = (s16)read_tmp; in mlx90632_read_object_raw_extended()
576 ret = regmap_read(regmap, MLX90632_RAM_DSP5_EXTENDED_OBJECT_2, &read_tmp); in mlx90632_read_object_raw_extended()
579 read = read - (s16)read_tmp; in mlx90632_read_object_raw_extended()
581 ret = regmap_read(regmap, MLX90632_RAM_DSP5_EXTENDED_OBJECT_3, &read_tmp); in mlx90632_read_object_raw_extended()
584 read = read - (s16)read_tmp; in mlx90632_read_object_raw_extended()
586 ret = regmap_read(regmap, MLX90632_RAM_DSP5_EXTENDED_OBJECT_4, &read_tmp); in mlx90632_read_object_raw_extended()
589 read = (read + (s16)read_tmp) / 2; in mlx90632_read_object_raw_extended()
591 ret = regmap_read(regmap, MLX90632_RAM_DSP5_EXTENDED_OBJECT_5, &read_tmp); in mlx90632_read_object_raw_extended()
594 read = read + (s16)read_tmp; in mlx90632_read_object_raw_extended()
596 ret = regmap_read(regmap, MLX90632_RAM_DSP5_EXTENDED_OBJECT_6, &read_tmp); in mlx90632_read_object_raw_extended()
599 read = read + (s16)read_tmp; in mlx90632_read_object_raw_extended()
818 unsigned int read_tmp; in mlx90632_calc_object_dsp105() local
838 ret = regmap_read(data->regmap, MLX90632_EE_Ha, &read_tmp); in mlx90632_calc_object_dsp105()
841 Ha = (s16)read_tmp; in mlx90632_calc_object_dsp105()
842 ret = regmap_read(data->regmap, MLX90632_EE_Hb, &read_tmp); in mlx90632_calc_object_dsp105()
845 Hb = (s16)read_tmp; in mlx90632_calc_object_dsp105()
846 ret = regmap_read(data->regmap, MLX90632_EE_Gb, &read_tmp); in mlx90632_calc_object_dsp105()
849 Gb = (s16)read_tmp; in mlx90632_calc_object_dsp105()
850 ret = regmap_read(data->regmap, MLX90632_EE_Ka, &read_tmp); in mlx90632_calc_object_dsp105()
853 Ka = (s16)read_tmp; in mlx90632_calc_object_dsp105()
896 unsigned int read_tmp; in mlx90632_calc_ambient_dsp105() local
913 ret = regmap_read(data->regmap, MLX90632_EE_Gb, &read_tmp); in mlx90632_calc_ambient_dsp105()
916 Gb = (s16)read_tmp; in mlx90632_calc_ambient_dsp105()