Lines Matching refs:transfer

26     usbc_transfer_t *transfer;  member
75 if (usbc.ep_out[epnum].transfer) { in HAL_PCD_DataOutStageCallback()
77 usbc_transfer_t *t = usbc.ep_out[epnum].transfer; in HAL_PCD_DataOutStageCallback()
78 usbc.ep_out[epnum].transfer = NULL; in HAL_PCD_DataOutStageCallback()
104 if (usbc.ep_in[epnum].transfer) { in HAL_PCD_DataInStageCallback()
106 usbc_transfer_t *t = usbc.ep_in[epnum].transfer; in HAL_PCD_DataInStageCallback()
107 usbc.ep_in[epnum].transfer = NULL; in HAL_PCD_DataInStageCallback()
138 if (usbc.ep_in[i].transfer) { in HAL_PCD_ResetCallback()
139 usbc_transfer_t *t = usbc.ep_in[i].transfer; in HAL_PCD_ResetCallback()
140 usbc.ep_in[i].transfer = NULL; in HAL_PCD_ResetCallback()
144 if (usbc.ep_out[i].transfer) { in HAL_PCD_ResetCallback()
145 usbc_transfer_t *t = usbc.ep_out[i].transfer; in HAL_PCD_ResetCallback()
146 usbc.ep_out[i].transfer = NULL; in HAL_PCD_ResetCallback()
245 status_t usbc_queue_rx(ep_t ep, usbc_transfer_t *transfer) { in usbc_queue_rx() argument
246 …LTRACEF("ep %u, transfer %p (buf %p, buflen %zu)\n", ep, transfer, transfer->buf, transfer->buflen… in usbc_queue_rx()
249 DEBUG_ASSERT(usbc.ep_out[ep].transfer == NULL); in usbc_queue_rx()
251 usbc.ep_out[ep].transfer = transfer; in usbc_queue_rx()
252 HAL_PCD_EP_Receive(&usbc.handle, ep, transfer->buf, transfer->buflen); in usbc_queue_rx()
257 status_t usbc_queue_tx(ep_t ep, usbc_transfer_t *transfer) { in usbc_queue_tx() argument
258 …LTRACEF("ep %u, transfer %p (buf %p, buflen %zu)\n", ep, transfer, transfer->buf, transfer->buflen… in usbc_queue_tx()
261 DEBUG_ASSERT(usbc.ep_in[ep].transfer == NULL); in usbc_queue_tx()
263 usbc.ep_in[ep].transfer = transfer; in usbc_queue_tx()
264 HAL_PCD_EP_Transmit(&usbc.handle, ep, transfer->buf, transfer->buflen); in usbc_queue_tx()
280 usbc.ep_in[ep & 0x7F].transfer = NULL; in usbc_flush_ep()
282 usbc.ep_out[ep].transfer = NULL; in usbc_flush_ep()