• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/mips/alchemy/common/

Lines Matching defs:ctp

237 	chan_tab_t	*ctp;
280 ctp = NULL;
289 ctp = kmalloc(sizeof(chan_tab_t), GFP_ATOMIC);
290 chan_tab_ptr[i] = ctp;
295 if (ctp != NULL) {
296 memset(ctp, 0, sizeof(chan_tab_t));
297 ctp->chan_index = chan = i;
300 ctp->chan_ptr = (au1x_dma_chan_t *)dcp;
302 ctp->chan_src = stp;
303 ctp->chan_dest = dtp;
304 ctp->chan_callback = callback;
305 ctp->chan_callparam = callparam;
345 chan_tab_t *ctp;
348 ctp = *((chan_tab_t **)chanid);
349 stp = ctp->chan_src;
350 dtp = ctp->chan_dest;
373 chan_tab_t *ctp;
381 ctp = *((chan_tab_t **)chanid);
382 stp = ctp->chan_src;
383 dtp = ctp->chan_dest;
408 ctp->cdb_membase = desc_base;
411 ctp->cdb_membase = desc_base;
416 ctp->chan_desc_base = dp;
550 dp->dscr_nxtptr = DSCR_NXTPTR(virt_to_phys(ctp->chan_desc_base));
551 ctp->get_ptr = ctp->put_ptr = ctp->cur_ptr = ctp->chan_desc_base;
553 return (u32)ctp->chan_desc_base;
564 chan_tab_t *ctp;
571 ctp = *(chan_tab_t **)chanid;
578 dp = ctp->put_ptr;
607 ctp->chan_ptr->ddma_dbell = 0;
610 ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
623 chan_tab_t *ctp;
629 ctp = *((chan_tab_t **)chanid);
635 dp = ctp->put_ptr;
664 ctp->chan_ptr->ddma_dbell = 0;
667 ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
682 chan_tab_t *ctp;
690 ctp = *((chan_tab_t **)chanid);
697 dp = ctp->get_ptr;
712 ctp->get_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
721 chan_tab_t *ctp;
725 ctp = *((chan_tab_t **)chanid);
727 cp = ctp->chan_ptr;
751 chan_tab_t *ctp;
754 ctp = *((chan_tab_t **)chanid);
755 cp = ctp->chan_ptr;
756 cp->ddma_desptr = virt_to_phys(ctp->cur_ptr);
766 chan_tab_t *ctp;
771 ctp = *((chan_tab_t **)chanid);
772 ctp->get_ptr = ctp->put_ptr = ctp->cur_ptr = ctp->chan_desc_base;
775 dp = ctp->chan_desc_base;
786 } while (dp != ctp->chan_desc_base);
792 chan_tab_t *ctp;
796 ctp = *((chan_tab_t **)chanid);
797 cp = ctp->chan_ptr;
809 chan_tab_t *ctp;
812 ctp = *((chan_tab_t **)chanid);
813 stp = ctp->chan_src;
814 dtp = ctp->chan_dest;
818 kfree((void *)ctp->cdb_membase);
822 chan_tab_ptr[ctp->chan_index] = NULL;
824 kfree(ctp);
832 chan_tab_t *ctp;
840 ctp = chan_tab_ptr[chan_index];
841 cp = ctp->chan_ptr;
842 dp = ctp->cur_ptr;
848 if (ctp->chan_callback)
849 ctp->chan_callback(irq, ctp->chan_callparam);
851 ctp->cur_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
857 chan_tab_t *ctp;
863 ctp = *((chan_tab_t **)chanid);
864 stp = ctp->chan_src;
865 dtp = ctp->chan_dest;
866 cp = ctp->chan_ptr;
869 (u32)ctp, (u32)stp, stp - dbdev_tab, (u32)dtp,
872 (u32)(ctp->chan_desc_base), (u32)(ctp->get_ptr),
873 (u32)(ctp->put_ptr), (u32)(ctp->cur_ptr));
883 dp = ctp->chan_desc_base;
894 } while (dp != ctp->chan_desc_base);
902 chan_tab_t *ctp;
910 ctp = *((chan_tab_t **)chanid);
917 dp = ctp->put_ptr;
936 ctp->chan_ptr->ddma_dbell = 0;
939 ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));