Lines Matching defs:offset
295 int32_t offset = 0;
308 * whether we need to correct the diode offset for JH-E6 chips below */
327 offset = BITS(data, 28, 25) << 1;
328 v->t_case_max = (offset != 0) ? ((offset + 49) * 1000) : INT32_MAX;
332 /* RO: Diode offset */
335 offset = 0;
338 offset = BITS(data, 14, 8);
339 if (offset == 0 || offset >= 0x40) {
340 offset = 0;
342 offset = (11 - offset) * 1000;
345 /* 0Fh: BDGK says, offset needs to be added - so we change the sign */
348 offset = BITS(v->modelStepping, 5, 4);
349 if (offset == 0) {
351 offset = BITS(data, 28, 24) * -1000;
352 } else if (offset == 3 && ((brandIdx > 0xA)
356 offset = BITS(data, 28, 24) * -1000;
359 offset = BITS(data, 13, 8);
360 if (offset != 0) {
361 offset = (11 - offset) * -1000;
368 offset = - BITS(data, 13, 8);
371 offset *= -1000;
373 offset *= 1000;
377 offset += 10000;
380 v->diode_offset = offset;