Lines Matching refs:PSpaces
68 static pspace_t **PSpaces; /* p-spaces of each warrior. */ variable
156 if ( Core_Mem && Queue_Mem && War_Tab && PSpaces ) { in sim_alloc_bufs2()
244 if (PSpaces) { in free_pspaces()
246 pspace_free(PSpaces[i]); in free_pspaces()
248 free(PSpaces); in free_pspaces()
252 PSpaces = NULL; in free_pspaces()
262 PSpaces = NULL; in alloc_pspaces()
266 if (( PSpaces = (pspace_t**)malloc(sizeof(pspace_t*)*nwars))) { in alloc_pspaces()
268 for (i=0; i<nwars; i++) { PSpaces[i] = NULL; } in alloc_pspaces()
270 PSpaces[i] = pspace_alloc(pspacesize); in alloc_pspaces()
271 success = success && PSpaces[i] != NULL; in alloc_pspaces()
299 return PSpaces; in sim_get_pspaces()
305 return PSpaces[war_id]; in sim_get_pspace()
327 pspace_clear(PSpaces[i]); in sim_clear_pspaces()
328 pspace_set(PSpaces[i], 0, Coresize-1); in sim_clear_pspaces()
337 pspace_privatise(PSpaces[i]); in sim_reset_pspaces()
404 if ( !Core_Mem || !Queue_Mem || !War_Tab || !PSpaces ) return -1; in sim_mw()
414 pspace_set( PSpaces[i], 0, nalive); in sim_mw()
417 pspace_set( PSpaces[death_tab[i]], 0, 0); in sim_mw()
632 pspaces_ = PSpaces; in sim_proper()