Lines Matching refs:temp
169 int addr, temp;
175 temp = hwread(vortex->mmio, VORTEX_MIX_ENIN + addr);
176 return ((temp >> (mixin & 3)) & 1);
183 int temp; in vortex_mix_setvolumebyte() local
186 temp = hwread(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2)); in vortex_mix_setvolumebyte()
187 if ((temp != 0x80) || (vol == 0x80)) in vortex_mix_setvolumebyte()
197 int temp; in vortex_mix_setinputvolumebyte() local
202 temp = in vortex_mix_setinputvolumebyte()
205 if ((temp != 0x80) || (vol == 0x80)) in vortex_mix_setinputvolumebyte()
215 int temp, addr; in vortex_mix_setenablebit() local
222 temp = hwread(vortex->mmio, VORTEX_MIX_ENIN + addr); in vortex_mix_setenablebit()
224 temp |= (1 << (mixin & 3)); in vortex_mix_setenablebit()
226 temp &= ~(1 << (mixin & 3)); in vortex_mix_setenablebit()
234 hwwrite(vortex->mmio, VORTEX_MIX_ENIN + addr, temp); in vortex_mix_setenablebit()
273 int temp, lifeboat = 0, prev; in vortex_mixer_addWTD() local
275 temp = hwread(vortex->mmio, VORTEX_MIXER_SR); in vortex_mixer_addWTD()
276 if ((temp & (1 << ch)) == 0) { in vortex_mixer_addWTD()
282 temp = hwread(vortex->mmio, prev); in vortex_mixer_addWTD()
283 while (temp & 0x10) { in vortex_mixer_addWTD()
284 prev = VORTEX_MIXER_RTBASE + ((temp & 0xf) << 2); in vortex_mixer_addWTD()
285 temp = hwread(vortex->mmio, prev); in vortex_mixer_addWTD()
293 hwwrite(vortex->mmio, VORTEX_MIXER_RTBASE + ((temp & 0xf) << 2), mix); in vortex_mixer_addWTD()
294 hwwrite(vortex->mmio, prev, (temp & 0xf) | 0x10); in vortex_mixer_addWTD()
476 int temp; in vortex_src_set_throttlesource() local
478 temp = hwread(vortex->mmio, VORTEX_SRC_SOURCE); in vortex_src_set_throttlesource()
480 temp |= 1 << src; in vortex_src_set_throttlesource()
482 temp &= ~(1 << src); in vortex_src_set_throttlesource()
483 hwwrite(vortex->mmio, VORTEX_SRC_SOURCE, temp); in vortex_src_set_throttlesource()
489 int temp, lifeboat = 0; in vortex_src_persist_convratio() local
493 temp = hwread(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2)); in vortex_src_persist_convratio()
499 while (temp != ratio); in vortex_src_persist_convratio()
500 return temp; in vortex_src_persist_convratio()
506 int temp;
510 temp = hwread(vortex->mmio, VORTEX_SRC_U0 + (src << 2));
511 if (temp & 0x200)
513 temp & ~0x200L);
519 int temp, a;
528 temp = hwread(vortex->mmio, VORTEX_SRC_U0 + (src << 2));
529 if (((temp >> 4) & 0xf) != a)
531 (temp & 0xf) | ((a & 0xf) << 4));
669 int temp, lifeboat = 0, prev; in vortex_src_addWTD() local
672 temp = hwread(vortex->mmio, VORTEX_SRCBLOCK_SR); in vortex_src_addWTD()
673 if ((temp & (1 << ch)) == 0) { in vortex_src_addWTD()
679 temp = hwread(vortex->mmio, prev); in vortex_src_addWTD()
681 while (temp & 0x10) { in vortex_src_addWTD()
682 prev = VORTEX_SRC_RTBASE + ((temp & 0xf) << 2); /*esp12 */ in vortex_src_addWTD()
684 temp = hwread(vortex->mmio, prev); in vortex_src_addWTD()
692 hwwrite(vortex->mmio, VORTEX_SRC_RTBASE + ((temp & 0xf) << 2), src); in vortex_src_addWTD()
694 hwwrite(vortex->mmio, prev, (temp & 0xf) | 0x10); in vortex_src_addWTD()
811 int temp, lifeboat = 0; in vortex_fifo_setadbctrl() local
820 temp = hwread(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2)); in vortex_fifo_setadbctrl()
827 while (temp & FIFO_RDONLY); in vortex_fifo_setadbctrl()
832 if ((temp & FIFO_VALID) == 0) { in vortex_fifo_setadbctrl()
836 temp = (this_4 & 0x1f) << 0xb; in vortex_fifo_setadbctrl()
838 temp = (this_4 & 0x3f) << 0xc; in vortex_fifo_setadbctrl()
840 temp = (temp & 0xfffffffd) | ((stereo & 1) << 1); in vortex_fifo_setadbctrl()
841 temp = (temp & 0xfffffff3) | ((priority & 3) << 2); in vortex_fifo_setadbctrl()
842 temp = (temp & 0xffffffef) | ((valid & 1) << 4); in vortex_fifo_setadbctrl()
843 temp |= FIFO_U1; in vortex_fifo_setadbctrl()
844 temp = (temp & 0xffffffdf) | ((empty & 1) << 5); in vortex_fifo_setadbctrl()
846 temp = (temp & 0xfffbffff) | ((f & 1) << 0x12); in vortex_fifo_setadbctrl()
849 temp = (temp & 0xf7ffffff) | ((f & 1) << 0x1b); in vortex_fifo_setadbctrl()
850 temp = (temp & 0xefffffff) | ((f & 1) << 0x1c); in vortex_fifo_setadbctrl()
853 temp = (temp & 0xfeffffff) | ((f & 1) << 0x18); in vortex_fifo_setadbctrl()
854 temp = (temp & 0xfdffffff) | ((f & 1) << 0x19); in vortex_fifo_setadbctrl()
858 if (temp & FIFO_VALID) { in vortex_fifo_setadbctrl()
860 temp = ((f & 1) << 0x12) | (temp & 0xfffbffef); in vortex_fifo_setadbctrl()
863 temp = in vortex_fifo_setadbctrl()
864 ((f & 1) << 0x1b) | (temp & 0xe7ffffef) | FIFO_BITS; in vortex_fifo_setadbctrl()
867 temp = in vortex_fifo_setadbctrl()
868 ((f & 1) << 0x18) | (temp & 0xfcffffef) | FIFO_BITS; in vortex_fifo_setadbctrl()
874 hwwrite(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2), temp); in vortex_fifo_setadbctrl()
912 int temp = 0, lifeboat = 0; in vortex_fifo_setwtctrl() local
916 temp = hwread(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2)); in vortex_fifo_setwtctrl()
923 while (temp & FIFO_RDONLY); in vortex_fifo_setwtctrl()
926 if ((temp & FIFO_VALID) == 0) { in vortex_fifo_setwtctrl()
929 temp = (this_4 & 0x1f) << 0xb; in vortex_fifo_setwtctrl()
931 temp = (this_4 & 0x3f) << 0xc; in vortex_fifo_setwtctrl()
933 temp = (temp & 0xfffffffd) | ((ctrl & 1) << 1); in vortex_fifo_setwtctrl()
934 temp = (temp & 0xfffffff3) | ((priority & 3) << 2); in vortex_fifo_setwtctrl()
935 temp = (temp & 0xffffffef) | ((valid & 1) << 4); in vortex_fifo_setwtctrl()
936 temp |= FIFO_U1; in vortex_fifo_setwtctrl()
937 temp = (temp & 0xffffffdf) | ((empty & 1) << 5); in vortex_fifo_setwtctrl()
939 temp = (temp & 0xfffbffff) | ((f & 1) << 0x12); in vortex_fifo_setwtctrl()
942 temp = (temp & 0xf7ffffff) | ((f & 1) << 0x1b); in vortex_fifo_setwtctrl()
943 temp = (temp & 0xefffffff) | ((f & 1) << 0x1c); in vortex_fifo_setwtctrl()
946 temp = (temp & 0xfeffffff) | ((f & 1) << 0x18); in vortex_fifo_setwtctrl()
947 temp = (temp & 0xfdffffff) | ((f & 1) << 0x19); in vortex_fifo_setwtctrl()
951 if (temp & FIFO_VALID) { in vortex_fifo_setwtctrl()
953 temp = ((f & 1) << 0x12) | (temp & 0xfffbffef); in vortex_fifo_setwtctrl()
956 temp = in vortex_fifo_setwtctrl()
957 ((f & 1) << 0x1b) | (temp & 0xe7ffffef) | FIFO_BITS; in vortex_fifo_setwtctrl()
960 temp = in vortex_fifo_setwtctrl()
961 ((f & 1) << 0x18) | (temp & 0xfcffffef) | FIFO_BITS; in vortex_fifo_setwtctrl()
967 hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), temp); in vortex_fifo_setwtctrl()
1257 int temp, page, delta; in vortex_adbdma_getlinearpos() local
1259 temp = hwread(vortex->mmio, VORTEX_ADBDMA_STAT + (adbdma << 2)); in vortex_adbdma_getlinearpos()
1260 page = (temp & ADB_SUBBUF_MASK) >> ADB_SUBBUF_SHIFT; in vortex_adbdma_getlinearpos()
1269 + (temp & (dma->period_bytes - 1)); in vortex_adbdma_getlinearpos()
1497 int temp;
1498 temp = hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2));
1499 *subbuf = (temp >> WT_SUBBUF_SHIFT) & WT_SUBBUF_MASK;
1500 *pos = temp & POS_MASK;
1512 int temp; in vortex_wtdma_getlinearpos() local
1514 temp = hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2)); in vortex_wtdma_getlinearpos()
1515 temp = (dma->period_virt * dma->period_bytes) + (temp & (dma->period_bytes - 1)); in vortex_wtdma_getlinearpos()
1516 return temp; in vortex_wtdma_getlinearpos()
1639 int temp, prev, lifeboat = 0; in vortex_adb_addroutes() local
1655 temp = in vortex_adb_addroutes()
1658 if (temp == ADB_MASK) { in vortex_adb_addroutes()
1667 prev = temp; in vortex_adb_addroutes()
1668 temp = in vortex_adb_addroutes()
1670 VORTEX_ADB_RTBASE + (temp << 2)) & ADB_MASK; in vortex_adb_addroutes()
1678 while (temp != ADB_MASK); in vortex_adb_addroutes()
1686 int temp, lifeboat = 0, prev; in vortex_adb_delroutes() local
1689 temp = in vortex_adb_delroutes()
1692 if (temp == (route0 & ADB_MASK)) { in vortex_adb_delroutes()
1693 temp = in vortex_adb_delroutes()
1696 if ((temp & ADB_MASK) == ADB_MASK) in vortex_adb_delroutes()
1699 temp); in vortex_adb_delroutes()
1703 prev = temp; in vortex_adb_delroutes()
1704 temp = in vortex_adb_delroutes()
1707 if (((lifeboat++) > ADB_MASK) || (temp == ADB_MASK)) { in vortex_adb_delroutes()
1714 while (temp != (route0 & ADB_MASK)); in vortex_adb_delroutes()
1715 temp = hwread(vortex->mmio, VORTEX_ADB_RTBASE + (temp << 2)); in vortex_adb_delroutes()
1716 if ((temp & ADB_MASK) == route1) in vortex_adb_delroutes()
1717 temp = hwread(vortex->mmio, VORTEX_ADB_RTBASE + (temp << 2)); in vortex_adb_delroutes()
1719 hwwrite(vortex->mmio, VORTEX_ADB_RTBASE + (prev << 2), temp); in vortex_adb_delroutes()