Lines Matching refs:uch_config
38 static int uch_config = -1; variable
39 module_param(uch_config, int, 0);
40 MODULE_PARM_DESC(uch_config, "Initialize the universal channel configuration");
140 u8 uch_config; /* Read once at init time */ member
145 #define ISVOLT(ix, uch_config) ((ix) > 4 ? 1 : \ argument
146 !(((uch_config) >> ((ix) + 2)) & 1))
149 #define ISTEMP(ix, uch_config) ((ix) < 2 ? 1 : \ argument
150 ((uch_config) >> (ix)) & 1)
260 if (ISVOLT(ix, data->uch_config)) { in vt1211_update_device()
272 if (ISTEMP(ix, data->uch_config)) { in vt1211_update_device()
672 if (!ISTEMP(val - 1, data->uch_config)) { in set_pwm()
1063 data->uch_config = vt1211_read8(data, VT1211_REG_UCH_CONFIG); in vt1211_init_device()
1064 if (uch_config > -1) { in vt1211_init_device()
1065 data->uch_config = (data->uch_config & 0x83) | in vt1211_init_device()
1066 (uch_config << 2); in vt1211_init_device()
1067 vt1211_write8(data, VT1211_REG_UCH_CONFIG, data->uch_config); in vt1211_init_device()
1156 if (ISVOLT(i, data->uch_config)) { in vt1211_probe()
1170 if (ISTEMP(i, data->uch_config)) { in vt1211_probe()
1337 if ((uch_config < -1) || (uch_config > 31)) { in vt1211_init()
1340 "Choose a value between 0 and 31.\n", uch_config); in vt1211_init()