Lines Matching refs:wr_alloc
710 static int dw_edma_channel_setup(struct dw_edma *dw, u32 wr_alloc, u32 rd_alloc) in dw_edma_channel_setup() argument
755 pos = chan->id % wr_alloc; in dw_edma_channel_setup()
757 pos = wr_alloc + chan->id % rd_alloc; in dw_edma_channel_setup()
831 u32 *wr_alloc, u32 *rd_alloc) in dw_edma_irq_request() argument
868 while (tmp && (*wr_alloc + *rd_alloc) < ch_cnt) { in dw_edma_irq_request()
869 dw_edma_dec_irq_alloc(&tmp, wr_alloc, dw->wr_ch_cnt); in dw_edma_irq_request()
873 dw_edma_add_irq_mask(&wr_mask, *wr_alloc, dw->wr_ch_cnt); in dw_edma_irq_request()
876 for (i = 0; i < (*wr_alloc + *rd_alloc); i++) { in dw_edma_irq_request()
879 i < *wr_alloc ? in dw_edma_irq_request()
909 u32 wr_alloc = 0; in dw_edma_probe() local
960 err = dw_edma_irq_request(dw, &wr_alloc, &rd_alloc); in dw_edma_probe()
965 err = dw_edma_channel_setup(dw, wr_alloc, rd_alloc); in dw_edma_probe()