• Home
  • Raw
  • Download

Lines Matching refs:regval

250 	u16 regval;  in show_fan16()  local
253 regval = (data->reg[param->msb[0]] << 8) | data->reg[param->lsb[0]]; in show_fan16()
257 (regval == 0 ? -1 : (regval) == in show_fan16()
258 0xffff ? 0 : 5400000 / regval)); in show_fan16()
311 u16 regval; in show_in10() local
315 regval = (data->reg[param->msb[0]] << 8) | (data->reg[param->lsb[0]]); in show_in10()
319 regval = (regval >> 6) * asc7621_in_scaling[nr] / (0xc0 << 2); in show_in10()
321 return sprintf(buf, "%u\n", regval); in show_in10()
418 u8 regval = data->reg[param->msb[0]]; in show_temp62() local
419 int temp = ((s8) (regval & 0xfc) * 1000) + ((regval & 0x03) * 250); in show_temp62()
464 u8 regval; in show_ap2_temp() local
469 regval = in show_ap2_temp()
471 temp = auto_point1 + asc7621_range_map[clamp_val(regval, 0, 15)]; in show_ap2_temp()
514 u8 config, altbit, regval; in show_pwm_ac() local
523 regval = config | (altbit << 3); in show_pwm_ac()
526 return sprintf(buf, "%u\n", map[clamp_val(regval, 0, 15)]); in show_pwm_ac()
663 u8 regval = in show_pwm_freq() local
666 regval = clamp_val(regval, 0, 15); in show_pwm_freq()
668 return sprintf(buf, "%u\n", asc7621_pwm_freq_map[regval]); in show_pwm_freq()
711 u8 regval = in show_pwm_ast() local
714 regval = clamp_val(regval, 0, 7); in show_pwm_ast()
716 return sprintf(buf, "%u\n", asc7621_pwm_auto_spinup_map[regval]); in show_pwm_ast()
760 u8 regval = in show_temp_st() local
762 regval = clamp_val(regval, 0, 7); in show_temp_st()
764 return sprintf(buf, "%u\n", asc7621_temp_smoothing_time_map[regval]); in show_temp_st()