Lines Matching full:temp
157 int addr, temp;
163 temp = hwread(vortex->mmio, VORTEX_MIX_ENIN + addr);
164 return ((temp >> (mixin & 3)) & 1);
171 int temp; in vortex_mix_setvolumebyte() local
174 temp = hwread(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2)); in vortex_mix_setvolumebyte()
175 if ((temp != 0x80) || (vol == 0x80)) in vortex_mix_setvolumebyte()
185 int temp; in vortex_mix_setinputvolumebyte() local
190 temp = in vortex_mix_setinputvolumebyte()
193 if ((temp != 0x80) || (vol == 0x80)) in vortex_mix_setinputvolumebyte()
203 int temp, addr; in vortex_mix_setenablebit() local
210 temp = hwread(vortex->mmio, VORTEX_MIX_ENIN + addr); in vortex_mix_setenablebit()
212 temp |= (1 << (mixin & 3)); in vortex_mix_setenablebit()
214 temp &= ~(1 << (mixin & 3)); in vortex_mix_setenablebit()
222 hwwrite(vortex->mmio, VORTEX_MIX_ENIN + addr, temp); in vortex_mix_setenablebit()
261 int temp, lifeboat = 0, prev; in vortex_mixer_addWTD() local
263 temp = hwread(vortex->mmio, VORTEX_MIXER_SR); in vortex_mixer_addWTD()
264 if ((temp & (1 << ch)) == 0) { in vortex_mixer_addWTD()
270 temp = hwread(vortex->mmio, prev); in vortex_mixer_addWTD()
271 while (temp & 0x10) { in vortex_mixer_addWTD()
272 prev = VORTEX_MIXER_RTBASE + ((temp & 0xf) << 2); in vortex_mixer_addWTD()
273 temp = hwread(vortex->mmio, prev); in vortex_mixer_addWTD()
274 //printk(KERN_INFO "vortex: mixAddWTD: while addr=%x, val=%x\n", prev, temp); in vortex_mixer_addWTD()
281 hwwrite(vortex->mmio, VORTEX_MIXER_RTBASE + ((temp & 0xf) << 2), mix); in vortex_mixer_addWTD()
282 hwwrite(vortex->mmio, prev, (temp & 0xf) | 0x10); in vortex_mixer_addWTD()
464 int temp; in vortex_src_set_throttlesource() local
466 temp = hwread(vortex->mmio, VORTEX_SRC_SOURCE); in vortex_src_set_throttlesource()
468 temp |= 1 << src; in vortex_src_set_throttlesource()
470 temp &= ~(1 << src); in vortex_src_set_throttlesource()
471 hwwrite(vortex->mmio, VORTEX_SRC_SOURCE, temp); in vortex_src_set_throttlesource()
477 int temp, lifeboat = 0; in vortex_src_persist_convratio() local
481 temp = hwread(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2)); in vortex_src_persist_convratio()
487 while (temp != ratio); in vortex_src_persist_convratio()
488 return temp; in vortex_src_persist_convratio()
494 int temp;
498 temp = hwread(vortex->mmio, VORTEX_SRC_U0 + (src << 2));
499 if (temp & 0x200)
501 temp & ~0x200L);
507 int temp, a;
516 temp = hwread(vortex->mmio, VORTEX_SRC_U0 + (src << 2));
517 if (((temp >> 4) & 0xf) != a)
519 (temp & 0xf) | ((a & 0xf) << 4));
657 int temp, lifeboat = 0, prev; in vortex_src_addWTD() local
660 temp = hwread(vortex->mmio, VORTEX_SRCBLOCK_SR); in vortex_src_addWTD()
661 if ((temp & (1 << ch)) == 0) { in vortex_src_addWTD()
667 temp = hwread(vortex->mmio, prev); in vortex_src_addWTD()
668 //while (temp & NR_SRC) { in vortex_src_addWTD()
669 while (temp & 0x10) { in vortex_src_addWTD()
670 prev = VORTEX_SRC_RTBASE + ((temp & 0xf) << 2); /*esp12 */ in vortex_src_addWTD()
671 //prev = VORTEX_SRC_RTBASE + ((temp & (NR_SRC-1)) << 2); /*esp12*/ in vortex_src_addWTD()
672 temp = hwread(vortex->mmio, prev); in vortex_src_addWTD()
673 //printk(KERN_INFO "vortex: srcAddWTD: while addr=%x, val=%x\n", prev, temp); in vortex_src_addWTD()
680 hwwrite(vortex->mmio, VORTEX_SRC_RTBASE + ((temp & 0xf) << 2), src); in vortex_src_addWTD()
681 //hwwrite(vortex->mmio, prev, (temp & (NR_SRC-1)) | NR_SRC); in vortex_src_addWTD()
682 hwwrite(vortex->mmio, prev, (temp & 0xf) | 0x10); in vortex_src_addWTD()
799 int temp, lifeboat = 0; in vortex_fifo_setadbctrl() local
808 temp = hwread(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2)); in vortex_fifo_setadbctrl()
815 while (temp & FIFO_RDONLY); in vortex_fifo_setadbctrl()
820 if ((temp & FIFO_VALID) == 0) { in vortex_fifo_setadbctrl()
824 temp = (this_4 & 0x1f) << 0xb; in vortex_fifo_setadbctrl()
826 temp = (this_4 & 0x3f) << 0xc; in vortex_fifo_setadbctrl()
828 temp = (temp & 0xfffffffd) | ((stereo & 1) << 1); in vortex_fifo_setadbctrl()
829 temp = (temp & 0xfffffff3) | ((priority & 3) << 2); in vortex_fifo_setadbctrl()
830 temp = (temp & 0xffffffef) | ((valid & 1) << 4); in vortex_fifo_setadbctrl()
831 temp |= FIFO_U1; in vortex_fifo_setadbctrl()
832 temp = (temp & 0xffffffdf) | ((empty & 1) << 5); in vortex_fifo_setadbctrl()
834 temp = (temp & 0xfffbffff) | ((f & 1) << 0x12); in vortex_fifo_setadbctrl()
837 temp = (temp & 0xf7ffffff) | ((f & 1) << 0x1b); in vortex_fifo_setadbctrl()
838 temp = (temp & 0xefffffff) | ((f & 1) << 0x1c); in vortex_fifo_setadbctrl()
841 temp = (temp & 0xfeffffff) | ((f & 1) << 0x18); in vortex_fifo_setadbctrl()
842 temp = (temp & 0xfdffffff) | ((f & 1) << 0x19); in vortex_fifo_setadbctrl()
846 if (temp & FIFO_VALID) { in vortex_fifo_setadbctrl()
848 temp = ((f & 1) << 0x12) | (temp & 0xfffbffef); in vortex_fifo_setadbctrl()
851 temp = in vortex_fifo_setadbctrl()
852 ((f & 1) << 0x1b) | (temp & 0xe7ffffef) | FIFO_BITS; in vortex_fifo_setadbctrl()
855 temp = in vortex_fifo_setadbctrl()
856 ((f & 1) << 0x18) | (temp & 0xfcffffef) | FIFO_BITS; in vortex_fifo_setadbctrl()
862 hwwrite(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2), temp); in vortex_fifo_setadbctrl()
900 int temp = 0, lifeboat = 0; in vortex_fifo_setwtctrl() local
904 temp = hwread(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2)); in vortex_fifo_setwtctrl()
911 while (temp & FIFO_RDONLY); in vortex_fifo_setwtctrl()
914 if ((temp & FIFO_VALID) == 0) { in vortex_fifo_setwtctrl()
917 temp = (this_4 & 0x1f) << 0xb; in vortex_fifo_setwtctrl()
919 temp = (this_4 & 0x3f) << 0xc; in vortex_fifo_setwtctrl()
921 temp = (temp & 0xfffffffd) | ((ctrl & 1) << 1); in vortex_fifo_setwtctrl()
922 temp = (temp & 0xfffffff3) | ((priority & 3) << 2); in vortex_fifo_setwtctrl()
923 temp = (temp & 0xffffffef) | ((valid & 1) << 4); in vortex_fifo_setwtctrl()
924 temp |= FIFO_U1; in vortex_fifo_setwtctrl()
925 temp = (temp & 0xffffffdf) | ((empty & 1) << 5); in vortex_fifo_setwtctrl()
927 temp = (temp & 0xfffbffff) | ((f & 1) << 0x12); in vortex_fifo_setwtctrl()
930 temp = (temp & 0xf7ffffff) | ((f & 1) << 0x1b); in vortex_fifo_setwtctrl()
931 temp = (temp & 0xefffffff) | ((f & 1) << 0x1c); in vortex_fifo_setwtctrl()
934 temp = (temp & 0xfeffffff) | ((f & 1) << 0x18); in vortex_fifo_setwtctrl()
935 temp = (temp & 0xfdffffff) | ((f & 1) << 0x19); in vortex_fifo_setwtctrl()
939 if (temp & FIFO_VALID) { in vortex_fifo_setwtctrl()
941 temp = ((f & 1) << 0x12) | (temp & 0xfffbffef); in vortex_fifo_setwtctrl()
944 temp = in vortex_fifo_setwtctrl()
945 ((f & 1) << 0x1b) | (temp & 0xe7ffffef) | FIFO_BITS; in vortex_fifo_setwtctrl()
948 temp = in vortex_fifo_setwtctrl()
949 ((f & 1) << 0x18) | (temp & 0xfcffffef) | FIFO_BITS; in vortex_fifo_setwtctrl()
955 hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), temp); in vortex_fifo_setwtctrl()
960 temp = hwread(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2)); in vortex_fifo_setwtctrl()
965 } while ((temp & FIFO_RDONLY)&&(temp & FIFO_VALID)&&(temp != 0xFFFFFFFF)); in vortex_fifo_setwtctrl()
969 if (temp & FIFO_VALID) { in vortex_fifo_setwtctrl()
970 temp = 0x40000; in vortex_fifo_setwtctrl()
971 //temp |= 0x08000000; in vortex_fifo_setwtctrl()
972 //temp |= 0x10000000; in vortex_fifo_setwtctrl()
973 //temp |= 0x04000000; in vortex_fifo_setwtctrl()
974 //temp |= 0x00400000; in vortex_fifo_setwtctrl()
975 temp |= 0x1c400000; in vortex_fifo_setwtctrl()
976 temp &= 0xFFFFFFF3; in vortex_fifo_setwtctrl()
977 temp &= 0xFFFFFFEF; in vortex_fifo_setwtctrl()
978 temp |= (valid & 1) << 4; in vortex_fifo_setwtctrl()
979 hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), temp); in vortex_fifo_setwtctrl()
986 temp &= 0xffffffef; in vortex_fifo_setwtctrl()
987 temp |= 0x08000000; in vortex_fifo_setwtctrl()
988 temp |= 0x10000000; in vortex_fifo_setwtctrl()
989 temp |= 0x04000000; in vortex_fifo_setwtctrl()
990 temp |= 0x00400000; in vortex_fifo_setwtctrl()
991 hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), temp); in vortex_fifo_setwtctrl()
992 temp = hwread(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2)); in vortex_fifo_setwtctrl()
993 //((temp >> 6) & 0x3f) in vortex_fifo_setwtctrl()
996 if (((temp & 0x0fc0) ^ ((temp >> 6) & 0x0fc0)) & 0FFFFFFC0) in vortex_fifo_setwtctrl()
999 temp = (temp & 0xfffffffd) | ((ctrl & 1) << 1); in vortex_fifo_setwtctrl()
1000 temp = (temp & 0xfffdffff) | ((f & 1) << 0x11); in vortex_fifo_setwtctrl()
1001 temp = (temp & 0xfffffff3) | ((priority & 3) << 2); in vortex_fifo_setwtctrl()
1002 temp = (temp & 0xffffffef) | ((valid & 1) << 4); in vortex_fifo_setwtctrl()
1003 temp = (temp & 0xffffffdf) | ((empty & 1) << 5); in vortex_fifo_setwtctrl()
1004 hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), temp); in vortex_fifo_setwtctrl()
1010 temp = (temp & 0xfffffffd) | ((ctrl & 1) << 1); in vortex_fifo_setwtctrl()
1011 temp = (temp & 0xfffdffff) | ((f & 1) << 0x11); in vortex_fifo_setwtctrl()
1012 temp = (temp & 0xfffffff3) | ((priority & 3) << 2); in vortex_fifo_setwtctrl()
1013 temp = (temp & 0xffffffef) | ((valid & 1) << 4); in vortex_fifo_setwtctrl()
1014 temp = (temp & 0xffffffdf) | ((empty & 1) << 5); in vortex_fifo_setwtctrl()
1016 temp = temp | FIFO_BITS | 40000; in vortex_fifo_setwtctrl()
1019 hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), temp); in vortex_fifo_setwtctrl()
1248 int temp, page, delta; in vortex_adbdma_getlinearpos() local
1250 temp = hwread(vortex->mmio, VORTEX_ADBDMA_STAT + (adbdma << 2)); in vortex_adbdma_getlinearpos()
1251 page = (temp & ADB_SUBBUF_MASK) >> ADB_SUBBUF_SHIFT; in vortex_adbdma_getlinearpos()
1260 + (temp & (dma->period_bytes - 1)); in vortex_adbdma_getlinearpos()
1490 int temp;
1491 temp = hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2));
1492 *subbuf = (temp >> WT_SUBBUF_SHIFT) & WT_SUBBUF_MASK;
1493 *pos = temp & POS_MASK;
1505 int temp; in vortex_wtdma_getlinearpos() local
1507 temp = hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2)); in vortex_wtdma_getlinearpos()
1508 temp = (dma->period_virt * dma->period_bytes) + (temp & (dma->period_bytes - 1)); in vortex_wtdma_getlinearpos()
1509 return temp; in vortex_wtdma_getlinearpos()
1632 int temp, prev, lifeboat = 0; in vortex_adb_addroutes() local
1648 temp = in vortex_adb_addroutes()
1651 if (temp == ADB_MASK) { in vortex_adb_addroutes()
1660 prev = temp; in vortex_adb_addroutes()
1661 temp = in vortex_adb_addroutes()
1663 VORTEX_ADB_RTBASE + (temp << 2)) & ADB_MASK; in vortex_adb_addroutes()
1671 while (temp != ADB_MASK); in vortex_adb_addroutes()
1679 int temp, lifeboat = 0, prev; in vortex_adb_delroutes() local
1682 temp = in vortex_adb_delroutes()
1685 if (temp == (route0 & ADB_MASK)) { in vortex_adb_delroutes()
1686 temp = in vortex_adb_delroutes()
1689 if ((temp & ADB_MASK) == ADB_MASK) in vortex_adb_delroutes()
1692 temp); in vortex_adb_delroutes()
1696 prev = temp; in vortex_adb_delroutes()
1697 temp = in vortex_adb_delroutes()
1700 if (((lifeboat++) > ADB_MASK) || (temp == ADB_MASK)) { in vortex_adb_delroutes()
1707 while (temp != (route0 & ADB_MASK)); in vortex_adb_delroutes()
1708 temp = hwread(vortex->mmio, VORTEX_ADB_RTBASE + (temp << 2)); in vortex_adb_delroutes()
1709 if ((temp & ADB_MASK) == route1) in vortex_adb_delroutes()
1710 temp = hwread(vortex->mmio, VORTEX_ADB_RTBASE + (temp << 2)); in vortex_adb_delroutes()
1712 hwwrite(vortex->mmio, VORTEX_ADB_RTBASE + (prev << 2), temp); in vortex_adb_delroutes()