Home
last modified time | relevance | path

Searched refs:xfer_len (Results 1 – 25 of 57) sorted by relevance

123

/hal_stm32-3.4.0/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_hal_pcd.c182 hpcd->IN_ep[i].xfer_len = 0U; in HAL_PCD_Init()
193 hpcd->OUT_ep[i].xfer_len = 0U; in HAL_PCD_Init()
1284 ep->xfer_len = len; in HAL_PCD_EP_Receive()
1327 ep->xfer_len = len; in HAL_PCD_EP_Transmit()
1541 if ((hpcd->USB_Address > 0U) && (ep->xfer_len == 0U)) in PCD_EP_ISR_Handler()
1664 if ((ep->xfer_len == 0U) || (count < ep->maxpacket)) in PCD_EP_ISR_Handler()
1694 if (ep->xfer_len > TxByteNbre) in PCD_EP_ISR_Handler()
1696 ep->xfer_len -= TxByteNbre; in PCD_EP_ISR_Handler()
1700 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
1704 if (ep->xfer_len == 0U) in PCD_EP_ISR_Handler()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_hal_pcd.c183 hpcd->IN_ep[i].xfer_len = 0U; in HAL_PCD_Init()
194 hpcd->OUT_ep[i].xfer_len = 0U; in HAL_PCD_Init()
1298 ep->xfer_len = len; in HAL_PCD_EP_Receive()
1334 ep->xfer_len = len; in HAL_PCD_EP_Transmit()
1574 if ((hpcd->USB_Address > 0U) && (ep->xfer_len == 0U)) in PCD_EP_ISR_Handler()
1702 if ((ep->xfer_len == 0U) || (count < ep->maxpacket)) in PCD_EP_ISR_Handler()
1726 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
1757 if (ep->xfer_len > TxPctSize) in PCD_EP_ISR_Handler()
1759 ep->xfer_len -= TxPctSize; in PCD_EP_ISR_Handler()
1763 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
[all …]
Dstm32f3xx_ll_usb.c386 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
392 len = ep->xfer_len; in USB_EPStartXfer()
522 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
525 ep->xfer_len -= len; in USB_EPStartXfer()
529 len = ep->xfer_len; in USB_EPStartXfer()
530 ep->xfer_len = 0U; in USB_EPStartXfer()
562 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
565 ep->xfer_len -= len; in USB_EPStartXfer()
569 len = ep->xfer_len; in USB_EPStartXfer()
570 ep->xfer_len = 0U; in USB_EPStartXfer()
/hal_stm32-3.4.0/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_pcd.c213 hpcd->IN_ep[i].xfer_len = 0U; in HAL_PCD_Init()
224 hpcd->OUT_ep[i].xfer_len = 0U; in HAL_PCD_Init()
1714 ep->xfer_len = len; in HAL_PCD_EP_Receive()
1757 ep->xfer_len = len; in HAL_PCD_EP_Transmit()
1960 if (ep->xfer_count > ep->xfer_len) in PCD_WriteEmptyTxFifo()
1965 len = ep->xfer_len - ep->xfer_count; in PCD_WriteEmptyTxFifo()
1975 (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) in PCD_WriteEmptyTxFifo()
1978 len = ep->xfer_len - ep->xfer_count; in PCD_WriteEmptyTxFifo()
1992 if (ep->xfer_len <= ep->xfer_count) in PCD_WriteEmptyTxFifo()
2123 if ((hpcd->USB_Address > 0U) && (ep->xfer_len == 0U)) in PCD_EP_ISR_Handler()
[all …]
Dstm32f1xx_ll_usb.c640 if (ep->xfer_len == 0U) in USB_EPStartXfer()
656 (((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket) << 19)); in USB_EPStartXfer()
658 USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len); in USB_EPStartXfer()
672 if (ep->xfer_len > 0U) in USB_EPStartXfer()
688 (void)USB_WritePacket(USBx, ep->xfer_buff, ep->num, (uint16_t)ep->xfer_len); in USB_EPStartXfer()
700 if (ep->xfer_len == 0U) in USB_EPStartXfer()
707 pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket); in USB_EPStartXfer()
745 if (ep->xfer_len == 0U) in USB_EP0StartXfer()
761 if (ep->xfer_len > ep->maxpacket) in USB_EP0StartXfer()
763 ep->xfer_len = ep->maxpacket; in USB_EP0StartXfer()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_hal_pcd.c221 hpcd->IN_ep[i].xfer_len = 0U; in HAL_PCD_Init()
232 hpcd->OUT_ep[i].xfer_len = 0U; in HAL_PCD_Init()
1238 if ((epnum == 0U) && (hpcd->IN_ep[epnum].xfer_len == 0U)) in HAL_PCD_IRQHandler()
2034 ep->xfer_len = len; in HAL_PCD_EP_Receive()
2079 ep->xfer_len = len; in HAL_PCD_EP_Transmit()
2347 if (ep->xfer_count > ep->xfer_len) in PCD_WriteEmptyTxFifo()
2352 len = ep->xfer_len - ep->xfer_count; in PCD_WriteEmptyTxFifo()
2362 (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) in PCD_WriteEmptyTxFifo()
2365 len = ep->xfer_len - ep->xfer_count; in PCD_WriteEmptyTxFifo()
2380 if (ep->xfer_len <= ep->xfer_count) in PCD_WriteEmptyTxFifo()
[all …]
Dstm32u5xx_ll_usb.c760 if (ep->xfer_len == 0U) in USB_EPStartXfer()
778 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
780 ep->xfer_len = ep->maxpacket; in USB_EPStartXfer()
788 … (((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket) << 19)); in USB_EPStartXfer()
791 USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len); in USB_EPStartXfer()
830 if (ep->xfer_len > 0U) in USB_EPStartXfer()
846 (void)USB_WritePacket(USBx, ep->xfer_buff, ep->num, (uint16_t)ep->xfer_len, dma); in USB_EPStartXfer()
861 if (ep->xfer_len > 0U) in USB_EPStartXfer()
863 ep->xfer_len = ep->maxpacket; in USB_EPStartXfer()
874 if (ep->xfer_len == 0U) in USB_EPStartXfer()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_hal_pcd.c185 hpcd->IN_ep[i].xfer_len = 0U; in HAL_PCD_Init()
196 hpcd->OUT_ep[i].xfer_len = 0U; in HAL_PCD_Init()
1468 ep->xfer_len = len; in HAL_PCD_EP_Receive()
1504 ep->xfer_len = len; in HAL_PCD_EP_Transmit()
1744 if ((hpcd->USB_Address > 0U) && (ep->xfer_len == 0U)) in PCD_EP_ISR_Handler()
1872 if ((ep->xfer_len == 0U) || (count < ep->maxpacket)) in PCD_EP_ISR_Handler()
1896 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
1927 if (ep->xfer_len > TxPctSize) in PCD_EP_ISR_Handler()
1929 ep->xfer_len -= TxPctSize; in PCD_EP_ISR_Handler()
1933 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_hal_pcd.c185 hpcd->IN_ep[i].xfer_len = 0U; in HAL_PCD_Init()
196 hpcd->OUT_ep[i].xfer_len = 0U; in HAL_PCD_Init()
1468 ep->xfer_len = len; in HAL_PCD_EP_Receive()
1504 ep->xfer_len = len; in HAL_PCD_EP_Transmit()
1744 if ((hpcd->USB_Address > 0U) && (ep->xfer_len == 0U)) in PCD_EP_ISR_Handler()
1872 if ((ep->xfer_len == 0U) || (count < ep->maxpacket)) in PCD_EP_ISR_Handler()
1896 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
1927 if (ep->xfer_len > TxPctSize) in PCD_EP_ISR_Handler()
1929 ep->xfer_len -= TxPctSize; in PCD_EP_ISR_Handler()
1933 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
[all …]
Dstm32h5xx_hal_hcd.c714 hhcd->hc[ch_num & 0xFU].xfer_len = length; in HAL_HCD_HC_SubmitRequest()
1534 if (hhcd->hc[ch_num & 0xFU].xfer_len >= data_xfr) in HCD_HC_OUT_BulkDb()
1536 hhcd->hc[ch_num & 0xFU].xfer_len -= data_xfr; in HCD_HC_OUT_BulkDb()
1540 hhcd->hc[ch_num & 0xFU].xfer_len = 0U; in HCD_HC_OUT_BulkDb()
1544 if (hhcd->hc[ch_num & 0xFU].xfer_len != 0U) in HCD_HC_OUT_BulkDb()
1599 if (hhcd->hc[ch_num & 0xFU].xfer_len >= data_xfr) /* updated */ in HCD_HC_OUT_BulkDb()
1601 hhcd->hc[ch_num & 0xFU].xfer_len -= data_xfr; in HCD_HC_OUT_BulkDb()
1605 if (hhcd->hc[ch_num & 0xFU].xfer_len != 0U) in HCD_HC_OUT_BulkDb()
1679 if (hhcd->hc[ch_num & 0xFU].xfer_len <= received_bytes) in HCD_HC_IN_BulkDb()
1681 hhcd->hc[ch_num & 0xFU].xfer_len = 0U; in HCD_HC_IN_BulkDb()
[all …]
Dstm32h5xx_ll_usb.c425 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
431 len = ep->xfer_len; in USB_EPStartXfer()
561 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
564 ep->xfer_len -= len; in USB_EPStartXfer()
568 len = ep->xfer_len; in USB_EPStartXfer()
569 ep->xfer_len = 0U; in USB_EPStartXfer()
601 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
604 ep->xfer_len -= len; in USB_EPStartXfer()
608 len = ep->xfer_len; in USB_EPStartXfer()
609 ep->xfer_len = 0U; in USB_EPStartXfer()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_hal_pcd.c185 hpcd->IN_ep[i].xfer_len = 0U; in HAL_PCD_Init()
196 hpcd->OUT_ep[i].xfer_len = 0U; in HAL_PCD_Init()
1468 ep->xfer_len = len; in HAL_PCD_EP_Receive()
1504 ep->xfer_len = len; in HAL_PCD_EP_Transmit()
1744 if ((hpcd->USB_Address > 0U) && (ep->xfer_len == 0U)) in PCD_EP_ISR_Handler()
1872 if ((ep->xfer_len == 0U) || (count < ep->maxpacket)) in PCD_EP_ISR_Handler()
1896 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
1927 if (ep->xfer_len > TxPctSize) in PCD_EP_ISR_Handler()
1929 ep->xfer_len -= TxPctSize; in PCD_EP_ISR_Handler()
1933 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_hal_pcd.c185 hpcd->IN_ep[i].xfer_len = 0U; in HAL_PCD_Init()
196 hpcd->OUT_ep[i].xfer_len = 0U; in HAL_PCD_Init()
1468 ep->xfer_len = len; in HAL_PCD_EP_Receive()
1504 ep->xfer_len = len; in HAL_PCD_EP_Transmit()
1744 if ((hpcd->USB_Address > 0U) && (ep->xfer_len == 0U)) in PCD_EP_ISR_Handler()
1872 if ((ep->xfer_len == 0U) || (count < ep->maxpacket)) in PCD_EP_ISR_Handler()
1896 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
1927 if (ep->xfer_len > TxPctSize) in PCD_EP_ISR_Handler()
1929 ep->xfer_len -= TxPctSize; in PCD_EP_ISR_Handler()
1933 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_hal_pcd.c186 hpcd->IN_ep[i].xfer_len = 0U; in HAL_PCD_Init()
197 hpcd->OUT_ep[i].xfer_len = 0U; in HAL_PCD_Init()
1474 ep->xfer_len = len; in HAL_PCD_EP_Receive()
1517 ep->xfer_len = len; in HAL_PCD_EP_Transmit()
1734 if ((hpcd->USB_Address > 0U) && (ep->xfer_len == 0U)) in PCD_EP_ISR_Handler()
1860 if ((ep->xfer_len == 0U) || (count < ep->maxpacket)) in PCD_EP_ISR_Handler()
1884 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
1915 if (ep->xfer_len > TxPctSize) in PCD_EP_ISR_Handler()
1917 ep->xfer_len -= TxPctSize; in PCD_EP_ISR_Handler()
1921 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
[all …]
Dstm32g4xx_ll_usb.c378 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
384 len = ep->xfer_len; in USB_EPStartXfer()
514 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
517 ep->xfer_len -= len; in USB_EPStartXfer()
521 len = ep->xfer_len; in USB_EPStartXfer()
522 ep->xfer_len = 0U; in USB_EPStartXfer()
554 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
557 ep->xfer_len -= len; in USB_EPStartXfer()
561 len = ep->xfer_len; in USB_EPStartXfer()
562 ep->xfer_len = 0U; in USB_EPStartXfer()
/hal_stm32-3.4.0/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_hal_pcd.c189 hpcd->IN_ep[i].xfer_len = 0U; in HAL_PCD_Init()
200 hpcd->OUT_ep[i].xfer_len = 0U; in HAL_PCD_Init()
1483 ep->xfer_len = len; in HAL_PCD_EP_Receive()
1526 ep->xfer_len = len; in HAL_PCD_EP_Transmit()
1773 if ((hpcd->USB_Address > 0U) && (ep->xfer_len == 0U)) in PCD_EP_ISR_Handler()
1901 if ((ep->xfer_len == 0U) || (count < ep->maxpacket)) in PCD_EP_ISR_Handler()
1925 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
1956 if (ep->xfer_len > TxPctSize) in PCD_EP_ISR_Handler()
1958 ep->xfer_len -= TxPctSize; in PCD_EP_ISR_Handler()
1962 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
[all …]
Dstm32g0xx_hal_hcd.c717 hhcd->hc[ch_num & 0xFU].xfer_len = length; in HAL_HCD_HC_SubmitRequest()
1543 if (hhcd->hc[ch_num & 0xFU].xfer_len >= data_xfr) in HCD_HC_OUT_BulkDb()
1545 hhcd->hc[ch_num & 0xFU].xfer_len -= data_xfr; in HCD_HC_OUT_BulkDb()
1549 hhcd->hc[ch_num & 0xFU].xfer_len = 0U; in HCD_HC_OUT_BulkDb()
1553 if (hhcd->hc[ch_num & 0xFU].xfer_len != 0U) in HCD_HC_OUT_BulkDb()
1608 if (hhcd->hc[ch_num & 0xFU].xfer_len >= data_xfr) /* updated */ in HCD_HC_OUT_BulkDb()
1610 hhcd->hc[ch_num & 0xFU].xfer_len -= data_xfr; in HCD_HC_OUT_BulkDb()
1614 if (hhcd->hc[ch_num & 0xFU].xfer_len != 0U) in HCD_HC_OUT_BulkDb()
1688 if (hhcd->hc[ch_num & 0xFU].xfer_len <= received_bytes) in HCD_HC_IN_BulkDb()
1690 hhcd->hc[ch_num & 0xFU].xfer_len = 0U; in HCD_HC_IN_BulkDb()
[all …]
Dstm32g0xx_ll_usb.c413 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
419 len = ep->xfer_len; in USB_EPStartXfer()
549 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
552 ep->xfer_len -= len; in USB_EPStartXfer()
556 len = ep->xfer_len; in USB_EPStartXfer()
557 ep->xfer_len = 0U; in USB_EPStartXfer()
589 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
592 ep->xfer_len -= len; in USB_EPStartXfer()
596 len = ep->xfer_len; in USB_EPStartXfer()
597 ep->xfer_len = 0U; in USB_EPStartXfer()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_hal_pcd.c185 hpcd->IN_ep[i].xfer_len = 0U; in HAL_PCD_Init()
196 hpcd->OUT_ep[i].xfer_len = 0U; in HAL_PCD_Init()
1468 ep->xfer_len = len; in HAL_PCD_EP_Receive()
1504 ep->xfer_len = len; in HAL_PCD_EP_Transmit()
1744 if ((hpcd->USB_Address > 0U) && (ep->xfer_len == 0U)) in PCD_EP_ISR_Handler()
1872 if ((ep->xfer_len == 0U) || (count < ep->maxpacket)) in PCD_EP_ISR_Handler()
1896 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
1927 if (ep->xfer_len > TxPctSize) in PCD_EP_ISR_Handler()
1929 ep->xfer_len -= TxPctSize; in PCD_EP_ISR_Handler()
1933 ep->xfer_len = 0U; in PCD_EP_ISR_Handler()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_hal_pcd.c217 hpcd->IN_ep[i].xfer_len = 0U; in HAL_PCD_Init()
228 hpcd->OUT_ep[i].xfer_len = 0U; in HAL_PCD_Init()
2011 ep->xfer_len = len; in HAL_PCD_EP_Receive()
2054 ep->xfer_len = len; in HAL_PCD_EP_Transmit()
2283 if (ep->xfer_count > ep->xfer_len) in PCD_WriteEmptyTxFifo()
2288 len = ep->xfer_len - ep->xfer_count; in PCD_WriteEmptyTxFifo()
2298 (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) in PCD_WriteEmptyTxFifo()
2301 len = ep->xfer_len - ep->xfer_count; in PCD_WriteEmptyTxFifo()
2315 if (ep->xfer_len <= ep->xfer_count) in PCD_WriteEmptyTxFifo()
2453 if ((hpcd->USB_Address > 0U) && (ep->xfer_len == 0U)) in PCD_EP_ISR_Handler()
[all …]
Dstm32l4xx_ll_usb.c693 if (ep->xfer_len == 0U) in USB_EPStartXfer()
709 (((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket) << 19)); in USB_EPStartXfer()
711 USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len); in USB_EPStartXfer()
725 if (ep->xfer_len > 0U) in USB_EPStartXfer()
741 (void)USB_WritePacket(USBx, ep->xfer_buff, ep->num, (uint16_t)ep->xfer_len); in USB_EPStartXfer()
753 if (ep->xfer_len == 0U) in USB_EPStartXfer()
760 pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket); in USB_EPStartXfer()
800 if (ep->xfer_len == 0U) in USB_EP0StartXfer()
816 if (ep->xfer_len > ep->maxpacket) in USB_EP0StartXfer()
818 ep->xfer_len = ep->maxpacket; in USB_EP0StartXfer()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_ll_usb.c715 if (ep->xfer_len == 0U) in USB_EPStartXfer()
731 (((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket) << 19)); in USB_EPStartXfer()
733 USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len); in USB_EPStartXfer()
772 if (ep->xfer_len > 0U) in USB_EPStartXfer()
788 (void)USB_WritePacket(USBx, ep->xfer_buff, ep->num, (uint16_t)ep->xfer_len, dma); in USB_EPStartXfer()
801 if (ep->xfer_len == 0U) in USB_EPStartXfer()
808 pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket); in USB_EPStartXfer()
858 if (ep->xfer_len == 0U) in USB_EP0StartXfer()
874 if (ep->xfer_len > ep->maxpacket) in USB_EP0StartXfer()
876 ep->xfer_len = ep->maxpacket; in USB_EP0StartXfer()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_ll_usb.c773 if (ep->xfer_len == 0U) in USB_EPStartXfer()
789 (((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket) << 19)); in USB_EPStartXfer()
791 USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len); in USB_EPStartXfer()
830 if (ep->xfer_len > 0U) in USB_EPStartXfer()
846 (void)USB_WritePacket(USBx, ep->xfer_buff, ep->num, (uint16_t)ep->xfer_len, dma); in USB_EPStartXfer()
859 if (ep->xfer_len == 0U) in USB_EPStartXfer()
866 pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket); in USB_EPStartXfer()
918 if (ep->xfer_len == 0U) in USB_EP0StartXfer()
934 if (ep->xfer_len > ep->maxpacket) in USB_EP0StartXfer()
936 ep->xfer_len = ep->maxpacket; in USB_EP0StartXfer()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_ll_usb.c801 if (ep->xfer_len == 0U) in USB_EPStartXfer()
817 (((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket) << 19)); in USB_EPStartXfer()
819 USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len); in USB_EPStartXfer()
858 if (ep->xfer_len > 0U) in USB_EPStartXfer()
874 (void)USB_WritePacket(USBx, ep->xfer_buff, ep->num, (uint16_t)ep->xfer_len, dma); in USB_EPStartXfer()
887 if (ep->xfer_len == 0U) in USB_EPStartXfer()
894 pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket); in USB_EPStartXfer()
946 if (ep->xfer_len == 0U) in USB_EP0StartXfer()
962 if (ep->xfer_len > ep->maxpacket) in USB_EP0StartXfer()
964 ep->xfer_len = ep->maxpacket; in USB_EP0StartXfer()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_ll_usb.c756 if (ep->xfer_len == 0U) in USB_EPStartXfer()
774 if (ep->xfer_len > ep->maxpacket) in USB_EPStartXfer()
776 ep->xfer_len = ep->maxpacket; in USB_EPStartXfer()
784 … (((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket) << 19)); in USB_EPStartXfer()
787 USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len); in USB_EPStartXfer()
826 if (ep->xfer_len > 0U) in USB_EPStartXfer()
842 (void)USB_WritePacket(USBx, ep->xfer_buff, ep->num, (uint16_t)ep->xfer_len, dma); in USB_EPStartXfer()
857 if (ep->xfer_len > 0U) in USB_EPStartXfer()
859 ep->xfer_len = ep->maxpacket; in USB_EPStartXfer()
870 if (ep->xfer_len == 0U) in USB_EPStartXfer()
[all …]

123