Searched refs:sen (Results 1 – 3 of 3) sorted by relevance
150 struct sprd_thermal_sensor *sen) in sprd_thm_sensor_calibration() argument172 sen->cal_slope = (thm->var_data->ideal_k * ratio) / 1000; in sprd_thm_sensor_calibration()173 sen->cal_offset = thm->var_data->ideal_b + (dt_offset - 128) * 250; in sprd_thm_sensor_calibration()178 static int sprd_thm_rawdata_to_temp(struct sprd_thermal_sensor *sen, in sprd_thm_rawdata_to_temp() argument188 return sen->cal_slope * rawdata - sen->cal_offset; in sprd_thm_rawdata_to_temp()191 static int sprd_thm_temp_to_rawdata(int temp, struct sprd_thermal_sensor *sen) in sprd_thm_temp_to_rawdata() argument202 val = (temp + sen->cal_offset) / sen->cal_slope; in sprd_thm_temp_to_rawdata()209 struct sprd_thermal_sensor *sen = devdata; in sprd_thm_read_temp() local212 data = readl(sen->data->base + SPRD_THM_TEMP(sen->id)) & in sprd_thm_read_temp()215 *temp = sprd_thm_rawdata_to_temp(sen, data); in sprd_thm_read_temp()[all …]
26 struct rsnd_kctrl_cfg_s sen; /* sync convert enable */ member35 #define rsnd_src_sync_is_enabled(mod) (rsnd_mod_to_src(mod)->sen.val)576 &src->sen, 1); in rsnd_src_pcm_new()
95 reg_vdd_sen: regulator-vdd-sen {