Lines Matching refs:lrp
444 DB_LOCKREGION *lrp; local
453 lrp = lt->region;
454 if ((u_int32_t)lock_mode >= lrp->nmodes) {
461 if ((newl = SH_TAILQ_FIRST(&lrp->free_locks, __db_lock)) == NULL) {
464 lrp = lt->region;
465 newl = SH_TAILQ_FIRST(&lrp->free_locks, __db_lock);
470 SH_TAILQ_REMOVE(&lrp->free_locks, newl, links, __db_lock);
480 lrp = lt->region; /* getobj might have grown */
524 SH_TAILQ_INSERT_HEAD(&lrp->free_locks,
563 SH_TAILQ_INSERT_HEAD(&lrp->free_locks, newl, links, __db_lock);
577 lrp = lt->region;
591 lrp->nconflicts++;
598 if (lrp->detect == DB_LOCK_NORUN)
606 if (lrp->detect != DB_LOCK_NORUN && !no_dd)
607 (void)lock_detect(lt, 0, lrp->detect);
621 SH_TAILQ_INSERT_HEAD(&lrp->free_locks, newl, links,
659 SH_TAILQ_INSERT_HEAD(&lrp->free_locks, newl, links, __db_lock);
678 DB_LOCKREGION *lrp; local
680 lrp = lt->region;
684 dbt, sh_obj, lrp->table_size, __lock_ohash, __lock_cmp);
792 DB_LOCKREGION *lrp; local
798 lrp = lt->region;
803 lrp->table_size, __lock_ohash, __lock_cmp);
807 sh_obj, lrp->table_size, __lock_locker_hash,
819 SH_TAILQ_FIRST(&lrp->free_objs, __db_lockobj)) == NULL) {
822 lrp = lt->region;
823 sh_obj = SH_TAILQ_FIRST(&lrp->free_objs, __db_lockobj);
838 lrp = lt->region;
840 sh_obj = SH_TAILQ_FIRST(&lrp->free_objs,
849 SH_TAILQ_REMOVE(&lrp->free_objs, sh_obj, links, __db_lockobj);
860 __db_lockobj, links, sh_obj, lrp->table_size, __lock_lhash);
863 lrp->nlockers++;