Lines Matching refs:length
372 uint32_t length) in USB_DeviceLpc3511IpEndpointPrime() argument
386 …pointIndex >> 1U) == USB_ENDPOINT_CONTROL) && ((endpointIndex & 0x01U) == 0x00U) && (0U == length)) in USB_DeviceLpc3511IpEndpointPrime()
388 length = 65U; in USB_DeviceLpc3511IpEndpointPrime()
393 epState->transferPrimedLength += length; in USB_DeviceLpc3511IpEndpointPrime()
406 epState->epBufferStatusUnion[odd].epBufferStatusField.transactionLength = (uint16_t)length; in USB_DeviceLpc3511IpEndpointPrime()
418 length, (uint32_t)buffer); in USB_DeviceLpc3511IpEndpointPrime()
904 message.length = 0U; in USB_DeviceLpc3511IpInterruptSuspend()
936 message.length = 0U; in USB_DeviceLpc3511IpInterruptResume()
968 message.length = 0U; in USB_DeviceLpc3511IpInterruptLPMSleep()
994 uint32_t length, 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()
1047 (void)memcpy(destBuffer, sourceBuffer, length); in USB_DeviceLpc3511IpDoPreviousTransactionMemcpy()
1056 uint32_t length; in USB_DeviceLpc3511IpTokenUpdate() local
1080 length = *(lpc3511IpState->epCommandStatusList + endpointIndex * 2U + odd); in USB_DeviceLpc3511IpTokenUpdate()
1085 length = in USB_DeviceLpc3511IpTokenUpdate()
1086 …(length & USB_LPC3511IPHS_ENDPOINT_BUFFER_NBYTES_MASK) >> USB_LPC3511IPHS_ENDPOINT_BUFFER_NBYTES_S… in USB_DeviceLpc3511IpTokenUpdate()
1091 length = in USB_DeviceLpc3511IpTokenUpdate()
1092 …(length & USB_LPC3511IPFS_ENDPOINT_BUFFER_NBYTES_MASK) >> USB_LPC3511IPFS_ENDPOINT_BUFFER_NBYTES_S… 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()
1112 return length; in USB_DeviceLpc3511IpTokenUpdate()
1121 uint32_t length; in USB_DeviceLpc3511IpInterruptToken() local
1155 length = 0U; in USB_DeviceLpc3511IpInterruptToken()
1163 length++; in USB_DeviceLpc3511IpInterruptToken()
1167 if (length <= 1U) in USB_DeviceLpc3511IpInterruptToken()
1206 message.length = 8U; in USB_DeviceLpc3511IpInterruptToken()
1253 length = 0U; in USB_DeviceLpc3511IpInterruptToken()
1272 length += len; in USB_DeviceLpc3511IpInterruptToken()
1285 length += len; in USB_DeviceLpc3511IpInterruptToken()
1291 length = USB_DeviceLpc3511IpTokenUpdate(lpc3511IpState, epState, endpointIndex, 0U); in USB_DeviceLpc3511IpInterruptToken()
1292 len = length; in USB_DeviceLpc3511IpInterruptToken()
1303 …if ((length > 0U) && (0U == (length % epState->stateUnion.stateBitField.maxPacketSize)) && (remain… in USB_DeviceLpc3511IpInterruptToken()
1353 message.length = epState->transferDone; in USB_DeviceLpc3511IpInterruptToken()
1360 if ((0U != (endpointIndex & 0x01U)) && (0U != length) && in USB_DeviceLpc3511IpInterruptToken()
1361 (0U == (length % epState->stateUnion.stateBitField.maxPacketSize))) in USB_DeviceLpc3511IpInterruptToken()
1474 message.length = 0U; in USB_DeviceLpc3511IpInterruptReset()
1504 message.length = 0U; in USB_DeviceLpc3511IpInterruptDetach()
1534 message.length = 0U; in USB_DeviceLpc3511IpInterruptAttach()
1566 message.length = 0U; in USB_DeviceLpcIp3511IsrHSDCDCallback()
1790 uint32_t length; in USB_DeviceLpc3511IpGetActualBufferAndPrime() local
1805 length = epState->transferLength - epState->transferPrimedLength; in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1811 if (length > USB_DEVICE_IP3511HS_BULK_OUT_ONE_TIME_TRANSFER_SIZE_MAX) in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1813 length = USB_DEVICE_IP3511HS_BULK_OUT_ONE_TIME_TRANSFER_SIZE_MAX; 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()
1833 if (length > 0U) in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1881 (length != epState->stateUnion.stateBitField.maxPacketSize))) in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1914 (void)memcpy(destBuffer, actualBuffer, length); 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()
1934 length = epState->stateUnion.stateBitField.maxPacketSize; in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1948 … || ((0U != lpc3511IpState->controllerSpeed) && (0U == index) && ((length & 0x00000003u) != 0U))) in USB_DeviceLpc3511IpGetActualBufferAndPrime()
1962 …urn USB_DeviceLpc3511IpEndpointPrime(lpc3511IpState, epState, endpointIndex, actualBuffer, length); in USB_DeviceLpc3511IpGetActualBufferAndPrime()
2086 uint32_t length) in USB_DeviceLpc3511IpSend() argument
2101 epState->transferLength = length; in USB_DeviceLpc3511IpSend()
2110 if ((0U == length) && (USB_CONTROL_ENDPOINT == (endpointAddress & USB_ENDPOINT_NUMBER_MASK))) in USB_DeviceLpc3511IpSend()
2120 uint32_t length) in USB_DeviceLpc3511IpRecv() argument
2122 return USB_DeviceLpc3511IpSend(controllerHandle, endpointAddress, buffer, length); in USB_DeviceLpc3511IpRecv()
2263 message.length = USB_CANCELLED_TRANSFER_LENGTH; in USB_DeviceLpc3511IpCancel()
2614 message.length = 0U; in USB_DeviceLpc3511IpInterruptSOF()