Lines Matching refs:thing

169 	void *thing = NULL;  in prioctl64()  local
393 ASSERT(thing == NULL); in prioctl64()
394 thing = kmem_alloc(thingsize, KM_SLEEP); in prioctl64()
408 if (thing) { in prioctl64()
409 if (copyin(cmaddr, thing, thingsize)) { in prioctl64()
410 kmem_free(thing, thingsize); in prioctl64()
421 if (thing != NULL) in prioctl64()
422 kmem_free(thing, thingsize); in prioctl64()
452 proc_t *prp = thing; in prioctl64()
459 thing = NULL; in prioctl64()
465 user_t *userp = thing; in prioctl64()
473 thing = NULL; in prioctl64()
562 if (thing && thingsize != (Nlwp+1) * sizeof (id_t)) { in prioctl64()
563 kmem_free(thing, thingsize); in prioctl64()
564 thing = NULL; in prioctl64()
566 if (thing == NULL) { in prioctl64()
568 thing = kmem_alloc(thingsize, KM_NOSLEEP); in prioctl64()
570 if (thing == NULL) { in prioctl64()
575 idp = thing; in prioctl64()
576 thing = NULL; in prioctl64()
817 bzero(thing, thingsize); in prioctl64()
821 prgetprxregs(lwp, thing); in prioctl64()
825 if (copyout(thing, cmaddr, thingsize)) in prioctl64()
831 if (thing) { in prioctl64()
832 kmem_free(thing, thingsize); in prioctl64()
833 thing = NULL; in prioctl64()
842 else if (thing) { in prioctl64()
845 prsetprxregs(lwp, thing); in prioctl64()
849 if (thing) { in prioctl64()
850 kmem_free(thing, thingsize); in prioctl64()
851 thing = NULL; in prioctl64()
871 if (thing && thingsize != (Nlwp+1) * sizeof (prstatus_t)) { in prioctl64()
872 kmem_free(thing, thingsize); in prioctl64()
873 thing = NULL; in prioctl64()
875 if (thing == NULL) { in prioctl64()
877 thing = kmem_alloc(thingsize, KM_NOSLEEP); in prioctl64()
879 if (thing == NULL) { in prioctl64()
884 Bprsp = thing; in prioctl64()
885 thing = NULL; in prioctl64()
930 struct sigaction *sap = thing; in prioctl64()
939 thing = NULL; in prioctl64()
1146 if (thing && thingsize != in prioctl64()
1148 kmem_free(thing, thingsize); in prioctl64()
1149 thing = NULL; in prioctl64()
1151 if (thing == NULL) { in prioctl64()
1154 thing = kmem_alloc(thingsize, KM_NOSLEEP); in prioctl64()
1156 if (thing == NULL) { in prioctl64()
1161 pup = thing; in prioctl64()
1223 kmem_free(thing, thingsize); in prioctl64()
1224 thing = NULL; in prioctl64()
1275 if (thing && thingsize != (n+1) * sizeof (*ssd)) { in prioctl64()
1276 kmem_free(thing, thingsize); in prioctl64()
1277 thing = NULL; in prioctl64()
1279 if (thing == NULL) { in prioctl64()
1281 thing = kmem_alloc(thingsize, KM_NOSLEEP); in prioctl64()
1283 if (thing == NULL) { in prioctl64()
1290 ssd = thing; in prioctl64()
1291 thing = NULL; in prioctl64()
1310 gwindows_t *gwp = thing; in prioctl64()
1321 thing = NULL; in prioctl64()
1333 ASSERT(thing == NULL); in prioctl64()
1707 void *thing = NULL; in prioctl32() local
1956 ASSERT(thing == NULL); in prioctl32()
1957 thing = kmem_alloc(thingsize, KM_SLEEP); in prioctl32()
1971 if (thing) { in prioctl32()
1972 if (copyin(cmaddr, thing, thingsize)) { in prioctl32()
1973 kmem_free(thing, thingsize); in prioctl32()
1984 if (thing != NULL) in prioctl32()
1985 kmem_free(thing, thingsize); in prioctl32()
2015 proc_t *prp = thing; in prioctl32()
2022 thing = NULL; in prioctl32()
2028 user_t *userp = thing; in prioctl32()
2036 thing = NULL; in prioctl32()
2147 if (thing && thingsize != (Nlwp+1) * sizeof (id_t)) { in prioctl32()
2148 kmem_free(thing, thingsize); in prioctl32()
2149 thing = NULL; in prioctl32()
2151 if (thing == NULL) { in prioctl32()
2153 thing = kmem_alloc(thingsize, KM_NOSLEEP); in prioctl32()
2155 if (thing == NULL) { in prioctl32()
2160 idp = thing; in prioctl32()
2161 thing = NULL; in prioctl32()
2424 bzero(thing, thingsize); in prioctl32()
2428 prgetprxregs(lwp, thing); in prioctl32()
2434 copyout(thing, cmaddr, thingsize)) in prioctl32()
2436 if (thing) { in prioctl32()
2437 kmem_free(thing, thingsize); in prioctl32()
2438 thing = NULL; in prioctl32()
2449 else if (thing) { in prioctl32()
2452 prsetprxregs(lwp, thing); in prioctl32()
2456 if (thing) { in prioctl32()
2457 kmem_free(thing, thingsize); in prioctl32()
2458 thing = NULL; in prioctl32()
2483 if (thing) { in prioctl32()
2484 kmem_free(thing, thingsize); in prioctl32()
2485 thing = NULL; in prioctl32()
2493 if (thing && thingsize != (Nlwp+1) * sizeof (prstatus32_t)) { in prioctl32()
2494 kmem_free(thing, thingsize); in prioctl32()
2495 thing = NULL; in prioctl32()
2497 if (thing == NULL) { in prioctl32()
2499 thing = kmem_alloc(thingsize, KM_NOSLEEP); in prioctl32()
2501 if (thing == NULL) { in prioctl32()
2506 Bprsp = (prstatus32_t *)thing; in prioctl32()
2507 thing = NULL; in prioctl32()
2552 struct sigaction32 *sap = thing; in prioctl32()
2566 thing = NULL; in prioctl32()
2776 if (thing && thingsize != in prioctl32()
2778 kmem_free(thing, thingsize); in prioctl32()
2779 thing = NULL; in prioctl32()
2781 if (thing == NULL) { in prioctl32()
2784 thing = kmem_alloc(thingsize, KM_NOSLEEP); in prioctl32()
2786 if (thing == NULL) { in prioctl32()
2791 pup = (prhusage_t *)thing; in prioctl32()
2853 kmem_free(thing, thingsize); in prioctl32()
2854 thing = NULL; in prioctl32()
2915 if (thing && thingsize != (n+1) * sizeof (*ssd)) { in prioctl32()
2916 kmem_free(thing, thingsize); in prioctl32()
2917 thing = NULL; in prioctl32()
2919 if (thing == NULL) { in prioctl32()
2921 thing = kmem_alloc(thingsize, KM_NOSLEEP); in prioctl32()
2923 if (thing == NULL) { in prioctl32()
2930 ssd = thing; in prioctl32()
2931 thing = NULL; in prioctl32()
2950 gwindows32_t *gwp = thing; in prioctl32()
2966 thing = NULL; in prioctl32()
2978 ASSERT(thing == NULL); in prioctl32()