Lines Matching refs:ctp
261 chan_tab_t *ctp; in au1xxx_dbdma_chan_alloc() local
304 ctp = NULL; in au1xxx_dbdma_chan_alloc()
313 ctp = kmalloc(sizeof(chan_tab_t), GFP_ATOMIC); in au1xxx_dbdma_chan_alloc()
314 chan_tab_ptr[i] = ctp; in au1xxx_dbdma_chan_alloc()
319 if (ctp != NULL) { in au1xxx_dbdma_chan_alloc()
320 memset(ctp, 0, sizeof(chan_tab_t)); in au1xxx_dbdma_chan_alloc()
321 ctp->chan_index = chan = i; in au1xxx_dbdma_chan_alloc()
324 ctp->chan_ptr = (au1x_dma_chan_t *)dcp; in au1xxx_dbdma_chan_alloc()
326 ctp->chan_src = stp; in au1xxx_dbdma_chan_alloc()
327 ctp->chan_dest = dtp; in au1xxx_dbdma_chan_alloc()
328 ctp->chan_callback = callback; in au1xxx_dbdma_chan_alloc()
329 ctp->chan_callparam = callparam; in au1xxx_dbdma_chan_alloc()
369 chan_tab_t *ctp; in au1xxx_dbdma_set_devwidth() local
372 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_set_devwidth()
373 stp = ctp->chan_src; in au1xxx_dbdma_set_devwidth()
374 dtp = ctp->chan_dest; in au1xxx_dbdma_set_devwidth()
397 chan_tab_t *ctp; in au1xxx_dbdma_ring_alloc() local
405 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_ring_alloc()
406 stp = ctp->chan_src; in au1xxx_dbdma_ring_alloc()
407 dtp = ctp->chan_dest; in au1xxx_dbdma_ring_alloc()
432 ctp->cdb_membase = desc_base; in au1xxx_dbdma_ring_alloc()
435 ctp->cdb_membase = desc_base; in au1xxx_dbdma_ring_alloc()
440 ctp->chan_desc_base = dp; in au1xxx_dbdma_ring_alloc()
580 dp->dscr_nxtptr = DSCR_NXTPTR(virt_to_phys(ctp->chan_desc_base)); in au1xxx_dbdma_ring_alloc()
581 ctp->get_ptr = ctp->put_ptr = ctp->cur_ptr = ctp->chan_desc_base; in au1xxx_dbdma_ring_alloc()
583 return (u32)ctp->chan_desc_base; in au1xxx_dbdma_ring_alloc()
594 chan_tab_t *ctp; in au1xxx_dbdma_put_source() local
601 ctp = *(chan_tab_t **)chanid; in au1xxx_dbdma_put_source()
608 dp = ctp->put_ptr; in au1xxx_dbdma_put_source()
637 ctp->chan_ptr->ddma_dbell = 0; in au1xxx_dbdma_put_source()
641 ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); in au1xxx_dbdma_put_source()
654 chan_tab_t *ctp; in au1xxx_dbdma_put_dest() local
660 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_put_dest()
666 dp = ctp->put_ptr; in au1xxx_dbdma_put_dest()
700 ctp->chan_ptr->ddma_dbell = 0; in au1xxx_dbdma_put_dest()
704 ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); in au1xxx_dbdma_put_dest()
719 chan_tab_t *ctp; in au1xxx_dbdma_get_dest() local
727 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_get_dest()
734 dp = ctp->get_ptr; in au1xxx_dbdma_get_dest()
749 ctp->get_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); in au1xxx_dbdma_get_dest()
758 chan_tab_t *ctp; in au1xxx_dbdma_stop() local
762 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_stop()
764 cp = ctp->chan_ptr; in au1xxx_dbdma_stop()
788 chan_tab_t *ctp; in au1xxx_dbdma_start() local
791 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_start()
792 cp = ctp->chan_ptr; in au1xxx_dbdma_start()
793 cp->ddma_desptr = virt_to_phys(ctp->cur_ptr); in au1xxx_dbdma_start()
803 chan_tab_t *ctp; in au1xxx_dbdma_reset() local
808 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_reset()
809 ctp->get_ptr = ctp->put_ptr = ctp->cur_ptr = ctp->chan_desc_base; in au1xxx_dbdma_reset()
812 dp = ctp->chan_desc_base; in au1xxx_dbdma_reset()
823 } while (dp != ctp->chan_desc_base); in au1xxx_dbdma_reset()
829 chan_tab_t *ctp; in au1xxx_get_dma_residue() local
833 ctp = *((chan_tab_t **)chanid); in au1xxx_get_dma_residue()
834 cp = ctp->chan_ptr; in au1xxx_get_dma_residue()
846 chan_tab_t *ctp; in au1xxx_dbdma_chan_free() local
849 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_chan_free()
850 stp = ctp->chan_src; in au1xxx_dbdma_chan_free()
851 dtp = ctp->chan_dest; in au1xxx_dbdma_chan_free()
855 kfree((void *)ctp->cdb_membase); in au1xxx_dbdma_chan_free()
859 chan_tab_ptr[ctp->chan_index] = NULL; in au1xxx_dbdma_chan_free()
861 kfree(ctp); in au1xxx_dbdma_chan_free()
869 chan_tab_t *ctp; in dbdma_interrupt() local
877 ctp = chan_tab_ptr[chan_index]; in dbdma_interrupt()
878 cp = ctp->chan_ptr; in dbdma_interrupt()
879 dp = ctp->cur_ptr; in dbdma_interrupt()
885 if (ctp->chan_callback) in dbdma_interrupt()
886 ctp->chan_callback(irq, ctp->chan_callparam); in dbdma_interrupt()
888 ctp->cur_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); in dbdma_interrupt()
894 chan_tab_t *ctp; in au1xxx_dbdma_dump() local
900 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_dump()
901 stp = ctp->chan_src; in au1xxx_dbdma_dump()
902 dtp = ctp->chan_dest; in au1xxx_dbdma_dump()
903 cp = ctp->chan_ptr; in au1xxx_dbdma_dump()
906 (u32)ctp, (u32)stp, stp - dbdev_tab, (u32)dtp, in au1xxx_dbdma_dump()
909 (u32)(ctp->chan_desc_base), (u32)(ctp->get_ptr), in au1xxx_dbdma_dump()
910 (u32)(ctp->put_ptr), (u32)(ctp->cur_ptr)); in au1xxx_dbdma_dump()
920 dp = ctp->chan_desc_base; in au1xxx_dbdma_dump()
931 } while (dp != ctp->chan_desc_base); in au1xxx_dbdma_dump()
939 chan_tab_t *ctp; in au1xxx_dbdma_put_dscr() local
947 ctp = *((chan_tab_t **)chanid); in au1xxx_dbdma_put_dscr()
954 dp = ctp->put_ptr; in au1xxx_dbdma_put_dscr()
973 ctp->chan_ptr->ddma_dbell = 0; in au1xxx_dbdma_put_dscr()
976 ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); in au1xxx_dbdma_put_dscr()