Lines Matching refs:config
200 u16 config; /* current configuration */ member
276 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK) in show_temp_hyst()
334 data->config = (data->config & ~JC42_CFG_HYST_MASK) in set_temp_crit_hyst()
337 data->config); in set_temp_crit_hyst()
355 if (bit != JC42_ALARM_CRIT_BIT && (data->config & JC42_CFG_CRIT_ONLY)) in show_alarm()
394 unsigned int config = data->config; in jc42_attribute_mode() local
398 readonly = config & JC42_CFG_TCRIT_LOCK; in jc42_attribute_mode()
401 readonly = config & JC42_CFG_EVENT_LOCK; in jc42_attribute_mode()
403 readonly = config & (JC42_CFG_EVENT_LOCK | JC42_CFG_TCRIT_LOCK); in jc42_attribute_mode()
420 int i, config, cap, manid, devid; in jc42_detect() local
427 config = i2c_smbus_read_word_swapped(client, JC42_REG_CONFIG); in jc42_detect()
431 if (cap < 0 || config < 0 || manid < 0 || devid < 0) in jc42_detect()
434 if ((cap & 0xff00) || (config & 0xf800)) in jc42_detect()
453 int config, cap; in jc42_probe() local
469 config = i2c_smbus_read_word_swapped(client, JC42_REG_CONFIG); in jc42_probe()
470 if (config < 0) in jc42_probe()
471 return config; in jc42_probe()
473 data->orig_config = config; in jc42_probe()
474 if (config & JC42_CFG_SHUTDOWN) { in jc42_probe()
475 config &= ~JC42_CFG_SHUTDOWN; in jc42_probe()
476 i2c_smbus_write_word_swapped(client, JC42_REG_CONFIG, config); in jc42_probe()
478 data->config = config; in jc42_probe()
491 if ((data->config & ~JC42_CFG_HYST_MASK) != in jc42_remove()
493 int config; in jc42_remove() local
495 config = (data->orig_config & ~JC42_CFG_HYST_MASK) in jc42_remove()
496 | (data->config & JC42_CFG_HYST_MASK); in jc42_remove()
497 i2c_smbus_write_word_swapped(client, JC42_REG_CONFIG, config); in jc42_remove()
508 data->config |= JC42_CFG_SHUTDOWN; in jc42_suspend()
510 data->config); in jc42_suspend()
518 data->config &= ~JC42_CFG_SHUTDOWN; in jc42_resume()
520 data->config); in jc42_resume()