Lines Matching refs:NRF_USBD

753     nrf_usbd_task_trigger(NRF_USBD, task_start_ep(ep));  in usbd_dma_start()
758 nrf_usbd_isoinconfig_set(NRF_USBD, config); in nrfx_usbd_isoinconfig_set()
763 return nrf_usbd_isoinconfig_get(NRF_USBD); in nrfx_usbd_isoinconfig_get()
810 …*((volatile uint32_t *)((uint32_t)(NRF_USBD) + 0x800)) = 0x7B6 + (2u * (NRF_USBD_EP_NR_GET(ep) - 1… in usbd_ep_abort()
811 uint8_t temp = (uint8_t)*((volatile uint32_t *)((uint32_t)(NRF_USBD) + 0x804)); in usbd_ep_abort()
813 *((volatile uint32_t *)((uint32_t)(NRF_USBD) + 0x804)) |= temp; in usbd_ep_abort()
814 (void)(*((volatile uint32_t *)((uint32_t)(NRF_USBD) + 0x804))); in usbd_ep_abort()
818 *((volatile uint32_t *)((uint32_t)(NRF_USBD) + 0x800)) = 0x7B4; in usbd_ep_abort()
819 uint8_t temp = (uint8_t)*((volatile uint32_t *)((uint32_t)(NRF_USBD) + 0x804)); in usbd_ep_abort()
821 *((volatile uint32_t *)((uint32_t)(NRF_USBD) + 0x804)) |= temp; in usbd_ep_abort()
822 (void)(*((volatile uint32_t *)((uint32_t)(NRF_USBD) + 0x804))); in usbd_ep_abort()
1126 .data = { .sof = { .framecnt = (uint16_t)nrf_usbd_framecntr_get(NRF_USBD) }} in ev_sof_handler()
1131 if (nrf_usbd_episoout_size_get(NRF_USBD, NRFX_USBD_EPOUT8) != NRF_USBD_EPISOOUT_NO_DATA) in ev_sof_handler()
1163 if (nrf_usbd_event_get_and_clear(NRF_USBD, nrfx_usbd_ep_to_endevent(ep))) in usbd_ep_data_handler()
1204 nrf_usbd_setup_bmrequesttype_get(NRF_USBD), in ev_setup_handler()
1205 nrf_usbd_setup_brequest_get(NRF_USBD), in ev_setup_handler()
1206 nrf_usbd_setup_wvalue_get(NRF_USBD), in ev_setup_handler()
1207 nrf_usbd_setup_windex_get(NRF_USBD), in ev_setup_handler()
1208 nrf_usbd_setup_wlength_get(NRF_USBD)); in ev_setup_handler()
1209 uint8_t bmRequestType = nrf_usbd_setup_bmrequesttype_get(NRF_USBD); in ev_setup_handler()
1237 uint32_t event = nrf_usbd_eventcause_get_and_clear(NRF_USBD); in ev_usbevent_handler()
1267 NRFX_ASSERT(!nrf_usbd_lowpower_check(NRF_USBD)); in ev_usbevent_handler()
1270 nrf_usbd_dpdmvalue_set(NRF_USBD, NRF_USBD_DPDMVALUE_RESUME); in ev_usbevent_handler()
1271 nrf_usbd_task_trigger(NRF_USBD, NRF_USBD_TASK_DRIVEDPDM); in ev_usbevent_handler()
1284 uint32_t dataepstatus = nrf_usbd_epdatastatus_get_and_clear(NRF_USBD); in ev_epdata_handler()
1336 nrf_usbd_isosplit_t split = nrf_usbd_isosplit_get(NRF_USBD); in usbd_ep_iso_capacity()
1439 nrf_usbd_ep_easydma_set(NRF_USBD, ep, transfer.p_data.addr, (uint32_t)transfer.size); in usbd_dmareq_process()
1445 while (!nrf_usbd_event_check(NRF_USBD, nrfx_usbd_ep_to_endevent(ep))) in usbd_dmareq_process()
1450 m_dma_odd ^= nrf_usbd_ep_amount_get(NRF_USBD, ep) & 1; in usbd_dmareq_process()
1474 while (0 == (eventcause & nrf_usbd_eventcause_get(NRF_USBD))) in usbd_eventcause_wait_and_clear()
1478 nrf_usbd_eventcause_clear(NRF_USBD, eventcause); in usbd_eventcause_wait_and_clear()
1573 nrf_usbd_enable(NRF_USBD); in usbd_enable()
1630 const uint32_t enabled = nrf_usbd_int_enable_get(NRF_USBD); in nrfx_usbd_irq_handler()
1638 if (nrf_usbd_event_get_and_clear(NRF_USBD, in nrfx_usbd_irq_handler()
1727 nrf_usbd_eventcause_clear(NRF_USBD, NRF_USBD_EVENTCAUSE_READY_MASK); in nrfx_usbd_enable()
1733 nrf_usbd_disable(NRF_USBD); in nrfx_usbd_enable()
1751 *((volatile uint32_t *)((uint32_t)(NRF_USBD) + 0x800)) = 0x7E3; in nrfx_usbd_enable()
1752 *((volatile uint32_t *)((uint32_t)(NRF_USBD) + 0x804)) = 0x40; in nrfx_usbd_enable()
1757 nrf_usbd_isosplit_set(NRF_USBD, NRF_USBD_ISOSPLIT_HALF); in nrfx_usbd_enable()
1794 nrf_usbd_int_disable(NRF_USBD, nrf_usbd_int_enable_get(NRF_USBD)); in nrfx_usbd_disable()
1799 nrf_usbd_event_clear(NRF_USBD, NRF_USBD_EVENT_ENDEPIN0); in nrfx_usbd_disable()
1800 nrf_usbd_ep_easydma_set(NRF_USBD, NRFX_USBD_EPIN0, (uint32_t)&m_dma_odd, 1); in nrfx_usbd_disable()
1802 while (!nrf_usbd_event_check(NRF_USBD, NRF_USBD_EVENT_ENDEPIN0)) in nrfx_usbd_disable()
1806 nrf_usbd_disable(NRF_USBD); in nrfx_usbd_disable()
1841 nrf_usbd_int_enable(NRF_USBD, ints_to_enable); in nrfx_usbd_start()
1848 nrf_usbd_pullup_enable(NRF_USBD); in nrfx_usbd_start()
1864 nrf_usbd_pullup_disable(NRF_USBD); in nrfx_usbd_stop()
1870 nrf_usbd_int_disable(NRF_USBD, ~0U); in nrfx_usbd_stop()
1896 if (!(nrf_usbd_eventcause_get(NRF_USBD) & NRF_USBD_EVENTCAUSE_RESUME_MASK)) in nrfx_usbd_suspend()
1898 nrf_usbd_lowpower_enable(NRF_USBD); in nrfx_usbd_suspend()
1899 if (nrf_usbd_eventcause_get(NRF_USBD) & NRF_USBD_EVENTCAUSE_RESUME_MASK) in nrfx_usbd_suspend()
1901 nrf_usbd_lowpower_disable(NRF_USBD); in nrfx_usbd_suspend()
1919 if (m_bus_suspend && nrf_usbd_lowpower_check(NRF_USBD)) in nrfx_usbd_wakeup_req()
1921 nrf_usbd_lowpower_disable(NRF_USBD); in nrfx_usbd_wakeup_req()
1946 return nrf_usbd_lowpower_check(NRF_USBD); in nrfx_usbd_suspend_check()
1951 nrf_usbd_int_disable(NRF_USBD, m_irq_disabled_in_suspend); in nrfx_usbd_suspend_irq_config()
1956 nrf_usbd_int_enable(NRF_USBD, m_irq_disabled_in_suspend); in nrfx_usbd_active_irq_config()
1991 return nrf_usbd_ep_enable_check(NRF_USBD, ep_to_hal(ep)); in nrfx_usbd_ep_enable_check()
1996 nrf_usbd_int_enable(NRF_USBD, nrfx_usbd_ep_to_int(ep)); in nrfx_usbd_ep_enable()
1998 if (nrf_usbd_ep_enable_check(NRF_USBD, ep)) in nrfx_usbd_ep_enable()
2002 nrf_usbd_ep_enable(NRF_USBD, ep_to_hal(ep)); in nrfx_usbd_ep_enable()
2017 nrf_usbd_ep_disable(NRF_USBD, ep_to_hal(ep)); in nrfx_usbd_ep_disable()
2018 nrf_usbd_int_disable(NRF_USBD, nrfx_usbd_ep_to_int(ep)); in nrfx_usbd_ep_disable()
2023 nrf_usbd_int_disable(NRF_USBD, NRF_USBD_INT_ENDEPIN1_MASK | in nrfx_usbd_ep_default_config()
2040 nrf_usbd_int_enable(NRF_USBD, NRF_USBD_INT_ENDEPIN0_MASK | NRF_USBD_INT_ENDEPOUT0_MASK); in nrfx_usbd_ep_default_config()
2041 nrf_usbd_ep_default_config(NRF_USBD); in nrfx_usbd_ep_default_config()
2239 return nrf_usbd_epout_size_get(NRF_USBD, ep_to_hal(ep)); in nrfx_usbd_epout_size_get()
2250 nrf_usbd_ep_stall(NRF_USBD, ep_to_hal(ep)); in nrfx_usbd_ep_stall()
2259 nrf_usbd_ep_unstall(NRF_USBD, ep_to_hal(ep)); in nrfx_usbd_ep_stall_clear()
2264 return nrf_usbd_ep_is_stall(NRF_USBD, ep_to_hal(ep)); in nrfx_usbd_ep_stall_check()
2269 nrf_usbd_dtoggle_set(NRF_USBD, ep, NRF_USBD_DTOGGLE_DATA0); in nrfx_usbd_ep_dtoggle_clear()
2275 p_setup->bmRequestType = nrf_usbd_setup_bmrequesttype_get(NRF_USBD); in nrfx_usbd_setup_get()
2276 p_setup->bRequest = nrf_usbd_setup_brequest_get(NRF_USBD); in nrfx_usbd_setup_get()
2277 p_setup->wValue = nrf_usbd_setup_wvalue_get(NRF_USBD); in nrfx_usbd_setup_get()
2278 p_setup->wIndex = nrf_usbd_setup_windex_get(NRF_USBD); in nrfx_usbd_setup_get()
2279 p_setup->wLength = nrf_usbd_setup_wlength_get(NRF_USBD); in nrfx_usbd_setup_get()
2284 nrf_usbd_task_trigger(NRF_USBD, NRF_USBD_TASK_EP0RCVOUT); in nrfx_usbd_setup_data_clear()
2290 nrf_usbd_task_trigger(NRF_USBD, NRF_USBD_TASK_EP0STATUS); in nrfx_usbd_setup_clear()
2296 nrf_usbd_task_trigger(NRF_USBD, NRF_USBD_TASK_EP0STALL); in nrfx_usbd_setup_stall()
2312 nrf_usbd_epout_clear(NRF_USBD, ep); in nrfx_usbd_transfer_out_drop()