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