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