Lines Matching refs:tpdp
434 struct tdirent *tpdp;
473 tpdp = tmpfs_hash_lookup(nm, dir, 0, &tnp);
474 if (tpdp == NULL) {
490 tmpfs_hash_out(tpdp);
493 * Take tpdp out of the directory list.
495 ASSERT(tpdp->td_next != tpdp);
496 ASSERT(tpdp->td_prev != tpdp);
497 if (tpdp->td_prev) {
498 tpdp->td_prev->td_next = tpdp->td_next;
500 if (tpdp->td_next) {
501 tpdp->td_next->td_prev = tpdp->td_prev;
505 * If the roving slot pointer happens to match tpdp,
508 if (dir->tn_dir->td_prev == tpdp) {
509 dir->tn_dir->td_prev = tpdp->td_prev;
511 ASSERT(tpdp->td_next != tpdp);
512 ASSERT(tpdp->td_prev != tpdp);
515 * tpdp points to the correct directory entry
517 namelen = strlen(tpdp->td_name) + 1;
519 tmp_memfree(tpdp, sizeof (struct tdirent) + namelen);
906 struct tdirent *tdp, *tpdp;
958 tpdp = dir->tn_dir->td_prev;
962 while (tpdp->td_next != NULL && (tpdp->td_next->td_offset -
963 tpdp->td_offset) <= 1) {
964 ASSERT(tpdp->td_next != tpdp);
965 ASSERT(tpdp->td_prev != tpdp);
966 ASSERT(tpdp->td_next->td_offset > tpdp->td_offset);
967 tpdp = tpdp->td_next;
969 tdp->td_offset = tpdp->td_offset + 1;
983 if (tpdp->td_next == NULL && tpdp->td_offset > 2 * dir->tn_dirents)
988 ASSERT(tpdp->td_next != tpdp);
989 ASSERT(tpdp->td_prev != tpdp);
991 tdp->td_next = tpdp->td_next;
995 tdp->td_prev = tpdp;
996 tpdp->td_next = tdp;
1000 ASSERT(tpdp->td_next != tpdp);
1001 ASSERT(tpdp->td_prev != tpdp);