Lines Matching refs:pc
493 static void snd_emu10k1_efx_write(struct snd_emu10k1 *emu, unsigned int pc, unsigned int data) in snd_emu10k1_efx_write() argument
495 pc += emu->audigy ? A_MICROCODEBASE : MICROCODEBASE; in snd_emu10k1_efx_write()
496 snd_emu10k1_ptr_write(emu, pc, 0, data); in snd_emu10k1_efx_write()
499 unsigned int snd_emu10k1_efx_read(struct snd_emu10k1 *emu, unsigned int pc) in snd_emu10k1_efx_read() argument
501 pc += emu->audigy ? A_MICROCODEBASE : MICROCODEBASE; in snd_emu10k1_efx_read()
502 return snd_emu10k1_ptr_read(emu, pc, 0); in snd_emu10k1_efx_read()
595 u32 pc, lo, hi; in snd_emu10k1_code_poke() local
597 for (pc = 0; pc < (emu->audigy ? 2*1024 : 2*512); pc += 2) { in snd_emu10k1_code_poke()
598 if (!test_bit(pc / 2, icode->code_valid)) in snd_emu10k1_code_poke()
601 lo = icode->code[pc + 0]; in snd_emu10k1_code_poke()
602 hi = icode->code[pc + 1]; in snd_emu10k1_code_poke()
604 if (get_user(lo, (__user u32 *)&icode->code[pc + 0]) || in snd_emu10k1_code_poke()
605 get_user(hi, (__user u32 *)&icode->code[pc + 1])) in snd_emu10k1_code_poke()
608 snd_emu10k1_efx_write(emu, pc + 0, lo); in snd_emu10k1_code_poke()
609 snd_emu10k1_efx_write(emu, pc + 1, hi); in snd_emu10k1_code_poke()
617 u32 pc; in snd_emu10k1_code_peek() local
620 for (pc = 0; pc < (emu->audigy ? 2*1024 : 2*512); pc += 2) { in snd_emu10k1_code_peek()
621 set_bit(pc / 2, icode->code_valid); in snd_emu10k1_code_peek()
622 if (put_user(snd_emu10k1_efx_read(emu, pc + 0), in snd_emu10k1_code_peek()
623 (__user u32 *)&icode->code[pc + 0])) in snd_emu10k1_code_peek()
625 if (put_user(snd_emu10k1_efx_read(emu, pc + 1), in snd_emu10k1_code_peek()
626 (__user u32 *)&icode->code[pc + 1])) in snd_emu10k1_code_peek()