Lines Matching refs:epState
170 … usb_device_lpc3511ip_endpoint_state_struct_t *epState,
369 … usb_device_lpc3511ip_endpoint_state_struct_t *epState, in USB_DeviceLpc3511IpEndpointPrime() argument
382 epState->stateUnion.stateBitField.transferring = 1U; in USB_DeviceLpc3511IpEndpointPrime()
393 epState->transferPrimedLength += length; in USB_DeviceLpc3511IpEndpointPrime()
397 odd = (uint8_t)epState->stateUnion.stateBitField.producerOdd; in USB_DeviceLpc3511IpEndpointPrime()
398 epState->stateUnion.stateBitField.doubleBufferBusy++; in USB_DeviceLpc3511IpEndpointPrime()
399 epState->stateUnion.stateBitField.producerOdd ^= 1U; in USB_DeviceLpc3511IpEndpointPrime()
406 epState->epBufferStatusUnion[odd].epBufferStatusField.transactionLength = (uint16_t)length; in USB_DeviceLpc3511IpEndpointPrime()
416 …(epState->stateUnion.stateBitField.epControlDefault << USB_LPC3511IP_ENDPOINT_CONFIGURE_BITS_SHIFT… in USB_DeviceLpc3511IpEndpointPrime()
419 if (0U != (epState->stateUnion.stateBitField.epControlDefault & in USB_DeviceLpc3511IpEndpointPrime()
422 epState->stateUnion.stateBitField.epControlDefault &= in USB_DeviceLpc3511IpEndpointPrime()
519 usb_device_lpc3511ip_endpoint_state_struct_t *epState = in USB_DeviceLpc3511IpEndpointInit() local
532 epState->stateUnion.state = 0x00000000U; in USB_DeviceLpc3511IpEndpointInit()
535 epState->stateUnion.stateBitField.maxPacketSize = maxPacketSize; in USB_DeviceLpc3511IpEndpointInit()
537 epState->stateUnion.stateBitField.zlt = epInit->zlt; in USB_DeviceLpc3511IpEndpointInit()
538 epState->stateUnion.stateBitField.endpointType = epInit->transferType; in USB_DeviceLpc3511IpEndpointInit()
543 epState->stateUnion.stateBitField.epControlDefault = in USB_DeviceLpc3511IpEndpointInit()
555 epState->stateUnion.stateBitField.epControlDefault = in USB_DeviceLpc3511IpEndpointInit()
563 epState->stateUnion.stateBitField.epControlDefault = 0x00U; in USB_DeviceLpc3511IpEndpointInit()
568 …(epState->stateUnion.stateBitField.epControlDefault << USB_LPC3511IP_ENDPOINT_CONFIGURE_BITS_SHIFT… in USB_DeviceLpc3511IpEndpointInit()
581 …(epState->stateUnion.stateBitField.epControlDefault << USB_LPC3511IP_ENDPOINT_CONFIGURE_BITS_SHIFT… in USB_DeviceLpc3511IpEndpointInit()
587 epState->stateUnion.stateBitField.epControlDefault |= in USB_DeviceLpc3511IpEndpointInit()
591 epState->epPacketBuffer = NULL; in USB_DeviceLpc3511IpEndpointInit()
594 epState->epPacketBuffer = lpc3511IpState->controlData; in USB_DeviceLpc3511IpEndpointInit()
622 epState->epPacketBuffer = maxPacketBuffer; in USB_DeviceLpc3511IpEndpointInit()
627 epState->stateUnion.stateBitField.isOpened = 1U; in USB_DeviceLpc3511IpEndpointInit()
646 usb_device_lpc3511ip_endpoint_state_struct_t *epState = in USB_DeviceLpc3511IpEndpointDeinit() local
667 if ((USB_ENDPOINT_BULK == epState->stateUnion.stateBitField.endpointType) && in USB_DeviceLpc3511IpEndpointDeinit()
671 epState->epPacketBuffer, in USB_DeviceLpc3511IpEndpointDeinit()
677 epState->epPacketBuffer, in USB_DeviceLpc3511IpEndpointDeinit()
678 … USB_LPC3511IP_GET_MULTIPLE_OF_64(epState->stateUnion.stateBitField.maxPacketSize) * 2U); in USB_DeviceLpc3511IpEndpointDeinit()
682 epState->epPacketBuffer, in USB_DeviceLpc3511IpEndpointDeinit()
683 … USB_LPC3511IP_GET_MULTIPLE_OF_64(epState->stateUnion.stateBitField.maxPacketSize) * 2U); in USB_DeviceLpc3511IpEndpointDeinit()
686 USB_DeviceLpcIp3511ReleaseMaxPacketBuffer(epState->epPacketBuffer, in USB_DeviceLpc3511IpEndpointDeinit()
687 … epState->stateUnion.stateBitField.maxPacketSize); in USB_DeviceLpc3511IpEndpointDeinit()
690 epState->epPacketBuffer = NULL; in USB_DeviceLpc3511IpEndpointDeinit()
699 epState->stateUnion.stateBitField.maxPacketSize = 0U; in USB_DeviceLpc3511IpEndpointDeinit()
702 epState->stateUnion.stateBitField.isOpened = 0U; in USB_DeviceLpc3511IpEndpointDeinit()
722 usb_device_lpc3511ip_endpoint_state_struct_t *epState; in USB_DeviceLpc3511IpEndpointStall() local
728 …epState = USB_DeviceLpc3511IpGetEndpointStateStruct(lpc3511IpSta… in USB_DeviceLpc3511IpEndpointStall()
729 epState->stateUnion.stateBitField.stalled = 1U; in USB_DeviceLpc3511IpEndpointStall()
730 …epState = USB_DeviceLpc3511IpGetEndpointStateStruct(lpc3511IpSta… in USB_DeviceLpc3511IpEndpointStall()
731 epState->stateUnion.stateBitField.stalled = 1U; in USB_DeviceLpc3511IpEndpointStall()
753 epState = USB_DeviceLpc3511IpGetEndpointStateStruct(lpc3511IpState, endpointIndex); in USB_DeviceLpc3511IpEndpointStall()
755 epState->stateUnion.stateBitField.stalled = 1U; in USB_DeviceLpc3511IpEndpointStall()
763 epState->stateUnion.stateBitField.epControlDefault |= in USB_DeviceLpc3511IpEndpointStall()
779 (USB_ENDPOINT_INTERRUPT == epState->stateUnion.stateBitField.endpointType)) in USB_DeviceLpc3511IpEndpointStall()
784 epState->stateUnion.stateBitField.epControlDefault &= in USB_DeviceLpc3511IpEndpointStall()
822 usb_device_lpc3511ip_endpoint_state_struct_t *epState = in USB_DeviceLpc3511IpEndpointUnstall() local
827 epState->stateUnion.stateBitField.stalled = 0U; in USB_DeviceLpc3511IpEndpointUnstall()
836 epState->stateUnion.stateBitField.epControlDefault |= in USB_DeviceLpc3511IpEndpointUnstall()
849 (USB_ENDPOINT_INTERRUPT == epState->stateUnion.stateBitField.endpointType)) in USB_DeviceLpc3511IpEndpointUnstall()
851 epState->stateUnion.stateBitField.epControlDefault &= in USB_DeviceLpc3511IpEndpointUnstall()
863 if (0U != epState->stateUnion.stateBitField.stallPrimed) in USB_DeviceLpc3511IpEndpointUnstall()
865 epState->stateUnion.stateBitField.stallPrimed = 0u; in USB_DeviceLpc3511IpEndpointUnstall()
867 … if (kStatus_USB_Success != USB_DeviceLpc3511IpTransaction(lpc3511IpState, epState, endpointIndex)) in USB_DeviceLpc3511IpEndpointUnstall()
872 (void)USB_DeviceLpc3511IpTransaction(lpc3511IpState, epState, endpointIndex); in USB_DeviceLpc3511IpEndpointUnstall()
993 … usb_device_lpc3511ip_endpoint_state_struct_t *epState, in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy() argument
1008 …if ((0U != epState->epBufferStatusUnion[odd].epBufferStatusField.epPacketCopyed) && (length > 0U) … in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1012 … (0U != epState->epBufferStatusUnion[odd].epBufferStatusField.epPacketCopyed) && (length > 0U) && in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1018 (epState->epBufferStatusUnion[odd].epBufferStatusField.epPacketCopyed) && (length > 0U) && in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1023 destBuffer = &(epState->transferBuffer[epState->transferDone - length]); in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1025 destBuffer = &(epState->transferBuffer[epState->transferDone]); in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1030 …if ((USB_ENDPOINT_BULK == epState->stateUnion.stateBitField.endpointType) && ((endpointIndex & 0x0… in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1032 sourceBuffer = epState->epPacketBuffer + odd * USB_LPC3511IP_GET_MULTIPLE_OF_64( in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1037 sourceBuffer = epState->epPacketBuffer + in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1038 … odd * USB_LPC3511IP_GET_MULTIPLE_OF_64(epState->stateUnion.stateBitField.maxPacketSize); in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1041 sourceBuffer = epState->epPacketBuffer + in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1042 … odd * USB_LPC3511IP_GET_MULTIPLE_OF_64(epState->stateUnion.stateBitField.maxPacketSize); in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1045 sourceBuffer = epState->epPacketBuffer; in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1052 … usb_device_lpc3511ip_endpoint_state_struct_t *epState, in USB_DeviceLpc3511IpTokenUpdate() argument
1062 odd = (uint8_t)epState->stateUnion.stateBitField.consumerOdd; in USB_DeviceLpc3511IpTokenUpdate()
1063 epState->stateUnion.stateBitField.consumerOdd ^= 1U; in USB_DeviceLpc3511IpTokenUpdate()
1064 epState->stateUnion.stateBitField.doubleBufferBusy--; in USB_DeviceLpc3511IpTokenUpdate()
1094 length = epState->epBufferStatusUnion[odd].epBufferStatusField.transactionLength - length; in USB_DeviceLpc3511IpTokenUpdate()
1102 length = epState->epBufferStatusUnion[odd].epBufferStatusField.transactionLength; in USB_DeviceLpc3511IpTokenUpdate()
1107 …USB_DeviceLpc3511IpDoPreviousTransactionMemcpy(lpc3511IpState, epState, length, endpointIndex, odd… in USB_DeviceLpc3511IpTokenUpdate()
1110 epState->transferDone += length; in USB_DeviceLpc3511IpTokenUpdate()
1128 usb_device_lpc3511ip_endpoint_state_struct_t *epState = in USB_DeviceLpc3511IpInterruptToken() local
1144 if ((0U != (epState->stateUnion.stateBitField.epControlDefault & in USB_DeviceLpc3511IpInterruptToken()
1146 (USB_ENDPOINT_INTERRUPT == epState->stateUnion.stateBitField.endpointType) && in USB_DeviceLpc3511IpInterruptToken()
1148 … (0U != (lpc3511IpState->epCommandStatusList[epState->stateUnion.stateBitField.consumerOdd + in USB_DeviceLpc3511IpInterruptToken()
1172 epState->stateUnion.stateBitField.epControlDefault &= in USB_DeviceLpc3511IpInterruptToken()
1176 epState->stateUnion.stateBitField.epControlDefault |= in USB_DeviceLpc3511IpInterruptToken()
1180 … if (kStatus_USB_Success != USB_DeviceLpc3511IpTransaction(lpc3511IpState, epState, endpointIndex)) in USB_DeviceLpc3511IpInterruptToken()
1187 (void)USB_DeviceLpc3511IpTransaction(lpc3511IpState, epState, endpointIndex); in USB_DeviceLpc3511IpInterruptToken()
1200 if ((0U == isSetup) && (0U == epState->stateUnion.stateBitField.transferring)) in USB_DeviceLpc3511IpInterruptToken()
1209 if (0U != (epState->stateUnion.stateBitField.transferring)) in USB_DeviceLpc3511IpInterruptToken()
1211 epState->stateUnion.stateBitField.transferring = 0U; in USB_DeviceLpc3511IpInterruptToken()
1255 … if (0U != (lpc3511IpState->epCommandStatusList[epState->stateUnion.stateBitField.consumerOdd + in USB_DeviceLpc3511IpInterruptToken()
1271 len = USB_DeviceLpc3511IpTokenUpdate(lpc3511IpState, epState, endpointIndex, 1U); in USB_DeviceLpc3511IpInterruptToken()
1274 if ((epState->stateUnion.stateBitField.doubleBufferBusy > 0U) && in USB_DeviceLpc3511IpInterruptToken()
1275 … (0U == (lpc3511IpState->epCommandStatusList[epState->stateUnion.stateBitField.consumerOdd + in USB_DeviceLpc3511IpInterruptToken()
1281 lpc3511IpState, epState, len, endpointIndex, in USB_DeviceLpc3511IpInterruptToken()
1282 (uint8_t)(epState->stateUnion.stateBitField.consumerOdd ^ 1U)); in USB_DeviceLpc3511IpInterruptToken()
1284 len = USB_DeviceLpc3511IpTokenUpdate(lpc3511IpState, epState, endpointIndex, 1U); in USB_DeviceLpc3511IpInterruptToken()
1291 length = USB_DeviceLpc3511IpTokenUpdate(lpc3511IpState, epState, endpointIndex, 0U); in USB_DeviceLpc3511IpInterruptToken()
1296 remainLength = epState->transferLength - epState->transferDone; in USB_DeviceLpc3511IpInterruptToken()
1303 …if ((length > 0U) && (0U == (length % epState->stateUnion.stateBitField.maxPacketSize)) && (remain… in USB_DeviceLpc3511IpInterruptToken()
1309 … USB_DeviceLpc3511IpDoPreviousTransactionMemcpy(lpc3511IpState, epState, len, endpointIndex, 0U); in USB_DeviceLpc3511IpInterruptToken()
1311 … if (kStatus_USB_Success != USB_DeviceLpc3511IpTransaction(lpc3511IpState, epState, endpointIndex)) in USB_DeviceLpc3511IpInterruptToken()
1318 (void)USB_DeviceLpc3511IpTransaction(lpc3511IpState, epState, endpointIndex); in USB_DeviceLpc3511IpInterruptToken()
1324 … if (kStatus_USB_Success != USB_DeviceLpc3511IpTransaction(lpc3511IpState, epState, endpointIndex)) in USB_DeviceLpc3511IpInterruptToken()
1331 (void)USB_DeviceLpc3511IpTransaction(lpc3511IpState, epState, endpointIndex); in USB_DeviceLpc3511IpInterruptToken()
1335 lpc3511IpState, epState, len, endpointIndex, in USB_DeviceLpc3511IpInterruptToken()
1336 (uint8_t)(epState->stateUnion.stateBitField.consumerOdd ^ 1U)); in USB_DeviceLpc3511IpInterruptToken()
1340 … if (kStatus_USB_Success != USB_DeviceLpc3511IpTransaction(lpc3511IpState, epState, endpointIndex)) in USB_DeviceLpc3511IpInterruptToken()
1345 (void)USB_DeviceLpc3511IpTransaction(lpc3511IpState, epState, endpointIndex); in USB_DeviceLpc3511IpInterruptToken()
1352 epState->stateUnion.stateBitField.transferring = 0U; in USB_DeviceLpc3511IpInterruptToken()
1353 message.length = epState->transferDone; in USB_DeviceLpc3511IpInterruptToken()
1354 message.buffer = epState->transferBuffer; in USB_DeviceLpc3511IpInterruptToken()
1361 (0U == (length % epState->stateUnion.stateBitField.maxPacketSize))) in USB_DeviceLpc3511IpInterruptToken()
1372 … if (USB_SHORT_FROM_LITTLE_ENDIAN(setupPacket->wLength) > epState->transferLength) in USB_DeviceLpc3511IpInterruptToken()
1376 USB_DeviceLpc3511IpEndpointPrime(lpc3511IpState, epState, 1U, NULL, 0U)) in USB_DeviceLpc3511IpInterruptToken()
1383 … (void)USB_DeviceLpc3511IpEndpointPrime(lpc3511IpState, epState, 1U, NULL, 0U); in USB_DeviceLpc3511IpInterruptToken()
1390 if ((0U != epState->stateUnion.stateBitField.zlt)) in USB_DeviceLpc3511IpInterruptToken()
1394 … USB_DeviceLpc3511IpEndpointPrime(lpc3511IpState, epState, endpointIndex, NULL, 0U)) in USB_DeviceLpc3511IpInterruptToken()
1401 … (void)USB_DeviceLpc3511IpEndpointPrime(lpc3511IpState, epState, endpointIndex, NULL, 0U); in USB_DeviceLpc3511IpInterruptToken()
1417 USB_DeviceLpc3511IpDoPreviousTransactionMemcpy(lpc3511IpState, epState, len, endpointIndex, in USB_DeviceLpc3511IpInterruptToken()
1418 … (uint8_t)(epState->stateUnion.stateBitField.consumerOdd ^ 1U)); in USB_DeviceLpc3511IpInterruptToken()
1784 … usb_device_lpc3511ip_endpoint_state_struct_t *epState, in USB_DeviceLpc3511IpGetActualBufferAndPrime() argument
1797 odd = (uint8_t)epState->stateUnion.stateBitField.producerOdd; in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1804 actualBuffer = epState->transferBuffer + epState->transferPrimedLength; in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1805 length = epState->transferLength - epState->transferPrimedLength; in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1809 …if ((USB_ENDPOINT_BULK == epState->stateUnion.stateBitField.endpointType) && ((endpointIndex & 0x0… in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1818 if (length > epState->stateUnion.stateBitField.maxPacketSize) in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1820 length = epState->stateUnion.stateBitField.maxPacketSize; in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1824 if (length > epState->stateUnion.stateBitField.maxPacketSize) in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1826 length = epState->stateUnion.stateBitField.maxPacketSize; in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1830 epState->epBufferStatusUnion[odd].epBufferStatusField.epPacketCopyed = 0; in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1881 (length != epState->stateUnion.stateBitField.maxPacketSize))) in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1886 epState->epBufferStatusUnion[odd].epBufferStatusField.epPacketCopyed = 1U; in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1891 if ((USB_ENDPOINT_BULK == epState->stateUnion.stateBitField.endpointType) && in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1894 destBuffer = (uint8_t *)(epState->epPacketBuffer + in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1900 destBuffer = (uint8_t *)(epState->epPacketBuffer + in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1902 … epState->stateUnion.stateBitField.maxPacketSize))); in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1906 (uint8_t *)(epState->epPacketBuffer + (odd * USB_LPC3511IP_GET_MULTIPLE_OF_64( in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1907 … epState->stateUnion.stateBitField.maxPacketSize))); in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1910 destBuffer = (uint8_t *)(epState->epPacketBuffer); in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1923 if (length < epState->stateUnion.stateBitField.maxPacketSize) in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1925 length = epState->stateUnion.stateBitField.maxPacketSize; in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1929 length = ((length + epState->stateUnion.stateBitField.maxPacketSize - 1) / in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1930 epState->stateUnion.stateBitField.maxPacketSize) * in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1931 (epState->stateUnion.stateBitField.maxPacketSize); in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1934 length = epState->stateUnion.stateBitField.maxPacketSize; in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1962 …return USB_DeviceLpc3511IpEndpointPrime(lpc3511IpState, epState, endpointIndex, actualBuffer, leng… in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1970 … usb_device_lpc3511ip_endpoint_state_struct_t *epState, in USB_DeviceLpc3511IpTransaction() argument
1987 if ((0U != (epState->stateUnion.stateBitField.epControlDefault & in USB_DeviceLpc3511IpTransaction()
1989 (USB_ENDPOINT_INTERRUPT == epState->stateUnion.stateBitField.endpointType) && in USB_DeviceLpc3511IpTransaction()
2001 lpc3511IpState, endpointIndex, epState->stateUnion.stateBitField.producerOdd, in USB_DeviceLpc3511IpTransaction()
2002 …(epState->stateUnion.stateBitField.epControlDefault << USB_LPC3511IP_ENDPOINT_CONFIGURE_BITS_SHIFT… in USB_DeviceLpc3511IpTransaction()
2003 … (epState->stateUnion.stateBitField.stalled << USB_LPC3511IP_ENDPOINT_STALL_SHIFT), in USB_DeviceLpc3511IpTransaction()
2008 …(epState->stateUnion.stateBitField.epControlDefault << USB_LPC3511IP_ENDPOINT_CONFIGURE_BITS_SHIFT… in USB_DeviceLpc3511IpTransaction()
2009 (epState->stateUnion.stateBitField.stalled << USB_LPC3511IP_ENDPOINT_STALL_SHIFT), in USB_DeviceLpc3511IpTransaction()
2025 if (0U != epState->stateUnion.stateBitField.stalled) in USB_DeviceLpc3511IpTransaction()
2029 epState->stateUnion.stateBitField.stallPrimed = 1u; in USB_DeviceLpc3511IpTransaction()
2039 … if ((epState->transferLength <= epState->transferPrimedLength) && (epState->transferLength != 0U)) in USB_DeviceLpc3511IpTransaction()
2056 … status = USB_DeviceLpc3511IpGetActualBufferAndPrime(lpc3511IpState, epState, endpointIndex, 1U); in USB_DeviceLpc3511IpTransaction()
2063 … status = USB_DeviceLpc3511IpGetActualBufferAndPrime(lpc3511IpState, epState, endpointIndex, 1U); in USB_DeviceLpc3511IpTransaction()
2068 } while ((epState->transferLength > epState->transferPrimedLength) && in USB_DeviceLpc3511IpTransaction()
2069 (epState->stateUnion.stateBitField.doubleBufferBusy < 2U)); in USB_DeviceLpc3511IpTransaction()
2078 … status = USB_DeviceLpc3511IpGetActualBufferAndPrime(lpc3511IpState, epState, endpointIndex, 0U); in USB_DeviceLpc3511IpTransaction()
2090 usb_device_lpc3511ip_endpoint_state_struct_t *epState = in USB_DeviceLpc3511IpSend() local
2093 if (1U == epState->stateUnion.stateBitField.transferring) in USB_DeviceLpc3511IpSend()
2099 epState->transferDone = 0U; in USB_DeviceLpc3511IpSend()
2100 epState->transferBuffer = buffer; in USB_DeviceLpc3511IpSend()
2101 epState->transferLength = length; in USB_DeviceLpc3511IpSend()
2102 epState->transferPrimedLength = 0U; in USB_DeviceLpc3511IpSend()
2104 return USB_DeviceLpc3511IpTransaction(lpc3511IpState, epState, endpointIndex); in USB_DeviceLpc3511IpSend()
2133 usb_device_lpc3511ip_endpoint_state_struct_t *epState = in USB_DeviceLpc3511IpCancel() local
2140 if ((0U != epState->stateUnion.stateBitField.transferring) in USB_DeviceLpc3511IpCancel()
2151 (0U != (epState->stateUnion.stateBitField.epControlDefault & in USB_DeviceLpc3511IpCancel()
2153 (USB_ENDPOINT_INTERRUPT == epState->stateUnion.stateBitField.endpointType) && in USB_DeviceLpc3511IpCancel()
2155 … (0U != (lpc3511IpState->epCommandStatusList[epState->stateUnion.stateBitField.consumerOdd + in USB_DeviceLpc3511IpCancel()
2173 epState->stateUnion.stateBitField.epControlDefault &= in USB_DeviceLpc3511IpCancel()
2190 epState->stateUnion.stateBitField.epControlDefault |= in USB_DeviceLpc3511IpCancel()
2249 epState->stateUnion.stateBitField.transferring = 0U; in USB_DeviceLpc3511IpCancel()
2250 epState->stateUnion.stateBitField.producerOdd = in USB_DeviceLpc3511IpCancel()
2253 epState->stateUnion.stateBitField.consumerOdd = in USB_DeviceLpc3511IpCancel()
2256 epState->stateUnion.stateBitField.doubleBufferBusy = 0U; in USB_DeviceLpc3511IpCancel()
2264 message.buffer = epState->transferBuffer; in USB_DeviceLpc3511IpCancel()
2319 usb_device_lpc3511ip_endpoint_state_struct_t *epState; in USB_DeviceLpc3511IpControl() local
2397 epState = USB_DeviceLpc3511IpGetEndpointStateStruct( in USB_DeviceLpc3511IpControl()
2400 if (0U == epState->stateUnion.stateBitField.isOpened) in USB_DeviceLpc3511IpControl()
2406 … endpointStatus->endpointStatus = (uint16_t)((epState->stateUnion.stateBitField.stalled == 1U) ? in USB_DeviceLpc3511IpControl()
2413 … (uint16_t)((epState->stateUnion.stateBitField.stalled == 1U) ? kUSB_DeviceEndpointStateStalled : in USB_DeviceLpc3511IpControl()
2447 epState = USB_DeviceLpc3511IpGetEndpointStateStruct( in USB_DeviceLpc3511IpControl()
2451 if (0U == epState->stateUnion.stateBitField.isOpened) in USB_DeviceLpc3511IpControl()