• Home
  • Raw
  • Download

Lines Matching refs:chan_val

208 	__be32 chan_val;  member
315 u32 chan_val) in __ltc2983_chan_assign_common() argument
319 chan_val |= LTC2983_CHAN_TYPE(sensor->type); in __ltc2983_chan_assign_common()
321 chan_val); in __ltc2983_chan_assign_common()
322 st->chan_val = cpu_to_be32(chan_val); in __ltc2983_chan_assign_common()
323 return regmap_bulk_write(st->regmap, reg, &st->chan_val, in __ltc2983_chan_assign_common()
324 sizeof(st->chan_val)); in __ltc2983_chan_assign_common()
329 u32 *chan_val) in __ltc2983_chan_custom_sensor_assign() argument
371 *chan_val |= LTC2983_CUSTOM_LEN(len); in __ltc2983_chan_custom_sensor_assign()
372 *chan_val |= LTC2983_CUSTOM_ADDR(custom->offset); in __ltc2983_chan_custom_sensor_assign()
504 u32 chan_val; in ltc2983_thermocouple_assign_chan() local
506 chan_val = LTC2983_CHAN_ASSIGN(thermo->cold_junction_chan); in ltc2983_thermocouple_assign_chan()
507 chan_val |= LTC2983_THERMOCOUPLE_CFG(thermo->sensor_config); in ltc2983_thermocouple_assign_chan()
513 &chan_val); in ltc2983_thermocouple_assign_chan()
517 return __ltc2983_chan_assign_common(st, sensor, chan_val); in ltc2983_thermocouple_assign_chan()
524 u32 chan_val; in ltc2983_rtd_assign_chan() local
526 chan_val = LTC2983_CHAN_ASSIGN(rtd->r_sense_chan); in ltc2983_rtd_assign_chan()
527 chan_val |= LTC2983_RTD_CFG(rtd->sensor_config); in ltc2983_rtd_assign_chan()
528 chan_val |= LTC2983_RTD_EXC_CURRENT(rtd->excitation_current); in ltc2983_rtd_assign_chan()
529 chan_val |= LTC2983_RTD_CURVE(rtd->rtd_curve); in ltc2983_rtd_assign_chan()
535 &chan_val); in ltc2983_rtd_assign_chan()
539 return __ltc2983_chan_assign_common(st, sensor, chan_val); in ltc2983_rtd_assign_chan()
546 u32 chan_val; in ltc2983_thermistor_assign_chan() local
548 chan_val = LTC2983_CHAN_ASSIGN(thermistor->r_sense_chan); in ltc2983_thermistor_assign_chan()
549 chan_val |= LTC2983_THERMISTOR_CFG(thermistor->sensor_config); in ltc2983_thermistor_assign_chan()
550 chan_val |= in ltc2983_thermistor_assign_chan()
558 &chan_val); in ltc2983_thermistor_assign_chan()
562 return __ltc2983_chan_assign_common(st, sensor, chan_val); in ltc2983_thermistor_assign_chan()
569 u32 chan_val; in ltc2983_diode_assign_chan() local
571 chan_val = LTC2983_DIODE_CFG(diode->sensor_config); in ltc2983_diode_assign_chan()
572 chan_val |= LTC2983_DIODE_EXC_CURRENT(diode->excitation_current); in ltc2983_diode_assign_chan()
573 chan_val |= LTC2983_DIODE_IDEAL_FACTOR(diode->ideal_factor_value); in ltc2983_diode_assign_chan()
575 return __ltc2983_chan_assign_common(st, sensor, chan_val); in ltc2983_diode_assign_chan()
582 u32 chan_val; in ltc2983_r_sense_assign_chan() local
584 chan_val = LTC2983_R_SENSE_VAL(rsense->r_sense_val); in ltc2983_r_sense_assign_chan()
586 return __ltc2983_chan_assign_common(st, sensor, chan_val); in ltc2983_r_sense_assign_chan()
593 u32 chan_val; in ltc2983_adc_assign_chan() local
595 chan_val = LTC2983_ADC_SINGLE_ENDED(adc->single_ended); in ltc2983_adc_assign_chan()
597 return __ltc2983_chan_assign_common(st, sensor, chan_val); in ltc2983_adc_assign_chan()