Lines Matching refs:prev
1777 static int quiece_spu(struct spu_state *prev, struct spu *spu) in quiece_spu() argument
1789 if (check_spu_isolate(prev, spu)) { /* Step 2. */ in quiece_spu()
1792 disable_interrupts(prev, spu); /* Step 3. */ in quiece_spu()
1793 set_watchdog_timer(prev, spu); /* Step 4. */ in quiece_spu()
1794 inhibit_user_access(prev, spu); /* Step 5. */ in quiece_spu()
1795 if (check_spu_isolate(prev, spu)) { /* Step 6. */ in quiece_spu()
1798 set_switch_pending(prev, spu); /* Step 7. */ in quiece_spu()
1799 save_mfc_cntl(prev, spu); /* Step 8. */ in quiece_spu()
1800 save_spu_runcntl(prev, spu); /* Step 9. */ in quiece_spu()
1801 save_mfc_sr1(prev, spu); /* Step 10. */ in quiece_spu()
1802 save_spu_status(prev, spu); /* Step 11. */ in quiece_spu()
1803 save_mfc_stopped_status(prev, spu); /* Step 12. */ in quiece_spu()
1804 halt_mfc_decr(prev, spu); /* Step 13. */ in quiece_spu()
1805 save_timebase(prev, spu); /* Step 14. */ in quiece_spu()
1806 remove_other_spu_access(prev, spu); /* Step 15. */ in quiece_spu()
1807 do_mfc_mssync(prev, spu); /* Step 16. */ in quiece_spu()
1808 issue_mfc_tlbie(prev, spu); /* Step 17. */ in quiece_spu()
1809 handle_pending_interrupts(prev, spu); /* Step 18. */ in quiece_spu()
1814 static void save_csa(struct spu_state *prev, struct spu *spu) in save_csa() argument
1821 save_mfc_queues(prev, spu); /* Step 19. */ in save_csa()
1822 save_ppu_querymask(prev, spu); /* Step 20. */ in save_csa()
1823 save_ppu_querytype(prev, spu); /* Step 21. */ in save_csa()
1824 save_ppu_tagstatus(prev, spu); /* NEW. */ in save_csa()
1825 save_mfc_csr_tsq(prev, spu); /* Step 22. */ in save_csa()
1826 save_mfc_csr_cmd(prev, spu); /* Step 23. */ in save_csa()
1827 save_mfc_csr_ato(prev, spu); /* Step 24. */ in save_csa()
1828 save_mfc_tclass_id(prev, spu); /* Step 25. */ in save_csa()
1829 set_mfc_tclass_id(prev, spu); /* Step 26. */ in save_csa()
1830 save_mfc_cmd(prev, spu); /* Step 26a - moved from 44. */ in save_csa()
1831 purge_mfc_queue(prev, spu); /* Step 27. */ in save_csa()
1832 wait_purge_complete(prev, spu); /* Step 28. */ in save_csa()
1833 setup_mfc_sr1(prev, spu); /* Step 30. */ in save_csa()
1834 save_spu_npc(prev, spu); /* Step 31. */ in save_csa()
1835 save_spu_privcntl(prev, spu); /* Step 32. */ in save_csa()
1836 reset_spu_privcntl(prev, spu); /* Step 33. */ in save_csa()
1837 save_spu_lslr(prev, spu); /* Step 34. */ in save_csa()
1838 reset_spu_lslr(prev, spu); /* Step 35. */ in save_csa()
1839 save_spu_cfg(prev, spu); /* Step 36. */ in save_csa()
1840 save_pm_trace(prev, spu); /* Step 37. */ in save_csa()
1841 save_mfc_rag(prev, spu); /* Step 38. */ in save_csa()
1842 save_ppu_mb_stat(prev, spu); /* Step 39. */ in save_csa()
1843 save_ppu_mb(prev, spu); /* Step 40. */ in save_csa()
1844 save_ppuint_mb(prev, spu); /* Step 41. */ in save_csa()
1845 save_ch_part1(prev, spu); /* Step 42. */ in save_csa()
1846 save_spu_mb(prev, spu); /* Step 43. */ in save_csa()
1847 reset_ch(prev, spu); /* Step 45. */ in save_csa()
1850 static void save_lscsa(struct spu_state *prev, struct spu *spu) in save_lscsa() argument
1858 resume_mfc_queue(prev, spu); /* Step 46. */ in save_lscsa()
1860 setup_mfc_slbs(prev, spu, spu_save_code, sizeof(spu_save_code)); in save_lscsa()
1861 set_switch_active(prev, spu); /* Step 48. */ in save_lscsa()
1862 enable_interrupts(prev, spu); /* Step 49. */ in save_lscsa()
1863 save_ls_16kb(prev, spu); /* Step 50. */ in save_lscsa()
1864 set_spu_npc(prev, spu); /* Step 51. */ in save_lscsa()
1865 set_signot1(prev, spu); /* Step 52. */ in save_lscsa()
1866 set_signot2(prev, spu); /* Step 53. */ in save_lscsa()
1867 send_save_code(prev, spu); /* Step 54. */ in save_lscsa()
1868 set_ppu_querymask(prev, spu); /* Step 55. */ in save_lscsa()
1869 wait_tag_complete(prev, spu); /* Step 56. */ in save_lscsa()
1870 wait_spu_stopped(prev, spu); /* Step 57. */ in save_lscsa()
1918 static void harvest(struct spu_state *prev, struct spu *spu) in harvest() argument
1926 disable_interrupts(prev, spu); /* Step 2. */ in harvest()
1927 inhibit_user_access(prev, spu); /* Step 3. */ in harvest()
1928 terminate_spu_app(prev, spu); /* Step 4. */ in harvest()
1929 set_switch_pending(prev, spu); /* Step 5. */ in harvest()
1931 remove_other_spu_access(prev, spu); /* Step 6. */ in harvest()
1932 suspend_mfc_and_halt_decr(prev, spu); /* Step 7. */ in harvest()
1933 wait_suspend_mfc_complete(prev, spu); /* Step 8. */ in harvest()
1934 if (!suspend_spe(prev, spu)) /* Step 9. */ in harvest()
1935 clear_spu_status(prev, spu); /* Step 10. */ in harvest()
1936 do_mfc_mssync(prev, spu); /* Step 11. */ in harvest()
1937 issue_mfc_tlbie(prev, spu); /* Step 12. */ in harvest()
1938 handle_pending_interrupts(prev, spu); /* Step 13. */ in harvest()
1939 purge_mfc_queue(prev, spu); /* Step 14. */ in harvest()
1940 wait_purge_complete(prev, spu); /* Step 15. */ in harvest()
1941 reset_spu_privcntl(prev, spu); /* Step 16. */ in harvest()
1942 reset_spu_lslr(prev, spu); /* Step 17. */ in harvest()
1943 setup_mfc_sr1(prev, spu); /* Step 18. */ in harvest()
1945 reset_ch_part1(prev, spu); /* Step 20. */ in harvest()
1946 reset_ch_part2(prev, spu); /* Step 21. */ in harvest()
1947 enable_interrupts(prev, spu); /* Step 22. */ in harvest()
1948 set_switch_active(prev, spu); /* Step 23. */ in harvest()
1949 set_mfc_tclass_id(prev, spu); /* Step 24. */ in harvest()
1950 resume_mfc_queue(prev, spu); /* Step 25. */ in harvest()
2024 static int __do_spu_save(struct spu_state *prev, struct spu *spu) in __do_spu_save() argument
2040 rc = quiece_spu(prev, spu); /* Steps 2-16. */ in __do_spu_save()
2045 harvest(prev, spu); in __do_spu_save()
2051 save_csa(prev, spu); /* Steps 17-43. */ in __do_spu_save()
2052 save_lscsa(prev, spu); /* Steps 44-53. */ in __do_spu_save()
2053 return check_save_status(prev, spu); /* Step 54. */ in __do_spu_save()
2094 int spu_save(struct spu_state *prev, struct spu *spu) in spu_save() argument
2099 rc = __do_spu_save(prev, spu); /* Steps 2-53. */ in spu_save()