diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-31 14:57:31 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-31 14:57:31 -0600 |
commit | bdf39bd497954930d2176540594f2e0d046a31af (patch) | |
tree | 21f88e0d00d7c278669504bce9a2f9b6bd8c0464 /nuttx/arch/arm/src/sama5 | |
parent | dab33d3473f9d7ad40131d7a018053c745bfdd2f (diff) | |
download | nuttx-bdf39bd497954930d2176540594f2e0d046a31af.tar.gz nuttx-bdf39bd497954930d2176540594f2e0d046a31af.tar.bz2 nuttx-bdf39bd497954930d2176540594f2e0d046a31af.zip |
Rename kmemalign to kmm_memalign for consitency with other naming
Diffstat (limited to 'nuttx/arch/arm/src/sama5')
-rw-r--r-- | nuttx/arch/arm/src/sama5/Kconfig | 2 | ||||
-rwxr-xr-x | nuttx/arch/arm/src/sama5/sam_ehci.c | 6 | ||||
-rw-r--r-- | nuttx/arch/arm/src/sama5/sam_emaca.c | 8 | ||||
-rw-r--r-- | nuttx/arch/arm/src/sama5/sam_emacb.c | 8 | ||||
-rw-r--r-- | nuttx/arch/arm/src/sama5/sam_gmac.c | 8 | ||||
-rw-r--r-- | nuttx/arch/arm/src/sama5/sam_udphs.c | 2 |
6 files changed, 17 insertions, 17 deletions
diff --git a/nuttx/arch/arm/src/sama5/Kconfig b/nuttx/arch/arm/src/sama5/Kconfig index caf30bac2..f3baca2f0 100644 --- a/nuttx/arch/arm/src/sama5/Kconfig +++ b/nuttx/arch/arm/src/sama5/Kconfig @@ -2684,7 +2684,7 @@ config SAMA5_EHCI_PREALLOCATE ---help--- Select this option to pre-allocate EHCI queue and descriptor structure pools in .bss. Otherwise, these pools will be - dynamically allocated using kmemalign(). + dynamically allocated using kmm_memalign(). config SAMA5_EHCI_REGDEBUG bool "Enable low-level EHCI register debug" diff --git a/nuttx/arch/arm/src/sama5/sam_ehci.c b/nuttx/arch/arm/src/sama5/sam_ehci.c index 6e552b9cf..025b27e77 100755 --- a/nuttx/arch/arm/src/sama5/sam_ehci.c +++ b/nuttx/arch/arm/src/sama5/sam_ehci.c @@ -4152,7 +4152,7 @@ FAR struct usbhost_connection_s *sam_ehci_initialize(int controller) /* Allocate a pool of free Queue Head (QH) structures */ g_qhpool = (struct sam_qh_s *) - kmemalign(32, CONFIG_SAMA5_EHCI_NQHS * sizeof(struct sam_qh_s)); + kmm_memalign(32, CONFIG_SAMA5_EHCI_NQHS * sizeof(struct sam_qh_s)); if (!g_qhpool) { usbhost_trace1(EHCI_TRACE1_QHPOOLALLOC_FAILED, 0); @@ -4173,7 +4173,7 @@ FAR struct usbhost_connection_s *sam_ehci_initialize(int controller) /* Allocate a pool of free Transfer Descriptor (qTD) structures */ g_qtdpool = (struct sam_qtd_s *) - kmemalign(32, CONFIG_SAMA5_EHCI_NQTDS * sizeof(struct sam_qtd_s)); + kmm_memalign(32, CONFIG_SAMA5_EHCI_NQTDS * sizeof(struct sam_qtd_s)); if (!g_qtdpool) { usbhost_trace1(EHCI_TRACE1_QTDPOOLALLOC_FAILED, 0); @@ -4186,7 +4186,7 @@ FAR struct usbhost_connection_s *sam_ehci_initialize(int controller) /* Allocate the periodic framelist */ g_framelist = (uint32_t *) - kmemalign(4096, FRAME_LIST_SIZE * sizeof(uint32_t)); + kmm_memalign(4096, FRAME_LIST_SIZE * sizeof(uint32_t)); if (!g_framelist) { usbhost_trace1(EHCI_TRACE1_PERFLALLOC_FAILED, 0); diff --git a/nuttx/arch/arm/src/sama5/sam_emaca.c b/nuttx/arch/arm/src/sama5/sam_emaca.c index 4a8555ef5..50e1f1a49 100644 --- a/nuttx/arch/arm/src/sama5/sam_emaca.c +++ b/nuttx/arch/arm/src/sama5/sam_emaca.c @@ -593,7 +593,7 @@ static int sam_buffer_initialize(struct sam_emac_s *priv) /* Allocate buffers */ allocsize = CONFIG_SAMA5_EMAC_NTXBUFFERS * sizeof(struct emac_txdesc_s); - priv->txdesc = (struct emac_txdesc_s *)kmemalign(8, allocsize); + priv->txdesc = (struct emac_txdesc_s *)kmm_memalign(8, allocsize); if (!priv->txdesc) { nlldbg("ERROR: Failed to allocate TX descriptors\n"); @@ -603,7 +603,7 @@ static int sam_buffer_initialize(struct sam_emac_s *priv) memset(priv->txdesc, 0, allocsize); allocsize = CONFIG_SAMA5_EMAC_NRXBUFFERS * sizeof(struct emac_rxdesc_s); - priv->rxdesc = (struct emac_rxdesc_s *)kmemalign(8, allocsize); + priv->rxdesc = (struct emac_rxdesc_s *)kmm_memalign(8, allocsize); if (!priv->rxdesc) { nlldbg("ERROR: Failed to allocate RX descriptors\n"); @@ -614,7 +614,7 @@ static int sam_buffer_initialize(struct sam_emac_s *priv) memset(priv->rxdesc, 0, allocsize); allocsize = CONFIG_SAMA5_EMAC_NTXBUFFERS * EMAC_TX_UNITSIZE; - priv->txbuffer = (uint8_t *)kmemalign(8, allocsize); + priv->txbuffer = (uint8_t *)kmm_memalign(8, allocsize); if (!priv->txbuffer) { nlldbg("ERROR: Failed to allocate TX buffer\n"); @@ -623,7 +623,7 @@ static int sam_buffer_initialize(struct sam_emac_s *priv) } allocsize = CONFIG_SAMA5_EMAC_NRXBUFFERS * EMAC_RX_UNITSIZE; - priv->rxbuffer = (uint8_t *)kmemalign(8, allocsize); + priv->rxbuffer = (uint8_t *)kmm_memalign(8, allocsize); if (!priv->rxbuffer) { nlldbg("ERROR: Failed to allocate RX buffer\n"); diff --git a/nuttx/arch/arm/src/sama5/sam_emacb.c b/nuttx/arch/arm/src/sama5/sam_emacb.c index fb81624ad..89024a7a8 100644 --- a/nuttx/arch/arm/src/sama5/sam_emacb.c +++ b/nuttx/arch/arm/src/sama5/sam_emacb.c @@ -920,7 +920,7 @@ static int sam_buffer_initialize(struct sam_emac_s *priv) /* Allocate buffers */ allocsize = priv->attr->ntxbuffers * sizeof(struct emac_txdesc_s); - priv->txdesc = (struct emac_txdesc_s *)kmemalign(8, allocsize); + priv->txdesc = (struct emac_txdesc_s *)kmm_memalign(8, allocsize); if (!priv->txdesc) { nlldbg("ERROR: Failed to allocate TX descriptors\n"); @@ -930,7 +930,7 @@ static int sam_buffer_initialize(struct sam_emac_s *priv) memset(priv->txdesc, 0, allocsize); allocsize = priv->attr->nrxbuffers * sizeof(struct emac_rxdesc_s); - priv->rxdesc = (struct emac_rxdesc_s *)kmemalign(8, allocsize); + priv->rxdesc = (struct emac_rxdesc_s *)kmm_memalign(8, allocsize); if (!priv->rxdesc) { nlldbg("ERROR: Failed to allocate RX descriptors\n"); @@ -941,7 +941,7 @@ static int sam_buffer_initialize(struct sam_emac_s *priv) memset(priv->rxdesc, 0, allocsize); allocsize = priv->attr->ntxbuffers * EMAC_TX_UNITSIZE; - priv->txbuffer = (uint8_t *)kmemalign(8, allocsize); + priv->txbuffer = (uint8_t *)kmm_memalign(8, allocsize); if (!priv->txbuffer) { nlldbg("ERROR: Failed to allocate TX buffer\n"); @@ -950,7 +950,7 @@ static int sam_buffer_initialize(struct sam_emac_s *priv) } allocsize = priv->attr->nrxbuffers * EMAC_RX_UNITSIZE; - priv->rxbuffer = (uint8_t *)kmemalign(8, allocsize); + priv->rxbuffer = (uint8_t *)kmm_memalign(8, allocsize); if (!priv->rxbuffer) { nlldbg("ERROR: Failed to allocate RX buffer\n"); diff --git a/nuttx/arch/arm/src/sama5/sam_gmac.c b/nuttx/arch/arm/src/sama5/sam_gmac.c index 7ee3d727b..905b56ce4 100644 --- a/nuttx/arch/arm/src/sama5/sam_gmac.c +++ b/nuttx/arch/arm/src/sama5/sam_gmac.c @@ -524,7 +524,7 @@ static int sam_buffer_initialize(struct sam_gmac_s *priv) /* Allocate buffers */ allocsize = CONFIG_SAMA5_GMAC_NTXBUFFERS * sizeof(struct gmac_txdesc_s); - priv->txdesc = (struct gmac_txdesc_s *)kmemalign(8, allocsize); + priv->txdesc = (struct gmac_txdesc_s *)kmm_memalign(8, allocsize); if (!priv->txdesc) { nlldbg("ERROR: Failed to allocate TX descriptors\n"); @@ -534,7 +534,7 @@ static int sam_buffer_initialize(struct sam_gmac_s *priv) memset(priv->txdesc, 0, allocsize); allocsize = CONFIG_SAMA5_GMAC_NRXBUFFERS * sizeof(struct gmac_rxdesc_s); - priv->rxdesc = (struct gmac_rxdesc_s *)kmemalign(8, allocsize); + priv->rxdesc = (struct gmac_rxdesc_s *)kmm_memalign(8, allocsize); if (!priv->rxdesc) { nlldbg("ERROR: Failed to allocate RX descriptors\n"); @@ -545,7 +545,7 @@ static int sam_buffer_initialize(struct sam_gmac_s *priv) memset(priv->rxdesc, 0, allocsize); allocsize = CONFIG_SAMA5_GMAC_NTXBUFFERS * GMAC_TX_UNITSIZE; - priv->txbuffer = (uint8_t *)kmemalign(8, allocsize); + priv->txbuffer = (uint8_t *)kmm_memalign(8, allocsize); if (!priv->txbuffer) { nlldbg("ERROR: Failed to allocate TX buffer\n"); @@ -554,7 +554,7 @@ static int sam_buffer_initialize(struct sam_gmac_s *priv) } allocsize = CONFIG_SAMA5_GMAC_NRXBUFFERS * GMAC_RX_UNITSIZE; - priv->rxbuffer = (uint8_t *)kmemalign(8, allocsize); + priv->rxbuffer = (uint8_t *)kmm_memalign(8, allocsize); if (!priv->rxbuffer) { nlldbg("ERROR: Failed to allocate RX buffer\n"); diff --git a/nuttx/arch/arm/src/sama5/sam_udphs.c b/nuttx/arch/arm/src/sama5/sam_udphs.c index ca16b9e8a..f61f2e221 100644 --- a/nuttx/arch/arm/src/sama5/sam_udphs.c +++ b/nuttx/arch/arm/src/sama5/sam_udphs.c @@ -4291,7 +4291,7 @@ static void sam_sw_setup(struct sam_usbdev_s *priv) /* Allocate a pool of free DMA transfer descriptors */ priv->dtdpool = (struct sam_dtd_s *) - kmemalign(16, CONFIG_SAMA5_UDPHS_NDTDS * sizeof(struct sam_dtd_s)); + kmm_memalign(16, CONFIG_SAMA5_UDPHS_NDTDS * sizeof(struct sam_dtd_s)); if (!priv->dtdpool) { udbg("ERROR: Failed to allocate the DMA transfer descriptor pool\n"); |