Lines Matching refs:index

756     uint8_t index;  in USB_HostEhciSingleStepQtdListInit()  local
798 for (index = 0; index < 4; ++index) in USB_HostEhciSingleStepQtdListInit()
800 … qtdPointer->bufferPointers[index] = ((dataAddress + (index + 1) * 4 * 1024) & 0xFFFFF000); in USB_HostEhciSingleStepQtdListInit()
819 for (index = 0; index < 4; ++index) in USB_HostEhciSingleStepQtdListInit()
821 … qtdPointer->bufferPointers[index] = ((dataAddress + (index + 1) * 4 * 1024) & 0xFFFFF000); in USB_HostEhciSingleStepQtdListInit()
1116 uint8_t index; in USB_HostBandwidthHsHostComputeCurrentFsls() local
1120 for (index = 0; index < 8U; ++index) in USB_HostBandwidthHsHostComputeCurrentFsls()
1122 frameBandwidths[index] = 0; in USB_HostBandwidthHsHostComputeCurrentFsls()
1173 for (index = 0; index < 7U; ++index) /* */ in USB_HostBandwidthHsHostComputeCurrentFsls()
1175 if (frameBandwidths[index] > s_SlotMaxBandwidth[index]) in USB_HostBandwidthHsHostComputeCurrentFsls()
1177 frameBandwidths[index + 1U] += (frameBandwidths[index] - s_SlotMaxBandwidth[index]); in USB_HostBandwidthHsHostComputeCurrentFsls()
1178 frameBandwidths[index] = s_SlotMaxBandwidth[index]; in USB_HostBandwidthHsHostComputeCurrentFsls()
1188 uint16_t index; in USB_HostBandwidthHsHostComputeCurrentHsAll() local
1192 for (index = 0; index < 8U; ++index) in USB_HostBandwidthHsHostComputeCurrentHsAll()
1194 frameBandwidths[index] = 0; in USB_HostBandwidthHsHostComputeCurrentHsAll()
1224 … for (index = ehciPipePointer->startUframe; index < 8U; index += frameInterval) in USB_HostBandwidthHsHostComputeCurrentHsAll()
1226 frameBandwidths[index] += ehciPipePointer->dataTime; in USB_HostBandwidthHsHostComputeCurrentHsAll()
1237 for (index = 0; index < 8U; ++index) in USB_HostBandwidthHsHostComputeCurrentHsAll()
1240 (uint32_t)(0x01UL << index))) /* start-split micro-frames */ in USB_HostBandwidthHsHostComputeCurrentHsAll()
1242 frameBandwidths[index] += ehciPipePointer->startSplitTime; in USB_HostBandwidthHsHostComputeCurrentHsAll()
1245 (uint32_t)(0x01UL << index))) /* complete-split micro-frames */ in USB_HostBandwidthHsHostComputeCurrentHsAll()
1247 frameBandwidths[index] += ehciPipePointer->completeSplitTime; in USB_HostBandwidthHsHostComputeCurrentHsAll()
1258 for (index = 0; index < 7; ++index) /* */ in USB_HostBandwidthHsHostComputeCurrentHsAll()
1260 if (frameBandwidths[index] > s_SlotMaxBandwidthHs[index]) in USB_HostBandwidthHsHostComputeCurrentHsAll()
1262 frameBandwidths[index + 1] += (frameBandwidths[index] - s_SlotMaxBandwidthHs[index]); in USB_HostBandwidthHsHostComputeCurrentHsAll()
1263 frameBandwidths[index] = s_SlotMaxBandwidthHs[index]; in USB_HostBandwidthHsHostComputeCurrentHsAll()
1351 uint16_t index; in USB_HostBandwidthHsHostAllocateIso() local
1435 index = uframeIntervalIndex; in USB_HostBandwidthHsHostAllocateIso()
1436 for (; index < (uframeIntervalIndex + SsCsNumber); ++index) in USB_HostBandwidthHsHostAllocateIso()
1438 … if (frameTimes[index] + timeStartSplit > s_SlotMaxBandwidthHs[index]) in USB_HostBandwidthHsHostAllocateIso()
1447 index = uframeIntervalIndex; in USB_HostBandwidthHsHostAllocateIso()
1448 if (frameTimes[index] + timeStartSplit > s_SlotMaxBandwidthHs[index]) in USB_HostBandwidthHsHostAllocateIso()
1454 index = in USB_HostBandwidthHsHostAllocateIso()
1457 for (; index < (uframeIntervalIndex + 2U + SsCsNumber); ++index) in USB_HostBandwidthHsHostAllocateIso()
1459 … if (frameTimes[index] + timeCompleteSplit > s_SlotMaxBandwidthHs[index]) in USB_HostBandwidthHsHostAllocateIso()
1473 index = uframeIntervalIndex + 1U; /* timeData bandwidth start position */ in USB_HostBandwidthHsHostAllocateIso()
1477 while ((index < 8U) && (deviceInfo > s_SlotMaxBandwidth[index])) in USB_HostBandwidthHsHostAllocateIso()
1479 if (frameTimes[index] > 0U) in USB_HostBandwidthHsHostAllocateIso()
1486 deviceInfo -= s_SlotMaxBandwidth[index]; in USB_HostBandwidthHsHostAllocateIso()
1488 ++index; in USB_HostBandwidthHsHostAllocateIso()
1495 index = uframeIntervalIndex + 1U; /* timeData bandwidth start position */ in USB_HostBandwidthHsHostAllocateIso()
1496 frameTimes[index] += (uint16_t)timeData; in USB_HostBandwidthHsHostAllocateIso()
1497 for (; index < 7U; ++index) in USB_HostBandwidthHsHostAllocateIso()
1499 if (frameTimes[index] > s_SlotMaxBandwidth[index]) in USB_HostBandwidthHsHostAllocateIso()
1501 … frameTimes[index + 1U] += (frameTimes[index] - s_SlotMaxBandwidth[index]); in USB_HostBandwidthHsHostAllocateIso()
1502 frameTimes[index] = s_SlotMaxBandwidth[index]; in USB_HostBandwidthHsHostAllocateIso()
1509 if (frameTimes[index] > s_SlotMaxBandwidth[index]) in USB_HostBandwidthHsHostAllocateIso()
1540 index = uframeIntervalIndex; in USB_HostBandwidthHsHostAllocateIso()
1541 for (; index < (uframeIntervalIndex + SsCsNumber); ++index) in USB_HostBandwidthHsHostAllocateIso()
1543 … ehciPipePointer->uframeSmask = ehciPipePointer->uframeSmask | (uint8_t)(0x01UL << index); in USB_HostBandwidthHsHostAllocateIso()
1548 index = uframeIntervalIndex; in USB_HostBandwidthHsHostAllocateIso()
1549 … ehciPipePointer->uframeSmask = ehciPipePointer->uframeSmask | (uint8_t)(0x01UL << index); in USB_HostBandwidthHsHostAllocateIso()
1550 index = uframeIntervalIndex + 2U; in USB_HostBandwidthHsHostAllocateIso()
1551 for (; index < (uframeIntervalIndex + 2U + SsCsNumber); ++index) in USB_HostBandwidthHsHostAllocateIso()
1553 … ehciPipePointer->uframeCmask = ehciPipePointer->uframeCmask | (uint8_t)(0x01UL << index); in USB_HostBandwidthHsHostAllocateIso()
1582 uint8_t index; in USB_HostBandwidthHsHostAllocateInterrupt() local
1612 for (index = ehciPipePointer->startUframe; index < 8U; in USB_HostBandwidthHsHostAllocateInterrupt()
1613 index += (uint8_t)ehciPipePointer->uframeInterval) in USB_HostBandwidthHsHostAllocateInterrupt()
1615 ehciPipePointer->uframeSmask |= (0x01U << index); in USB_HostBandwidthHsHostAllocateInterrupt()
1662 index = (uint8_t)(uframeIntervalIndex + 1U); in USB_HostBandwidthHsHostAllocateInterrupt()
1663 … for (; index <= (uframeIntervalIndex + 3U); ++index) /* data bandwidth number is 3. in USB_HostBandwidthHsHostAllocateInterrupt()
1667 if (frameTimes[index] + timeData > s_SlotMaxBandwidth[index]) in USB_HostBandwidthHsHostAllocateInterrupt()
1686 index = (uint8_t)uframeIntervalIndex + 2U; in USB_HostBandwidthHsHostAllocateInterrupt()
1689 … for (; (index <= (uframeIntervalIndex + 1U + SsCsNumber)) && (index < 8U); ++index) in USB_HostBandwidthHsHostAllocateInterrupt()
1691 … if (frameTimes[index] + timeCompleteSplit > s_SlotMaxBandwidthHs[index]) in USB_HostBandwidthHsHostAllocateInterrupt()
1722 index = (uint8_t)uframeIntervalIndex + 2u; in USB_HostBandwidthHsHostAllocateInterrupt()
1723 for (; (index <= (uframeIntervalIndex + 1u + SsCsNumber)) && (index < 8u); ++index) in USB_HostBandwidthHsHostAllocateInterrupt()
1725 ehciPipePointer->uframeCmask = ehciPipePointer->uframeCmask | (0x01U << index); in USB_HostBandwidthHsHostAllocateInterrupt()
1963 uint8_t index; in USB_HostEhciQhQtdListInit() local
2047 for (index = 0; index < 4U; ++index) in USB_HostEhciQhQtdListInit()
2050 …qtdPointer->bufferPointers[index] = ((convert_addr + ((uint32_t)index + 1U) * 4U * 1024U) & 0xFFFF… in USB_HostEhciQhQtdListInit()
2052 …qtdPointer->bufferPointers[index] = ((dataAddress + ((uint32_t)index + 1U) * 4U * 1024U) & 0xFFFFF… in USB_HostEhciQhQtdListInit()
2089 for (index = 0; index < 4U; ++index) in USB_HostEhciQhQtdListInit()
2092 qtdPointer->bufferPointers[index] = in USB_HostEhciQhQtdListInit()
2093 ((convert_addr + ((uint32_t)index + 1U) * 4U * 1024U) & 0xFFFFF000U); in USB_HostEhciQhQtdListInit()
2095 …qtdPointer->bufferPointers[index] = ((dataAddress + ((uint32_t)index + 1U) * 4U * 1024U) & 0xFFFFF… in USB_HostEhciQhQtdListInit()
2161 for (index = 0; index < 4U; ++index) in USB_HostEhciQhQtdListInit()
2164 qtdPointer->bufferPointers[index] = in USB_HostEhciQhQtdListInit()
2165 ((convert_addr + ((uint32_t)index + 1U) * 4U * 1024U) & 0xFFFFF000U); in USB_HostEhciQhQtdListInit()
2167 …qtdPointer->bufferPointers[index] = ((dataAddress + ((uint32_t)index + 1U) * 4U * 1024U) & 0xFFFFF… in USB_HostEhciQhQtdListInit()
2832 uint32_t index; in USB_HostEhciSitdArrayInit() local
2845 for (index = 1U; index < sitdNumber; ++index) in USB_HostEhciSitdArrayInit()
3103 uint16_t index = 0; in USB_HostEhciItdArrayInit() local
3181 for (index = 0; index < 7U; ++index) in USB_HostEhciItdArrayInit()
3184 …itdPointer->bufferPointers[index] = ((convert_addr + ((uint32_t)index * 4U * 1024U)) & 0xFFFFF000U… in USB_HostEhciItdArrayInit()
3186 …itdPointer->bufferPointers[index] = ((itdBufferBaseValue + ((uint32_t)index * 4U * 1024U)) & 0xFFF… in USB_HostEhciItdArrayInit()
3198 …for (index = (uint8_t)(linkUframe & 0x0007U); index < 8U; index += ehciPipePointer->uframeInterval) in USB_HostEhciItdArrayInit()
3203 itdPointer->transactions[index] = in USB_HostEhciItdArrayInit()
3212 itdPointer->transactions[index] = in USB_HostEhciItdArrayInit()
3229 itdPointer->transactions[index] |= (1UL << EHCI_HOST_ITD_IOC_SHIFT); /* last set IOC */ in USB_HostEhciItdArrayInit()
3286 uint8_t index; in USB_HostEhciItdArrayRelease() local
3293 for (index = 0U; index < 8U; ++index) in USB_HostEhciItdArrayRelease()
3295 doneLength += ((itdPointer->transactions[index] & EHCI_HOST_ITD_TRANSACTION_LEN_MASK) >> in USB_HostEhciItdArrayRelease()
3949 uint8_t index = 0; in USB_HostEhciTransactionDone() local
4151 for (index = 0; index < 8U; ++index) in USB_HostEhciTransactionDone()
4153 … if (0U != (vltItdPointer->transactions[index] & EHCI_HOST_ITD_STATUS_ACTIVE_MASK)) in USB_HostEhciTransactionDone()
4158 if (index == 8U) /* transfer is done */ in USB_HostEhciTransactionDone()
4226 uint32_t index; in USB_HostEhciPortChange() local
4265 for (index = 0; index < USB_HOST_EHCI_PORT_CONNECT_DEBOUNCE_DELAY; ++index) in USB_HostEhciPortChange()
4273 if (index < USB_HOST_EHCI_PORT_CONNECT_DEBOUNCE_DELAY) /* CCS is cleared */ in USB_HostEhciPortChange()
4741 uint32_t index = 0; in USB_HostEhciCreate() local
4850 index = ((((((uint32_t)(ehciInstance->ehciItdList)) + 4095U) & 0xFFFFF000U) - in USB_HostEhciCreate()
4853 if (((index / 3U) < USB_HOST_CONFIG_EHCI_MAX_ITD) && ((index % 3U) == 1U)) in USB_HostEhciCreate()
4867 for (index = 1U; index < USB_HOST_CONFIG_EHCI_MAX_QH; ++index) in USB_HostEhciCreate()
4869 …ehciInstance->ehciQhList[index - 1U].horizontalLinkPointer = (uint32_t)(&ehciInstance->ehciQhList[ in USB_HostEhciCreate()
4872 for (index = 1; index < USB_HOST_CONFIG_EHCI_MAX_QTD; ++index) in USB_HostEhciCreate()
4874 …ehciInstance->ehciQtdHead[index - 1U].nextQtdPointer = (uint32_t)(&ehciInstance->ehciQtdHead[index in USB_HostEhciCreate()
4881 for (index = 1; index < USB_HOST_CONFIG_EHCI_MAX_ITD; ++index) in USB_HostEhciCreate()
4883 ehciInstance->ehciItdList[index - 1U].nextItdPointer = in USB_HostEhciCreate()
4884 (usb_host_ehci_itd_t *)(&ehciInstance->ehciItdList[index]); in USB_HostEhciCreate()
4891 for (index = 1; index < USB_HOST_CONFIG_EHCI_MAX_SITD; ++index) in USB_HostEhciCreate()
4893 …ehciInstance->ehciSitdList[index - 1U].nextLinkPointer = (uint32_t)(&ehciInstance->ehciSitdList[in… in USB_HostEhciCreate()
4900 for (index = 1; index < USB_HOST_EHCI_ISO_NUMBER; ++index) in USB_HostEhciCreate()
4902 ehciInstance->ehciIsoList[index - 1U].next = &ehciInstance->ehciIsoList[index]; in USB_HostEhciCreate()
4909 for (index = 1; index < USB_HOST_CONFIG_MAX_PIPES; ++index) in USB_HostEhciCreate()
4911 …emp = (void *)&ehciInstance->ehciPipeList[index]; in USB_HostEhciCreate()
4912 ehciInstance->ehciPipeList[index - 1U].pipeCommon.next = (usb_host_pipe_t *)temp; in USB_HostEhciCreate()
4958 for (index = 0; index < USB_HOST_CONFIG_EHCI_FRAME_LIST_SIZE; ++index) in USB_HostEhciCreate()
4960 framePointer[index] = EHCI_HOST_T_INVALID_VALUE; in USB_HostEhciCreate()