Lines Matching refs:prob

83 	struct spu_problem __iomem *prob = spu->problem;  in check_spu_isolate()  local
94 return (in_be32(&prob->spu_status_R) & isolate_state) ? 1 : 0; in check_spu_isolate()
203 struct spu_problem __iomem *prob = spu->problem; in save_spu_runcntl() local
209 csa->prob.spu_runcntl_RW = in_be32(&prob->spu_runcntl_RW); in save_spu_runcntl()
222 struct spu_problem __iomem *prob = spu->problem; in save_spu_status() local
227 if ((in_be32(&prob->spu_status_R) & SPU_STATUS_RUNNING) == 0) { in save_spu_status()
228 csa->prob.spu_status_R = in_be32(&prob->spu_status_R); in save_spu_status()
232 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_STOP); in save_spu_status()
234 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in save_spu_status()
239 if ((in_be32(&prob->spu_status_R) & stopped) == 0) in save_spu_status()
240 csa->prob.spu_status_R = SPU_STATUS_RUNNING; in save_spu_status()
242 csa->prob.spu_status_R = in_be32(&prob->spu_status_R); in save_spu_status()
296 struct spu_problem __iomem *prob = spu->problem; in do_mfc_mssync() local
303 out_be64(&prob->spc_mssync_RW, 1UL); in do_mfc_mssync()
304 POLL_WHILE_TRUE(in_be64(&prob->spc_mssync_RW) & MS_SYNC_PENDING); in do_mfc_mssync()
368 struct spu_problem __iomem *prob = spu->problem; in save_ppu_querymask() local
374 csa->prob.dma_querymask_RW = in_be32(&prob->dma_querymask_RW); in save_ppu_querymask()
379 struct spu_problem __iomem *prob = spu->problem; in save_ppu_querytype() local
385 csa->prob.dma_querytype_RW = in_be32(&prob->dma_querytype_RW); in save_ppu_querytype()
390 struct spu_problem __iomem *prob = spu->problem; in save_ppu_tagstatus() local
398 csa->prob.dma_tagstatus_R = in_be32(&prob->dma_tagstatus_R); in save_ppu_tagstatus()
503 struct spu_problem __iomem *prob = spu->problem; in save_spu_npc() local
508 csa->prob.spu_npc_RW = in_be32(&prob->spu_npc_RW); in save_spu_npc()
587 struct spu_problem __iomem *prob = spu->problem; in save_ppu_mb_stat() local
592 csa->prob.mb_stat_R = in_be32(&prob->mb_stat_R); in save_ppu_mb_stat()
597 struct spu_problem __iomem *prob = spu->problem; in save_ppu_mb() local
602 csa->prob.pu_mb_R = in_be32(&prob->pu_mb_R); in save_ppu_mb()
769 struct spu_problem __iomem *prob = spu->problem; in send_mfc_dma() local
782 out_be32(&prob->mfc_lsa_W, ls_offset); in send_mfc_dma()
783 out_be64(&prob->mfc_ea_W, ea); in send_mfc_dma()
784 out_be64(&prob->mfc_union_W.all64, command.all64); in send_mfc_dma()
786 in_be32(&prob->mfc_union_W.by32.mfc_class_cmd32); in send_mfc_dma()
816 struct spu_problem __iomem *prob = spu->problem; in set_spu_npc() local
827 out_be32(&prob->spu_npc_RW, 0); in set_spu_npc()
833 struct spu_problem __iomem *prob = spu->problem; in set_signot1() local
845 out_be32(&prob->signal_notify1, addr64.ui[0]); in set_signot1()
851 struct spu_problem __iomem *prob = spu->problem; in set_signot2() local
863 out_be32(&prob->signal_notify2, addr64.ui[1]); in set_signot2()
885 struct spu_problem __iomem *prob = spu->problem; in set_ppu_querymask() local
892 out_be32(&prob->dma_querymask_RW, MFC_TAGID_TO_TAGMASK(0)); in set_ppu_querymask()
898 struct spu_problem __iomem *prob = spu->problem; in wait_tag_complete() local
911 POLL_WHILE_FALSE(in_be32(&prob->dma_tagstatus_R) & mask); in wait_tag_complete()
921 struct spu_problem __iomem *prob = spu->problem; in wait_spu_stopped() local
930 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & SPU_STATUS_RUNNING); in wait_spu_stopped()
940 struct spu_problem __iomem *prob = spu->problem; in check_save_status() local
950 return (in_be32(&prob->spu_status_R) != complete) ? 1 : 0; in check_save_status()
991 struct spu_problem __iomem *prob = spu->problem; in suspend_spe() local
1000 if (in_be32(&prob->spu_status_R) & SPU_STATUS_RUNNING) { in suspend_spe()
1001 if (in_be32(&prob->spu_status_R) & in suspend_spe()
1003 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in suspend_spe()
1006 if ((in_be32(&prob->spu_status_R) & in suspend_spe()
1008 || (in_be32(&prob->spu_status_R) & in suspend_spe()
1010 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_STOP); in suspend_spe()
1012 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in suspend_spe()
1014 out_be32(&prob->spu_runcntl_RW, 0x2); in suspend_spe()
1016 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in suspend_spe()
1019 if (in_be32(&prob->spu_status_R) & in suspend_spe()
1021 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_STOP); in suspend_spe()
1023 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in suspend_spe()
1033 struct spu_problem __iomem *prob = spu->problem; in clear_spu_status() local
1039 if (!(in_be32(&prob->spu_status_R) & SPU_STATUS_RUNNING)) { in clear_spu_status()
1040 if (in_be32(&prob->spu_status_R) & in clear_spu_status()
1045 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_RUNNABLE); in clear_spu_status()
1047 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in clear_spu_status()
1050 if ((in_be32(&prob->spu_status_R) & in clear_spu_status()
1052 || (in_be32(&prob->spu_status_R) & in clear_spu_status()
1057 out_be32(&prob->spu_runcntl_RW, 0x2); in clear_spu_status()
1059 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in clear_spu_status()
1136 (csa->prob.spu_status_R >> SPU_STOP_STATUS_SHIFT) & 0xFFFF; in setup_spu_status_part1()
1137 if ((csa->prob.spu_status_R & status_P_I) == status_P_I) { in setup_spu_status_part1()
1146 } else if ((csa->prob.spu_status_R & status_P_H) == status_P_H) { in setup_spu_status_part1()
1155 } else if ((csa->prob.spu_status_R & status_S_P) == status_S_P) { in setup_spu_status_part1()
1163 } else if ((csa->prob.spu_status_R & status_S_I) == status_S_I) { in setup_spu_status_part1()
1171 } else if ((csa->prob.spu_status_R & status_P) == status_P) { in setup_spu_status_part1()
1179 } else if ((csa->prob.spu_status_R & status_H) == status_H) { in setup_spu_status_part1()
1186 } else if ((csa->prob.spu_status_R & status_S) == status_S) { in setup_spu_status_part1()
1192 } else if ((csa->prob.spu_status_R & status_I) == status_I) { in setup_spu_status_part1()
1221 if (!(csa->prob.spu_status_R & mask)) { in setup_spu_status_part2()
1284 csa->lscsa->ppu_mb.slot[0] = csa->prob.pu_mb_R; in setup_ppu_mb()
1297 struct spu_problem __iomem *prob = spu->problem; in check_restore_status() local
1307 return (in_be32(&prob->spu_status_R) != complete) ? 1 : 0; in check_restore_status()
1323 struct spu_problem __iomem *prob = spu->problem; in restore_status_part1() local
1333 if (csa->prob.spu_status_R & mask) { in restore_status_part1()
1334 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_RUNNABLE); in restore_status_part1()
1336 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in restore_status_part1()
1343 struct spu_problem __iomem *prob = spu->problem; in restore_status_part2() local
1356 if (!(csa->prob.spu_status_R & mask)) { in restore_status_part2()
1357 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_RUNNABLE); in restore_status_part2()
1359 POLL_WHILE_FALSE(in_be32(&prob->spu_status_R) & in restore_status_part2()
1361 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_STOP); in restore_status_part2()
1363 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & in restore_status_part2()
1452 struct spu_problem __iomem *prob = spu->problem; in restore_ppu_querymask() local
1457 out_be32(&prob->dma_querymask_RW, csa->prob.dma_querymask_RW); in restore_ppu_querymask()
1463 struct spu_problem __iomem *prob = spu->problem; in restore_ppu_querytype() local
1468 out_be32(&prob->dma_querytype_RW, csa->prob.dma_querytype_RW); in restore_ppu_querytype()
1631 struct spu_problem __iomem *prob = spu->problem; in restore_spu_npc() local
1636 out_be32(&prob->spu_npc_RW, csa->prob.spu_npc_RW); in restore_spu_npc()
1659 struct spu_problem __iomem *prob = spu->problem; in check_ppu_mb_stat() local
1665 if ((csa->prob.mb_stat_R & 0xFF) == 0) { in check_ppu_mb_stat()
1666 in_be32(&prob->pu_mb_R); in check_ppu_mb_stat()
1679 if ((csa->prob.mb_stat_R & 0xFF0000) == 0) { in check_ppuint_mb_stat()
1713 struct spu_problem __iomem *prob = spu->problem; in restore_spu_runcntl() local
1719 if (csa->prob.spu_status_R & SPU_STATUS_RUNNING) { in restore_spu_runcntl()
1720 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_RUNNABLE); in restore_spu_runcntl()
1873 struct spu_problem __iomem *prob = spu->problem; in force_spu_isolate_exit() local
1877 out_be32(&prob->spu_runcntl_RW, SPU_RUNCNTL_STOP); in force_spu_isolate_exit()
1879 POLL_WHILE_TRUE(in_be32(&prob->spu_status_R) & SPU_STATUS_RUNNING); in force_spu_isolate_exit()
1888 out_be32(&prob->spu_runcntl_RW, 2); in force_spu_isolate_exit()
1890 POLL_WHILE_FALSE((in_be32(&prob->spu_status_R) in force_spu_isolate_exit()
1905 struct spu_problem __iomem *prob = spu->problem; in stop_spu_isolate() local
1907 if (in_be32(&prob->spu_status_R) & SPU_STATUS_ISOLATED_STATE) { in stop_spu_isolate()
2140 csa->prob.spu_runcntl_RW = SPU_RUNCNTL_STOP; in init_prob()
2141 csa->prob.mb_stat_R = 0x000400; in init_prob()