Lines Matching refs:pipe
688 usb_host_ip3516hs_pipe_struct_t **pipe) in USB_HostIp3516HsGetNewPipe()
699 *pipe = *pipeQueue; in USB_HostIp3516HsGetNewPipe()
700 p = (void *)((*pipe)->pipeCommon.next); in USB_HostIp3516HsGetNewPipe()
710 usb_host_ip3516hs_pipe_struct_t *pipe) in USB_HostIp3516HsRemovePipe() argument
724 if (p != pipe) in USB_HostIp3516HsRemovePipe()
749 usb_host_ip3516hs_pipe_struct_t *pipe) in USB_HostIp3516HsInsertPipe() argument
756 pipe->pipeCommon.next = NULL; in USB_HostIp3516HsInsertPipe()
762 if (p != pipe) in USB_HostIp3516HsInsertPipe()
775 pipe->pipeCommon.next = (usb_host_pipe_t *)temp; in USB_HostIp3516HsInsertPipe()
776 *pipeQueue = pipe; in USB_HostIp3516HsInsertPipe()
1044 usb_host_ip3516hs_pipe_struct_t *pipe, in USB_HostIp3516HsFillSlotBusTime() argument
1050 uint8_t slots = (uint8_t)((pipe->pipeCommon.maxPacketSize + 187U) / 188U); in USB_HostIp3516HsFillSlotBusTime()
1060 if (USB_ENDPOINT_ISOCHRONOUS == pipe->pipeCommon.pipeType) in USB_HostIp3516HsFillSlotBusTime()
1062 if (USB_OUT == pipe->pipeCommon.direction) in USB_HostIp3516HsFillSlotBusTime()
1073 …slotTime[startSlot + slots - 1U] = (uint8_t)(((pipe->pipeCommon.maxPacketSize % 188U) * 125U) / 18… in USB_HostIp3516HsFillSlotBusTime()
1087 …slotTime[startSlot + 1U + slots - 1U] = (uint8_t)(((pipe->pipeCommon.maxPacketSize % 188U) * 125U)… in USB_HostIp3516HsFillSlotBusTime()
1090 else if (USB_ENDPOINT_INTERRUPT == pipe->pipeCommon.pipeType) in USB_HostIp3516HsFillSlotBusTime()
1101 if (USB_OUT == pipe->pipeCommon.direction) in USB_HostIp3516HsFillSlotBusTime()
1103 slotTime[startSlot] = (uint8_t)pipe->busNoneHsTime; in USB_HostIp3516HsFillSlotBusTime()
1109 slotTime[startSlot + 2U + i] = (uint8_t)pipe->busNoneHsTime; in USB_HostIp3516HsFillSlotBusTime()
1121 usb_host_ip3516hs_pipe_struct_t *pipe) in USB_HostIp3516HsFindStartFrame() argument
1129 uint8_t speed = ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->speed; in USB_HostIp3516HsFindStartFrame()
1131 pipe->startUFrame = 0U; in USB_HostIp3516HsFindStartFrame()
1138 for (startUFrame = 0U; startUFrame < ((uint32_t)pipe->pipeCommon.interval); startUFrame++) in USB_HostIp3516HsFindStartFrame()
1140 …for (frame = startUFrame; frame < USB_HOST_IP3516HS_MAX_UFRAME; frame += pipe->pipeCommon.interval) in USB_HostIp3516HsFindStartFrame()
1142 total = pipe->busHsTime; in USB_HostIp3516HsFindStartFrame()
1217 … error = USB_HostIp3516HsFillSlotBusTime(usbHostState, pipe, startUFrame, slotTime, &pipe->ssSlot, in USB_HostIp3516HsFindStartFrame()
1218 &pipe->csSlot); in USB_HostIp3516HsFindStartFrame()
1226 (void)USB_HostHelperGetPeripheralInformation(pipe->pipeCommon.deviceHandle, in USB_HostIp3516HsFindStartFrame()
1228 …for (frame = startUFrame; frame < USB_HOST_IP3516HS_MAX_UFRAME; frame += pipe->pipeCommon.interval) in USB_HostIp3516HsFindStartFrame()
1248 … (void)USB_HostIp3516HsFillSlotBusTime(usbHostState, pipe, startUFrame, deviceSlotTime, in USB_HostIp3516HsFindStartFrame()
1271 pipe->startUFrame = (uint16_t)startUFrame; in USB_HostIp3516HsFindStartFrame()
1280 usb_host_ip3516hs_pipe_struct_t *pipe) in USB_HostIp3516BaudWidthCheck() argument
1283 uint8_t speed = ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->speed; in USB_HostIp3516BaudWidthCheck()
1286 pipe->busHsTime = (uint16_t)USB_HostIp3516HsBusTime( in USB_HostIp3516BaudWidthCheck()
1287 USB_SPEED_HIGH, pipe->pipeCommon.pipeType, pipe->pipeCommon.direction, in USB_HostIp3516BaudWidthCheck()
1288 ((uint32_t)pipe->pipeCommon.maxPacketSize) * ((uint32_t)pipe->pipeCommon.numberPerUframe)); in USB_HostIp3516BaudWidthCheck()
1293 pipe->busNoneHsTime = (uint16_t)USB_HostIp3516HsBusTime( in USB_HostIp3516BaudWidthCheck()
1294 … speed, pipe->pipeCommon.pipeType, pipe->pipeCommon.direction, pipe->pipeCommon.maxPacketSize); in USB_HostIp3516BaudWidthCheck()
1295 …(void)USB_HostHelperGetPeripheralInformation(pipe->pipeCommon.deviceHandle, (uint32_t)kUSB_HostGet… in USB_HostIp3516BaudWidthCheck()
1297 pipe->busNoneHsTime += (uint16_t)(thinkTime * 7U / (6U * 12U)); in USB_HostIp3516BaudWidthCheck()
1300 error = USB_HostIp3516HsFindStartFrame(usbHostState, pipe); in USB_HostIp3516BaudWidthCheck()
1307 usb_host_ip3516hs_pipe_struct_t *pipe) in USB_HostIp3516HsOpenControlBulkPipe() argument
1320 pipe->tdIndex = i; in USB_HostIp3516HsOpenControlBulkPipe()
1322 pipe->pipeCommon.maxPacketSize; in USB_HostIp3516HsOpenControlBulkPipe()
1329 if (0xFFU == pipe->tdIndex) in USB_HostIp3516HsOpenControlBulkPipe()
1333 … = &s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex]; in USB_HostIp3516HsOpenControlBulkPipe()
1334 atl->control1Union.stateBitField.Mult = pipe->pipeCommon.numberPerUframe; in USB_HostIp3516HsOpenControlBulkPipe()
1335 atl->control2Union.stateBitField.EP = pipe->pipeCommon.endpointAddress; in USB_HostIp3516HsOpenControlBulkPipe()
1337 ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->setAddress; in USB_HostIp3516HsOpenControlBulkPipe()
1341 …(USB_SPEED_HIGH == ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->speed) ? 0U : 1U; in USB_HostIp3516HsOpenControlBulkPipe()
1350 … (USB_SPEED_LOW == ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->speed) ? 2U : 0U; in USB_HostIp3516HsOpenControlBulkPipe()
1353 ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->hsHubPort; in USB_HostIp3516HsOpenControlBulkPipe()
1359 ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->hsHubNumber; in USB_HostIp3516HsOpenControlBulkPipe()
1364 atl->stateUnion.stateBitField.EpType = pipe->pipeCommon.pipeType; in USB_HostIp3516HsOpenControlBulkPipe()
1373 usb_host_ip3516hs_pipe_struct_t *pipe) in USB_HostIp3516HsOpenIsoPipe() argument
1382 error = USB_HostIp3516BaudWidthCheck(usbHostState, pipe); in USB_HostIp3516HsOpenIsoPipe()
1404 pipe->tdIndex = (uint8_t)i; in USB_HostIp3516HsOpenIsoPipe()
1409 pipe->pipeCommon.maxPacketSize; in USB_HostIp3516HsOpenIsoPipe()
1421 if (0xFFU == pipe->tdIndex) in USB_HostIp3516HsOpenIsoPipe()
1426 …for (uint32_t j = pipe->tdIndex; (j < ((uint32_t)USB_HOST_IP3516HS_ISO_MULTIPLE_TRANSFER + pipe->t… in USB_HostIp3516HsOpenIsoPipe()
1433 ptl->control1Union.stateBitField.Mult = pipe->pipeCommon.numberPerUframe; in USB_HostIp3516HsOpenIsoPipe()
1434 ptl->control2Union.stateBitField.EP = pipe->pipeCommon.endpointAddress; in USB_HostIp3516HsOpenIsoPipe()
1436 ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->setAddress; in USB_HostIp3516HsOpenIsoPipe()
1440 …(USB_SPEED_HIGH == ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->speed) ? 0U : 1U; in USB_HostIp3516HsOpenIsoPipe()
1449 … (USB_SPEED_LOW == ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->speed) ? 2U : 0U; in USB_HostIp3516HsOpenIsoPipe()
1454 ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->hsHubPort; in USB_HostIp3516HsOpenIsoPipe()
1460 ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->hsHubNumber; in USB_HostIp3516HsOpenIsoPipe()
1472 ptl->stateUnion.stateBitField.EpType = pipe->pipeCommon.pipeType; in USB_HostIp3516HsOpenIsoPipe()
1482 usb_host_ip3516hs_pipe_struct_t *pipe) in USB_HostIp3516HsOpenInterruptPipe() argument
1490 error = USB_HostIp3516BaudWidthCheck(usbHostState, pipe); in USB_HostIp3516HsOpenInterruptPipe()
1504 pipe->tdIndex = i; in USB_HostIp3516HsOpenInterruptPipe()
1506 pipe->pipeCommon.maxPacketSize; in USB_HostIp3516HsOpenInterruptPipe()
1513 if (0xFFU == pipe->tdIndex) in USB_HostIp3516HsOpenInterruptPipe()
1515 pipe->pipeCommon.open = 0U; in USB_HostIp3516HsOpenInterruptPipe()
1517 (void)USB_HostIp3516HsInsertPipe(&usbHostState->pipeList, pipe); in USB_HostIp3516HsOpenInterruptPipe()
1520 … = &s_UsbHostIp3516HsPtd[usbHostState->controllerId].interrupt[pipe->tdIndex]; in USB_HostIp3516HsOpenInterruptPipe()
1523 ptl->control1Union.stateBitField.Mult = pipe->pipeCommon.numberPerUframe; in USB_HostIp3516HsOpenInterruptPipe()
1524 ptl->control2Union.stateBitField.EP = pipe->pipeCommon.endpointAddress; in USB_HostIp3516HsOpenInterruptPipe()
1526 ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->setAddress; in USB_HostIp3516HsOpenInterruptPipe()
1530 …(USB_SPEED_HIGH == ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->speed) ? 0U : 1U; in USB_HostIp3516HsOpenInterruptPipe()
1539 … (USB_SPEED_LOW == ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->speed) ? 2U : 0U; in USB_HostIp3516HsOpenInterruptPipe()
1544 ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->hsHubPort; in USB_HostIp3516HsOpenInterruptPipe()
1550 ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->hsHubNumber; in USB_HostIp3516HsOpenInterruptPipe()
1561 ptl->stateUnion.stateBitField.EpType = pipe->pipeCommon.pipeType; in USB_HostIp3516HsOpenInterruptPipe()
1570 usb_host_ip3516hs_pipe_struct_t *pipe, in USB_HostIp3516HsCancelPipe() argument
1583 switch (pipe->pipeCommon.pipeType) in USB_HostIp3516HsCancelPipe()
1587 usbHostState->usbRegBase->ATL_PTD_SKIP_MAP |= 1UL << pipe->tdIndex; in USB_HostIp3516HsCancelPipe()
1591 usbHostState->usbRegBase->INT_PTD_SKIP_MAP |= 1UL << pipe->tdIndex; in USB_HostIp3516HsCancelPipe()
1597 << pipe->tdIndex; in USB_HostIp3516HsCancelPipe()
1615 trCurrent = pipe->trList; in USB_HostIp3516HsCancelPipe()
1622 switch (pipe->pipeCommon.pipeType) in USB_HostIp3516HsCancelPipe()
1627 .atl[pipe->tdIndex] in USB_HostIp3516HsCancelPipe()
1630 … s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex].stateUnion.stateBitField.H) in USB_HostIp3516HsCancelPipe()
1635 .atl[pipe->tdIndex] in USB_HostIp3516HsCancelPipe()
1638 .atl[pipe->tdIndex] in USB_HostIp3516HsCancelPipe()
1646 (pipe->pipeCommon.pipeType == USB_ENDPOINT_CONTROL)) && in USB_HostIp3516HsCancelPipe()
1660 …s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex].stateUnion.stateBitField.A = 0… in USB_HostIp3516HsCancelPipe()
1661 …s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex].control1Union.stateBitField.V = in USB_HostIp3516HsCancelPipe()
1667 .interrupt[pipe->tdIndex] in USB_HostIp3516HsCancelPipe()
1670 .interrupt[pipe->tdIndex] in USB_HostIp3516HsCancelPipe()
1676 .interrupt[pipe->tdIndex] in USB_HostIp3516HsCancelPipe()
1679 .interrupt[pipe->tdIndex] in USB_HostIp3516HsCancelPipe()
1692 .interrupt[pipe->tdIndex] in USB_HostIp3516HsCancelPipe()
1695 .interrupt[pipe->tdIndex] in USB_HostIp3516HsCancelPipe()
1744 pipe->bufferIndex = indexLength.state.bufferIndex; in USB_HostIp3516HsCancelPipe()
1745 pipe->bufferLength = indexLength.state.bufferLength; in USB_HostIp3516HsCancelPipe()
1753 if (0UL != pipe->bufferLength) in USB_HostIp3516HsCancelPipe()
1755 … (void)USB_HostIp3516HsFreeBuffer(usbHostState, pipe->bufferIndex, pipe->bufferLength); in USB_HostIp3516HsCancelPipe()
1756 pipe->bufferLength = 0U; in USB_HostIp3516HsCancelPipe()
1764 pipe->trList = trPos; in USB_HostIp3516HsCancelPipe()
1766 pipe->cutOffTime = USB_HOST_IP3516HS_TRANSFER_TIMEOUT_GAP; in USB_HostIp3516HsCancelPipe()
1767 pipe->isBusy = 0U; in USB_HostIp3516HsCancelPipe()
1778 switch (pipe->pipeCommon.pipeType) in USB_HostIp3516HsCancelPipe()
1782 usbHostState->usbRegBase->ATL_PTD_SKIP_MAP &= ~(1UL << pipe->tdIndex); in USB_HostIp3516HsCancelPipe()
1786 usbHostState->usbRegBase->INT_PTD_SKIP_MAP &= ~(1UL << pipe->tdIndex); in USB_HostIp3516HsCancelPipe()
1792 ~(((1UL << USB_HOST_IP3516HS_ISO_MULTIPLE_TRANSFER) - 1U) << pipe->tdIndex); in USB_HostIp3516HsCancelPipe()
1803 usb_host_ip3516hs_pipe_struct_t *pipe) in USB_HostIp3516HsCloseControlBulkPipe() argument
1807 (void)USB_HostIp3516HsCancelPipe(usbHostState, pipe, NULL); in USB_HostIp3516HsCloseControlBulkPipe()
1811 …s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex].control1Union.stateBitField.V … in USB_HostIp3516HsCloseControlBulkPipe()
1812 …s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex].control1Union.stateBitField.Ma… in USB_HostIp3516HsCloseControlBulkPipe()
1822 usb_host_ip3516hs_pipe_struct_t *pipe) in USB_HostIp3516HsCloseIsoPipe() argument
1826 (void)USB_HostIp3516HsCancelPipe(usbHostState, pipe, NULL); in USB_HostIp3516HsCloseIsoPipe()
1833 …s_UsbHostIp3516HsPtd[usbHostState->controllerId].iso[pipe->tdIndex + i].control1Union.stateBitFiel… in USB_HostIp3516HsCloseIsoPipe()
1835 .iso[pipe->tdIndex + i] in USB_HostIp3516HsCloseIsoPipe()
1838 .iso[pipe->tdIndex + i] in USB_HostIp3516HsCloseIsoPipe()
1850 usb_host_ip3516hs_pipe_struct_t *pipe) in USB_HostIp3516HsCloseInterruptPipe() argument
1854 (void)USB_HostIp3516HsCancelPipe(usbHostState, pipe, NULL); in USB_HostIp3516HsCloseInterruptPipe()
1858 …s_UsbHostIp3516HsPtd[usbHostState->controllerId].interrupt[pipe->tdIndex].control1Union.stateBitFi… in USB_HostIp3516HsCloseInterruptPipe()
1860 .interrupt[pipe->tdIndex] in USB_HostIp3516HsCloseInterruptPipe()
1972 usb_host_ip3516hs_pipe_struct_t *pipe, in USB_HostIp3516HsWriteControlPipe() argument
1975 …_ip3516hs_atl_struct_t *atl = &s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex]; in USB_HostIp3516HsWriteControlPipe()
1984 if (1U == pipe->isBusy) in USB_HostIp3516HsWriteControlPipe()
1989 pipe->isBusy = 1U; in USB_HostIp3516HsWriteControlPipe()
2005 if (0U != pipe->bufferLength) in USB_HostIp3516HsWriteControlPipe()
2007 bufferAddress = (uint8_t *)&s_UsbHostIp3516HsBufferArray[pipe->bufferIndex][0]; in USB_HostIp3516HsWriteControlPipe()
2011 transferLength = pipe->pipeCommon.maxPacketSize; in USB_HostIp3516HsWriteControlPipe()
2013 … pipe->pipeCommon.maxPacketSize, &pipe->bufferIndex, in USB_HostIp3516HsWriteControlPipe()
2014 &pipe->bufferLength)) in USB_HostIp3516HsWriteControlPipe()
2016 bufferAddress = (uint8_t *)&s_UsbHostIp3516HsBufferArray[pipe->bufferIndex][0]; in USB_HostIp3516HsWriteControlPipe()
2021 pipe->isBusy = 2U; in USB_HostIp3516HsWriteControlPipe()
2048 if (transferLength > pipe->bufferLength) in USB_HostIp3516HsWriteControlPipe()
2050 transferLength = pipe->bufferLength; in USB_HostIp3516HsWriteControlPipe()
2052 bufferAddress = (uint8_t *)&s_UsbHostIp3516HsBufferArray[pipe->bufferIndex][0]; in USB_HostIp3516HsWriteControlPipe()
2098 …bufferAddress = (uint8_t *)&s_UsbHostIp3516HsBufferArray[pipe->bufferIndex]… in USB_HostIp3516HsWriteControlPipe()
2125 pipe->isBusy = 0U; in USB_HostIp3516HsWriteControlPipe()
2134 usb_host_ip3516hs_pipe_struct_t *pipe, in USB_HostIp3516HsWriteBulkPipe() argument
2137 …_ip3516hs_atl_struct_t *atl = &s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex]; in USB_HostIp3516HsWriteBulkPipe()
2142 if (1U == pipe->isBusy) in USB_HostIp3516HsWriteBulkPipe()
2148 pipe->isBusy = 1U; in USB_HostIp3516HsWriteBulkPipe()
2152 if (0U != pipe->bufferLength) in USB_HostIp3516HsWriteBulkPipe()
2154 bufferAddress = (uint8_t *)&s_UsbHostIp3516HsBufferArray[pipe->bufferIndex][0]; in USB_HostIp3516HsWriteBulkPipe()
2163 … pipe->pipeCommon.maxPacketSize, &pipe->bufferIndex, in USB_HostIp3516HsWriteBulkPipe()
2164 &pipe->bufferLength)) in USB_HostIp3516HsWriteBulkPipe()
2166 bufferAddress = (uint8_t *)&s_UsbHostIp3516HsBufferArray[pipe->bufferIndex][0]; in USB_HostIp3516HsWriteBulkPipe()
2171 pipe->isBusy = 2U; in USB_HostIp3516HsWriteBulkPipe()
2176 if (transferLength > pipe->bufferLength) in USB_HostIp3516HsWriteBulkPipe()
2178 transferLength = pipe->bufferLength; in USB_HostIp3516HsWriteBulkPipe()
2210 usb_host_ip3516hs_pipe_struct_t *pipe, in USB_HostIp3516HsWriteIsoPipe() argument
2224 uint8_t speed = ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->speed; in USB_HostIp3516HsWriteIsoPipe()
2242 ptl = &s_UsbHostIp3516HsPtd[usbHostState->controllerId].iso[pipe->tdIndex + i]; in USB_HostIp3516HsWriteIsoPipe()
2245 tdIndex = pipe->tdIndex + i; in USB_HostIp3516HsWriteIsoPipe()
2257 … pipe->pipeCommon.maxPacketSize, &bufferIndex, in USB_HostIp3516HsWriteIsoPipe()
2292 if (transferLength > pipe->pipeCommon.maxPacketSize) in USB_HostIp3516HsWriteIsoPipe()
2294 transferLength = pipe->pipeCommon.maxPacketSize; in USB_HostIp3516HsWriteIsoPipe()
2327 primedUFrame = ((uint32_t)pipe->lastPrimedIndex + pipe->pipeCommon.interval) & 0xFFU; in USB_HostIp3516HsWriteIsoPipe()
2341 …pipe->startUFrame + ((currentUFrame - pipe->startUFrame + USB_HOST_IP3516HS_PERIODIC_TRANSFER_GAP + in USB_HostIp3516HsWriteIsoPipe()
2342 pipe->pipeCommon.interval - 1U) & in USB_HostIp3516HsWriteIsoPipe()
2343 (~(pipe->pipeCommon.interval - 1U))); in USB_HostIp3516HsWriteIsoPipe()
2346 pipe->lastPrimedIndex = (uint16_t)insertUFrame; in USB_HostIp3516HsWriteIsoPipe()
2354 … for (uint16_t i = (uint16_t)(insertUFrame & 0x07UL); (i < 8U); i += pipe->pipeCommon.interval) in USB_HostIp3516HsWriteIsoPipe()
2356 … primedLength += (uint32_t)pipe->pipeCommon.maxPacketSize * pipe->pipeCommon.numberPerUframe; in USB_HostIp3516HsWriteIsoPipe()
2399 sptl->control1Union.stateBitField.MaxPacketLength = pipe->pipeCommon.maxPacketSize; in USB_HostIp3516HsWriteIsoPipe()
2402 sptl->statusUnion.statusBitField.uSA = pipe->ssSlot; in USB_HostIp3516HsWriteIsoPipe()
2403 sptl->isoInUnion1.bitField.uSCS = pipe->csSlot; in USB_HostIp3516HsWriteIsoPipe()
2418 usb_host_ip3516hs_pipe_struct_t *pipe, in USB_HostIp3516HsWriteInterruptPipe() argument
2421 …6hs_ptl_struct_t *ptl = &s_UsbHostIp3516HsPtd[usbHostState->controllerId].interrupt[pipe->tdIndex]; in USB_HostIp3516HsWriteInterruptPipe()
2428 uint8_t speed = ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->speed; in USB_HostIp3516HsWriteInterruptPipe()
2433 if (1U == pipe->isBusy) in USB_HostIp3516HsWriteInterruptPipe()
2439 pipe->isBusy = 1U; in USB_HostIp3516HsWriteInterruptPipe()
2443 if (transferLength > pipe->pipeCommon.maxPacketSize) in USB_HostIp3516HsWriteInterruptPipe()
2445 transferLength = pipe->pipeCommon.maxPacketSize; in USB_HostIp3516HsWriteInterruptPipe()
2447 …if (kStatus_USB_Success == USB_HostIp3516HsGetBuffer(usbHostState, transferLength, pipe->pipeCommo… in USB_HostIp3516HsWriteInterruptPipe()
2448 &pipe->bufferIndex, &pipe->bufferLength)) in USB_HostIp3516HsWriteInterruptPipe()
2450 bufferAddress = (uint8_t *)&s_UsbHostIp3516HsBufferArray[pipe->bufferIndex][0]; in USB_HostIp3516HsWriteInterruptPipe()
2455 pipe->isBusy = 2U; in USB_HostIp3516HsWriteInterruptPipe()
2495 …insertUFrame = pipe->startUFrame + ((currentUFrame - pipe->startUFrame + USB_HOST_IP3516HS_PERIODI… in USB_HostIp3516HsWriteInterruptPipe()
2496 pipe->pipeCommon.interval - 1U) & in USB_HostIp3516HsWriteInterruptPipe()
2497 (~(pipe->pipeCommon.interval - 1U))); in USB_HostIp3516HsWriteInterruptPipe()
2500 switch (pipe->pipeCommon.interval) in USB_HostIp3516HsWriteInterruptPipe()
2529 for (uint32_t i = (insertUFrame & 0x07U); i < 8U; i += pipe->pipeCommon.interval) in USB_HostIp3516HsWriteInterruptPipe()
2536 sptl->statusUnion.statusBitField.uSA = pipe->ssSlot; in USB_HostIp3516HsWriteInterruptPipe()
2537 sptl->isoInUnion1.bitField.uSCS = pipe->csSlot; in USB_HostIp3516HsWriteInterruptPipe()
2703 usb_host_ip3516hs_pipe_struct_t *pipe = usbHostState->pipeListInUsing; in USB_HostIp3516HsCheckGetBufferFailedPipe() local
2705 while (NULL != pipe) in USB_HostIp3516HsCheckGetBufferFailedPipe()
2707 if (2U == pipe->isBusy) in USB_HostIp3516HsCheckGetBufferFailedPipe()
2709 if (NULL != pipe->trList) in USB_HostIp3516HsCheckGetBufferFailedPipe()
2711 switch (pipe->pipeCommon.pipeType) in USB_HostIp3516HsCheckGetBufferFailedPipe()
2714 (void)USB_HostIp3516HsWriteBulkPipe(usbHostState, pipe, pipe->trList); in USB_HostIp3516HsCheckGetBufferFailedPipe()
2718 (void)USB_HostIp3516HsWriteControlPipe(usbHostState, pipe, pipe->trList); in USB_HostIp3516HsCheckGetBufferFailedPipe()
2723 (void)USB_HostIp3516HsWriteIsoPipe(usbHostState, pipe, pipe->trList); in USB_HostIp3516HsCheckGetBufferFailedPipe()
2729 (void)USB_HostIp3516HsWriteInterruptPipe(usbHostState, pipe, pipe->trList); in USB_HostIp3516HsCheckGetBufferFailedPipe()
2740 temp = (void *)pipe->pipeCommon.next; in USB_HostIp3516HsCheckGetBufferFailedPipe()
2741 pipe = (usb_host_ip3516hs_pipe_struct_t *)temp; in USB_HostIp3516HsCheckGetBufferFailedPipe()
2747 usb_host_ip3516hs_pipe_struct_t *pipe; in USB_HostIp3516HsTokenDone() local
2763 pipe = usbHostState->pipeListInUsing; in USB_HostIp3516HsTokenDone()
2764 while (NULL != pipe) in USB_HostIp3516HsTokenDone()
2767 trCurrent = pipe->trList; in USB_HostIp3516HsTokenDone()
2774 switch (pipe->pipeCommon.pipeType) in USB_HostIp3516HsTokenDone()
2777 if (0U != pipe->isBusy) in USB_HostIp3516HsTokenDone()
2779 temp = (void *)pipe->pipeCommon.next; in USB_HostIp3516HsTokenDone()
2780 pipe = (usb_host_ip3516hs_pipe_struct_t *)temp; in USB_HostIp3516HsTokenDone()
2792 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2795 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2797 pipe->pipeCommon.maxPacketSize))) in USB_HostIp3516HsTokenDone()
2807 … (void *)(&s_UsbHostIp3516HsBufferArray[pipe->bufferIndex][0]), in USB_HostIp3516HsTokenDone()
2809 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2813 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2820 … (void *)(&s_UsbHostIp3516HsBufferArray[pipe->bufferIndex][0]), in USB_HostIp3516HsTokenDone()
2822 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2826 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2837 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2840 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2847 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2850 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2856 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2871 … (void)USB_HostIp3516HsWriteControlPipe(usbHostState, pipe, pipe->trList); in USB_HostIp3516HsTokenDone()
2875 if (0U != pipe->isBusy) in USB_HostIp3516HsTokenDone()
2877 temp = (void *)pipe->pipeCommon.next; in USB_HostIp3516HsTokenDone()
2878 pipe = (usb_host_ip3516hs_pipe_struct_t *)temp; in USB_HostIp3516HsTokenDone()
2882 …s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex].stateUnion.stateBitField.H = 0… in USB_HostIp3516HsTokenDone()
2883 …s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex].stateUnion.stateBitField.X = 0… in USB_HostIp3516HsTokenDone()
2884 …s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex].stateUnion.stateBitField.B = 0… in USB_HostIp3516HsTokenDone()
2887 if (0U != pipe->isBusy) in USB_HostIp3516HsTokenDone()
2889 temp = (void *)pipe->pipeCommon.next; in USB_HostIp3516HsTokenDone()
2890 pipe = (usb_host_ip3516hs_pipe_struct_t *)temp; in USB_HostIp3516HsTokenDone()
2897 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2900 … (void *)(&s_UsbHostIp3516HsBufferArray[pipe->bufferIndex][0]), length); in USB_HostIp3516HsTokenDone()
2903 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2907 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2910 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2917 … s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex].stateUnion.stateBitField.H) in USB_HostIp3516HsTokenDone()
2922 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2925 .atl[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2934 … if ((0U == (pipe->trList->transferLength % pipe->pipeCommon.maxPacketSize)) && in USB_HostIp3516HsTokenDone()
2935 (pipe->trList->transferSofar < pipe->trList->transferLength)) in USB_HostIp3516HsTokenDone()
2937 … (void)USB_HostIp3516HsWriteBulkPipe(usbHostState, pipe, pipe->trList); in USB_HostIp3516HsTokenDone()
2942 if (0U != pipe->isBusy) in USB_HostIp3516HsTokenDone()
2944 temp = (void *)pipe->pipeCommon.next; in USB_HostIp3516HsTokenDone()
2945 pipe = (usb_host_ip3516hs_pipe_struct_t *)temp; in USB_HostIp3516HsTokenDone()
2949 …s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex].stateUnion.stateBitField.H = 0… in USB_HostIp3516HsTokenDone()
2950 …s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex].stateUnion.stateBitField.X = 0… in USB_HostIp3516HsTokenDone()
2951 …s_UsbHostIp3516HsPtd[usbHostState->controllerId].atl[pipe->tdIndex].stateUnion.stateBitField.B = 0… in USB_HostIp3516HsTokenDone()
2956 if (0U != pipe->isBusy) in USB_HostIp3516HsTokenDone()
2958 temp = (void *)pipe->pipeCommon.next; in USB_HostIp3516HsTokenDone()
2959 pipe = (usb_host_ip3516hs_pipe_struct_t *)temp; in USB_HostIp3516HsTokenDone()
2964 .interrupt[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2967 .interrupt[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2976 (void *)(&s_UsbHostIp3516HsBufferArray[pipe->bufferIndex][0]), in USB_HostIp3516HsTokenDone()
2978 .interrupt[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2982 .interrupt[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2986 .interrupt[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2992 .interrupt[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
2995 .interrupt[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
3005 .interrupt[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
3008 .interrupt[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
3011 .interrupt[pipe->tdIndex] in USB_HostIp3516HsTokenDone()
3027 temp = (void *)pipe->pipeCommon.next; in USB_HostIp3516HsTokenDone()
3028 pipe = (usb_host_ip3516hs_pipe_struct_t *)temp; in USB_HostIp3516HsTokenDone()
3032 pipe->bufferIndex = indexLength.state.bufferIndex; in USB_HostIp3516HsTokenDone()
3033 pipe->bufferLength = indexLength.state.bufferLength; in USB_HostIp3516HsTokenDone()
3037 (void *)(&s_UsbHostIp3516HsBufferArray[pipe->bufferIndex][0]), in USB_HostIp3516HsTokenDone()
3060 if (NULL != pipe->trList) in USB_HostIp3516HsTokenDone()
3062 pipe->currentTr = pipe->trList->next; in USB_HostIp3516HsTokenDone()
3066 pipe->currentTr = NULL; in USB_HostIp3516HsTokenDone()
3069 if (NULL != pipe->currentTr) in USB_HostIp3516HsTokenDone()
3071 uint32_t trValue = (uint32_t)pipe->currentTr; in USB_HostIp3516HsTokenDone()
3072 … (void)USB_HostIp3516HsWriteIsoPipe(usbHostState, pipe, (usb_host_transfer_t *)trValue); in USB_HostIp3516HsTokenDone()
3075 if (pipe->trList == pipe->currentTr) in USB_HostIp3516HsTokenDone()
3077 temp = (void *)pipe->pipeCommon.next; in USB_HostIp3516HsTokenDone()
3078 pipe = (usb_host_ip3516hs_pipe_struct_t *)temp; in USB_HostIp3516HsTokenDone()
3097 pipe->trList = trCurrent->next; in USB_HostIp3516HsTokenDone()
3100 if ((USB_ENDPOINT_ISOCHRONOUS != pipe->pipeCommon.pipeType) && (pipe->bufferLength)) in USB_HostIp3516HsTokenDone()
3102 if ((pipe->bufferLength) in USB_HostIp3516HsTokenDone()
3106 if ((0U != pipe->bufferLength)) in USB_HostIp3516HsTokenDone()
3109 … (void)USB_HostIp3516HsFreeBuffer(usbHostState, pipe->bufferIndex, pipe->bufferLength); in USB_HostIp3516HsTokenDone()
3110 pipe->bufferLength = 0U; in USB_HostIp3516HsTokenDone()
3112 pipe->cutOffTime = USB_HOST_IP3516HS_TRANSFER_TIMEOUT_GAP; in USB_HostIp3516HsTokenDone()
3114 … if ((kStatus_USB_Success == (trStatus)) && (USB_ENDPOINT_CONTROL == pipe->pipeCommon.pipeType) && in USB_HostIp3516HsTokenDone()
3124 if ((p->pipeCommon.deviceHandle == pipe->pipeCommon.deviceHandle) && in USB_HostIp3516HsTokenDone()
3188 if (NULL != pipe->trList) in USB_HostIp3516HsTokenDone()
3190 switch (pipe->pipeCommon.pipeType) in USB_HostIp3516HsTokenDone()
3193 (void)USB_HostIp3516HsWriteBulkPipe(usbHostState, pipe, pipe->trList); in USB_HostIp3516HsTokenDone()
3197 … (void)USB_HostIp3516HsWriteControlPipe(usbHostState, pipe, pipe->trList); in USB_HostIp3516HsTokenDone()
3202 (void)USB_HostIp3516HsWriteIsoPipe(usbHostState, pipe, pipe->trList); in USB_HostIp3516HsTokenDone()
3208 … (void)USB_HostIp3516HsWriteInterruptPipe(usbHostState, pipe, pipe->trList); in USB_HostIp3516HsTokenDone()
3219 temp = (void *)pipe->pipeCommon.next; in USB_HostIp3516HsTokenDone()
3220 pipe = (usb_host_ip3516hs_pipe_struct_t *)temp; in USB_HostIp3516HsTokenDone()
3229 usb_host_ip3516hs_pipe_struct_t *pipe; in USB_HostIp3516HsSof() local
3233 pipe = usbHostState->pipeListInUsing; in USB_HostIp3516HsSof()
3234 while (NULL != pipe) in USB_HostIp3516HsSof()
3236 …if ((USB_ENDPOINT_CONTROL == pipe->pipeCommon.pipeType) || (USB_ENDPOINT_BULK == pipe->pipeCommon.… in USB_HostIp3516HsSof()
3238 if (NULL != pipe->trList) in USB_HostIp3516HsSof()
3240 pipe->cutOffTime--; in USB_HostIp3516HsSof()
3241 if (0U == pipe->cutOffTime) in USB_HostIp3516HsSof()
3243 pipe->trList->union1.transferResult = (int)kStatus_USB_TransferFailed; in USB_HostIp3516HsSof()
3244 (void)USB_HostIp3516HsCancelPipe(usbHostState, pipe, pipe->trList); in USB_HostIp3516HsSof()
3248 temp = (void *)pipe->pipeCommon.next; in USB_HostIp3516HsSof()
3249 pipe = (usb_host_ip3516hs_pipe_struct_t *)temp; in USB_HostIp3516HsSof()
3269 usb_host_ip3516hs_pipe_struct_t *pipe; in USB_HostIp3516HsControllerInit() local
3348 pipe = usbHostState->pipeList; in USB_HostIp3516HsControllerInit()
3352 pipe->pipeCommon.next = (usb_host_pipe_t *)temp; in USB_HostIp3516HsControllerInit()
3353 temp = (void *)pipe->pipeCommon.next; in USB_HostIp3516HsControllerInit()
3354 pipe = (usb_host_ip3516hs_pipe_struct_t *)temp; in USB_HostIp3516HsControllerInit()
3356 pipe->pipeCommon.next = NULL; in USB_HostIp3516HsControllerInit()
3541 usb_host_ip3516hs_pipe_struct_t *pipe = NULL; in USB_HostIp3516HsOpenPipe() local
3545 status = USB_HostIp3516HsGetNewPipe(&usbHostState->pipeList, &pipe); in USB_HostIp3516HsOpenPipe()
3546 if ((kStatus_USB_Success != status) || (NULL == pipe)) in USB_HostIp3516HsOpenPipe()
3555 pipe->pipeCommon.deviceHandle = pipeInit->devInstance; in USB_HostIp3516HsOpenPipe()
3556 pipe->pipeCommon.endpointAddress = pipeInit->endpointAddress; in USB_HostIp3516HsOpenPipe()
3557 pipe->pipeCommon.direction = pipeInit->direction; in USB_HostIp3516HsOpenPipe()
3558 pipe->pipeCommon.interval = pipeInit->interval; in USB_HostIp3516HsOpenPipe()
3559 pipe->pipeCommon.maxPacketSize = pipeInit->maxPacketSize; in USB_HostIp3516HsOpenPipe()
3560 pipe->pipeCommon.pipeType = pipeInit->pipeType; in USB_HostIp3516HsOpenPipe()
3561 pipe->pipeCommon.numberPerUframe = (pipeInit->numberPerUframe + 1U) & 0x03U; in USB_HostIp3516HsOpenPipe()
3562 pipe->pipeCommon.nakCount = pipeInit->nakCount; in USB_HostIp3516HsOpenPipe()
3563 pipe->pipeCommon.nextdata01 = 0U; in USB_HostIp3516HsOpenPipe()
3564 pipe->pipeCommon.currentCount = 0U; in USB_HostIp3516HsOpenPipe()
3565 pipe->pipeCommon.open = 1U; in USB_HostIp3516HsOpenPipe()
3566 pipe->tdIndex = 0xFFU; in USB_HostIp3516HsOpenPipe()
3567 pipe->cutOffTime = USB_HOST_IP3516HS_TRANSFER_TIMEOUT_GAP; in USB_HostIp3516HsOpenPipe()
3568 pipe->startUFrame = 0U; in USB_HostIp3516HsOpenPipe()
3569 pipe->csSlot = 0U; in USB_HostIp3516HsOpenPipe()
3570 pipe->isBusy = 0U; in USB_HostIp3516HsOpenPipe()
3571 pipe->bufferLength = 0U; in USB_HostIp3516HsOpenPipe()
3572 pipe->currentTr = NULL; in USB_HostIp3516HsOpenPipe()
3573 pipe->lastPrimedIndex = 0U; in USB_HostIp3516HsOpenPipe()
3575 if (USB_ENDPOINT_ISOCHRONOUS == pipe->pipeCommon.pipeType) in USB_HostIp3516HsOpenPipe()
3578 if (0U == pipe->pipeCommon.interval) in USB_HostIp3516HsOpenPipe()
3580 pipe->pipeCommon.interval = 1U; in USB_HostIp3516HsOpenPipe()
3582 pipe->pipeCommon.interval = in USB_HostIp3516HsOpenPipe()
3583 … (uint16_t)(1UL << (pipe->pipeCommon.interval - 1U)); /* iso interval is the power of 2 */ in USB_HostIp3516HsOpenPipe()
3585 pipe->pipeCommon.interval = 1U; in USB_HostIp3516HsOpenPipe()
3588 else if (USB_ENDPOINT_INTERRUPT == pipe->pipeCommon.pipeType) in USB_HostIp3516HsOpenPipe()
3590 if (USB_SPEED_HIGH != ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->speed) in USB_HostIp3516HsOpenPipe()
3596 if (0U != (pipe->pipeCommon.interval & ((uint16_t)(1UL << p)))) in USB_HostIp3516HsOpenPipe()
3604 pipe->pipeCommon.interval = (uint16_t)(1UL << interval); in USB_HostIp3516HsOpenPipe()
3608 pipe->pipeCommon.interval = ((uint16_t)( in USB_HostIp3516HsOpenPipe()
3609 …1UL << ((uint32_t)pipe->pipeCommon.interval - 1UL))); /* HS interrupt interval is the power of 2 */ in USB_HostIp3516HsOpenPipe()
3614 pipe->pipeCommon.interval = 0U; in USB_HostIp3516HsOpenPipe()
3617 if (USB_SPEED_HIGH != ((usb_host_device_instance_t *)pipe->pipeCommon.deviceHandle)->speed) in USB_HostIp3516HsOpenPipe()
3619 pipe->pipeCommon.interval = pipe->pipeCommon.interval << 3; in USB_HostIp3516HsOpenPipe()
3622 if (((uint16_t)USB_HOST_IP3516HS_MAX_FRAME) < pipe->pipeCommon.interval) in USB_HostIp3516HsOpenPipe()
3624 pipe->pipeCommon.interval = (uint16_t)USB_HOST_IP3516HS_MAX_FRAME; in USB_HostIp3516HsOpenPipe()
3627 switch (pipe->pipeCommon.pipeType) in USB_HostIp3516HsOpenPipe()
3631 status = USB_HostIp3516HsOpenControlBulkPipe(usbHostState, pipe); in USB_HostIp3516HsOpenPipe()
3636 status = USB_HostIp3516HsOpenIsoPipe(usbHostState, pipe); in USB_HostIp3516HsOpenPipe()
3642 status = USB_HostIp3516HsOpenInterruptPipe(usbHostState, pipe); in USB_HostIp3516HsOpenPipe()
3652 pipe->pipeCommon.open = 0U; in USB_HostIp3516HsOpenPipe()
3654 (void)USB_HostIp3516HsInsertPipe(&usbHostState->pipeList, pipe); in USB_HostIp3516HsOpenPipe()
3658 (void)USB_HostIp3516HsInsertPipe(&usbHostState->pipeListInUsing, pipe); in USB_HostIp3516HsOpenPipe()
3660 *pipeHandle = pipe; in USB_HostIp3516HsOpenPipe()
3667 usb_host_ip3516hs_pipe_struct_t *pipe = (usb_host_ip3516hs_pipe_struct_t *)pipeHandle; in USB_HostIp3516HsClosePipe() local
3669 switch (pipe->pipeCommon.pipeType) in USB_HostIp3516HsClosePipe()
3673 (void)USB_HostIp3516HsCloseControlBulkPipe(usbHostState, pipe); in USB_HostIp3516HsClosePipe()
3678 (void)USB_HostIp3516HsCloseIsoPipe(usbHostState, pipe); in USB_HostIp3516HsClosePipe()
3684 (void)USB_HostIp3516HsCloseInterruptPipe(usbHostState, pipe); in USB_HostIp3516HsClosePipe()
3692 (void)USB_HostIp3516HsRemovePipe(&usbHostState->pipeListInUsing, pipe); in USB_HostIp3516HsClosePipe()
3693 pipe->pipeCommon.open = 0U; in USB_HostIp3516HsClosePipe()
3694 (void)USB_HostIp3516HsInsertPipe(&usbHostState->pipeList, pipe); in USB_HostIp3516HsClosePipe()
3704 usb_host_ip3516hs_pipe_struct_t *pipe = (usb_host_ip3516hs_pipe_struct_t *)pipeHandle; in USB_HostIp3516HsWritePipe() local
3716 if (NULL == pipe->trList) in USB_HostIp3516HsWritePipe()
3718 pipe->trList = transfer; in USB_HostIp3516HsWritePipe()
3719 pipe->currentTr = transfer; in USB_HostIp3516HsWritePipe()
3724 trPre = pipe->trList; in USB_HostIp3516HsWritePipe()
3734 if ((0U != trListEmpty) || (USB_ENDPOINT_ISOCHRONOUS == pipe->pipeCommon.pipeType)) in USB_HostIp3516HsWritePipe()
3739 switch (pipe->pipeCommon.pipeType) in USB_HostIp3516HsWritePipe()
3742 status = USB_HostIp3516HsWriteBulkPipe(usbHostState, pipe, transfer); in USB_HostIp3516HsWritePipe()
3746 status = USB_HostIp3516HsWriteControlPipe(usbHostState, pipe, transfer); in USB_HostIp3516HsWritePipe()
3751 status = USB_HostIp3516HsWriteIsoPipe(usbHostState, pipe, pipe->trList); in USB_HostIp3516HsWritePipe()
3757 status = USB_HostIp3516HsWriteInterruptPipe(usbHostState, pipe, transfer); in USB_HostIp3516HsWritePipe()
3780 usb_host_ip3516hs_pipe_struct_t *pipe; in USB_HostIp3516HsIoctl() local
3826 pipe = (usb_host_ip3516hs_pipe_struct_t *)ioctlParam; in USB_HostIp3516HsIoctl()
3828 (void)USB_HostHelperGetPeripheralInformation(pipe->pipeCommon.deviceHandle, in USB_HostIp3516HsIoctl()
3830 switch (pipe->pipeCommon.pipeType) in USB_HostIp3516HsIoctl()
3834 usbHostState->usbRegBase->ATL_PTD_SKIP_MAP |= 1UL << pipe->tdIndex; in USB_HostIp3516HsIoctl()
3836 .atl[pipe->tdIndex] in USB_HostIp3516HsIoctl()
3838 usbHostState->usbRegBase->ATL_PTD_SKIP_MAP &= ~(1UL << pipe->tdIndex); in USB_HostIp3516HsIoctl()
3842 usbHostState->usbRegBase->INT_PTD_SKIP_MAP |= 1UL << pipe->tdIndex; in USB_HostIp3516HsIoctl()
3844 .interrupt[pipe->tdIndex] in USB_HostIp3516HsIoctl()
3846 usbHostState->usbRegBase->INT_PTD_SKIP_MAP &= ~(1UL << pipe->tdIndex); in USB_HostIp3516HsIoctl()
3851 usbHostState->usbRegBase->ISO_PTD_SKIP_MAP |= 1UL << pipe->tdIndex; in USB_HostIp3516HsIoctl()
3853 .iso[pipe->tdIndex] in USB_HostIp3516HsIoctl()
3855 usbHostState->usbRegBase->ISO_PTD_SKIP_MAP &= ~(1UL << pipe->tdIndex); in USB_HostIp3516HsIoctl()
3866 pipe = (usb_host_ip3516hs_pipe_struct_t *)ioctlParam; in USB_HostIp3516HsIoctl()
3867 switch (pipe->pipeCommon.pipeType) in USB_HostIp3516HsIoctl()
3871 usbHostState->usbRegBase->ATL_PTD_SKIP_MAP |= 1UL << pipe->tdIndex; in USB_HostIp3516HsIoctl()
3873 .atl[pipe->tdIndex] in USB_HostIp3516HsIoctl()
3874 … .control1Union.stateBitField.MaxPacketLength = pipe->pipeCommon.maxPacketSize; in USB_HostIp3516HsIoctl()
3875 usbHostState->usbRegBase->ATL_PTD_SKIP_MAP &= ~(1UL << pipe->tdIndex); in USB_HostIp3516HsIoctl()
3879 usbHostState->usbRegBase->INT_PTD_SKIP_MAP |= 1UL << pipe->tdIndex; in USB_HostIp3516HsIoctl()
3881 .interrupt[pipe->tdIndex] in USB_HostIp3516HsIoctl()
3882 … .control1Union.stateBitField.MaxPacketLength = pipe->pipeCommon.maxPacketSize; in USB_HostIp3516HsIoctl()
3883 usbHostState->usbRegBase->INT_PTD_SKIP_MAP &= ~(1UL << pipe->tdIndex); in USB_HostIp3516HsIoctl()
3888 usbHostState->usbRegBase->ISO_PTD_SKIP_MAP |= 1UL << pipe->tdIndex; in USB_HostIp3516HsIoctl()
3890 .iso[pipe->tdIndex] in USB_HostIp3516HsIoctl()
3891 … .control1Union.stateBitField.MaxPacketLength = pipe->pipeCommon.maxPacketSize; in USB_HostIp3516HsIoctl()
3893 .iso[pipe->tdIndex] in USB_HostIp3516HsIoctl()
3897 .iso[pipe->tdIndex] in USB_HostIp3516HsIoctl()
3900 usbHostState->usbRegBase->ISO_PTD_SKIP_MAP &= ~(1UL << pipe->tdIndex); in USB_HostIp3516HsIoctl()