Lines Matching defs:value
205 s16 value;
209 * TPS65910 uses two's complement 16 bit value for compensation for RTC
211 * increments from 0 to 1 compensation value will be added to internal
212 * RTC counter value.
214 * Compensation value 0x7FFF is prohibited value.
216 * Valid range for compensation value: [-32768 .. 32766]
219 dev_err(dev, "RTC calibration value out of range: %d\n",
224 value = (s16)calibration;
226 comp_data[0] = (u16)value & 0xFF;
227 comp_data[1] = ((u16)value >> 8) & 0xFF;
251 u16 value;
271 value = (u16)comp_data[0] | ((u16)comp_data[1] << 8);
273 *calibration = (s16)value;
296 /* Offset value operates in negative way, so swap sign */
308 /* Make sure offset value is within supported range */
320 /* Offset value operates in negative way, so swap sign */