Lines Matching refs:lle

360 static void	witness_lock_list_free(struct lock_list_entry *lle);
1054 struct lock_list_entry *lock_list, *lle;
1159 lle = lock_list->ll_next;
1165 if (lle == NULL)
1167 plock = &lle->ll_children[lle->ll_count - 1];
1215 for (j = 0, lle = lock_list; lle != NULL; lle = lle->ll_next) {
1216 for (i = lle->ll_count - 1; i >= 0; i--, j++) {
1219 lock1 = &lle->ll_children[i];
1336 lock2 = &lle->ll_children[i];
1340 if (i == 0 && lle->ll_next != NULL) {
1341 lle = lle->ll_next;
1342 i = lle->ll_count - 1;
1394 struct lock_list_entry **lock_list, *lle;
1428 lle = *lock_list;
1429 if (lle == NULL || lle->ll_count == LOCK_NCHILDREN) {
1430 lle = witness_lock_list_get();
1431 if (lle == NULL)
1433 lle->ll_next = *lock_list;
1434 CTR3(KTR_WITNESS, "%s: pid %d added lle %p", __func__,
1435 td->td_proc->p_pid, lle);
1436 *lock_list = lle;
1438 instance = &lle->ll_children[lle->ll_count++];
1446 CTR4(KTR_WITNESS, "%s: pid %d added %s as lle[%d]", __func__,
1447 td->td_proc->p_pid, lock->lo_name, lle->ll_count - 1);
1544 struct lock_list_entry **lock_list, *lle;
1561 lle = *lock_list;
1619 CTR4(KTR_WITNESS, "%s: pid %d removed %s from lle[%d]", __func__,
1638 if (*lock_list == lle) {
1639 if (lle->ll_next == NULL)
1642 lle = *lock_list;
1643 *lock_list = lle->ll_next;
1644 CTR3(KTR_WITNESS, "%s: pid %d removed lle %p", __func__,
1645 td->td_proc->p_pid, lle);
1646 witness_lock_list_free(lle);
1653 struct lock_list_entry *lle;
1656 lle = td->td_sleeplocks;
1657 if (lle == NULL || panicstr != NULL)
1659 if (lle->ll_count != 0) {
1660 for (n = 0; lle != NULL; lle = lle->ll_next)
1661 for (i = lle->ll_count - 1; i >= 0; i--) {
1666 witness_list_lock(&lle->ll_children[i], printf);
1672 witness_lock_list_free(lle);
1685 struct lock_list_entry *lock_list, *lle;
1695 for (lle = td->td_sleeplocks; lle != NULL; lle = lle->ll_next)
1696 for (i = lle->ll_count - 1; i >= 0; i--) {
1697 lock1 = &lle->ll_children[i];
2098 struct lock_list_entry *lle;
2103 lle = w_lock_list_free;
2104 if (lle == NULL) {
2110 w_lock_list_free = lle->ll_next;
2112 bzero(lle, sizeof(*lle));
2113 return (lle);
2117 witness_lock_list_free(struct lock_list_entry *lle)
2121 lle->ll_next = w_lock_list_free;
2122 w_lock_list_free = lle;
2129 struct lock_list_entry *lle;
2133 for (lle = list; lle != NULL; lle = lle->ll_next)
2134 for (i = lle->ll_count - 1; i >= 0; i--) {
2135 instance = &lle->ll_children[i];
2185 struct lock_list_entry *lle;
2189 for (lle = *lock_list; lle != NULL; lle = lle->ll_next)
2190 for (i = lle->ll_count - 1; i >= 0; i--) {
2191 witness_list_lock(&lle->ll_children[i], prnt);