Lines Matching defs:grp
117 static void lck_mtx_ext_init(lck_mtx_ext_t * lck, lck_grp_t * grp,
122 lck->lck_mtx_grp = grp;
124 if (grp->lck_grp_attr & LCK_GRP_ATTR_STAT)
128 lck_mtx_t *lck_mtx_alloc_init(lck_grp_t * grp, lck_attr_t * attr)
133 lck_mtx_init(lck, grp, attr);
138 void lck_mtx_free(lck_mtx_t * lck, lck_grp_t * grp)
140 lck_mtx_destroy(lck, grp);
144 void lck_mtx_init(lck_mtx_t * lck, lck_grp_t * grp, lck_attr_t * attr)
158 lck_grp_reference(grp);
159 lck_grp_lckcnt_incr(grp, LCK_TYPE_MTX);
162 void lck_mtx_destroy(lck_mtx_t * lck, lck_grp_t * grp)
176 lck_grp_lckcnt_decr(grp, LCK_TYPE_MTX);
177 lck_grp_deallocate(grp);
181 void lck_mtx_init_ext(lck_mtx_t * lck, lck_mtx_ext_t * lck_ext, lck_grp_t * grp,
195 lck_grp_reference(grp);
196 lck_grp_lckcnt_incr(grp, LCK_TYPE_MTX);
200 lck_rw_t *lck_rw_alloc_init(lck_grp_t * grp, lck_attr_t * attr)
206 lck_rw_init(lck, grp, attr);
212 void lck_rw_destroy(lck_rw_t * lck, lck_grp_t * grp)
217 lck_grp_lckcnt_decr(grp, LCK_TYPE_RW);
218 lck_grp_deallocate(grp);
222 void lck_rw_free(lck_rw_t * lck, lck_grp_t * grp)
224 lck_rw_destroy(lck, grp);
228 void lck_rw_init(lck_rw_t * lck, lck_grp_t * grp, lck_attr_t * attr)
241 lck_grp_reference(grp);
242 lck_grp_lckcnt_incr(grp, LCK_TYPE_RW);
245 void lck_spin_destroy(lck_spin_t * lck, lck_grp_t * grp)
250 lck_grp_lckcnt_decr(grp, LCK_TYPE_SPIN);
251 lck_grp_deallocate(grp);
254 void lck_spin_init(lck_spin_t * lck, lck_grp_t * grp,
258 lck_grp_reference(grp);
259 lck_grp_lckcnt_incr(grp, LCK_TYPE_SPIN);
313 void lck_spin_free(lck_spin_t * lck, lck_grp_t * grp)
315 lck_spin_destroy(lck, grp);
330 lck_spin_t *lck_spin_alloc_init(lck_grp_t * grp, lck_attr_t * attr)
335 lck_spin_init(lck, grp, attr);