Lines Matching refs:buffCfg
449 const enet_buffer_config_t *buffCfg = bufferConfig; in ENET_SetHandler() local
456 assert(buffCfg->rxBuffSizeAlign * buffCfg->rxBdNumber > config->rxMaxFrameLen); in ENET_SetHandler()
458 handle->rxBdRing[count].rxBdBase = buffCfg->rxBdStartAddrAlign; in ENET_SetHandler()
459 handle->rxBuffSizeAlign[count] = buffCfg->rxBuffSizeAlign; in ENET_SetHandler()
460 handle->rxBdRing[count].rxRingLen = buffCfg->rxBdNumber; in ENET_SetHandler()
461 handle->rxMaintainEnable[count] = buffCfg->rxMaintainEnable; in ENET_SetHandler()
462 handle->txBdRing[count].txBdBase = buffCfg->txBdStartAddrAlign; in ENET_SetHandler()
463 handle->txBuffSizeAlign[count] = buffCfg->txBuffSizeAlign; in ENET_SetHandler()
464 handle->txBdRing[count].txRingLen = buffCfg->txBdNumber; in ENET_SetHandler()
465 handle->txMaintainEnable[count] = buffCfg->txMaintainEnable; in ENET_SetHandler()
466 handle->txDirtyRing[count].txDirtyBase = buffCfg->txFrameInfo; in ENET_SetHandler()
467 handle->txDirtyRing[count].txRingLen = buffCfg->txBdNumber; in ENET_SetHandler()
468 buffCfg++; in ENET_SetHandler()
668 const enet_buffer_config_t *buffCfg = bufferConfig; in ENET_SetMacController() local
673 buffCfg++; in ENET_SetMacController()
675 …base->TDSR1 = MEMORY_ConvertMemoryMapAddress((uintptr_t)buffCfg->txBdStartAddrAlign, kMEMORY_Local… in ENET_SetMacController()
676 …base->RDSR1 = MEMORY_ConvertMemoryMapAddress((uintptr_t)buffCfg->rxBdStartAddrAlign, kMEMORY_Local… in ENET_SetMacController()
678 base->TDSR1 = (uint32_t)(uintptr_t)buffCfg->txBdStartAddrAlign; in ENET_SetMacController()
679 base->RDSR1 = (uint32_t)(uintptr_t)buffCfg->rxBdStartAddrAlign; in ENET_SetMacController()
681 base->MRBR1 = (uint32_t)buffCfg->rxBuffSizeAlign; in ENET_SetMacController()
688 buffCfg++; in ENET_SetMacController()
690 …base->TDSR2 = MEMORY_ConvertMemoryMapAddress((uintptr_t)buffCfg->txBdStartAddrAlign, kMEMORY_Local… in ENET_SetMacController()
691 …base->RDSR2 = MEMORY_ConvertMemoryMapAddress((uintptr_t)buffCfg->rxBdStartAddrAlign, kMEMORY_Local… in ENET_SetMacController()
693 base->TDSR2 = (uint32_t)(uintptr_t)buffCfg->txBdStartAddrAlign; in ENET_SetMacController()
694 base->RDSR2 = (uint32_t)(uintptr_t)buffCfg->rxBdStartAddrAlign; in ENET_SetMacController()
696 base->MRBR2 = (uint32_t)buffCfg->rxBuffSizeAlign; in ENET_SetMacController()
762 const enet_buffer_config_t *buffCfg = bufferConfig; in ENET_SetTxBufferDescriptors() local
772 if (buffCfg->txBdStartAddrAlign != NULL) in ENET_SetTxBufferDescriptors()
774 volatile enet_tx_bd_struct_t *curBuffDescrip = buffCfg->txBdStartAddrAlign; in ENET_SetTxBufferDescriptors()
775 txBuffSizeAlign = buffCfg->txBuffSizeAlign; in ENET_SetTxBufferDescriptors()
776 txBdNumber = buffCfg->txBdNumber; in ENET_SetTxBufferDescriptors()
778 if (buffCfg->txBufferAlign != NULL) in ENET_SetTxBufferDescriptors()
781 … txBuffer = MEMORY_ConvertMemoryMapAddress((uintptr_t)buffCfg->txBufferAlign, kMEMORY_Local2DMA); in ENET_SetTxBufferDescriptors()
783 txBuffer = (uintptr_t)buffCfg->txBufferAlign; in ENET_SetTxBufferDescriptors()
790 if (buffCfg->txBufferAlign != NULL) in ENET_SetTxBufferDescriptors()
817 buffCfg++; in ENET_SetTxBufferDescriptors()
825 const enet_buffer_config_t *buffCfg = bufferConfig; in ENET_SetRxBufferDescriptors() local
837 assert(buffCfg->rxBuffSizeAlign >= ENET_RX_MIN_BUFFERSIZE); in ENET_SetRxBufferDescriptors()
856 …if ((buffCfg->rxBdStartAddrAlign != NULL) && ((buffCfg->rxBufferAlign != NULL) || config->rxBuffAl… in ENET_SetRxBufferDescriptors()
858 volatile enet_rx_bd_struct_t *curBuffDescrip = buffCfg->rxBdStartAddrAlign; in ENET_SetRxBufferDescriptors()
860 for (count = 0; count < buffCfg->rxBdNumber; count++) in ENET_SetRxBufferDescriptors()
865 … rxBuffer = (uintptr_t)buffCfg->rxBufferAlign + (uintptr_t)count * buffCfg->rxBuffSizeAlign; in ENET_SetRxBufferDescriptors()
875 assert((uint64_t)rxBuffer + buffCfg->rxBuffSizeAlign - 1U <= UINT32_MAX); in ENET_SetRxBufferDescriptors()
877 if (buffCfg->rxMaintainEnable) in ENET_SetRxBufferDescriptors()
880 DCACHE_InvalidateByRange(rxBuffer, (uint32_t)buffCfg->rxBuffSizeAlign); in ENET_SetRxBufferDescriptors()
895 if (count == (buffCfg->rxBdNumber - 1U)) in ENET_SetRxBufferDescriptors()
915 buffCfg++; in ENET_SetRxBufferDescriptors()