Home
last modified time | relevance | path

Searched refs:scale_avail (Results 1 – 8 of 8) sorted by relevance

/drivers/iio/dac/
Dad5592r-base.c323 if (val == st->scale_avail[0][0] && in ad5592r_write_raw()
324 val2 == st->scale_avail[0][1]) in ad5592r_write_raw()
326 else if (val == st->scale_avail[1][0] && in ad5592r_write_raw()
327 val2 == st->scale_avail[1][1]) in ad5592r_write_raw()
479 st->scale_avail[0][0], st->scale_avail[0][1], in ad5592r_show_scale_available()
480 st->scale_avail[1][0], st->scale_avail[1][1]); in ad5592r_show_scale_available()
582 st->scale_avail[0][0] = in ad5592r_init_scales()
583 div_s64_rem(tmp, 1000000000LL, &st->scale_avail[0][1]); in ad5592r_init_scales()
584 st->scale_avail[1][0] = in ad5592r_init_scales()
585 div_s64_rem(tmp * 2, 1000000000LL, &st->scale_avail[1][1]); in ad5592r_init_scales()
Dad5592r-base.h58 int scale_avail[2][2]; member
/drivers/iio/adc/
Dmxs-lradc-adc.c125 struct mxs_lradc_scale scale_avail[LRADC_MAX_TOTAL_CHANS][2]; member
274 struct mxs_lradc_scale *scale_avail = in mxs_lradc_adc_write_raw() local
275 adc->scale_avail[chan->channel]; in mxs_lradc_adc_write_raw()
285 if (val == scale_avail[MXS_LRADC_DIV_DISABLED].integer && in mxs_lradc_adc_write_raw()
286 val2 == scale_avail[MXS_LRADC_DIV_DISABLED].nano) { in mxs_lradc_adc_write_raw()
290 } else if (val == scale_avail[MXS_LRADC_DIV_ENABLED].integer && in mxs_lradc_adc_write_raw()
291 val2 == scale_avail[MXS_LRADC_DIV_ENABLED].nano) { in mxs_lradc_adc_write_raw()
325 for (i = 0; i < ARRAY_SIZE(adc->scale_avail[ch]); i++) in mxs_lradc_adc_show_scale_avail()
327 adc->scale_avail[ch][i].integer, in mxs_lradc_adc_show_scale_avail()
328 adc->scale_avail[ch][i].nano); in mxs_lradc_adc_show_scale_avail()
[all …]
Dnau7802.c59 u32 scale_avail[8]; member
87 for (i = 0; i < ARRAY_SIZE(st->scale_avail); i++) in nau7802_show_scales()
89 st->scale_avail[i]); in nau7802_show_scales()
368 for (i = 0; i < ARRAY_SIZE(st->scale_avail); i++) in nau7802_write_raw()
369 if (val2 == st->scale_avail[i]) in nau7802_write_raw()
486 for (i = 0; i < ARRAY_SIZE(st->scale_avail); i++) in nau7802_probe()
487 st->scale_avail[i] = (((u64)st->vref_mv) * 1000000000ULL) in nau7802_probe()
Dad7793.c159 u32 scale_avail[8][2]; member
330 for (i = 0; i < ARRAY_SIZE(st->scale_avail); i++) { in ad7793_setup()
336 st->scale_avail[i][1] = do_div(scale_uv, 100000000) * 10; in ad7793_setup()
337 st->scale_avail[i][0] = scale_uv; in ad7793_setup()
367 *vals = (int *)st->scale_avail; in ad7793_read_avail()
370 *length = ARRAY_SIZE(st->scale_avail) * 2; in ad7793_read_avail()
420 scale_avail[(st->conf >> 8) & 0x7][0]; in ad7793_read_raw()
422 scale_avail[(st->conf >> 8) & 0x7][1]; in ad7793_read_raw()
482 for (i = 0; i < ARRAY_SIZE(st->scale_avail); i++) in ad7793_write_raw()
483 if (val2 == st->scale_avail[i][1]) { in ad7793_write_raw()
Dad7192.c186 u32 scale_avail[8][2]; member
415 for (i = 0; i < ARRAY_SIZE(st->scale_avail); i++) { in ad7192_setup()
421 st->scale_avail[i][1] = do_div(scale_uv, 100000000) * 10; in ad7192_setup()
422 st->scale_avail[i][0] = scale_uv; in ad7192_setup()
655 *val = st->scale_avail[AD7192_CONF_GAIN(st->conf)][0]; in ad7192_read_raw()
656 *val2 = st->scale_avail[AD7192_CONF_GAIN(st->conf)][1]; in ad7192_read_raw()
706 for (i = 0; i < ARRAY_SIZE(st->scale_avail); i++) in ad7192_write_raw()
707 if (val2 == st->scale_avail[i][1]) { in ad7192_write_raw()
774 *vals = (int *)st->scale_avail; in ad7192_read_avail()
777 *length = ARRAY_SIZE(st->scale_avail) * 2; in ad7192_read_avail()
Dad7606.c191 *val2 = st->scale_avail[st->range[ch]]; in ad7606_read_raw()
222 return ad7606_show_avail(buf, st->scale_avail, st->num_scales, true); in in_voltage_scale_available_show()
265 i = find_closest(val2, st->scale_avail, st->num_scales); in ad7606_write_raw()
588 st->scale_avail = ad7606_scale_avail; in ad7606_probe()
653 st->scale_avail = ad7616_sw_scale_avail; in ad7606_probe()
Dad7606.h101 const unsigned int *scale_avail; member