Searched refs:cha_num (Results 1 – 3 of 3) sorted by relevance
312 #define SXGBE_DMA_CHA_CTL_REG(cha_num) \ argument313 (SXGBE_DMA_CHA_BASE_REG + (cha_num * 0x80) + 0x00)316 #define SXGBE_DMA_CHA_TXCTL_REG(cha_num) \ argument317 (SXGBE_DMA_CHA_BASE_REG + (cha_num * 0x80) + 0x04)318 #define SXGBE_DMA_CHA_RXCTL_REG(cha_num) \ argument319 (SXGBE_DMA_CHA_BASE_REG + (cha_num * 0x80) + 0x08)320 #define SXGBE_DMA_CHA_TXDESC_HADD_REG(cha_num) \ argument321 (SXGBE_DMA_CHA_BASE_REG + (cha_num * 0x80) + 0x10)322 #define SXGBE_DMA_CHA_TXDESC_LADD_REG(cha_num) \ argument323 (SXGBE_DMA_CHA_BASE_REG + (cha_num * 0x80) + 0x14)[all …]
43 static void sxgbe_dma_channel_init(void __iomem *ioaddr, int cha_num, in sxgbe_dma_channel_init() argument50 reg_val = readl(ioaddr + SXGBE_DMA_CHA_CTL_REG(cha_num)); in sxgbe_dma_channel_init()54 writel(reg_val, ioaddr + SXGBE_DMA_CHA_CTL_REG(cha_num)); in sxgbe_dma_channel_init()56 reg_val = readl(ioaddr + SXGBE_DMA_CHA_TXCTL_REG(cha_num)); in sxgbe_dma_channel_init()58 writel(reg_val, ioaddr + SXGBE_DMA_CHA_TXCTL_REG(cha_num)); in sxgbe_dma_channel_init()60 reg_val = readl(ioaddr + SXGBE_DMA_CHA_RXCTL_REG(cha_num)); in sxgbe_dma_channel_init()62 writel(reg_val, ioaddr + SXGBE_DMA_CHA_RXCTL_REG(cha_num)); in sxgbe_dma_channel_init()67 ioaddr + SXGBE_DMA_CHA_TXDESC_HADD_REG(cha_num)); in sxgbe_dma_channel_init()69 ioaddr + SXGBE_DMA_CHA_TXDESC_LADD_REG(cha_num)); in sxgbe_dma_channel_init()72 ioaddr + SXGBE_DMA_CHA_RXDESC_HADD_REG(cha_num)); in sxgbe_dma_channel_init()[all …]
23 void (*cha_init)(void __iomem *ioaddr, int cha_num, int fix_burst,