Lines Matching refs:p_reg

17 static int clock_number_from_ptr(NRF_CLOCK_Type * p_reg)  in clock_number_from_ptr()  argument
19 union NRF_CLKPWR_Type *p = (union NRF_CLKPWR_Type *)p_reg; in clock_number_from_ptr()
25 void nrf_clock_int_enable(NRF_CLOCK_Type * p_reg, uint32_t mask) in nrf_clock_int_enable() argument
27 p_reg->INTENSET = mask; in nrf_clock_int_enable()
29 int i = clock_number_from_ptr(p_reg); in nrf_clock_int_enable()
33 void nrf_clock_int_disable(NRF_CLOCK_Type * p_reg, uint32_t mask) in nrf_clock_int_disable() argument
35 p_reg->INTENCLR = mask; in nrf_clock_int_disable()
37 int i = clock_number_from_ptr(p_reg); in nrf_clock_int_disable()
41 void nrf_clock_task_trigger(NRF_CLOCK_Type * p_reg, nrf_clock_task_t task) in nrf_clock_task_trigger() argument
43 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL; in nrf_clock_task_trigger()
45 int i = clock_number_from_ptr(p_reg); in nrf_clock_task_trigger()
87 void nrf_clock_event_clear(NRF_CLOCK_Type * p_reg, nrf_clock_event_t event) in nrf_clock_event_clear() argument
89 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL; in nrf_clock_event_clear()
91 int i = clock_number_from_ptr(p_reg); in nrf_clock_event_clear()
97 static void nrf_clock_subscribe_common(NRF_CLOCK_Type * p_reg, in nrf_clock_subscribe_common() argument
100 int i = clock_number_from_ptr(p_reg); in nrf_clock_subscribe_common()
139 void nrf_clock_subscribe_set(NRF_CLOCK_Type * p_reg, in nrf_clock_subscribe_set() argument
143 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) task + 0x80uL)) = in nrf_clock_subscribe_set()
145 nrf_clock_subscribe_common(p_reg, task); in nrf_clock_subscribe_set()
148 void nrf_clock_subscribe_clear(NRF_CLOCK_Type * p_reg, in nrf_clock_subscribe_clear() argument
151 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) task + 0x80uL)) = 0; in nrf_clock_subscribe_clear()
152 nrf_clock_subscribe_common(p_reg, task); in nrf_clock_subscribe_clear()