Lines Matching refs:gain
110 data->gain = lis2ds12_from_fs2g_to_mg(1); in lis2ds12_set_range()
114 data->gain = lis2ds12_from_fs4g_to_mg(1); in lis2ds12_set_range()
118 data->gain = lis2ds12_from_fs8g_to_mg(1); in lis2ds12_set_range()
122 data->gain = lis2ds12_from_fs16g_to_mg(1); in lis2ds12_set_range()
214 float gain) in lis2ds12_convert() argument
220 dval = ((int64_t)raw_val * gain * SENSOR_G) / 1000; in lis2ds12_convert()
228 float gain) in lis2ds12_get_channel() argument
232 lis2ds12_convert(val, data->sample_x, gain); in lis2ds12_get_channel()
235 lis2ds12_convert(val, data->sample_y, gain); in lis2ds12_get_channel()
238 lis2ds12_convert(val, data->sample_z, gain); in lis2ds12_get_channel()
241 lis2ds12_convert(val, data->sample_x, gain); in lis2ds12_get_channel()
242 lis2ds12_convert(val + 1, data->sample_y, gain); in lis2ds12_get_channel()
243 lis2ds12_convert(val + 2, data->sample_z, gain); in lis2ds12_get_channel()
258 return lis2ds12_get_channel(chan, val, data, data->gain); in lis2ds12_channel_get()