Lines Matching refs:ARCH_DMA_MINALIGN
60 #define RXDESC_PER_CACHELINE (ARCH_DMA_MINALIGN/sizeof(struct fec_bd))
63 #if ((ARCH_DMA_MINALIGN < 16) || (ARCH_DMA_MINALIGN % 16 != 0))
67 #if ((PKTALIGN < ARCH_DMA_MINALIGN) || \
68 (PKTALIGN % ARCH_DMA_MINALIGN != 0))
294 size = roundup(dsize, ARCH_DMA_MINALIGN); in fec_rbd_init()
328 ARCH_DMA_MINALIGN); in fec_tbd_init()
441 ARCH_DMA_MINALIGN); in fec_open()
681 end = roundup(addr + length, ARCH_DMA_MINALIGN); in fecmxc_send()
682 addr &= ~(ARCH_DMA_MINALIGN - 1); in fecmxc_send()
705 size = roundup(2 * sizeof(struct fec_bd), ARCH_DMA_MINALIGN); in fecmxc_send()
811 *packetp = memalign(ARCH_DMA_MINALIGN, FEC_MAX_PKT_SIZE); in fecmxc_recv()
872 addr &= ~(ARCH_DMA_MINALIGN - 1); in fecmxc_recv()
873 size = roundup(sizeof(struct fec_bd), ARCH_DMA_MINALIGN); in fecmxc_recv()
886 end = roundup(addr + frame_length, ARCH_DMA_MINALIGN); in fecmxc_recv()
887 addr &= ~(ARCH_DMA_MINALIGN - 1); in fecmxc_recv()
923 addr + ARCH_DMA_MINALIGN); in fecmxc_recv()
947 size = roundup(2 * sizeof(struct fec_bd), ARCH_DMA_MINALIGN); in fec_alloc_descs()
948 fec->tbd_base = memalign(ARCH_DMA_MINALIGN, size); in fec_alloc_descs()
953 size = roundup(FEC_RBD_NUM * sizeof(struct fec_bd), ARCH_DMA_MINALIGN); in fec_alloc_descs()
954 fec->rbd_base = memalign(ARCH_DMA_MINALIGN, size); in fec_alloc_descs()