Lines Matching refs:bd_ptr
76 struct tsi721_dma_desc *bd_ptr; in tsi721_bdma_ch_init() local
92 bd_ptr = dma_zalloc_coherent(dev, in tsi721_bdma_ch_init()
95 if (!bd_ptr) in tsi721_bdma_ch_init()
100 bdma_chan->bd_base = bd_ptr; in tsi721_bdma_ch_init()
103 bd_ptr, (unsigned long long)bd_phys); in tsi721_bdma_ch_init()
116 bd_ptr, bd_phys); in tsi721_bdma_ch_init()
130 bd_ptr[bd_num].type_id = cpu_to_le32(DTYPE3 << 29); in tsi721_bdma_ch_init()
131 bd_ptr[bd_num].next_lo = cpu_to_le32((u64)bd_phys & in tsi721_bdma_ch_init()
133 bd_ptr[bd_num].next_hi = cpu_to_le32((u64)bd_phys >> 32); in tsi721_bdma_ch_init()
190 bd_ptr, bd_phys); in tsi721_bdma_ch_init()
337 struct tsi721_dma_desc *bd_ptr, in tsi721_desc_fill_init() argument
342 if (bd_ptr == NULL) in tsi721_desc_fill_init()
346 bd_ptr->type_id = cpu_to_le32((DTYPE1 << 29) | in tsi721_desc_fill_init()
348 bd_ptr->bcount = cpu_to_le32(((desc->rio_addr & 0x3) << 30) | in tsi721_desc_fill_init()
352 bd_ptr->raddr_lo = cpu_to_le32(rio_addr & 0xffffffff); in tsi721_desc_fill_init()
353 bd_ptr->raddr_hi = cpu_to_le32(rio_addr >> 32); in tsi721_desc_fill_init()
354 bd_ptr->t1.bufptr_lo = cpu_to_le32( in tsi721_desc_fill_init()
356 bd_ptr->t1.bufptr_hi = cpu_to_le32((u64)sg_dma_address(sg) >> 32); in tsi721_desc_fill_init()
357 bd_ptr->t1.s_dist = 0; in tsi721_desc_fill_init()
358 bd_ptr->t1.s_size = 0; in tsi721_desc_fill_init()
364 tsi721_desc_fill_end(struct tsi721_dma_desc *bd_ptr, u32 bcount, bool interrupt) in tsi721_desc_fill_end() argument
366 if (bd_ptr == NULL) in tsi721_desc_fill_end()
371 bd_ptr->type_id |= cpu_to_le32(TSI721_DMAD_IOF); in tsi721_desc_fill_end()
372 bd_ptr->bcount |= cpu_to_le32(bcount & TSI721_DMAD_BCOUNT1); in tsi721_desc_fill_end()
425 struct tsi721_dma_desc *bd_ptr = NULL; in tsi721_submit_sg() local
481 tsi721_desc_fill_end(bd_ptr, bcount, 0); in tsi721_submit_sg()
498 bd_ptr = &((struct tsi721_dma_desc *)bdma_chan->bd_base)[idx]; in tsi721_submit_sg()
499 err = tsi721_desc_fill_init(desc, bd_ptr, sg, sys_size); in tsi721_submit_sg()
507 bd_ptr, desc->destid, desc->rio_addr); in tsi721_submit_sg()
521 tsi721_desc_fill_end(bd_ptr, bcount, 0); in tsi721_submit_sg()