Lines Matching defs:offset
106 s16 offset; /* 9 bits */
220 * @offset: coulomb counter offset value
238 s16 offset, u32 divider)
246 acc -= (s64)sample * offset;
257 s16 offset)
260 accumulator, offset,
266 s16 offset)
269 accumulator, offset,
298 ccd->offset = 0;
318 * Coulomb counter calibration offset is CPCAP_REG_CCM,
321 ccd->offset = buf[4];
322 ccd->offset = sign_extend32(ccd->offset, 9);
333 ccd->offset);
344 s16 offset;
359 /* Coulomb counter calibration offset */
364 offset = sign_extend32(value, 9);
366 return cpcap_battery_cc_to_ua(ddata, sample, acc, offset);
492 latest->cc.offset);
514 latest->cc.offset);
792 /* Read calibration offset from CCM */