Lines Matching defs:pattern
201 int *reg, int *mask, int *pattern)
209 *pattern = 0xC0;
214 *pattern = 0x01;
219 *pattern = 0x01;
224 *pattern = 0x01;
229 *pattern = 0x01;
234 *pattern = 0x01;
239 *pattern = 0x01;
244 *pattern = 0x01;
249 *pattern = 0x01 << (rid - MAX8997_EN32KHZ_AP);
254 *pattern = 0x80;
259 *pattern = 0x40 << (rid - MAX8997_ESAFEOUT1);
264 *pattern = 0x40;
278 int ret, reg, mask, pattern;
281 ret = max8997_get_enable_register(rdev, ®, &mask, &pattern);
291 return (val & mask) == pattern;
298 int ret, reg, mask, pattern;
300 ret = max8997_get_enable_register(rdev, ®, &mask, &pattern);
304 return max8997_update_reg(i2c, reg, pattern, mask);
311 int ret, reg, mask, pattern;
313 ret = max8997_get_enable_register(rdev, ®, &mask, &pattern);
317 return max8997_update_reg(i2c, reg, ~pattern, mask);
763 int ret, reg, mask, pattern;
766 ret = max8997_get_enable_register(rdev, ®, &mask, &pattern);
782 (~pattern) & mask);
783 return max8997_update_reg(i2c, reg, ~pattern, mask);