Lines Matching full:scaled
93 s64 scaled; in smu_cputemp_get() local
103 scaled = (s64)(((u64)val) * (u64)cpudiode->m_value); in smu_cputemp_get()
104 scaled >>= 3; in smu_cputemp_get()
105 scaled += ((s64)cpudiode->b_value) << 9; in smu_cputemp_get()
106 *value = (s32)(scaled << 1); in smu_cputemp_get()
114 s32 val, scaled; in smu_cpuamp_get() local
125 scaled = (s32)(val * (u32)cpuvcp->curr_scale); in smu_cpuamp_get()
126 scaled += (s32)cpuvcp->curr_offset; in smu_cpuamp_get()
127 *value = scaled << 4; in smu_cpuamp_get()
135 s32 val, scaled; in smu_cpuvolt_get() local
146 scaled = (s32)(val * (u32)cpuvcp->volt_scale); in smu_cpuvolt_get()
147 scaled += (s32)cpuvcp->volt_offset; in smu_cpuvolt_get()
148 *value = scaled << 4; in smu_cpuvolt_get()
156 s32 val, scaled; in smu_slotspow_get() local
167 scaled = (s32)(val * (u32)slotspow->pow_scale); in smu_slotspow_get()
168 scaled += (s32)slotspow->pow_offset; in smu_slotspow_get()
169 *value = scaled << 4; in smu_slotspow_get()