Lines Matching refs:prev

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