• Home
  • Raw
  • Download

Lines Matching refs:cpu_base

3587 static int tg3_pause_cpu(struct tg3 *tp, u32 cpu_base)  in tg3_pause_cpu()  argument
3593 tw32(cpu_base + CPU_STATE, 0xffffffff); in tg3_pause_cpu()
3594 tw32(cpu_base + CPU_MODE, CPU_MODE_HALT); in tg3_pause_cpu()
3595 if (tr32(cpu_base + CPU_MODE) & CPU_MODE_HALT) in tg3_pause_cpu()
3623 static void tg3_resume_cpu(struct tg3 *tp, u32 cpu_base) in tg3_resume_cpu() argument
3625 tw32(cpu_base + CPU_STATE, 0xffffffff); in tg3_resume_cpu()
3626 tw32_f(cpu_base + CPU_MODE, 0x00000000); in tg3_resume_cpu()
3636 static int tg3_halt_cpu(struct tg3 *tp, u32 cpu_base) in tg3_halt_cpu() argument
3640 BUG_ON(cpu_base == TX_CPU_BASE && tg3_flag(tp, 5705_PLUS)); in tg3_halt_cpu()
3648 if (cpu_base == RX_CPU_BASE) { in tg3_halt_cpu()
3663 __func__, cpu_base == RX_CPU_BASE ? "RX" : "TX"); in tg3_halt_cpu()
3701 static int tg3_load_firmware_cpu(struct tg3 *tp, u32 cpu_base, in tg3_load_firmware_cpu() argument
3709 if (cpu_base == TX_CPU_BASE && tg3_flag(tp, 5705_PLUS)) { in tg3_load_firmware_cpu()
3726 err = tg3_halt_cpu(tp, cpu_base); in tg3_load_firmware_cpu()
3734 tw32(cpu_base + CPU_STATE, 0xffffffff); in tg3_load_firmware_cpu()
3735 tw32(cpu_base + CPU_MODE, in tg3_load_firmware_cpu()
3736 tr32(cpu_base + CPU_MODE) | CPU_MODE_HALT); in tg3_load_firmware_cpu()
3767 static int tg3_pause_cpu_and_set_pc(struct tg3 *tp, u32 cpu_base, u32 pc) in tg3_pause_cpu_and_set_pc() argument
3772 tw32(cpu_base + CPU_STATE, 0xffffffff); in tg3_pause_cpu_and_set_pc()
3773 tw32_f(cpu_base + CPU_PC, pc); in tg3_pause_cpu_and_set_pc()
3776 if (tr32(cpu_base + CPU_PC) == pc) in tg3_pause_cpu_and_set_pc()
3778 tw32(cpu_base + CPU_STATE, 0xffffffff); in tg3_pause_cpu_and_set_pc()
3779 tw32(cpu_base + CPU_MODE, CPU_MODE_HALT); in tg3_pause_cpu_and_set_pc()
3780 tw32_f(cpu_base + CPU_PC, pc); in tg3_pause_cpu_and_set_pc()
3905 unsigned long cpu_base, cpu_scratch_base, cpu_scratch_size; in tg3_load_tso_firmware() local
3922 cpu_base = RX_CPU_BASE; in tg3_load_tso_firmware()
3925 cpu_base = TX_CPU_BASE; in tg3_load_tso_firmware()
3930 err = tg3_load_firmware_cpu(tp, cpu_base, in tg3_load_tso_firmware()
3937 err = tg3_pause_cpu_and_set_pc(tp, cpu_base, in tg3_load_tso_firmware()
3942 __func__, tr32(cpu_base + CPU_PC), in tg3_load_tso_firmware()
3947 tg3_resume_cpu(tp, cpu_base); in tg3_load_tso_firmware()