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()
1793 lwpdir_t *ldp; in exitlwps() local
1797 for (ldp = p->p_lwpdir, i = 0; i < p->p_lwpdir_sz; i++, ldp++) { in exitlwps()
1798 lep = ldp->ld_entry; in exitlwps()
1959 lwpdir_t *ldp; in lwp_hash_in() local
1966 ldp = p->p_lwpfree; in lwp_hash_in()
1967 p->p_lwpfree = ldp->ld_next; in lwp_hash_in()
1968 ASSERT(ldp->ld_entry == NULL); in lwp_hash_in()
1969 ldp->ld_entry = lep; in lwp_hash_in()
1978 ldp->ld_next = *ldpp; in lwp_hash_in()
1979 *ldpp = ldp; in lwp_hash_in()
1986 t->t_dslot = (int)(ldp - p->p_lwpdir); in lwp_hash_in()
2004 lwpdir_t *ldp; in lwp_hash_out() local
2009 (ldp = *ldpp) != NULL; ldpp = &ldp->ld_next) { in lwp_hash_out()
2010 lep = ldp->ld_entry; in lwp_hash_out()
2013 *ldpp = ldp->ld_next; in lwp_hash_out()
2014 ldp->ld_entry = NULL; in lwp_hash_out()
2015 ldp->ld_next = p->p_lwpfree; in lwp_hash_out()
2016 p->p_lwpfree = ldp; in lwp_hash_out()
2031 lwpdir_t *ldp; in lwp_hash_lookup() local
2042 for (ldp = thp->th_list; ldp != NULL; ldp = ldp->ld_next) { in lwp_hash_lookup()
2043 if (ldp->ld_entry->le_lwpid == lwpid) in lwp_hash_lookup()
2044 return (ldp); in lwp_hash_lookup()
2060 lwpdir_t *ldp; in lwp_hash_lookup_and_lock() local
2081 for (ldp = thp->th_list; ldp != NULL; ldp = ldp->ld_next) { in lwp_hash_lookup_and_lock()
2082 if (ldp->ld_entry->le_lwpid == lwpid) { in lwp_hash_lookup_and_lock()
2084 return (ldp); in lwp_hash_lookup_and_lock()