Lines Matching refs:control_reg
359 u8 *control_reg) in ds2781_get_control_register() argument
361 return ds2781_read8(dev_info, control_reg, DS2781_CONTROL); in ds2781_get_control_register()
365 u8 control_reg) in ds2781_set_control_register() argument
369 ret = ds2781_write(dev_info, &control_reg, in ds2781_set_control_register()
450 u8 control_reg; in ds2781_get_pmod_enabled() local
455 ret = ds2781_get_control_register(dev_info, &control_reg); in ds2781_get_pmod_enabled()
460 !!(control_reg & DS2781_CONTROL_PMOD)); in ds2781_get_pmod_enabled()
469 u8 control_reg, new_setting; in ds2781_set_pmod_enabled() local
474 ret = ds2781_get_control_register(dev_info, &control_reg); in ds2781_set_pmod_enabled()
488 control_reg |= DS2781_CONTROL_PMOD; in ds2781_set_pmod_enabled()
490 control_reg &= ~DS2781_CONTROL_PMOD; in ds2781_set_pmod_enabled()
492 ret = ds2781_set_control_register(dev_info, control_reg); in ds2781_set_pmod_enabled()