Lines Matching refs:voltage
174 u32 voltage = 0; in ltc4245_get_voltage() local
179 voltage = regval * 55; in ltc4245_get_voltage()
183 voltage = regval * 22; in ltc4245_get_voltage()
187 voltage = regval * 15; in ltc4245_get_voltage()
191 voltage = regval * -55; in ltc4245_get_voltage()
194 voltage = regval * 10; in ltc4245_get_voltage()
202 return voltage; in ltc4245_get_voltage()
210 unsigned int voltage; in ltc4245_get_current() local
230 voltage = regval * 250; /* voltage in uV */ in ltc4245_get_current()
231 curr = voltage / 50; /* sense resistor 50 mOhm */ in ltc4245_get_current()
234 voltage = regval * 125; /* voltage in uV */ in ltc4245_get_current()
235 curr = (voltage * 10) / 35; /* sense resistor 3.5 mOhm */ in ltc4245_get_current()
238 voltage = regval * 125; /* voltage in uV */ in ltc4245_get_current()
239 curr = (voltage * 10) / 25; /* sense resistor 2.5 mOhm */ in ltc4245_get_current()
242 voltage = regval * 250; /* voltage in uV */ in ltc4245_get_current()
243 curr = voltage / 100; /* sense resistor 100 mOhm */ in ltc4245_get_current()
318 long voltage; in ltc4245_read_power() local
324 voltage = ltc4245_get_voltage(dev, ltc4245_in_regs[channel]); in ltc4245_read_power()
325 *val = abs(curr * voltage); in ltc4245_read_power()