Home
last modified time | relevance | path

Searched refs:slope (Results 1 – 25 of 26) sorted by relevance

12

/drivers/macintosh/
Dwindfarm_pm121.c284 int slope; member
292 .slope = 1956315
296 .slope = 1565065
303 .slope = 1565065
307 .slope = 1956315
314 .slope = 2543190
318 .slope = 1565065
335 .slope = 65536
342 .slope = 65536
481 new_min = (average_power * correction->slope) >> 16; in pm121_correct()
[all …]
/drivers/thermal/qcom/
Dtsens-common.c64 tmdev->sensor[i].slope = SLOPE_DEFAULT; in compute_intercept_slope()
73 tmdev->sensor[i].slope = num / den; in compute_intercept_slope()
78 tmdev->sensor[i].slope); in compute_intercept_slope()
88 den = s->slope; in code_to_degc()
Dtsens-8960.c247 int slope, offset; in code_to_mdegC() local
249 slope = thermal_zone_get_slope(s->tzd); in code_to_mdegC()
250 offset = CAL_MDEGC - slope * s->offset; in code_to_mdegC()
252 return adc_code * slope + offset; in code_to_mdegC()
Dtsens.h30 int slope; member
/drivers/thermal/ti-soc-thermal/
Ddra752-thermal-data.c439 .slope = DRA752_GRADIENT_SLOPE,
448 .slope = DRA752_GRADIENT_SLOPE,
457 .slope = DRA752_GRADIENT_SLOPE,
466 .slope = DRA752_GRADIENT_SLOPE,
475 .slope = DRA752_GRADIENT_SLOPE,
Dti-thermal-common.c85 int ret, tmp, slope, constant; in __ti_thermal_get_temp() local
99 slope = s->slope; in __ti_thermal_get_temp()
108 slope = s->slope_pcb; in __ti_thermal_get_temp()
116 *temp = ti_thermal_hotspot_temperature(tmp, slope, constant); in __ti_thermal_get_temp()
Domap4-thermal-data.c85 .slope = OMAP_GRADIENT_SLOPE_4430,
225 .slope = OMAP_GRADIENT_SLOPE_4460,
258 .slope = OMAP_GRADIENT_SLOPE_4470,
Domap3-thermal-data.c94 .slope = 0,
167 .slope = 0,
Domap5-thermal-data.c339 .slope = OMAP_GRADIENT_SLOPE_5430_CPU,
348 .slope = OMAP_GRADIENT_SLOPE_5430_GPU,
Dti-bandgap.h277 const int slope; member
/drivers/thermal/
Dof-thermal.c75 int slope; member
856 tz->slope = coef[0]; in thermal_of_build_thermal_zone()
859 tz->slope = 1; in thermal_of_build_thermal_zone()
1007 tzp->slope = tz->slope; in of_parse_thermal_zones()
Dthermal_core.c1049 create_s32_tzp_attr(slope);
2141 return tz->tzp->slope; in thermal_zone_get_slope()
/drivers/platform/x86/
Dintel_ips.c847 u64 slope, offset; in read_mgtv() local
853 slope = offset = thm_readw(THM_MGTA); in read_mgtv()
854 slope = (slope & MGTA_SLOPE_MASK) >> MGTA_SLOPE_SHIFT; in read_mgtv()
857 ret = ((val * slope + 0x40) >> 7) + offset; in read_mgtv()
864 u16 val, slope, offset; in read_ptv() local
866 slope = (ips->pta_val & PTA_SLOPE_MASK) >> PTA_SLOPE_SHIFT; in read_ptv()
/drivers/media/platform/omap3isp/
Dispresizer.h73 u8 slope; /* slope. */ member
/drivers/net/wireless/mediatek/mt7601u/
Deeprom.h115 u8 slope; member
Ddebugfs.c134 seq_printf(file, "\t slope:%02hhx\n", td->slope); in mt7601u_eeprom_param_read()
Deeprom.c365 d->slope = eeprom[MT_EE_TX_TSSI_SLOPE]; in mt7601u_init_tssi_params()
Dphy.c640 init_offset = -((tssi_db * d->slope + d->offset[1]) / 4096) + 10; in mt7601u_set_initial_tssi()
918 curr_pwr = tssi_db * dev->ee->tssi_data.slope + (tssi_offset << 9); in mt7601u_tssi_cal()
/drivers/staging/media/davinci_vpfe/
Ddavinci_vpfe_user.h785 unsigned short slope; member
907 short slope; member
Ddm365_ipipe_hw.c600 regw_ip(base_addr, gic->slope & GIC_SLOPE_MASK, GIC_SLP); in ipipe_set_gic_regs()
736 val = table[count].slope & GAMMA_MASK; in ipipe_update_gamma_tbl()
Ddm365_ipipe.c291 gic->thr > GIC_THR_MASK || gic->slope > GIC_SLOPE_MASK || in ipipe_validate_gic_params()
585 if (table[i].slope > GAMMA_MASK || in ipipe_validate_gamma_entry()
/drivers/net/wireless/ath/ath9k/
Dar9002_calib.c371 int32_t delta, currPDADC, slope; in ar9287_hw_olc_temp_compensation() local
384 slope = ah->eep_ops->get_eeprom(ah, EEP_TEMPSENSE_SLOPE); in ar9287_hw_olc_temp_compensation()
386 if (slope == 0) { /* to avoid divide by zero case */ in ar9287_hw_olc_temp_compensation()
389 delta = ((currPDADC - ah->initPDADC)*4) / slope; in ar9287_hw_olc_temp_compensation()
/drivers/hwmon/
Dlm93.c360 const long slope = (uv_max - uv_min) / in LM93_IN_FROM_REG() local
362 const long intercept = uv_min - slope * lm93_vin_reg_min[nr]; in LM93_IN_FROM_REG()
364 return (slope * reg + intercept + 500) / 1000; in LM93_IN_FROM_REG()
383 const long slope = (uv_max - uv_min) / in LM93_IN_TO_REG() local
385 const long intercept = uv_min - slope * lm93_vin_reg_min[nr]; in LM93_IN_TO_REG()
387 u8 result = ((uv - intercept + (slope/2)) / slope); in LM93_IN_TO_REG()
/drivers/media/dvb-frontends/
Ddib0090.c872 struct slope { struct
874 s16 slope; member
876 static u16 slopes_to_scale(const struct slope *slopes, u8 num, s16 val) in slopes_to_scale()
886 ret += (rest * slopes[i].slope) / slopes[i].range; in slopes_to_scale()
892 static const struct slope dib0090_wbd_slopes[3] = {
Ddrxd_hard.c606 u16 slope, offset; in SetCfgIfAgc() local
630 slope = (u16) ((cfg->maxOutputLevel - in SetCfgIfAgc()
635 status = Write16(state, FE_AG_REG_GC1_AGC_RIC__A, slope, 0); in SetCfgIfAgc()

12