Lines Matching refs:tram
544 int tram; in snd_emu10k1_tram_poke() local
547 for (tram = 0; tram < (emu->audigy ? 0x100 : 0xa0); tram++) { in snd_emu10k1_tram_poke()
548 if (!test_bit(tram, icode->tram_valid)) in snd_emu10k1_tram_poke()
551 val = icode->tram_data_map[tram]; in snd_emu10k1_tram_poke()
552 addr = icode->tram_addr_map[tram]; in snd_emu10k1_tram_poke()
554 if (get_user(val, (__user __u32 *)&icode->tram_data_map[tram]) || in snd_emu10k1_tram_poke()
555 get_user(addr, (__user __u32 *)&icode->tram_addr_map[tram])) in snd_emu10k1_tram_poke()
558 snd_emu10k1_ptr_write(emu, TANKMEMDATAREGBASE + tram, 0, val); in snd_emu10k1_tram_poke()
560 snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + tram, 0, addr); in snd_emu10k1_tram_poke()
562 snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + tram, 0, addr << 12); in snd_emu10k1_tram_poke()
563 snd_emu10k1_ptr_write(emu, A_TANKMEMCTLREGBASE + tram, 0, addr >> 20); in snd_emu10k1_tram_poke()
572 int tram; in snd_emu10k1_tram_peek() local
576 for (tram = 0; tram < (emu->audigy ? 0x100 : 0xa0); tram++) { in snd_emu10k1_tram_peek()
577 set_bit(tram, icode->tram_valid); in snd_emu10k1_tram_peek()
578 val = snd_emu10k1_ptr_read(emu, TANKMEMDATAREGBASE + tram, 0); in snd_emu10k1_tram_peek()
580 addr = snd_emu10k1_ptr_read(emu, TANKMEMADDRREGBASE + tram, 0); in snd_emu10k1_tram_peek()
582 addr = snd_emu10k1_ptr_read(emu, TANKMEMADDRREGBASE + tram, 0) >> 12; in snd_emu10k1_tram_peek()
583 addr |= snd_emu10k1_ptr_read(emu, A_TANKMEMCTLREGBASE + tram, 0) << 20; in snd_emu10k1_tram_peek()
585 if (put_user(val, (__user u32 *)&icode->tram_data_map[tram]) || in snd_emu10k1_tram_peek()
586 put_user(addr, (__user u32 *)&icode->tram_addr_map[tram])) in snd_emu10k1_tram_peek()