Lines Matching refs:ldp

332 		lwpdir_t *ldp;  in lwp_create()  local
352 for (ldp = new_dir, i = 1; i < new_dirsz; i++, ldp++) in lwp_create()
353 ldp->ld_next = ldp + 1; in lwp_create()
398 for (ldp = old_dir, i = 0; i < old_dirsz; i++, ldp++) in lwp_create()
399 lwp_hash_in(p, ldp->ld_entry, in lwp_create()
1768 lwpdir_t *ldp; in exitlwps() local
1772 for (ldp = p->p_lwpdir, i = 0; i < p->p_lwpdir_sz; i++, ldp++) { in exitlwps()
1773 lep = ldp->ld_entry; in exitlwps()
1934 lwpdir_t *ldp; in lwp_hash_in() local
1941 ldp = p->p_lwpfree; in lwp_hash_in()
1942 p->p_lwpfree = ldp->ld_next; in lwp_hash_in()
1943 ASSERT(ldp->ld_entry == NULL); in lwp_hash_in()
1944 ldp->ld_entry = lep; in lwp_hash_in()
1953 ldp->ld_next = *ldpp; in lwp_hash_in()
1954 *ldpp = ldp; in lwp_hash_in()
1961 t->t_dslot = (int)(ldp - p->p_lwpdir); in lwp_hash_in()
1979 lwpdir_t *ldp; in lwp_hash_out() local
1984 (ldp = *ldpp) != NULL; ldpp = &ldp->ld_next) { in lwp_hash_out()
1985 lep = ldp->ld_entry; in lwp_hash_out()
1988 *ldpp = ldp->ld_next; in lwp_hash_out()
1989 ldp->ld_entry = NULL; in lwp_hash_out()
1990 ldp->ld_next = p->p_lwpfree; in lwp_hash_out()
1991 p->p_lwpfree = ldp; in lwp_hash_out()
2006 lwpdir_t *ldp; in lwp_hash_lookup() local
2017 for (ldp = thp->th_list; ldp != NULL; ldp = ldp->ld_next) { in lwp_hash_lookup()
2018 if (ldp->ld_entry->le_lwpid == lwpid) in lwp_hash_lookup()
2019 return (ldp); in lwp_hash_lookup()
2035 lwpdir_t *ldp; in lwp_hash_lookup_and_lock() local
2056 for (ldp = thp->th_list; ldp != NULL; ldp = ldp->ld_next) { in lwp_hash_lookup_and_lock()
2057 if (ldp->ld_entry->le_lwpid == lwpid) { in lwp_hash_lookup_and_lock()
2059 return (ldp); in lwp_hash_lookup_and_lock()