Home
last modified time | relevance | path

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

/linux-2.6.39/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 …]
/linux-2.6.39/drivers/media/video/omap3isp/
Dispresizer.h82 u8 slope; /* slope. */ member
Dispresizer.c284 rgval |= (luma->slope << ISPRSZ_YENH_SLOP_SHIFT) in resizer_set_luma()
/linux-2.6.39/drivers/platform/x86/
Dintel_ips.c853 u64 slope, offset; in read_mgtv() local
859 slope = offset = thm_readw(THM_MGTA); in read_mgtv()
860 slope = (slope & MGTA_SLOPE_MASK) >> MGTA_SLOPE_SHIFT; in read_mgtv()
863 ret = ((val * slope + 0x40) >> 7) + offset; in read_mgtv()
870 u16 val, slope, offset; in read_ptv() local
872 slope = (ips->pta_val & PTA_SLOPE_MASK) >> PTA_SLOPE_SHIFT; in read_ptv()
/linux-2.6.39/drivers/net/wireless/ath/ath9k/
Dar9002_calib.c363 int32_t delta, currPDADC, slope; in ar9287_hw_olc_temp_compensation() local
376 slope = ah->eep_ops->get_eeprom(ah, EEP_TEMPSENSE_SLOPE); in ar9287_hw_olc_temp_compensation()
378 if (slope == 0) { /* to avoid divide by zero case */ in ar9287_hw_olc_temp_compensation()
381 delta = ((currPDADC - ah->initPDADC)*4) / slope; in ar9287_hw_olc_temp_compensation()
/linux-2.6.39/drivers/hwmon/
Dlm93.c349 const long slope = (uV_max - uV_min) / in LM93_IN_FROM_REG() local
351 const long intercept = uV_min - slope * lm93_vin_reg_min[nr]; in LM93_IN_FROM_REG()
353 return (slope * reg + intercept + 500) / 1000; in LM93_IN_FROM_REG()
370 const long slope = (uV_max - uV_min) / in LM93_IN_TO_REG() local
372 const long intercept = uV_min - slope * lm93_vin_reg_min[nr]; in LM93_IN_TO_REG()
374 u8 result = ((uV - intercept + (slope/2)) / slope); in LM93_IN_TO_REG()
/linux-2.6.39/drivers/media/dvb/frontends/
Ddib0090.c776 struct slope { struct
778 s16 slope; argument
780 static u16 slopes_to_scale(const struct slope *slopes, u8 num, s16 val) in slopes_to_scale()
790 ret += (rest * slopes[i].slope) / slopes[i].range; in slopes_to_scale()
796 static const struct slope dib0090_wbd_slopes[3] = {