Lines Matching refs:spu
4114 struct spu *spu; member
4127 struct spu *spu; in xmon_register_spus() local
4129 list_for_each_entry(spu, list, full_list) { in xmon_register_spus()
4130 if (spu->number >= XMON_NUM_SPUS) { in xmon_register_spus()
4135 spu_info[spu->number].spu = spu; in xmon_register_spus()
4136 spu_info[spu->number].stopped_ok = 0; in xmon_register_spus()
4137 spu_info[spu->number].dump_addr = (unsigned long) in xmon_register_spus()
4138 spu_info[spu->number].spu->local_store; in xmon_register_spus()
4144 struct spu *spu; in stop_spus() local
4149 if (!spu_info[i].spu) in stop_spus()
4156 spu = spu_info[i].spu; in stop_spus()
4159 in_be32(&spu->problem->spu_runcntl_RW); in stop_spus()
4161 tmp = spu_mfc_sr1_get(spu); in stop_spus()
4165 spu_mfc_sr1_set(spu, tmp); in stop_spus()
4185 struct spu *spu; in restart_spus() local
4189 if (!spu_info[i].spu) in restart_spus()
4202 spu = spu_info[i].spu; in restart_spus()
4203 spu_mfc_sr1_set(spu, spu_info[i].saved_mfc_sr1_RW); in restart_spus()
4204 out_be32(&spu->problem->spu_runcntl_RW, in restart_spus()
4240 static void dump_spu_fields(struct spu *spu) in dump_spu_fields() argument
4242 printf("Dumping spu fields at address %p:\n", spu); in dump_spu_fields()
4244 DUMP_FIELD(spu, "0x%x", number); in dump_spu_fields()
4245 DUMP_FIELD(spu, "%s", name); in dump_spu_fields()
4246 DUMP_FIELD(spu, "0x%lx", local_store_phys); in dump_spu_fields()
4247 DUMP_FIELD(spu, "0x%p", local_store); in dump_spu_fields()
4248 DUMP_FIELD(spu, "0x%lx", ls_size); in dump_spu_fields()
4249 DUMP_FIELD(spu, "0x%x", node); in dump_spu_fields()
4250 DUMP_FIELD(spu, "0x%lx", flags); in dump_spu_fields()
4251 DUMP_FIELD(spu, "%llu", class_0_pending); in dump_spu_fields()
4252 DUMP_FIELD(spu, "0x%llx", class_0_dar); in dump_spu_fields()
4253 DUMP_FIELD(spu, "0x%llx", class_1_dar); in dump_spu_fields()
4254 DUMP_FIELD(spu, "0x%llx", class_1_dsisr); in dump_spu_fields()
4255 DUMP_FIELD(spu, "0x%x", irqs[0]); in dump_spu_fields()
4256 DUMP_FIELD(spu, "0x%x", irqs[1]); in dump_spu_fields()
4257 DUMP_FIELD(spu, "0x%x", irqs[2]); in dump_spu_fields()
4258 DUMP_FIELD(spu, "0x%x", slb_replace); in dump_spu_fields()
4259 DUMP_FIELD(spu, "%d", pid); in dump_spu_fields()
4260 DUMP_FIELD(spu, "0x%p", mm); in dump_spu_fields()
4261 DUMP_FIELD(spu, "0x%p", ctx); in dump_spu_fields()
4262 DUMP_FIELD(spu, "0x%p", rq); in dump_spu_fields()
4263 DUMP_FIELD(spu, "0x%llx", timestamp); in dump_spu_fields()
4264 DUMP_FIELD(spu, "0x%lx", problem_phys); in dump_spu_fields()
4265 DUMP_FIELD(spu, "0x%p", problem); in dump_spu_fields()
4267 in_be32(&spu->problem->spu_runcntl_RW)); in dump_spu_fields()
4269 in_be32(&spu->problem->spu_status_R)); in dump_spu_fields()
4271 in_be32(&spu->problem->spu_npc_RW)); in dump_spu_fields()
4272 DUMP_FIELD(spu, "0x%p", priv2); in dump_spu_fields()
4273 DUMP_FIELD(spu, "0x%p", pdata); in dump_spu_fields()
4288 ls_addr = (unsigned long)spu_info[num].spu->local_store; in dump_spu_ls()
4343 if (num >= XMON_NUM_SPUS || !spu_info[num].spu) { in do_spu_cmd()
4350 dump_spu_fields(spu_info[num].spu); in do_spu_cmd()