Lines Matching refs:control_reg
372 u8 *control_reg) in ds2781_get_control_register() argument
374 return ds2781_read8(dev_info, control_reg, DS2781_CONTROL); in ds2781_get_control_register()
378 u8 control_reg) in ds2781_set_control_register() argument
382 ret = ds2781_write(dev_info, &control_reg, in ds2781_set_control_register()
463 u8 control_reg; in ds2781_get_pmod_enabled() local
468 ret = ds2781_get_control_register(dev_info, &control_reg); in ds2781_get_pmod_enabled()
473 !!(control_reg & DS2781_CONTROL_PMOD)); in ds2781_get_pmod_enabled()
482 u8 control_reg, new_setting; in ds2781_set_pmod_enabled() local
487 ret = ds2781_get_control_register(dev_info, &control_reg); in ds2781_set_pmod_enabled()
501 control_reg |= DS2781_CONTROL_PMOD; in ds2781_set_pmod_enabled()
503 control_reg &= ~DS2781_CONTROL_PMOD; in ds2781_set_pmod_enabled()
505 ret = ds2781_set_control_register(dev_info, control_reg); in ds2781_set_pmod_enabled()