Home
last modified time | relevance | path

Searched refs:qfprom_cdata (Results 1 – 2 of 2) sorted by relevance

/drivers/thermal/qcom/
Dtsens-v1.c145 u32 *qfprom_cdata; in calibrate_v1() local
148 qfprom_cdata = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_v1()
149 if (IS_ERR(qfprom_cdata)) in calibrate_v1()
150 return PTR_ERR(qfprom_cdata); in calibrate_v1()
152 mode = (qfprom_cdata[4] & CAL_SEL_MASK) >> CAL_SEL_SHIFT; in calibrate_v1()
157 base1 = (qfprom_cdata[4] & BASE1_MASK) >> BASE1_SHIFT; in calibrate_v1()
158 p2[0] = (qfprom_cdata[0] & S0_P2_MASK) >> S0_P2_SHIFT; in calibrate_v1()
159 p2[1] = (qfprom_cdata[0] & S1_P2_MASK) >> S1_P2_SHIFT; in calibrate_v1()
161 lsb = (qfprom_cdata[0] & S2_P2_MASK_1_0) >> S2_P2_SHIFT_1_0; in calibrate_v1()
162 msb = (qfprom_cdata[1] & S2_P2_MASK_5_2) >> S2_P2_SHIFT_5_2; in calibrate_v1()
[all …]
Dtsens-v0_1.c231 u32 *qfprom_cdata, *qfprom_csel; in calibrate_8916() local
233 qfprom_cdata = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8916()
234 if (IS_ERR(qfprom_cdata)) in calibrate_8916()
235 return PTR_ERR(qfprom_cdata); in calibrate_8916()
239 kfree(qfprom_cdata); in calibrate_8916()
248 base1 = (qfprom_cdata[1] & MSM8916_BASE1_MASK) >> MSM8916_BASE1_SHIFT; in calibrate_8916()
249 p2[0] = (qfprom_cdata[0] & MSM8916_S0_P2_MASK) >> MSM8916_S0_P2_SHIFT; in calibrate_8916()
250 p2[1] = (qfprom_cdata[0] & MSM8916_S1_P2_MASK) >> MSM8916_S1_P2_SHIFT; in calibrate_8916()
251 p2[2] = (qfprom_cdata[1] & MSM8916_S2_P2_MASK) >> MSM8916_S2_P2_SHIFT; in calibrate_8916()
252 p2[3] = (qfprom_cdata[1] & MSM8916_S3_P2_MASK) >> MSM8916_S3_P2_SHIFT; in calibrate_8916()
[all …]