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