Home
last modified time | relevance | path

Searched refs:scaled (Results 1 – 9 of 9) sorted by relevance

/drivers/macintosh/
Dwindfarm_smu_sensors.c93 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
[all …]
Dwindfarm_pm81.c331 s32 new_setpoint, temp, scaled, cputarget; in wf_smu_sys_fans_tick() local
359 scaled = ((((s64)new_setpoint) * (s64)st->scale0) >> 12) + st->offset0; in wf_smu_sys_fans_tick()
361 DBG("wf_smu: scaled setpoint: %d RPM\n", (int)scaled); in wf_smu_sys_fans_tick()
365 scaled = max(scaled, cputarget); in wf_smu_sys_fans_tick()
366 scaled = max(scaled, st->pid.param.min); in wf_smu_sys_fans_tick()
367 scaled = min(scaled, st->pid.param.max); in wf_smu_sys_fans_tick()
369 DBG("wf_smu: adjusted setpoint: %d RPM\n", (int)scaled); in wf_smu_sys_fans_tick()
371 if (st->sys_setpoint == scaled && new_setpoint == st->hd_setpoint) in wf_smu_sys_fans_tick()
373 st->sys_setpoint = scaled; in wf_smu_sys_fans_tick()
/drivers/iio/light/
Dtsl2563.c440 unsigned long scaled = adc; in tsl2563_calib_adc() local
442 scaled *= calib; in tsl2563_calib_adc()
443 scaled >>= CALIB_FRAC_BITS; in tsl2563_calib_adc()
445 return (u32) scaled; in tsl2563_calib_adc()
/drivers/staging/media/ipu3/
Dipu3-css-params.c318 unsigned int scaled; member
424 int scaled = 0; in imgu_css_osys_calc_frame_and_stripe_params() local
462 scaled = 1; in imgu_css_osys_calc_frame_and_stripe_params()
474 frame_params[pin].scaled = scaled; in imgu_css_osys_calc_frame_and_stripe_params()
780 if (frame_params[i].scaled) { in imgu_css_osys_calc_frame_and_stripe_params()
1002 fr_pr->scaled = frame_params[pin].scaled; in imgu_css_osys_calc()
1048 if (frame_params[pin].scaled) { in imgu_css_osys_calc()
1098 if (frame_params[pin].scaled) { in imgu_css_osys_calc()
1139 if (frame_params[pin].scaled) in imgu_css_osys_calc()
Dipu3-abi.h1029 u32 scaled; member
/drivers/gpu/drm/gma500/
Dpsb_intel_sdvo_regs.h104 u8 scaled:1; member
Dpsb_intel_sdvo.c729 args.scaled = 1; in psb_intel_sdvo_create_preferred_input_timing()
/drivers/gpu/drm/i915/display/
Dintel_sdvo_regs.h115 u8 scaled:1; member
Dintel_sdvo.c802 args.scaled = 1; in intel_sdvo_create_preferred_input_timing()