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