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