Lines Matching refs:p_reg
47 NRFY_STATIC_INLINE bool __nrfy_internal_mvdma_event_handle(NRF_MVDMA_Type * p_reg,
53 uint32_t __nrfy_internal_mvdma_events_process(NRF_MVDMA_Type * p_reg,
57 NRFY_STATIC_INLINE void __nrfy_internal_mvdma_event_enabled_clear(NRF_MVDMA_Type * p_reg,
63 NRFY_STATIC_INLINE uint32_t __nrfy_internal_mvdma_sink_job_count_get(NRF_MVDMA_Type const * p_reg);
119 NRFY_STATIC_INLINE void nrfy_mvdma_int_init(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_int_init() argument
124 __nrfy_internal_mvdma_event_enabled_clear(p_reg, mask, NRF_MVDMA_EVENT_END); in nrfy_mvdma_int_init()
125 __nrfy_internal_mvdma_event_enabled_clear(p_reg, mask, NRF_MVDMA_EVENT_RESET); in nrfy_mvdma_int_init()
126 __nrfy_internal_mvdma_event_enabled_clear(p_reg, mask, NRF_MVDMA_EVENT_STARTED); in nrfy_mvdma_int_init()
128 __nrfy_internal_mvdma_event_enabled_clear(p_reg, mask, NRF_MVDMA_EVENT_PAUSED); in nrfy_mvdma_int_init()
130 __nrfy_internal_mvdma_event_enabled_clear(p_reg, mask, NRF_MVDMA_EVENT_STOPPED); in nrfy_mvdma_int_init()
132 __nrfy_internal_mvdma_event_enabled_clear(p_reg, mask, NRF_MVDMA_EVENT_SINKBUSERROR); in nrfy_mvdma_int_init()
133 __nrfy_internal_mvdma_event_enabled_clear(p_reg, mask, NRF_MVDMA_EVENT_SOURCEBUSERROR); in nrfy_mvdma_int_init()
135 __nrfy_internal_mvdma_event_enabled_clear(p_reg, mask, NRF_MVDMA_EVENT_SINKSELECTJOBDONE); in nrfy_mvdma_int_init()
136 __nrfy_internal_mvdma_event_enabled_clear(p_reg, mask, NRF_MVDMA_EVENT_SOURCESELECTJOBDONE); in nrfy_mvdma_int_init()
140 NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(p_reg), irq_priority); in nrfy_mvdma_int_init()
141 NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_reg)); in nrfy_mvdma_int_init()
144 nrf_mvdma_int_enable(p_reg, mask); in nrfy_mvdma_int_init()
154 NRFY_STATIC_INLINE void nrfy_mvdma_int_uninit(NRF_MVDMA_Type * p_reg) in nrfy_mvdma_int_uninit() argument
156 NRFX_IRQ_DISABLE(nrfx_get_irq_number(p_reg)); in nrfy_mvdma_int_uninit()
172 NRFY_STATIC_INLINE uint32_t nrfy_mvdma_events_process(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_events_process() argument
176 uint32_t evt_mask = __nrfy_internal_mvdma_events_process(p_reg, mask, p_list_request); in nrfy_mvdma_events_process()
188 NRFY_STATIC_INLINE void nrfy_mvdma_start(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_start() argument
191 nrf_mvdma_task_trigger(p_reg, NRF_MVDMA_TASK_START0); in nrfy_mvdma_start()
196 while (!__nrfy_internal_mvdma_events_process(p_reg, evt_mask, p_list_request)) in nrfy_mvdma_start()
212 void nrfy_mvdma_multi_start(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_multi_start() argument
216 nrf_mvdma_task_trigger(p_reg, nrf_mvdma_start_task_get(p_reg, idx)); in nrfy_mvdma_multi_start()
227 while (!__nrfy_internal_mvdma_events_process(p_reg, evt_mask, &list_req)) in nrfy_mvdma_multi_start()
240 void nrfy_mvdma_multi_job_list_set(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_multi_job_list_set() argument
248 nrf_mvdma_source_list_ptr_set(p_reg, (nrf_vdma_job_t *)p_list_request->pp_source_job_lists); in nrfy_mvdma_multi_job_list_set()
249 nrf_mvdma_sink_list_ptr_set(p_reg, (nrf_vdma_job_t *)p_list_request->pp_sink_job_lists); in nrfy_mvdma_multi_job_list_set()
259 void nrfy_mvdma_multi_job_list_get(NRF_MVDMA_Type const * p_reg, in nrfy_mvdma_multi_job_list_get() argument
262 p_list_request->pp_source_job_lists = (nrf_vdma_job_t **)nrf_mvdma_source_list_ptr_get(p_reg); in nrfy_mvdma_multi_job_list_get()
263 p_list_request->pp_sink_job_lists = (nrf_vdma_job_t **)nrf_mvdma_sink_list_ptr_get(p_reg); in nrfy_mvdma_multi_job_list_get()
274 NRFY_STATIC_INLINE void nrfy_mvdma_job_list_set(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_job_list_set() argument
279 nrf_mvdma_source_list_ptr_set(p_reg, p_list_request->p_source_job_list); in nrfy_mvdma_job_list_set()
280 nrf_mvdma_sink_list_ptr_set(p_reg, p_list_request->p_sink_job_list); in nrfy_mvdma_job_list_set()
290 NRFY_STATIC_INLINE void nrfy_mvdma_reset(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_reset() argument
293 nrf_mvdma_task_trigger(p_reg, NRF_MVDMA_TASK_RESET); in nrfy_mvdma_reset()
298 while (!__nrfy_internal_mvdma_events_process(p_reg, evt_mask, NULL)) in nrfy_mvdma_reset()
310 NRFY_STATIC_INLINE void nrfy_mvdma_abort(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_abort() argument
314 nrf_mvdma_task_trigger(p_reg, NRF_MVDMA_TASK_PAUSE); in nrfy_mvdma_abort()
316 nrf_mvdma_task_trigger(p_reg, NRF_MVDMA_TASK_STOP); in nrfy_mvdma_abort()
327 while (!__nrfy_internal_mvdma_events_process(p_reg, evt_mask, p_list_request)) in nrfy_mvdma_abort()
340 void nrfy_mvdma_source_job_description_get(NRF_MVDMA_Type const * p_reg, in nrfy_mvdma_source_job_description_get() argument
344 p_job_list_desc->p_jobs = nrf_mvdma_source_list_ptr_get(p_reg); in nrfy_mvdma_source_job_description_get()
345 p_job_list_desc->job_count = nrf_mvdma_source_job_count_get(p_reg); in nrfy_mvdma_source_job_description_get()
346 p_job_list_desc->last_addr = nrf_mvdma_last_source_address_get(p_reg); in nrfy_mvdma_source_job_description_get()
357 void nrfy_mvdma_sink_job_description_get(NRF_MVDMA_Type const * p_reg, in nrfy_mvdma_sink_job_description_get() argument
361 p_job_list_desc->p_jobs = nrf_mvdma_sink_list_ptr_get(p_reg); in nrfy_mvdma_sink_job_description_get()
362 p_job_list_desc->job_count = nrf_mvdma_sink_job_count_get(p_reg); in nrfy_mvdma_sink_job_description_get()
363 p_job_list_desc->last_addr = nrf_mvdma_last_sink_address_get(p_reg); in nrfy_mvdma_sink_job_description_get()
368 NRFY_STATIC_INLINE void nrfy_mvdma_task_trigger(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_task_trigger() argument
371 nrf_mvdma_task_trigger(p_reg, task); in nrfy_mvdma_task_trigger()
376 NRFY_STATIC_INLINE uint32_t nrfy_mvdma_task_address_get(NRF_MVDMA_Type const * p_reg, in nrfy_mvdma_task_address_get() argument
379 return nrf_mvdma_task_address_get(p_reg, task); in nrfy_mvdma_task_address_get()
383 NRFY_STATIC_INLINE nrf_mvdma_task_t nrfy_mvdma_start_task_get(NRF_MVDMA_Type const * p_reg, in nrfy_mvdma_start_task_get() argument
386 return nrf_mvdma_start_task_get(p_reg, index); in nrfy_mvdma_start_task_get()
390 NRFY_STATIC_INLINE void nrfy_mvdma_event_clear(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_event_clear() argument
393 nrf_mvdma_event_clear(p_reg, event); in nrfy_mvdma_event_clear()
398 NRFY_STATIC_INLINE bool nrfy_mvdma_event_check(NRF_MVDMA_Type const * p_reg, in nrfy_mvdma_event_check() argument
402 bool check = nrf_mvdma_event_check(p_reg, event); in nrfy_mvdma_event_check()
408 NRFY_STATIC_INLINE uint32_t nrfy_mvdma_event_address_get(NRF_MVDMA_Type const * p_reg, in nrfy_mvdma_event_address_get() argument
411 return nrf_mvdma_event_address_get(p_reg, event); in nrfy_mvdma_event_address_get()
415 NRFY_STATIC_INLINE void nrfy_mvdma_int_enable(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_int_enable() argument
418 nrf_mvdma_int_enable(p_reg, mask); in nrfy_mvdma_int_enable()
423 NRFY_STATIC_INLINE void nrfy_mvdma_int_disable(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_int_disable() argument
426 nrf_mvdma_int_disable(p_reg, mask); in nrfy_mvdma_int_disable()
431 NRFY_STATIC_INLINE uint32_t nrfy_mvdma_int_enable_check(NRF_MVDMA_Type const * p_reg, in nrfy_mvdma_int_enable_check() argument
435 uint32_t check = nrf_mvdma_int_enable_check(p_reg, mask); in nrfy_mvdma_int_enable_check()
441 NRFY_STATIC_INLINE uint32_t nrfy_mvdma_int_pending_get(NRF_MVDMA_Type const * p_reg) in nrfy_mvdma_int_pending_get() argument
444 uint32_t pending = nrf_mvdma_int_pending_get(p_reg); in nrfy_mvdma_int_pending_get()
451 NRFY_STATIC_INLINE void nrfy_mvdma_subscribe_set(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_subscribe_set() argument
455 nrf_mvdma_subscribe_set(p_reg, task, channel); in nrfy_mvdma_subscribe_set()
460 NRFY_STATIC_INLINE void nrfy_mvdma_subscribe_clear(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_subscribe_clear() argument
463 nrf_mvdma_subscribe_clear(p_reg, task); in nrfy_mvdma_subscribe_clear()
468 NRFY_STATIC_INLINE void nrfy_mvdma_publish_set(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_publish_set() argument
472 nrf_mvdma_publish_set(p_reg, event, channel); in nrfy_mvdma_publish_set()
477 NRFY_STATIC_INLINE void nrfy_mvdma_publish_clear(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_publish_clear() argument
480 nrf_mvdma_publish_clear(p_reg, event); in nrfy_mvdma_publish_clear()
486 NRFY_STATIC_INLINE void nrfy_mvdma_mode_set(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_mode_set() argument
489 nrf_mvdma_mode_set(p_reg, mode); in nrfy_mvdma_mode_set()
495 NRFY_STATIC_INLINE void nrfy_mvdma_aximode_set(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_aximode_set() argument
498 nrf_mvdma_aximode_set(p_reg, aximode); in nrfy_mvdma_aximode_set()
504 NRFY_STATIC_INLINE void nrfy_mvdma_source_list_ptr_set(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_source_list_ptr_set() argument
507 nrf_mvdma_source_list_ptr_set(p_reg, p_job); in nrfy_mvdma_source_list_ptr_set()
512 NRFY_STATIC_INLINE nrf_vdma_job_t * nrfy_mvdma_source_list_ptr_get(NRF_MVDMA_Type const * p_reg) in nrfy_mvdma_source_list_ptr_get() argument
515 nrf_vdma_job_t * p_job = nrf_mvdma_source_list_ptr_get(p_reg); in nrfy_mvdma_source_list_ptr_get()
521 NRFY_STATIC_INLINE void nrfy_mvdma_sink_list_ptr_set(NRF_MVDMA_Type * p_reg, in nrfy_mvdma_sink_list_ptr_set() argument
524 nrf_mvdma_sink_list_ptr_set(p_reg, p_job); in nrfy_mvdma_sink_list_ptr_set()
529 NRFY_STATIC_INLINE nrf_vdma_job_t * nrfy_mvdma_sink_list_ptr_get(NRF_MVDMA_Type const * p_reg) in nrfy_mvdma_sink_list_ptr_get() argument
532 nrf_vdma_job_t * p_job = nrf_mvdma_sink_list_ptr_get(p_reg); in nrfy_mvdma_sink_list_ptr_get()
538 NRFY_STATIC_INLINE uint32_t nrfy_mvdma_crc_result_get(NRF_MVDMA_Type const * p_reg) in nrfy_mvdma_crc_result_get() argument
541 uint32_t crc_result = nrf_mvdma_crc_result_get(p_reg); in nrfy_mvdma_crc_result_get()
547 NRFY_STATIC_INLINE nrf_mvdma_fifo_status_t nrfy_mvdma_fifo_status_get(NRF_MVDMA_Type const * p_reg) in nrfy_mvdma_fifo_status_get() argument
550 nrf_mvdma_fifo_status_t fifo_status = nrf_mvdma_fifo_status_get(p_reg); in nrfy_mvdma_fifo_status_get()
556 NRFY_STATIC_INLINE bool nrfy_mvdma_activity_check(NRF_MVDMA_Type * p_reg) in nrfy_mvdma_activity_check() argument
559 bool check = nrf_mvdma_activity_check(p_reg); in nrfy_mvdma_activity_check()
566 nrf_mvdma_source_error_t nrfy_mvdma_source_error_get(NRF_MVDMA_Type const * p_reg) in nrfy_mvdma_source_error_get() argument
569 nrf_mvdma_source_error_t error = nrf_mvdma_source_error_get(p_reg); in nrfy_mvdma_source_error_get()
575 NRFY_STATIC_INLINE nrf_mvdma_sink_error_t nrfy_mvdma_sink_error_get(NRF_MVDMA_Type const * p_reg) in nrfy_mvdma_sink_error_get() argument
578 nrf_mvdma_sink_error_t error = nrf_mvdma_sink_error_get(p_reg); in nrfy_mvdma_sink_error_get()
584 NRFY_STATIC_INLINE uint32_t nrfy_mvdma_last_source_address_get(NRF_MVDMA_Type const * p_reg) in nrfy_mvdma_last_source_address_get() argument
587 uint32_t address = nrf_mvdma_last_source_address_get(p_reg); in nrfy_mvdma_last_source_address_get()
593 NRFY_STATIC_INLINE uint32_t nrfy_mvdma_last_sink_address_get(NRF_MVDMA_Type const * p_reg) in nrfy_mvdma_last_sink_address_get() argument
596 uint32_t address = nrf_mvdma_last_sink_address_get(p_reg); in nrfy_mvdma_last_sink_address_get()
602 NRFY_STATIC_INLINE uint32_t nrfy_mvdma_source_job_count_get(NRF_MVDMA_Type const * p_reg) in nrfy_mvdma_source_job_count_get() argument
605 uint32_t job_count = nrf_mvdma_source_job_count_get(p_reg); in nrfy_mvdma_source_job_count_get()
611 NRFY_STATIC_INLINE uint32_t nrfy_mvdma_sink_job_count_get(NRF_MVDMA_Type const * p_reg) in nrfy_mvdma_sink_job_count_get() argument
613 return __nrfy_internal_mvdma_sink_job_count_get(p_reg); in nrfy_mvdma_sink_job_count_get()
618 NRFY_STATIC_INLINE bool __nrfy_internal_mvdma_event_handle(NRF_MVDMA_Type * p_reg, in __nrfy_internal_mvdma_event_handle() argument
623 if ((mask & NRFY_EVENT_TO_INT_BITMASK(event)) && nrf_mvdma_event_check(p_reg, event)) in __nrfy_internal_mvdma_event_handle()
625 nrf_mvdma_event_clear(p_reg, event); in __nrfy_internal_mvdma_event_handle()
636 uint32_t __nrfy_internal_mvdma_events_process(NRF_MVDMA_Type * p_reg, in __nrfy_internal_mvdma_events_process() argument
643 (void)__nrfy_internal_mvdma_event_handle(p_reg, mask, NRF_MVDMA_EVENT_RESET, &evt_mask); in __nrfy_internal_mvdma_events_process()
644 (void)__nrfy_internal_mvdma_event_handle(p_reg, mask, NRF_MVDMA_EVENT_STARTED, &evt_mask); in __nrfy_internal_mvdma_events_process()
645 (void)__nrfy_internal_mvdma_event_handle(p_reg, mask, NRF_MVDMA_EVENT_SINKBUSERROR, &evt_mask); in __nrfy_internal_mvdma_events_process()
646 (void)__nrfy_internal_mvdma_event_handle(p_reg, in __nrfy_internal_mvdma_events_process()
651 (void)__nrfy_internal_mvdma_event_handle(p_reg, in __nrfy_internal_mvdma_events_process()
655 (void)__nrfy_internal_mvdma_event_handle(p_reg, in __nrfy_internal_mvdma_events_process()
664 if (__nrfy_internal_mvdma_event_handle(p_reg, mask, NRF_MVDMA_EVENT_PAUSED, &evt_mask)) in __nrfy_internal_mvdma_events_process()
666 if (__nrfy_internal_mvdma_event_handle(p_reg, mask, NRF_MVDMA_EVENT_STOPPED, &evt_mask)) in __nrfy_internal_mvdma_events_process()
669 size_t job_count = __nrfy_internal_mvdma_sink_job_count_get(p_reg); in __nrfy_internal_mvdma_events_process()
678 if (__nrfy_internal_mvdma_event_handle(p_reg, mask, NRF_MVDMA_EVENT_END, &evt_mask) && in __nrfy_internal_mvdma_events_process()
692 NRFY_STATIC_INLINE void __nrfy_internal_mvdma_event_enabled_clear(NRF_MVDMA_Type * p_reg, in __nrfy_internal_mvdma_event_enabled_clear() argument
698 nrf_mvdma_event_clear(p_reg, event); in __nrfy_internal_mvdma_event_enabled_clear()
727 NRFY_STATIC_INLINE uint32_t __nrfy_internal_mvdma_sink_job_count_get(NRF_MVDMA_Type const * p_reg) in __nrfy_internal_mvdma_sink_job_count_get() argument
730 uint32_t job_count = nrf_mvdma_sink_job_count_get(p_reg); in __nrfy_internal_mvdma_sink_job_count_get()