Lines Matching refs:transfer
36 usbc_transfer_t *transfer; member
106 } else if (usbc.ep_out[epnum].transfer) { in HAL_PCD_DataOutStageCallback()
108 usbc_transfer_t *t = usbc.ep_out[epnum].transfer; in HAL_PCD_DataOutStageCallback()
109 usbc.ep_out[epnum].transfer = NULL; in HAL_PCD_DataOutStageCallback()
137 if (usbc.ep_in[epnum].transfer) { in HAL_PCD_DataInStageCallback()
139 usbc_transfer_t *t = usbc.ep_in[epnum].transfer; in HAL_PCD_DataInStageCallback()
140 usbc.ep_in[epnum].transfer = NULL; in HAL_PCD_DataInStageCallback()
172 if (usbc.ep_in[i].transfer) { in HAL_PCD_ResetCallback()
173 usbc_transfer_t *t = usbc.ep_in[i].transfer; in HAL_PCD_ResetCallback()
174 usbc.ep_in[i].transfer = NULL; in HAL_PCD_ResetCallback()
178 if (usbc.ep_out[i].transfer) { in HAL_PCD_ResetCallback()
179 usbc_transfer_t *t = usbc.ep_out[i].transfer; in HAL_PCD_ResetCallback()
180 usbc.ep_out[i].transfer = NULL; in HAL_PCD_ResetCallback()
287 status_t usbc_queue_rx(ep_t ep, usbc_transfer_t *transfer) { in usbc_queue_rx() argument
288 …LTRACEF("ep %u, transfer %p (buf %p, buflen %zu)\n", ep, transfer, transfer->buf, transfer->buflen… in usbc_queue_rx()
291 DEBUG_ASSERT(usbc.ep_out[ep].transfer == NULL); in usbc_queue_rx()
293 usbc.ep_out[ep].transfer = transfer; in usbc_queue_rx()
294 HAL_PCD_EP_Receive(&usbc.handle, ep, transfer->buf, transfer->buflen); in usbc_queue_rx()
299 status_t usbc_queue_tx(ep_t ep, usbc_transfer_t *transfer) { in usbc_queue_tx() argument
300 …LTRACEF("ep %u, transfer %p (buf %p, buflen %zu)\n", ep, transfer, transfer->buf, transfer->buflen… in usbc_queue_tx()
303 DEBUG_ASSERT(usbc.ep_in[ep].transfer == NULL); in usbc_queue_tx()
305 usbc.ep_in[ep].transfer = transfer; in usbc_queue_tx()
306 HAL_PCD_EP_Transmit(&usbc.handle, ep, transfer->buf, transfer->buflen); in usbc_queue_tx()