Lines Matching refs:prob
97 struct spu_problem __iomem *prob = spu->problem; in check_spu_isolate() local
108 return (in_be32(&prob->spu_status_R) & isolate_state) ? 1 : 0; in check_spu_isolate()
217 struct spu_problem __iomem *prob = spu->problem; in save_spu_runcntl() local
223 csa->prob.spu_runcntl_RW = in_be32(&prob->spu_runcntl_RW); in save_spu_runcntl()
236 struct spu_problem __iomem *prob = spu->problem; in save_spu_status() local
241 if ((in_be32(&prob->spu_status_R) & SPU_STATUS_RUNNING) == 0) { in save_spu_status()
242 csa->prob.spu_status_R = in_be32(&prob->spu_status_R); in save_spu_status()
246 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_STOP); in save_spu_status()
248 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in save_spu_status()
253 if ((in_be32(&prob->spu_status_R) & stopped) == 0) in save_spu_status()
254 csa->prob.spu_status_R = SPU_STATUS_RUNNING; in save_spu_status()
256 csa->prob.spu_status_R = in_be32(&prob->spu_status_R); in save_spu_status()
310 struct spu_problem __iomem *prob = spu->problem; in do_mfc_mssync() local
317 out_be64(&prob->spc_mssync_RW, 1UL); in do_mfc_mssync()
318 POLL_WHILE_TRUE(in_be64(&prob->spc_mssync_RW) & MS_SYNC_PENDING); in do_mfc_mssync()
382 struct spu_problem __iomem *prob = spu->problem; in save_ppu_querymask() local
388 csa->prob.dma_querymask_RW = in_be32(&prob->dma_querymask_RW); in save_ppu_querymask()
393 struct spu_problem __iomem *prob = spu->problem; in save_ppu_querytype() local
399 csa->prob.dma_querytype_RW = in_be32(&prob->dma_querytype_RW); in save_ppu_querytype()
404 struct spu_problem __iomem *prob = spu->problem; in save_ppu_tagstatus() local
412 csa->prob.dma_tagstatus_R = in_be32(&prob->dma_tagstatus_R); in save_ppu_tagstatus()
517 struct spu_problem __iomem *prob = spu->problem; in save_spu_npc() local
522 csa->prob.spu_npc_RW = in_be32(&prob->spu_npc_RW); in save_spu_npc()
601 struct spu_problem __iomem *prob = spu->problem; in save_ppu_mb_stat() local
606 csa->prob.mb_stat_R = in_be32(&prob->mb_stat_R); in save_ppu_mb_stat()
611 struct spu_problem __iomem *prob = spu->problem; in save_ppu_mb() local
616 csa->prob.pu_mb_R = in_be32(&prob->pu_mb_R); in save_ppu_mb()
783 struct spu_problem __iomem *prob = spu->problem; in send_mfc_dma() local
796 out_be32(&prob->mfc_lsa_W, ls_offset); in send_mfc_dma()
797 out_be64(&prob->mfc_ea_W, ea); in send_mfc_dma()
798 out_be64(&prob->mfc_union_W.all64, command.all64); in send_mfc_dma()
800 in_be32(&prob->mfc_union_W.by32.mfc_class_cmd32); in send_mfc_dma()
830 struct spu_problem __iomem *prob = spu->problem; in set_spu_npc() local
841 out_be32(&prob->spu_npc_RW, 0); in set_spu_npc()
847 struct spu_problem __iomem *prob = spu->problem; in set_signot1() local
859 out_be32(&prob->signal_notify1, addr64.ui[0]); in set_signot1()
865 struct spu_problem __iomem *prob = spu->problem; in set_signot2() local
877 out_be32(&prob->signal_notify2, addr64.ui[1]); in set_signot2()
899 struct spu_problem __iomem *prob = spu->problem; in set_ppu_querymask() local
906 out_be32(&prob->dma_querymask_RW, MFC_TAGID_TO_TAGMASK(0)); in set_ppu_querymask()
912 struct spu_problem __iomem *prob = spu->problem; in wait_tag_complete() local
925 POLL_WHILE_FALSE(in_be32(&prob->dma_tagstatus_R) & mask); in wait_tag_complete()
935 struct spu_problem __iomem *prob = spu->problem; in wait_spu_stopped() local
944 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & SPU_STATUS_RUNNING); in wait_spu_stopped()
954 struct spu_problem __iomem *prob = spu->problem; in check_save_status() local
964 return (in_be32(&prob->spu_status_R) != complete) ? 1 : 0; in check_save_status()
1005 struct spu_problem __iomem *prob = spu->problem; in suspend_spe() local
1014 if (in_be32(&prob->spu_status_R) & SPU_STATUS_RUNNING) { in suspend_spe()
1015 if (in_be32(&prob->spu_status_R) & in suspend_spe()
1017 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in suspend_spe()
1020 if ((in_be32(&prob->spu_status_R) & in suspend_spe()
1022 || (in_be32(&prob->spu_status_R) & in suspend_spe()
1024 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_STOP); in suspend_spe()
1026 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in suspend_spe()
1028 out_be32(&prob->spu_runcntl_RW, 0x2); in suspend_spe()
1030 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in suspend_spe()
1033 if (in_be32(&prob->spu_status_R) & in suspend_spe()
1035 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_STOP); in suspend_spe()
1037 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in suspend_spe()
1047 struct spu_problem __iomem *prob = spu->problem; in clear_spu_status() local
1053 if (!(in_be32(&prob->spu_status_R) & SPU_STATUS_RUNNING)) { in clear_spu_status()
1054 if (in_be32(&prob->spu_status_R) & in clear_spu_status()
1059 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_RUNNABLE); in clear_spu_status()
1061 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in clear_spu_status()
1064 if ((in_be32(&prob->spu_status_R) & in clear_spu_status()
1066 || (in_be32(&prob->spu_status_R) & in clear_spu_status()
1071 out_be32(&prob->spu_runcntl_RW, 0x2); in clear_spu_status()
1073 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in clear_spu_status()
1150 (csa->prob.spu_status_R >> SPU_STOP_STATUS_SHIFT) & 0xFFFF; in setup_spu_status_part1()
1151 if ((csa->prob.spu_status_R & status_P_I) == status_P_I) { in setup_spu_status_part1()
1160 } else if ((csa->prob.spu_status_R & status_P_H) == status_P_H) { in setup_spu_status_part1()
1169 } else if ((csa->prob.spu_status_R & status_S_P) == status_S_P) { in setup_spu_status_part1()
1177 } else if ((csa->prob.spu_status_R & status_S_I) == status_S_I) { in setup_spu_status_part1()
1185 } else if ((csa->prob.spu_status_R & status_P) == status_P) { in setup_spu_status_part1()
1193 } else if ((csa->prob.spu_status_R & status_H) == status_H) { in setup_spu_status_part1()
1200 } else if ((csa->prob.spu_status_R & status_S) == status_S) { in setup_spu_status_part1()
1206 } else if ((csa->prob.spu_status_R & status_I) == status_I) { in setup_spu_status_part1()
1235 if (!(csa->prob.spu_status_R & mask)) { in setup_spu_status_part2()
1298 csa->lscsa->ppu_mb.slot[0] = csa->prob.pu_mb_R; in setup_ppu_mb()
1311 struct spu_problem __iomem *prob = spu->problem; in check_restore_status() local
1321 return (in_be32(&prob->spu_status_R) != complete) ? 1 : 0; in check_restore_status()
1337 struct spu_problem __iomem *prob = spu->problem; in restore_status_part1() local
1347 if (csa->prob.spu_status_R & mask) { in restore_status_part1()
1348 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_RUNNABLE); in restore_status_part1()
1350 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in restore_status_part1()
1357 struct spu_problem __iomem *prob = spu->problem; in restore_status_part2() local
1370 if (!(csa->prob.spu_status_R & mask)) { in restore_status_part2()
1371 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_RUNNABLE); in restore_status_part2()
1373 POLL_WHILE_FALSE(in_be32(&prob->spu_status_R) & in restore_status_part2()
1375 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_STOP); in restore_status_part2()
1377 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in restore_status_part2()
1466 struct spu_problem __iomem *prob = spu->problem; in restore_ppu_querymask() local
1471 out_be32(&prob->dma_querymask_RW, csa->prob.dma_querymask_RW); in restore_ppu_querymask()
1477 struct spu_problem __iomem *prob = spu->problem; in restore_ppu_querytype() local
1482 out_be32(&prob->dma_querytype_RW, csa->prob.dma_querytype_RW); in restore_ppu_querytype()
1645 struct spu_problem __iomem *prob = spu->problem; in restore_spu_npc() local
1650 out_be32(&prob->spu_npc_RW, csa->prob.spu_npc_RW); in restore_spu_npc()
1673 struct spu_problem __iomem *prob = spu->problem; in check_ppu_mb_stat() local
1680 if ((csa->prob.mb_stat_R & 0xFF) == 0) { in check_ppu_mb_stat()
1681 dummy = in_be32(&prob->pu_mb_R); in check_ppu_mb_stat()
1695 if ((csa->prob.mb_stat_R & 0xFF0000) == 0) { in check_ppuint_mb_stat()
1729 struct spu_problem __iomem *prob = spu->problem; in restore_spu_runcntl() local
1735 if (csa->prob.spu_status_R & SPU_STATUS_RUNNING) { in restore_spu_runcntl()
1736 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_RUNNABLE); in restore_spu_runcntl()
1889 struct spu_problem __iomem *prob = spu->problem; in force_spu_isolate_exit() local
1893 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_STOP); in force_spu_isolate_exit()
1895 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & SPU_STATUS_RUNNING); in force_spu_isolate_exit()
1904 out_be32(&prob->spu_runcntl_RW, 2); in force_spu_isolate_exit()
1906 POLL_WHILE_FALSE((in_be32(&prob->spu_status_R) in force_spu_isolate_exit()
1921 struct spu_problem __iomem *prob = spu->problem; in stop_spu_isolate() local
1923 if (in_be32(&prob->spu_status_R) & SPU_STATUS_ISOLATED_STATE) { in stop_spu_isolate()
2156 csa->prob.spu_runcntl_RW = SPU_RUNCNTL_STOP; in init_prob()
2157 csa->prob.mb_stat_R = 0x000400; in init_prob()