Home
last modified time | relevance | path

Searched refs:memalign (Results 1 – 25 of 99) sorted by relevance

1234

/openbmc/u-boot/env/
H A Dsf.c101 saved_buffer = memalign(ARCH_DMA_MINALIGN, saved_size); in env_sf_save()
159 tmp_env1 = (env_t *)memalign(ARCH_DMA_MINALIGN, in env_sf_load()
161 tmp_env2 = (env_t *)memalign(ARCH_DMA_MINALIGN, in env_sf_load()
257 buf = (char *)memalign(ARCH_DMA_MINALIGN, CONFIG_ENV_SIZE); in env_sf_load()
/openbmc/linux/tools/testing/selftests/powerpc/copyloops/
H A Dmemmove_validate.c24 char *usermap = memalign(BUF_LEN, BUF_LEN); in testcase_run()
25 char *kernelmap = memalign(BUF_LEN, BUF_LEN); in testcase_run()
H A Dvalidate.c69 src = memalign(BUFLEN, BUFLEN); in test_copy_loop()
70 dst = memalign(BUFLEN, BUFLEN); in test_copy_loop()
/openbmc/u-boot/drivers/net/
H A Dfsl_mcdmafec.c509 (struct eth_device *)memalign(CONFIG_SYS_CACHELINE_SIZE, in mcdmafec_initialize()
538 (cbd_t *) memalign(CONFIG_SYS_CACHELINE_SIZE, in mcdmafec_initialize()
541 (cbd_t *) memalign(CONFIG_SYS_CACHELINE_SIZE, in mcdmafec_initialize()
544 (char *)memalign(CONFIG_SYS_CACHELINE_SIZE, DBUF_LENGTH); in mcdmafec_initialize()
552 fec_info[i].phy_name = (char *)memalign(CONFIG_SYS_CACHELINE_SIZE, 32); in mcdmafec_initialize()
H A Darmada100_fec.c677 darmdfec->htpr = memalign(8, HASH_ADDR_TABLE_SIZE); in armada100_fec_register()
681 darmdfec->p_rxdesc = memalign(PKTALIGN, in armada100_fec_register()
687 darmdfec->p_rxbuf = memalign(PKTALIGN, RINGSZ * PKTSIZE_ALIGN + 1); in armada100_fec_register()
691 darmdfec->p_aligned_txbuf = memalign(8, PKTSIZE_ALIGN); in armada100_fec_register()
695 darmdfec->p_txdesc = memalign(PKTALIGN, sizeof(struct tx_desc) + 1); in armada100_fec_register()
H A Dmcffec.c548 (struct eth_device *)memalign(CONFIG_SYS_CACHELINE_SIZE, in mcffec_initialize()
577 (cbd_t *) memalign(CONFIG_SYS_CACHELINE_SIZE, in mcffec_initialize()
580 (cbd_t *) memalign(CONFIG_SYS_CACHELINE_SIZE, in mcffec_initialize()
583 (char *)memalign(CONFIG_SYS_CACHELINE_SIZE, DBUF_LENGTH); in mcffec_initialize()
591 fec_info[i].phy_name = (char *)memalign(CONFIG_SYS_CACHELINE_SIZE, 32); in mcffec_initialize()
H A Dbcm-sf2-eth-gmac.c905 tmp = memalign(ARCH_DMA_MINALIGN, DESCP_SIZE_ALIGNED * TX_BUF_NUM); in gmac_add()
915 tmp = memalign(ARCH_DMA_MINALIGN, TX_BUF_SIZE_ALIGNED * TX_BUF_NUM); in gmac_add()
926 tmp = memalign(ARCH_DMA_MINALIGN, DESCP_SIZE_ALIGNED * RX_BUF_NUM); in gmac_add()
937 tmp = memalign(ARCH_DMA_MINALIGN, RX_BUF_SIZE_ALIGNED * RX_BUF_NUM); in gmac_add()
H A Dmvgbe.c791 dmvgbe->p_rxdesc = memalign(PKTALIGN, in mvgbe_alloc_buffers()
796 dmvgbe->p_rxbuf = memalign(PKTALIGN, in mvgbe_alloc_buffers()
801 dmvgbe->p_aligned_txbuf = memalign(8, PKTSIZE_ALIGN); in mvgbe_alloc_buffers()
805 dmvgbe->p_txdesc = memalign(PKTALIGN, sizeof(struct mvgbe_txdesc) + 1); in mvgbe_alloc_buffers()
H A Dmt7628-eth.c592 KSEG1ADDR(memalign(ARCH_DMA_MINALIGN, in mt7628_eth_probe()
595 KSEG1ADDR(memalign(ARCH_DMA_MINALIGN, in mt7628_eth_probe()
599 priv->rx_buf[i] = memalign(PKTALIGN, MTK_QDMA_PAGE_SIZE); in mt7628_eth_probe()
/openbmc/u-boot/include/
H A Dmalloc.h866 #pragma weak memalign = __libc_memalign macro
878 #define memalign memalign_simple macro
900 # define mEMALIGn memalign
H A Dmemalign.h111 return memalign(ARCH_DMA_MINALIGN, ALIGN(size, ARCH_DMA_MINALIGN)); in malloc_cache_aligned()
/openbmc/u-boot/arch/nds32/include/asm/
H A Ddma-mapping.h13 *handle = (unsigned long)memalign(ARCH_DMA_MINALIGN, len); in dma_alloc_coherent()
/openbmc/u-boot/arch/x86/include/asm/
H A Ddma-mapping.h16 *handle = (unsigned long)memalign(ARCH_DMA_MINALIGN, len); in dma_alloc_coherent()
/openbmc/u-boot/arch/riscv/include/asm/
H A Ddma-mapping.h18 *handle = (unsigned long)memalign(ARCH_DMA_MINALIGN, len); in dma_alloc_coherent()
/openbmc/u-boot/arch/arm/include/asm/
H A Ddma-mapping.h16 *handle = (unsigned long)memalign(ARCH_DMA_MINALIGN, ROUND(len, ARCH_DMA_MINALIGN)); in dma_alloc_coherent()
/openbmc/u-boot/lib/
H A Dlinux_compat.c33 ret = memalign(ARCH_DMA_MINALIGN, sizeof(struct kmem_cache)); in get_mem()
/openbmc/qemu/util/
H A Dmemalign.c63 ptr = memalign(alignment, size); in qemu_try_memalign()
/openbmc/u-boot/common/
H A Dbouncebuf.c43 state->bounce_buffer = memalign(ARCH_DMA_MINALIGN, in bounce_buffer_start()
/openbmc/u-boot/cmd/
H A Dsf.c226 cmp_buf = memalign(ARCH_DMA_MINALIGN, flash->sector_size); in spi_flash_update()
518 vbuf = memalign(ARCH_DMA_MINALIGN, len); in do_spi_flash_test()
523 buf = memalign(ARCH_DMA_MINALIGN, len); in do_spi_flash_test()
/openbmc/linux/tools/testing/selftests/powerpc/security/
H A Dentry_flush.c59 p = (char *)memalign(zero_size, CACHELINE_SIZE); in entry_flush_test()
H A Drfi_flush.c60 p = (char *)memalign(zero_size, CACHELINE_SIZE); in rfi_flush_test()
H A Duaccess_flush.c73 p = (char *)memalign(zero_size, CACHELINE_SIZE); in uaccess_flush_test()
/openbmc/u-boot/fs/ext4/
H A Dext4_common.h45 void *p = memalign(ARCH_DMA_MINALIGN, size); in zalloc()
/openbmc/u-boot/drivers/usb/gadget/
H A Df_thor.c525 req->buf = memalign(CONFIG_SYS_CACHELINE_SIZE, length); in alloc_ep_req()
755 dev = memalign(CONFIG_SYS_CACHELINE_SIZE, sizeof(*dev)); in thor_func_bind()
774 dev->req->buf = memalign(CONFIG_SYS_CACHELINE_SIZE, in thor_func_bind()
994 f_thor = memalign(CONFIG_SYS_CACHELINE_SIZE, sizeof(*f_thor)); in thor_func_init()
/openbmc/linux/tools/testing/selftests/powerpc/stringloops/
H A Dstrlen.c56 s = memalign(128, SIZE); in testcase()

1234