Lines Matching refs:src
455 static void vortex_src_flushbuffers(vortex_t * vortex, unsigned char src) in vortex_src_flushbuffers() argument
461 VORTEX_SRC_DATA0 + (src << 7) + (i << 2), 0); in vortex_src_flushbuffers()
462 hwwrite(vortex->mmio, VORTEX_SRC_DATA + (src << 3), 0); in vortex_src_flushbuffers()
463 hwwrite(vortex->mmio, VORTEX_SRC_DATA + (src << 3) + 4, 0); in vortex_src_flushbuffers()
466 static void vortex_src_cleardrift(vortex_t * vortex, unsigned char src) in vortex_src_cleardrift() argument
468 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT0 + (src << 2), 0); in vortex_src_cleardrift()
469 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT1 + (src << 2), 0); in vortex_src_cleardrift()
470 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT2 + (src << 2), 1); in vortex_src_cleardrift()
474 vortex_src_set_throttlesource(vortex_t * vortex, unsigned char src, int en) in vortex_src_set_throttlesource() argument
480 temp |= 1 << src; in vortex_src_set_throttlesource()
482 temp &= ~(1 << src); in vortex_src_set_throttlesource()
487 vortex_src_persist_convratio(vortex_t * vortex, unsigned char src, int ratio) in vortex_src_persist_convratio() argument
492 hwwrite(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2), ratio); in vortex_src_persist_convratio()
493 temp = hwread(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2)); in vortex_src_persist_convratio()
504 static void vortex_src_slowlock(vortex_t * vortex, unsigned char src)
508 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT2 + (src << 2), 1);
509 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT0 + (src << 2), 0);
510 temp = hwread(vortex->mmio, VORTEX_SRC_U0 + (src << 2));
512 hwwrite(vortex->mmio, VORTEX_SRC_U0 + (src << 2),
517 vortex_src_change_convratio(vortex_t * vortex, unsigned char src, int ratio)
528 temp = hwread(vortex->mmio, VORTEX_SRC_U0 + (src << 2));
530 hwwrite(vortex->mmio, VORTEX_SRC_U0 + (src << 2),
533 vortex_src_persist_convratio(vortex, src, ratio);
537 vortex_src_checkratio(vortex_t * vortex, unsigned char src,
542 hw_ratio = hwread(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2));
545 hwwrite(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2), desired_ratio);
549 src, hw_ratio, desired_ratio);
571 static void vortex_src_setupchannel(vortex_t * card, unsigned char src, in vortex_src_setupchannel() argument
584 vortex_src_flushbuffers(card, src); in vortex_src_setupchannel()
612 vortex_src_cleardrift(card, src); in vortex_src_setupchannel()
613 vortex_src_set_throttlesource(card, src, thsource); in vortex_src_setupchannel()
628 hwwrite(card->mmio, VORTEX_SRC_U0 + (src << 2), in vortex_src_setupchannel()
631 vortex_src_persist_convratio(card, src, cr); in vortex_src_setupchannel()
632 hwwrite(card->mmio, VORTEX_SRC_U1 + (src << 2), b & 0xffff); in vortex_src_setupchannel()
634 hwwrite(card->mmio, VORTEX_SRC_U2 + (src << 2), in vortex_src_setupchannel()
667 vortex_src_addWTD(vortex_t * vortex, unsigned char src, unsigned char ch) in vortex_src_addWTD() argument
674 hwwrite(vortex->mmio, VORTEX_SRC_CHNBASE + (ch << 2), src); in vortex_src_addWTD()
692 hwwrite(vortex->mmio, VORTEX_SRC_RTBASE + ((temp & 0xf) << 2), src); in vortex_src_addWTD()
699 vortex_src_delWTD(vortex_t * vortex, unsigned char src, unsigned char ch) in vortex_src_delWTD() argument
713 if (src == ebx) { in vortex_src_delWTD()
714 ebx = VORTEX_SRC_RTBASE + (src << 2); in vortex_src_delWTD()
725 while ((edx & 0xf) != src) { in vortex_src_delWTD()
1835 unsigned char adbdma, unsigned char src) in vortex_connection_adbdma_src() argument
1837 vortex_route(vortex, en, ch, ADB_DMA(adbdma), ADB_SRCIN(src)); in vortex_connection_adbdma_src()
1843 unsigned char channel, unsigned char src, in vortex_connection_src_mixin() argument
1846 vortex_route(vortex, en, channel, ADB_SRCOUT(src), ADB_MIXIN(mixin)); in vortex_connection_src_mixin()
1872 unsigned char src, unsigned char adbdma) in vortex_connection_src_adbdma() argument
1874 vortex_route(vortex, en, ch, ADB_SRCOUT(src), ADB_DMA(adbdma)); in vortex_connection_src_adbdma()
1899 unsigned char mix, unsigned char src) in vortex_connection_mix_src() argument
1901 vortex_route(vortex, en, ch, ADB_MIXOUT(mix), ADB_SRCIN(src)); in vortex_connection_mix_src()
2138 int src[4], mix[4], ch_top; in vortex_adb_allocroute() local
2145 if ((src[i] = vortex_adb_checkinout(vortex, in vortex_adb_allocroute()
2193 src[nr_ch - 1], in vortex_adb_allocroute()
2195 src[i]); in vortex_adb_allocroute()
2197 0x11, src[i], in vortex_adb_allocroute()
2215 src[nr_ch - 1], in vortex_adb_allocroute()
2217 src[i]); in vortex_adb_allocroute()
2218 vortex_route(vortex, en, 0x11, ADB_SRCOUT(src[i]), ADB_A3DIN(a3d)); in vortex_adb_allocroute()
2274 int src[2], mix[2]; in vortex_adb_allocroute() local
2290 if ((src[i] = in vortex_adb_allocroute()
2302 vortex_connection_mix_src(vortex, en, 0x11, mix[0], src[0]); in vortex_adb_allocroute()
2307 src[0], in vortex_adb_allocroute()
2308 src[0], dma); in vortex_adb_allocroute()
2313 src[1]); in vortex_adb_allocroute()
2315 src[1], src[0], in vortex_adb_allocroute()
2316 src[1], dma); in vortex_adb_allocroute()