Lines Matching defs:bypass_attn
173 u8 bypass_attn; /* Bypass voltage attenuator */
254 static inline int reg2volt(int channel, u16 reg, u8 bypass_attn)
258 if (bypass_attn & (1 << channel))
263 static inline u16 volt2reg(int channel, long volt, u8 bypass_attn)
268 if (bypass_attn & (1 << channel))
332 reg2volt(sattr->index, val, data->bypass_attn));
352 volt2reg(sattr->index, val, data->bypass_attn);
1310 data->bypass_attn = (0x3 << 3) | 0x3;
1312 data->bypass_attn = ((data->config4 & CONFIG4_ATTN_IN10) >> 4) |
1315 data->bypass_attn &= data->has_voltage;
1379 if (data->bypass_attn)
1381 (data->bypass_attn & (1 << 0)) ? " in0" : "",
1382 (data->bypass_attn & (1 << 1)) ? " in1" : "",
1383 (data->bypass_attn & (1 << 3)) ? " in3" : "",
1384 (data->bypass_attn & (1 << 4)) ? " in4" : "");