Lines Matching defs:bd_ptr
65 struct tsi721_dma_desc *bd_ptr;
81 bd_ptr = dma_alloc_coherent(dev,
84 if (!bd_ptr)
89 bdma_chan->bd_base = bd_ptr;
93 bdma_chan->id, bd_ptr, &bd_phys);
106 bd_ptr, bd_phys);
120 bd_ptr[bd_num].type_id = cpu_to_le32(DTYPE3 << 29);
121 bd_ptr[bd_num].next_lo = cpu_to_le32((u64)bd_phys &
123 bd_ptr[bd_num].next_hi = cpu_to_le32((u64)bd_phys >> 32);
182 bd_ptr, bd_phys);
332 struct tsi721_dma_desc *bd_ptr,
337 if (!bd_ptr)
341 bd_ptr->type_id = cpu_to_le32((DTYPE1 << 29) |
343 bd_ptr->bcount = cpu_to_le32(((desc->rio_addr & 0x3) << 30) |
347 bd_ptr->raddr_lo = cpu_to_le32(rio_addr & 0xffffffff);
348 bd_ptr->raddr_hi = cpu_to_le32(rio_addr >> 32);
349 bd_ptr->t1.bufptr_lo = cpu_to_le32(
351 bd_ptr->t1.bufptr_hi = cpu_to_le32((u64)sg_dma_address(sg) >> 32);
352 bd_ptr->t1.s_dist = 0;
353 bd_ptr->t1.s_size = 0;
359 tsi721_desc_fill_end(struct tsi721_dma_desc *bd_ptr, u32 bcount, bool interrupt)
361 if (!bd_ptr)
366 bd_ptr->type_id |= cpu_to_le32(TSI721_DMAD_IOF);
367 bd_ptr->bcount |= cpu_to_le32(bcount & TSI721_DMAD_BCOUNT1);
420 struct tsi721_dma_desc *bd_ptr = NULL;
477 tsi721_desc_fill_end(bd_ptr, bcount, 0);
493 bd_ptr = &((struct tsi721_dma_desc *)bdma_chan->bd_base)[idx];
494 err = tsi721_desc_fill_init(desc, bd_ptr, sg, sys_size);
500 tsi_debug(DMAV, ch_dev, "DMAC%d bd_ptr = %p did=%d raddr=0x%llx",
501 bdma_chan->id, bd_ptr, desc->destid, desc->rio_addr);
515 tsi721_desc_fill_end(bd_ptr, bcount, 0);