Lines Matching refs:pattern
169 int *reg, int *mask, int *pattern) in max8997_get_enable_register() argument
177 *pattern = 0xC0; in max8997_get_enable_register()
182 *pattern = 0x01; in max8997_get_enable_register()
187 *pattern = 0x01; in max8997_get_enable_register()
192 *pattern = 0x01; in max8997_get_enable_register()
197 *pattern = 0x01; in max8997_get_enable_register()
202 *pattern = 0x01; in max8997_get_enable_register()
207 *pattern = 0x01; in max8997_get_enable_register()
212 *pattern = 0x01; in max8997_get_enable_register()
217 *pattern = 0x01 << (rid - MAX8997_EN32KHZ_AP); in max8997_get_enable_register()
222 *pattern = 0x80; in max8997_get_enable_register()
227 *pattern = 0x40 << (rid - MAX8997_ESAFEOUT1); in max8997_get_enable_register()
232 *pattern = 0x40; in max8997_get_enable_register()
246 int ret, reg, mask, pattern; in max8997_reg_is_enabled() local
249 ret = max8997_get_enable_register(rdev, ®, &mask, &pattern); in max8997_reg_is_enabled()
257 return (val & mask) == pattern; in max8997_reg_is_enabled()
264 int ret, reg, mask, pattern; in max8997_reg_enable() local
266 ret = max8997_get_enable_register(rdev, ®, &mask, &pattern); in max8997_reg_enable()
270 return max8997_update_reg(i2c, reg, pattern, mask); in max8997_reg_enable()
277 int ret, reg, mask, pattern; in max8997_reg_disable() local
279 ret = max8997_get_enable_register(rdev, ®, &mask, &pattern); in max8997_reg_disable()
283 return max8997_update_reg(i2c, reg, ~pattern, mask); in max8997_reg_disable()
712 int ret, reg, mask, pattern; in max8997_reg_disable_suspend() local
715 ret = max8997_get_enable_register(rdev, ®, &mask, &pattern); in max8997_reg_disable_suspend()
731 (~pattern) & mask); in max8997_reg_disable_suspend()
732 return max8997_update_reg(i2c, reg, ~pattern, mask); in max8997_reg_disable_suspend()