Lines Matching refs:val
161 int *val, int *val2)
168 *val = xadc->threshold[offset];
171 *val = xadc->temp_hysteresis;
178 *val >>= 16 - chan->scan_type.realbits;
186 int val, int val2)
193 val <<= 16 - chan->scan_type.realbits;
195 if (val < 0 || val > 0xffff)
202 xadc->threshold[offset] = val;
205 xadc->temp_hysteresis = val;
218 val |= 0x3;
238 ret = _xadc_write_adc_reg(xadc, XADC_REG_THRESHOLD(offset), val);