Lines Matching refs:chan_val
318 u32 chan_val) in __ltc2983_chan_assign_common() argument
323 chan_val |= LTC2983_CHAN_TYPE(sensor->type); in __ltc2983_chan_assign_common()
325 chan_val); in __ltc2983_chan_assign_common()
326 __chan_val = cpu_to_be32(chan_val); in __ltc2983_chan_assign_common()
333 u32 *chan_val) in __ltc2983_chan_custom_sensor_assign() argument
375 *chan_val |= LTC2983_CUSTOM_LEN(len); in __ltc2983_chan_custom_sensor_assign()
376 *chan_val |= LTC2983_CUSTOM_ADDR(custom->offset); in __ltc2983_chan_custom_sensor_assign()
513 u32 chan_val; in ltc2983_thermocouple_assign_chan() local
515 chan_val = LTC2983_CHAN_ASSIGN(thermo->cold_junction_chan); in ltc2983_thermocouple_assign_chan()
516 chan_val |= LTC2983_THERMOCOUPLE_CFG(thermo->sensor_config); in ltc2983_thermocouple_assign_chan()
522 &chan_val); in ltc2983_thermocouple_assign_chan()
526 return __ltc2983_chan_assign_common(st, sensor, chan_val); in ltc2983_thermocouple_assign_chan()
533 u32 chan_val; in ltc2983_rtd_assign_chan() local
535 chan_val = LTC2983_CHAN_ASSIGN(rtd->r_sense_chan); in ltc2983_rtd_assign_chan()
536 chan_val |= LTC2983_RTD_CFG(rtd->sensor_config); in ltc2983_rtd_assign_chan()
537 chan_val |= LTC2983_RTD_EXC_CURRENT(rtd->excitation_current); in ltc2983_rtd_assign_chan()
538 chan_val |= LTC2983_RTD_CURVE(rtd->rtd_curve); in ltc2983_rtd_assign_chan()
544 &chan_val); in ltc2983_rtd_assign_chan()
548 return __ltc2983_chan_assign_common(st, sensor, chan_val); in ltc2983_rtd_assign_chan()
555 u32 chan_val; in ltc2983_thermistor_assign_chan() local
557 chan_val = LTC2983_CHAN_ASSIGN(thermistor->r_sense_chan); in ltc2983_thermistor_assign_chan()
558 chan_val |= LTC2983_THERMISTOR_CFG(thermistor->sensor_config); in ltc2983_thermistor_assign_chan()
559 chan_val |= in ltc2983_thermistor_assign_chan()
567 &chan_val); in ltc2983_thermistor_assign_chan()
571 return __ltc2983_chan_assign_common(st, sensor, chan_val); in ltc2983_thermistor_assign_chan()
578 u32 chan_val; in ltc2983_diode_assign_chan() local
580 chan_val = LTC2983_DIODE_CFG(diode->sensor_config); in ltc2983_diode_assign_chan()
581 chan_val |= LTC2983_DIODE_EXC_CURRENT(diode->excitation_current); in ltc2983_diode_assign_chan()
582 chan_val |= LTC2983_DIODE_IDEAL_FACTOR(diode->ideal_factor_value); in ltc2983_diode_assign_chan()
584 return __ltc2983_chan_assign_common(st, sensor, chan_val); in ltc2983_diode_assign_chan()
591 u32 chan_val; in ltc2983_r_sense_assign_chan() local
593 chan_val = LTC2983_R_SENSE_VAL(rsense->r_sense_val); in ltc2983_r_sense_assign_chan()
595 return __ltc2983_chan_assign_common(st, sensor, chan_val); in ltc2983_r_sense_assign_chan()
602 u32 chan_val; in ltc2983_adc_assign_chan() local
604 chan_val = LTC2983_ADC_SINGLE_ENDED(adc->single_ended); in ltc2983_adc_assign_chan()
606 return __ltc2983_chan_assign_common(st, sensor, chan_val); in ltc2983_adc_assign_chan()