Lines Matching refs:__val

135 	__be16 __val = 0;  in __ltc2947_val_read16()  local
138 ret = regmap_bulk_read(st->map, reg, &__val, 2); in __ltc2947_val_read16()
142 *val = be16_to_cpu(__val); in __ltc2947_val_read16()
150 __be32 __val = 0; in __ltc2947_val_read24() local
153 ret = regmap_bulk_read(st->map, reg, &__val, 3); in __ltc2947_val_read24()
157 *val = be32_to_cpu(__val) >> 8; in __ltc2947_val_read24()
165 __be64 __val = 0; in __ltc2947_val_read64() local
168 ret = regmap_bulk_read(st->map, reg, &__val, 6); in __ltc2947_val_read64()
172 *val = be64_to_cpu(__val) >> 16; in __ltc2947_val_read64()
181 u64 __val = 0; in ltc2947_val_read() local
196 ret = __ltc2947_val_read16(st, reg, &__val); in ltc2947_val_read()
199 ret = __ltc2947_val_read24(st, reg, &__val); in ltc2947_val_read()
202 ret = __ltc2947_val_read64(st, reg, &__val); in ltc2947_val_read()
214 *val = sign_extend64(__val, (8 * size) - 1); in ltc2947_val_read()
216 dev_dbg(st->dev, "Got s:%lld, u:%016llX\n", *val, __val); in ltc2947_val_read()
224 __be64 __val; in __ltc2947_val_write64() local
226 __val = cpu_to_be64(val << 16); in __ltc2947_val_write64()
227 return regmap_bulk_write(st->map, reg, &__val, 6); in __ltc2947_val_write64()
233 __be16 __val; in __ltc2947_val_write16() local
235 __val = cpu_to_be16(val); in __ltc2947_val_write16()
236 return regmap_bulk_write(st->map, reg, &__val, 2); in __ltc2947_val_write16()
344 s64 __val = 0; in ltc2947_read_temp() local
349 2, &__val); in ltc2947_read_temp()
353 2, &__val); in ltc2947_read_temp()
357 2, &__val); in ltc2947_read_temp()
378 LTC2947_PAGE1, 2, &__val); in ltc2947_read_temp()
381 LTC2947_PAGE1, 2, &__val); in ltc2947_read_temp()
386 LTC2947_PAGE1, 2, &__val); in ltc2947_read_temp()
389 LTC2947_PAGE1, 2, &__val); in ltc2947_read_temp()
399 *val = (__val * 204) + 550; in ltc2947_read_temp()
409 s64 __val = 0; in ltc2947_read_power() local
414 3, &__val); in ltc2947_read_power()
419 2, &__val); in ltc2947_read_power()
423 2, &__val); in ltc2947_read_power()
433 LTC2947_PAGE1, 2, &__val); in ltc2947_read_power()
437 LTC2947_PAGE1, 2, &__val); in ltc2947_read_power()
446 *val = __val * lsb; in ltc2947_read_power()
456 s64 __val = 0; in ltc2947_read_curr() local
461 LTC2947_PAGE0, 3, &__val); in ltc2947_read_curr()
466 LTC2947_PAGE0, 2, &__val); in ltc2947_read_curr()
470 LTC2947_PAGE0, 2, &__val); in ltc2947_read_curr()
480 LTC2947_PAGE1, 2, &__val); in ltc2947_read_curr()
484 LTC2947_PAGE1, 2, &__val); in ltc2947_read_curr()
493 *val = __val * lsb; in ltc2947_read_curr()
504 s64 __val = 0; in ltc2947_read_in() local
515 LTC2947_PAGE0, 2, &__val); in ltc2947_read_in()
519 LTC2947_PAGE0, 2, &__val); in ltc2947_read_in()
525 LTC2947_PAGE0, 2, &__val); in ltc2947_read_in()
529 LTC2947_PAGE0, 2, &__val); in ltc2947_read_in()
535 LTC2947_PAGE0, 2, &__val); in ltc2947_read_in()
539 LTC2947_PAGE0, 2, &__val); in ltc2947_read_in()
561 LTC2947_PAGE1, 2, &__val); in ltc2947_read_in()
565 LTC2947_PAGE1, 2, &__val); in ltc2947_read_in()
571 LTC2947_PAGE1, 2, &__val); in ltc2947_read_in()
575 LTC2947_PAGE1, 2, &__val); in ltc2947_read_in()
585 *val = __val * lsb; in ltc2947_read_in()