Lines Matching refs:ir_prg
93 struct dma_cmd **ir_prg;
166 kfree(d->ir_prg);
245 d->ir_prg = kzalloc(d->num_desc * sizeof(*d->ir_prg),
248 if (!d->ir_prg) {
265 d->ir_prg[i] = (struct dma_cmd *)d->prg_reg[i].kvirt;
344 d->ir_prg[n][0].status = cpu_to_le32(4);
345 d->ir_prg[n][1].status = cpu_to_le32(PAGE_SIZE-4);
347 d->ir_prg[n][i].status = cpu_to_le32(PAGE_SIZE);
348 d->ir_prg[n][i].status = cpu_to_le32(d->left_size);
353 struct dma_cmd *ir_prg = d->ir_prg[n];
359 ir_prg[0].address = cpu_to_le32(dma_region_offset_to_bus(&d->dma, buf -
361 ir_prg[1].address = cpu_to_le32(dma_region_offset_to_bus(&d->dma,
365 ir_prg[i].address = cpu_to_le32(dma_region_offset_to_bus(&d->dma,
370 ir_prg[i].control = cpu_to_le32(DMA_CTL_INPUT_MORE | DMA_CTL_UPDATE |
372 ir_prg[i].address = cpu_to_le32(dma_region_offset_to_bus(&d->dma,
378 struct dma_cmd *ir_prg = d->ir_prg[n];
384 ir_prg[0].control = cpu_to_le32(DMA_CTL_INPUT_MORE | DMA_CTL_UPDATE |
389 ir_prg[0].control |= cpu_to_le32(DMA_CTL_WAIT);
391 ir_prg[0].address = cpu_to_le32(dma_region_offset_to_bus(&d->dma, buf -
393 ir_prg[0].branchAddress = cpu_to_le32((dma_prog_region_offset_to_bus(ir_reg,
399 ir_prg[1].control = cpu_to_le32(DMA_CTL_INPUT_MORE | DMA_CTL_UPDATE |
401 ir_prg[1].address = cpu_to_le32(dma_region_offset_to_bus(&d->dma, (buf + 4) -
403 ir_prg[1].branchAddress = cpu_to_le32((dma_prog_region_offset_to_bus(ir_reg,
407 ir_prg[i].control = cpu_to_le32(DMA_CTL_INPUT_MORE | DMA_CTL_UPDATE |
409 ir_prg[i].address = cpu_to_le32(dma_region_offset_to_bus(&d->dma,
413 ir_prg[i].branchAddress =
419 ir_prg[i].control = cpu_to_le32(DMA_CTL_INPUT_MORE | DMA_CTL_UPDATE |
421 ir_prg[i].address = cpu_to_le32(dma_region_offset_to_bus(&d->dma,
427 ir_prg[1].control = cpu_to_le32(DMA_CTL_INPUT_MORE | DMA_CTL_UPDATE |
429 ir_prg[1].address = cpu_to_le32(dma_region_offset_to_bus(&d->dma,
488 if (d->ir_prg[i][d->nb_cmd-1].status & cpu_to_le32(0xFFFF0000)) {
906 d->ir_prg[d->last_buffer][d->nb_cmd-1].branchAddress =
913 d->ir_prg[d->last_buffer][d->nb_cmd-1].branchAddress = 0;