Lines Matching refs:ctp
260 chan_tab_t *ctp; in au1xxx_dbdma_chan_alloc() local
303 ctp = NULL; in au1xxx_dbdma_chan_alloc()
312 ctp = kmalloc(sizeof(chan_tab_t), GFP_ATOMIC); in au1xxx_dbdma_chan_alloc()
313 chan_tab_ptr[i] = ctp; in au1xxx_dbdma_chan_alloc()
318 if (ctp != NULL) { in au1xxx_dbdma_chan_alloc()
319 memset(ctp, 0, sizeof(chan_tab_t)); in au1xxx_dbdma_chan_alloc()
320 ctp->chan_index = chan = i; in au1xxx_dbdma_chan_alloc()
323 ctp->chan_ptr = (au1x_dma_chan_t *)dcp; in au1xxx_dbdma_chan_alloc()
325 ctp->chan_src = stp; in au1xxx_dbdma_chan_alloc()
326 ctp->chan_dest = dtp; in au1xxx_dbdma_chan_alloc()
327 ctp->chan_callback = callback; in au1xxx_dbdma_chan_alloc()
328 ctp->chan_callparam = callparam; in au1xxx_dbdma_chan_alloc()
368 chan_tab_t *ctp; in au1xxx_dbdma_set_devwidth() local
371 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_set_devwidth()
372 stp = ctp->chan_src; in au1xxx_dbdma_set_devwidth()
373 dtp = ctp->chan_dest; in au1xxx_dbdma_set_devwidth()
396 chan_tab_t *ctp; in au1xxx_dbdma_ring_alloc() local
404 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_ring_alloc()
405 stp = ctp->chan_src; in au1xxx_dbdma_ring_alloc()
406 dtp = ctp->chan_dest; in au1xxx_dbdma_ring_alloc()
431 ctp->cdb_membase = desc_base; in au1xxx_dbdma_ring_alloc()
434 ctp->cdb_membase = desc_base; in au1xxx_dbdma_ring_alloc()
439 ctp->chan_desc_base = dp; in au1xxx_dbdma_ring_alloc()
579 dp->dscr_nxtptr = DSCR_NXTPTR(virt_to_phys(ctp->chan_desc_base)); in au1xxx_dbdma_ring_alloc()
580 ctp->get_ptr = ctp->put_ptr = ctp->cur_ptr = ctp->chan_desc_base; in au1xxx_dbdma_ring_alloc()
582 return (u32)ctp->chan_desc_base; in au1xxx_dbdma_ring_alloc()
593 chan_tab_t *ctp; in au1xxx_dbdma_put_source() local
600 ctp = *(chan_tab_t **)chanid; in au1xxx_dbdma_put_source()
607 dp = ctp->put_ptr; in au1xxx_dbdma_put_source()
636 ctp->chan_ptr->ddma_dbell = 0; in au1xxx_dbdma_put_source()
639 ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); in au1xxx_dbdma_put_source()
652 chan_tab_t *ctp; in au1xxx_dbdma_put_dest() local
658 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_put_dest()
664 dp = ctp->put_ptr; in au1xxx_dbdma_put_dest()
698 ctp->chan_ptr->ddma_dbell = 0; in au1xxx_dbdma_put_dest()
701 ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); in au1xxx_dbdma_put_dest()
716 chan_tab_t *ctp; in au1xxx_dbdma_get_dest() local
724 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_get_dest()
731 dp = ctp->get_ptr; in au1xxx_dbdma_get_dest()
746 ctp->get_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); in au1xxx_dbdma_get_dest()
755 chan_tab_t *ctp; in au1xxx_dbdma_stop() local
759 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_stop()
761 cp = ctp->chan_ptr; in au1xxx_dbdma_stop()
785 chan_tab_t *ctp; in au1xxx_dbdma_start() local
788 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_start()
789 cp = ctp->chan_ptr; in au1xxx_dbdma_start()
790 cp->ddma_desptr = virt_to_phys(ctp->cur_ptr); in au1xxx_dbdma_start()
800 chan_tab_t *ctp; in au1xxx_dbdma_reset() local
805 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_reset()
806 ctp->get_ptr = ctp->put_ptr = ctp->cur_ptr = ctp->chan_desc_base; in au1xxx_dbdma_reset()
809 dp = ctp->chan_desc_base; in au1xxx_dbdma_reset()
820 } while (dp != ctp->chan_desc_base); in au1xxx_dbdma_reset()
826 chan_tab_t *ctp; in au1xxx_get_dma_residue() local
830 ctp = *((chan_tab_t **)chanid); in au1xxx_get_dma_residue()
831 cp = ctp->chan_ptr; in au1xxx_get_dma_residue()
843 chan_tab_t *ctp; in au1xxx_dbdma_chan_free() local
846 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_chan_free()
847 stp = ctp->chan_src; in au1xxx_dbdma_chan_free()
848 dtp = ctp->chan_dest; in au1xxx_dbdma_chan_free()
852 kfree((void *)ctp->cdb_membase); in au1xxx_dbdma_chan_free()
856 chan_tab_ptr[ctp->chan_index] = NULL; in au1xxx_dbdma_chan_free()
858 kfree(ctp); in au1xxx_dbdma_chan_free()
866 chan_tab_t *ctp; in dbdma_interrupt() local
874 ctp = chan_tab_ptr[chan_index]; in dbdma_interrupt()
875 cp = ctp->chan_ptr; in dbdma_interrupt()
876 dp = ctp->cur_ptr; in dbdma_interrupt()
882 if (ctp->chan_callback) in dbdma_interrupt()
883 ctp->chan_callback(irq, ctp->chan_callparam); in dbdma_interrupt()
885 ctp->cur_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); in dbdma_interrupt()
891 chan_tab_t *ctp; in au1xxx_dbdma_dump() local
897 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_dump()
898 stp = ctp->chan_src; in au1xxx_dbdma_dump()
899 dtp = ctp->chan_dest; in au1xxx_dbdma_dump()
900 cp = ctp->chan_ptr; in au1xxx_dbdma_dump()
903 (u32)ctp, (u32)stp, stp - dbdev_tab, (u32)dtp, in au1xxx_dbdma_dump()
906 (u32)(ctp->chan_desc_base), (u32)(ctp->get_ptr), in au1xxx_dbdma_dump()
907 (u32)(ctp->put_ptr), (u32)(ctp->cur_ptr)); in au1xxx_dbdma_dump()
917 dp = ctp->chan_desc_base; in au1xxx_dbdma_dump()
928 } while (dp != ctp->chan_desc_base); in au1xxx_dbdma_dump()
936 chan_tab_t *ctp; in au1xxx_dbdma_put_dscr() local
944 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_put_dscr()
951 dp = ctp->put_ptr; in au1xxx_dbdma_put_dscr()
970 ctp->chan_ptr->ddma_dbell = 0; in au1xxx_dbdma_put_dscr()
973 ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); in au1xxx_dbdma_put_dscr()