Lines Matching full:scaled
92 s64 scaled; in smu_cputemp_get() local
102 scaled = (s64)(((u64)val) * (u64)cpudiode->m_value); in smu_cputemp_get()
103 scaled >>= 3; in smu_cputemp_get()
104 scaled += ((s64)cpudiode->b_value) << 9; in smu_cputemp_get()
105 *value = (s32)(scaled << 1); in smu_cputemp_get()
113 s32 val, scaled; in smu_cpuamp_get() local
124 scaled = (s32)(val * (u32)cpuvcp->curr_scale); in smu_cpuamp_get()
125 scaled += (s32)cpuvcp->curr_offset; in smu_cpuamp_get()
126 *value = scaled << 4; in smu_cpuamp_get()
134 s32 val, scaled; in smu_cpuvolt_get() local
145 scaled = (s32)(val * (u32)cpuvcp->volt_scale); in smu_cpuvolt_get()
146 scaled += (s32)cpuvcp->volt_offset; in smu_cpuvolt_get()
147 *value = scaled << 4; in smu_cpuvolt_get()
155 s32 val, scaled; in smu_slotspow_get() local
166 scaled = (s32)(val * (u32)slotspow->pow_scale); in smu_slotspow_get()
167 scaled += (s32)slotspow->pow_offset; in smu_slotspow_get()
168 *value = scaled << 4; in smu_slotspow_get()