Lines Matching refs:bam_addr
409 static inline void __iomem *bam_addr(struct bam_device *bdev, u32 pipe, in bam_addr() function
430 val = readl_relaxed(bam_addr(bdev, 0, BAM_CTRL)); in bam_reset()
432 writel_relaxed(val, bam_addr(bdev, 0, BAM_CTRL)); in bam_reset()
434 writel_relaxed(val, bam_addr(bdev, 0, BAM_CTRL)); in bam_reset()
441 writel_relaxed(val, bam_addr(bdev, 0, BAM_CTRL)); in bam_reset()
445 bam_addr(bdev, 0, BAM_DESC_CNT_TRSHLD)); in bam_reset()
448 writel_relaxed(BAM_CNFG_BITS_DEFAULT, bam_addr(bdev, 0, BAM_CNFG_BITS)); in bam_reset()
452 bam_addr(bdev, 0, BAM_IRQ_EN)); in bam_reset()
455 writel_relaxed(BAM_IRQ_MSK, bam_addr(bdev, 0, BAM_IRQ_SRCS_MSK_EE)); in bam_reset()
471 writel_relaxed(1, bam_addr(bdev, bchan->id, BAM_P_RST)); in bam_reset_channel()
472 writel_relaxed(0, bam_addr(bdev, bchan->id, BAM_P_RST)); in bam_reset_channel()
502 bam_addr(bdev, bchan->id, BAM_P_DESC_FIFO_ADDR)); in bam_chan_init_hw()
504 bam_addr(bdev, bchan->id, BAM_P_FIFO_SIZES)); in bam_chan_init_hw()
508 bam_addr(bdev, bchan->id, BAM_P_IRQ_EN)); in bam_chan_init_hw()
511 val = readl_relaxed(bam_addr(bdev, 0, BAM_IRQ_SRCS_MSK_EE)); in bam_chan_init_hw()
513 writel_relaxed(val, bam_addr(bdev, 0, BAM_IRQ_SRCS_MSK_EE)); in bam_chan_init_hw()
523 writel_relaxed(val, bam_addr(bdev, bchan->id, BAM_P_CTRL)); in bam_chan_init_hw()
596 val = readl_relaxed(bam_addr(bdev, 0, BAM_IRQ_SRCS_MSK_EE)); in bam_free_chan()
598 writel_relaxed(val, bam_addr(bdev, 0, BAM_IRQ_SRCS_MSK_EE)); in bam_free_chan()
601 writel_relaxed(0, bam_addr(bdev, bchan->id, BAM_P_IRQ_EN)); in bam_free_chan()
605 val = readl_relaxed(bam_addr(bdev, 0, BAM_CTRL)); in bam_free_chan()
607 writel_relaxed(val, bam_addr(bdev, 0, BAM_CTRL)); in bam_free_chan()
784 writel_relaxed(1, bam_addr(bdev, bchan->id, BAM_P_HALT)); in bam_pause()
810 writel_relaxed(0, bam_addr(bdev, bchan->id, BAM_P_HALT)); in bam_resume()
832 srcs = readl_relaxed(bam_addr(bdev, 0, BAM_IRQ_SRCS_EE)); in process_channel_irqs()
845 pipe_stts = readl_relaxed(bam_addr(bdev, i, BAM_P_IRQ_STTS)); in process_channel_irqs()
847 writel_relaxed(pipe_stts, bam_addr(bdev, i, BAM_P_IRQ_CLR)); in process_channel_irqs()
851 offset = readl_relaxed(bam_addr(bdev, i, BAM_P_SW_OFSTS)) & in process_channel_irqs()
919 clr_mask = readl_relaxed(bam_addr(bdev, 0, BAM_IRQ_STTS)); in bam_dma_irq()
927 writel_relaxed(clr_mask, bam_addr(bdev, 0, BAM_IRQ_CLR)); in bam_dma_irq()
1005 bam_addr(bdev, 0, BAM_DESC_CNT_TRSHLD)); in bam_apply_new_config()
1103 bam_addr(bdev, bchan->id, BAM_P_EVNT_REG)); in bam_start_dma()
1196 val = readl_relaxed(bam_addr(bdev, 0, BAM_REVISION)); in bam_init()
1205 val = readl_relaxed(bam_addr(bdev, 0, BAM_NUM_PIPES)); in bam_init()
1396 writel_relaxed(0, bam_addr(bdev, 0, BAM_IRQ_SRCS_MSK_EE)); in bam_dma_remove()