Lines Matching full:gain
109 data->gain = lis2ds12_from_fs2g_to_mg(1); in lis2ds12_set_range()
113 data->gain = lis2ds12_from_fs4g_to_mg(1); in lis2ds12_set_range()
117 data->gain = lis2ds12_from_fs8g_to_mg(1); in lis2ds12_set_range()
121 data->gain = lis2ds12_from_fs16g_to_mg(1); in lis2ds12_set_range()
213 float gain) in lis2ds12_convert() argument
217 /* Gain is in mg/LSB */ in lis2ds12_convert()
219 dval = ((int64_t)raw_val * gain * SENSOR_G) / 1000; in lis2ds12_convert()
227 float gain) in lis2ds12_get_channel() argument
231 lis2ds12_convert(val, data->sample_x, gain); in lis2ds12_get_channel()
234 lis2ds12_convert(val, data->sample_y, gain); in lis2ds12_get_channel()
237 lis2ds12_convert(val, data->sample_z, gain); in lis2ds12_get_channel()
240 lis2ds12_convert(val, data->sample_x, gain); in lis2ds12_get_channel()
241 lis2ds12_convert(val + 1, data->sample_y, gain); in lis2ds12_get_channel()
242 lis2ds12_convert(val + 2, data->sample_z, gain); in lis2ds12_get_channel()
257 return lis2ds12_get_channel(chan, val, data, data->gain); in lis2ds12_channel_get()