Home
last modified time | relevance | path

Searched refs:memalign (Results 1 – 25 of 89) 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/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/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 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()
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()
/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/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/fs/ext4/
H A Dext4_common.h45 void *p = memalign(ARCH_DMA_MINALIGN, size); in zalloc()
/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/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()
H A Df_fastboot.c227 req->buf = memalign(CONFIG_SYS_CACHELINE_SIZE, EP_BUFFER_SIZE); in fastboot_start_ep()
297 f_fb = memalign(CONFIG_SYS_CACHELINE_SIZE, sizeof(*f_fb)); in fastboot_add()
/openbmc/u-boot/arch/powerpc/cpu/mpc8xxx/
H A Dfsl_pamu.c244 ppaact = memalign(PAMU_TABLE_ALIGNMENT, ppaact_size); in pamu_init()
254 sec = memalign(PAMU_TABLE_ALIGNMENT, spaact_size); in pamu_init()
/openbmc/u-boot/board/toradex/common/
H A Dtdx-cfg-block.c208 config_block = memalign(ARCH_DMA_MINALIGN, size); in read_tdx_cfg_block()
423 config_block = memalign(ARCH_DMA_MINALIGN, size); in do_cfgblock_create()
/openbmc/u-boot/drivers/crypto/fsl/
H A Djr.c113 jr->input_ring = (dma_addr_t *)memalign(ARCH_DMA_MINALIGN, in jr_init()
121 (struct op_ring *)memalign(ARCH_DMA_MINALIGN, jr->op_size); in jr_init()
453 desc = memalign(ARCH_DMA_MINALIGN, sizeof(uint32_t) * 6); in instantiate_rng()
/openbmc/u-boot/drivers/crypto/
H A Daspeed_hace.c162 ctx = memalign(8, sizeof(struct aspeed_hash_ctx)); in hw_sha_init()
289 ctx = memalign(8, sizeof(struct aspeed_hash_ctx)); in sha_digest()
/openbmc/u-boot/drivers/virtio/
H A Dvirtio_ring.c259 queue = memalign(PAGE_SIZE, vring_size(num, vring_align)); in vring_create_virtqueue()
269 queue = memalign(PAGE_SIZE, vring_size(num, vring_align)); in vring_create_virtqueue()

1234