Lines Matching defs:config
75 u8 config; /* The Configuration Register is an 8-bit read/
167 data->config = ret;
204 if (data->config & TC654_REG_CONFIG_RES)
279 val = BIT((data->config >> TC654_FAN_PULSE_SHIFT[nr]) & 0x03);
290 u8 config;
299 config = 0;
302 config = 1;
305 config = 2;
308 config = 3;
316 data->config &= ~(0x03 << TC654_FAN_PULSE_SHIFT[nr]);
317 data->config |= (config << TC654_FAN_PULSE_SHIFT[nr]);
318 ret = i2c_smbus_write_byte_data(client, TC654_REG_CONFIG, data->config);
332 return sprintf(buf, "%d\n", !!(data->config & TC654_REG_CONFIG_DUTYC));
352 data->config |= TC654_REG_CONFIG_DUTYC;
354 data->config &= ~TC654_REG_CONFIG_DUTYC;
356 ret = i2c_smbus_write_byte_data(client, TC654_REG_CONFIG, data->config);
374 if (data->config & TC654_REG_CONFIG_SDM)
398 data->config |= TC654_REG_CONFIG_SDM;
400 data->config &= ~TC654_REG_CONFIG_SDM;
405 ret = i2c_smbus_write_byte_data(client, TC654_REG_CONFIG, data->config);
470 data->config = ret;