Lines Matching refs:evp
378 evch_gevent_free(evch_gevent_t *evp) in evch_gevent_free() argument
382 refcnt = (int32_t)atomic_dec_32_nv(&evp->ge_refcount); in evch_gevent_free()
384 if (evp->ge_destruct != NULL) { in evch_gevent_free()
385 evp->ge_destruct((void *)&(evp->ge_payload), in evch_gevent_free()
386 evp->ge_dstcookie); in evch_gevent_free()
388 kmem_free(evp, evp->ge_size); in evch_gevent_free()
636 evch_gevent_t *evp = GEVENT(ev); in evch_evq_pub() local
648 qep->q_objref = (void *)evp; in evch_evq_pub()
650 atomic_inc_32(&evp->ge_refcount); in evch_evq_pub()
703 evch_gevent_t *evp = GEVENT(ev); in evch_evq_evadd_dest() local
705 evp->ge_destruct = destructor; in evch_evq_evadd_dest()
706 evp->ge_dstcookie = cookie; in evch_evq_evadd_dest()
719 evch_gevent_t *evp; in evch_evq_evzalloc() local
724 evp = kmem_alloc_tryhard(rsize, &evsize, KM_NOSLEEP); in evch_evq_evzalloc()
727 evp = kmem_alloc(rsize, flag & EVCH_NOSLEEP ? KM_NOSLEEP : in evch_evq_evzalloc()
732 if (evp) { in evch_evq_evzalloc()
733 bzero(evp, rsize); in evch_evq_evzalloc()
734 evp->ge_size = ge_size; in evch_evq_evzalloc()
735 return (&evp->ge_payload); in evch_evq_evzalloc()
737 return (evp); in evch_evq_evzalloc()
855 evch_subq_deliver(void *evp, void *cookie) in evch_subq_deliver() argument
859 (void) evch_evq_pub(p->sd_queue, evp, EVCH_SLEEP); in evch_subq_deliver()
867 evch_kern_deliver(void *evp, void *cookie) in evch_kern_deliver() argument
869 sysevent_impl_t *ev = (sysevent_impl_t *)evp; in evch_kern_deliver()
879 evch_door_deliver(void *evp, void *cookie) in evch_door_deliver() argument
883 sysevent_impl_t *ev = (sysevent_impl_t *)evp; in evch_door_deliver()
1922 sysevent_impl_t *evp; in sysevent_evc_publish() local
1950 evp = sysevent_evc_alloc(class, subclass, pub, pub_sz, asz, km_flags); in sysevent_evc_publish()
1951 if (evp == NULL) { in sysevent_evc_publish()
1959 attr_offset = SE_ATTR_OFF(evp); in sysevent_evc_publish()
1960 patt = (caddr_t)evp + attr_offset; in sysevent_evc_publish()
1971 evp->seh_attr_off = attr_offset; in sysevent_evc_publish()
1972 SE_FLAG(evp) = SE_PACKED_BUF; in sysevent_evc_publish()
1974 return (evch_chpublish((evch_bind_t *)scp, evp, flags)); in sysevent_evc_publish()