Lines Matching defs:bp
258 contract_bucket_t *bp;
263 bp = &contract_hash[hash];
264 MUTEX_LOCK(&bp->cb_lock);
265 return (bp);
269 contract_release_bucket(contract_bucket_t *bp)
271 assert(MUTEX_HELD(&bp->cb_lock));
272 MUTEX_UNLOCK(&bp->cb_lock);
276 contract_lookup(contract_bucket_t *bp, ctid_t ctid)
280 assert(MUTEX_HELD(&bp->cb_lock));
282 if (bp->cb_list == NULL)
285 for (ce = uu_list_first(bp->cb_list); ce != NULL;
286 ce = uu_list_next(bp->cb_list, ce)) {
295 contract_insert(contract_bucket_t *bp, contract_entry_t *ce)
299 if (bp->cb_list == NULL)
300 bp->cb_list = startd_list_create(contract_list_pool, bp, 0);
303 r = uu_list_insert_before(bp->cb_list, NULL, ce);
320 contract_bucket_t *bp;
323 bp = contract_hold_bucket(ctid);
324 assert(contract_lookup(bp, ctid) == NULL);
329 contract_insert(bp, ce);
331 contract_release_bucket(bp);
337 contract_bucket_t *bp;
340 bp = contract_hold_bucket(ctid);
342 ce = contract_lookup(bp, ctid);
344 uu_list_remove(bp->cb_list, ce);
348 contract_release_bucket(bp);
360 contract_bucket_t *bp;
364 bp = contract_hold_bucket(ctid);
365 ce = contract_lookup(bp, ctid);
368 contract_release_bucket(bp);