Lines Matching refs:id

37 			     uint8_t id)  in trigger_callback()  argument
39 uint8_t idx = id - EVENTS_IDX_MIN; in trigger_callback()
41 if ((cbs->enabled_mask & BIT(id)) && (cbs->cb[idx] != NULL)) { in trigger_callback()
42 cbs->cb[idx](dev, id, cbs->user_data[idx], NULL); in trigger_callback()
54 for (uint8_t id = EVENTS_IDX_MIN; id < EVENTS_IDX_MAX + 1U; id++) { in vevif_event_rx_isr() local
55 nrf_vpr_event_t event = nrfy_vpr_triggered_event_get(id); in vevif_event_rx_isr()
58 trigger_callback(dev, cbs, id); in vevif_event_rx_isr()
66 static inline bool vevif_event_rx_event_is_valid(uint32_t events_mask, uint32_t id) in vevif_event_rx_event_is_valid() argument
68 return ((id <= EVENTS_IDX_MAX) && ((events_mask & BIT(id)) != 0U)); in vevif_event_rx_event_is_valid()
78 static int vevif_event_rx_register_callback(const struct device *dev, uint32_t id, in vevif_event_rx_register_callback() argument
83 uint8_t idx = id - EVENTS_IDX_MIN; in vevif_event_rx_register_callback()
85 if (!vevif_event_rx_event_is_valid(config->events_mask, id)) { in vevif_event_rx_register_callback()
95 static int vevif_event_rx_set_enabled(const struct device *dev, uint32_t id, bool enable) in vevif_event_rx_set_enabled() argument
100 if (!vevif_event_rx_event_is_valid(config->events_mask, id)) { in vevif_event_rx_set_enabled()
105 if ((cbs->enabled_mask & BIT(id)) != 0U) { in vevif_event_rx_set_enabled()
109 cbs->enabled_mask |= BIT(id); in vevif_event_rx_set_enabled()
110 nrfy_vpr_int_enable(config->vpr, BIT(id)); in vevif_event_rx_set_enabled()
112 if ((cbs->enabled_mask & BIT(id)) == 0U) { in vevif_event_rx_set_enabled()
116 cbs->enabled_mask &= ~BIT(id); in vevif_event_rx_set_enabled()
117 nrfy_vpr_int_disable(config->vpr, BIT(id)); in vevif_event_rx_set_enabled()