Lines Matching refs:gwin

181 	gwindows_t *gwin = NULL;	/* to hold windows */  in getsetcontext()  local
280 gwin = kmem_zalloc(sizeof (gwindows_t), KM_SLEEP); in getsetcontext()
282 &gwin->wbcnt, sizeof (gwin->wbcnt))) { in getsetcontext()
283 kmem_free(gwin, sizeof (gwindows_t)); in getsetcontext()
286 if (gwin->wbcnt < 0 || gwin->wbcnt > nwindows) { in getsetcontext()
287 kmem_free(gwin, sizeof (gwindows_t)); in getsetcontext()
290 gwin_size = gwin->wbcnt * sizeof (struct rwindow) + in getsetcontext()
293 copyin(uc.uc_mcontext.gwins, gwin, gwin_size)) { in getsetcontext()
294 kmem_free(gwin, sizeof (gwindows_t)); in getsetcontext()
297 uc.uc_mcontext.gwins = gwin; in getsetcontext()
308 if (gwin) in getsetcontext()
309 kmem_free(gwin, sizeof (gwindows_t)); in getsetcontext()
326 if (gwin) in getsetcontext()
327 kmem_free(gwin, sizeof (gwindows_t)); in getsetcontext()
430 gwindows32_t *gwin = NULL; /* to hold windows */ in getsetcontext32() local
528 gwin = kmem_zalloc(sizeof (gwindows32_t), KM_SLEEP); in getsetcontext32()
530 &gwin->wbcnt, sizeof (gwin->wbcnt))) { in getsetcontext32()
531 kmem_free(gwin, sizeof (gwindows32_t)); in getsetcontext32()
534 if (gwin->wbcnt < 0 || gwin->wbcnt > nwindows) { in getsetcontext32()
535 kmem_free(gwin, sizeof (gwindows32_t)); in getsetcontext32()
538 gwin_size = gwin->wbcnt * sizeof (struct rwindow32) + in getsetcontext32()
543 gwin, gwin_size)) { in getsetcontext32()
544 kmem_free(gwin, sizeof (gwindows32_t)); in getsetcontext32()
562 if (gwin) in getsetcontext32()
563 kmem_free(gwin, sizeof (gwindows32_t)); in getsetcontext32()
578 if (gwin) in getsetcontext32()
579 setgwins32(lwp, gwin); in getsetcontext32()
587 if (gwin) in getsetcontext32()
588 kmem_free(gwin, sizeof (gwindows32_t)); in getsetcontext32()