Lines Matching refs:s32
66 static int smu_read_adc(u8 id, s32 *value) in smu_read_adc()
88 static int smu_cputemp_get(struct wf_sensor *sr, s32 *value) in smu_cputemp_get()
92 s32 val; in smu_cputemp_get()
106 *value = (s32)(scaled << 1); in smu_cputemp_get()
111 static int smu_cpuamp_get(struct wf_sensor *sr, s32 *value) in smu_cpuamp_get()
114 s32 val, scaled; in smu_cpuamp_get()
125 scaled = (s32)(val * (u32)cpuvcp->curr_scale); in smu_cpuamp_get()
126 scaled += (s32)cpuvcp->curr_offset; in smu_cpuamp_get()
132 static int smu_cpuvolt_get(struct wf_sensor *sr, s32 *value) in smu_cpuvolt_get()
135 s32 val, scaled; in smu_cpuvolt_get()
146 scaled = (s32)(val * (u32)cpuvcp->volt_scale); in smu_cpuvolt_get()
147 scaled += (s32)cpuvcp->volt_offset; in smu_cpuvolt_get()
153 static int smu_slotspow_get(struct wf_sensor *sr, s32 *value) in smu_slotspow_get()
156 s32 val, scaled; in smu_slotspow_get()
167 scaled = (s32)(val * (u32)slotspow->pow_scale); in smu_slotspow_get()
168 scaled += (s32)slotspow->pow_offset; in smu_slotspow_get()
297 static int smu_cpu_power_get(struct wf_sensor *sr, s32 *value) in smu_cpu_power_get()
300 s32 volts, amps, power; in smu_cpu_power_get()
317 power = (s32)((((u64)volts) * ((u64)amps)) >> 16); in smu_cpu_power_get()