Lines Matching refs:watch
131 struct counter_watch *const watch, in counter_set_event_node() argument
140 if (event_node->event == watch->event && in counter_set_event_node()
141 event_node->channel == watch->channel) in counter_set_event_node()
152 event_node->event = watch->event; in counter_set_event_node()
153 event_node->channel = watch->channel; in counter_set_event_node()
235 struct counter_watch watch; in counter_add_watch() local
242 if (copy_from_user(&watch, uwatch, sizeof(watch))) in counter_add_watch()
245 if (watch.component.type == COUNTER_COMPONENT_NONE) in counter_add_watch()
248 parent = watch.component.parent; in counter_add_watch()
251 switch (watch.component.scope) { in counter_add_watch()
280 id = watch.component.id; in counter_add_watch()
283 switch (watch.component.type) { in counter_add_watch()
285 if (watch.component.scope != COUNTER_SCOPE_SIGNAL) in counter_add_watch()
292 if (watch.component.scope != COUNTER_SCOPE_COUNT) in counter_add_watch()
299 if (watch.component.scope != COUNTER_SCOPE_COUNT) in counter_add_watch()
306 if (watch.component.scope != COUNTER_SCOPE_COUNT) in counter_add_watch()
333 err = counter->ops->watch_validate(counter, &watch); in counter_add_watch()
338 comp_node.component = watch.component; in counter_add_watch()
340 err = counter_set_event_node(counter, &watch, &comp_node); in counter_add_watch()
542 ev.watch.event = event; in counter_push_event()
543 ev.watch.channel = channel; in counter_push_event()
560 ev.watch.component = comp_node->component; in counter_push_event()