Lines Matching refs:watch
443 const struct counter_watch *watch) in quad8_watch_validate() argument
447 if (watch->channel > QUAD8_NUM_COUNTERS - 1) in quad8_watch_validate()
450 switch (watch->event) { in quad8_watch_validate()
452 if (priv->next_irq_trigger[watch->channel] == QUAD8_EVENT_NONE) in quad8_watch_validate()
453 priv->next_irq_trigger[watch->channel] = QUAD8_EVENT_CARRY; in quad8_watch_validate()
454 else if (priv->next_irq_trigger[watch->channel] != QUAD8_EVENT_CARRY) in quad8_watch_validate()
458 if (priv->next_irq_trigger[watch->channel] == QUAD8_EVENT_NONE) in quad8_watch_validate()
459 priv->next_irq_trigger[watch->channel] = QUAD8_EVENT_COMPARE; in quad8_watch_validate()
460 else if (priv->next_irq_trigger[watch->channel] != QUAD8_EVENT_COMPARE) in quad8_watch_validate()
464 if (priv->next_irq_trigger[watch->channel] == QUAD8_EVENT_NONE) in quad8_watch_validate()
465 priv->next_irq_trigger[watch->channel] = QUAD8_EVENT_CARRY_BORROW; in quad8_watch_validate()
466 else if (priv->next_irq_trigger[watch->channel] != QUAD8_EVENT_CARRY_BORROW) in quad8_watch_validate()
470 if (priv->next_irq_trigger[watch->channel] == QUAD8_EVENT_NONE) in quad8_watch_validate()
471 priv->next_irq_trigger[watch->channel] = QUAD8_EVENT_INDEX; in quad8_watch_validate()
472 else if (priv->next_irq_trigger[watch->channel] != QUAD8_EVENT_INDEX) in quad8_watch_validate()