Lines Matching refs:p_state
783 usbd_ep_state_t * p_state = ep_state_access(ep); in usbd_ep_abort() local
796 p_state->handler.consumer = NULL; in usbd_ep_abort()
801 p_state->status = NRFX_USBD_EP_ABORTED; in usbd_ep_abort()
831 p_state->handler.feeder = NULL; in usbd_ep_abort()
832 p_state->status = NRFX_USBD_EP_ABORTED; in usbd_ep_abort()
920 usbd_ep_state_t * p_state = ep_state_access(ep); in nrf_usbd_ep0in_dma_handler() local
921 if (NRFX_USBD_EP_ABORTED == p_state->status) in nrf_usbd_ep0in_dma_handler()
926 else if (p_state->handler.feeder == NULL) in nrf_usbd_ep0in_dma_handler()
953 usbd_ep_state_t * p_state = ep_state_access(ep); in nrf_usbd_epin_dma_handler() local
954 if (NRFX_USBD_EP_ABORTED == p_state->status) in nrf_usbd_epin_dma_handler()
959 else if (p_state->handler.feeder == NULL) in nrf_usbd_epin_dma_handler()
982 usbd_ep_state_t * p_state = ep_state_access(ep); in nrf_usbd_epiniso_dma_handler() local
983 if (NRFX_USBD_EP_ABORTED == p_state->status) in nrf_usbd_epiniso_dma_handler()
988 else if (p_state->handler.feeder == NULL) in nrf_usbd_epiniso_dma_handler()
1013 usbd_ep_state_t * p_state = ep_state_access(ep); in nrf_usbd_ep0out_dma_handler() local
1014 if (NRFX_USBD_EP_ABORTED == p_state->status) in nrf_usbd_ep0out_dma_handler()
1019 else if (p_state->handler.consumer == NULL) in nrf_usbd_ep0out_dma_handler()
1047 usbd_ep_state_t * p_state = ep_state_access(ep); in nrf_usbd_epout_dma_handler() local
1048 if (NRFX_USBD_EP_ABORTED == p_state->status) in nrf_usbd_epout_dma_handler()
1053 else if (p_state->handler.consumer == NULL) in nrf_usbd_epout_dma_handler()
1083 usbd_ep_state_t * p_state = ep_state_access(ep); in nrf_usbd_epoutiso_dma_handler() local
1084 if (NRFX_USBD_EP_ABORTED == p_state->status) in nrf_usbd_epoutiso_dma_handler()
1088 else if (p_state->handler.consumer == NULL) in nrf_usbd_epoutiso_dma_handler()
1368 usbd_ep_state_t * p_state = ep_state_access(ep); in usbd_dmareq_process() local
1375 NRFX_ASSERT((p_state->handler.feeder) != NULL); in usbd_dmareq_process()
1380 continue_transfer = p_state->handler.feeder( in usbd_dmareq_process()
1382 p_state->p_context, in usbd_dmareq_process()
1383 p_state->max_packet_size); in usbd_dmareq_process()
1387 p_state->handler.feeder = NULL; in usbd_dmareq_process()
1394 continue_transfer = p_state->handler.consumer( in usbd_dmareq_process()
1396 p_state->p_context, in usbd_dmareq_process()
1397 p_state->max_packet_size, in usbd_dmareq_process()
1408 p_state->status = NRFX_USBD_EP_OVERLOAD; in usbd_dmareq_process()
1423 p_state->handler.consumer = NULL; in usbd_dmareq_process()
1437 p_state->transfer_cnt += transfer.size; in usbd_dmareq_process()
1689 usbd_ep_state_t * p_state = ep_state_access(ep); in nrfx_usbd_init() local
1690 p_state->status = NRFX_USBD_EP_OK; in nrfx_usbd_init()
1691 p_state->handler.feeder = NULL; in nrfx_usbd_init()
1692 p_state->transfer_cnt = 0; in nrfx_usbd_init()
1699 usbd_ep_state_t * p_state = ep_state_access(ep); in nrfx_usbd_init() local
1700 p_state->status = NRFX_USBD_EP_OK; in nrfx_usbd_init()
1701 p_state->handler.consumer = NULL; in nrfx_usbd_init()
1702 p_state->transfer_cnt = 0; in nrfx_usbd_init()
1979 usbd_ep_state_t * p_state = ep_state_access(ep); in nrfx_usbd_ep_max_packet_size_set() local
1980 p_state->max_packet_size = size; in nrfx_usbd_ep_max_packet_size_set()
1985 usbd_ep_state_t const * p_state = ep_state_access(ep); in nrfx_usbd_ep_max_packet_size_get() local
1986 return p_state->max_packet_size; in nrfx_usbd_ep_max_packet_size_get()
2069 usbd_ep_state_t * p_state = ep_state_access(ep); in nrfx_usbd_ep_transfer() local
2080 p_state->handler.feeder = nrfx_usbd_feeder_ram; in nrfx_usbd_ep_transfer()
2090 p_state->handler.feeder = nrfx_usbd_feeder_ram_zlp; in nrfx_usbd_ep_transfer()
2104 p_state->handler.feeder = nrfx_usbd_feeder_flash; in nrfx_usbd_ep_transfer()
2114 p_state->handler.feeder = nrfx_usbd_feeder_flash_zlp; in nrfx_usbd_ep_transfer()
2128 p_state->handler.consumer = nrfx_usbd_consumer; in nrfx_usbd_ep_transfer()
2131 p_state->p_context = p_context; in nrfx_usbd_ep_transfer()
2133 p_state->transfer_cnt = 0; in nrfx_usbd_ep_transfer()
2134 p_state->status = NRFX_USBD_EP_OK; in nrfx_usbd_ep_transfer()
2186 usbd_ep_state_t * p_state = ep_state_access(ep); in nrfx_usbd_ep_handled_transfer() local
2188 p_state->transfer_cnt = 0; in nrfx_usbd_ep_handled_transfer()
2189 p_state->handler = p_handler->handler; in nrfx_usbd_ep_handled_transfer()
2190 p_state->p_context = p_handler->p_context; in nrfx_usbd_ep_handled_transfer()
2191 p_state->status = NRFX_USBD_EP_OK; in nrfx_usbd_ep_handled_transfer()
2229 usbd_ep_state_t const * p_state = ep_state_access(ep); in nrfx_usbd_ep_status_get() local
2231 *p_size = p_state->transfer_cnt; in nrfx_usbd_ep_status_get()
2232 ret = (p_state->handler.consumer == NULL) ? p_state->status : NRFX_USBD_EP_BUSY; in nrfx_usbd_ep_status_get()