Lines Matching refs:voltage
177 u32 voltage = 0; in ltc4245_get_voltage() local
182 voltage = regval * 55; in ltc4245_get_voltage()
186 voltage = regval * 22; in ltc4245_get_voltage()
190 voltage = regval * 15; in ltc4245_get_voltage()
194 voltage = regval * -55; in ltc4245_get_voltage()
197 voltage = regval * 10; in ltc4245_get_voltage()
205 return voltage; in ltc4245_get_voltage()
213 unsigned int voltage; in ltc4245_get_current() local
233 voltage = regval * 250; /* voltage in uV */ in ltc4245_get_current()
234 curr = voltage / 50; /* sense resistor 50 mOhm */ in ltc4245_get_current()
237 voltage = regval * 125; /* voltage in uV */ in ltc4245_get_current()
238 curr = (voltage * 10) / 35; /* sense resistor 3.5 mOhm */ in ltc4245_get_current()
241 voltage = regval * 125; /* voltage in uV */ in ltc4245_get_current()
242 curr = (voltage * 10) / 25; /* sense resistor 2.5 mOhm */ in ltc4245_get_current()
245 voltage = regval * 250; /* voltage in uV */ in ltc4245_get_current()
246 curr = voltage / 100; /* sense resistor 100 mOhm */ in ltc4245_get_current()
321 long voltage; in ltc4245_read_power() local
327 voltage = ltc4245_get_voltage(dev, ltc4245_in_regs[channel]); in ltc4245_read_power()
328 *val = abs(curr * voltage); in ltc4245_read_power()