Lines Matching refs:lp
51 struct ddloc_mem *lp, *flp; in telldir() local
71 LIST_FOREACH(lp, &dirp->dd_td->td_locq, loc_lqe) { in telldir()
72 if (lp->loc_seek == dirp->dd_seek) { in telldir()
74 flp = lp; in telldir()
75 if (lp->loc_loc == dirp->dd_loc) in telldir()
78 lp = NULL; in telldir()
82 if (lp == NULL) { in telldir()
83 lp = malloc(sizeof(struct ddloc_mem)); in telldir()
84 if (lp == NULL) { in telldir()
89 lp->loc_index = dirp->dd_td->td_loccnt++; in telldir()
90 lp->loc_seek = dirp->dd_seek; in telldir()
91 lp->loc_loc = dirp->dd_loc; in telldir()
93 LIST_INSERT_BEFORE(flp, lp, loc_lqe); in telldir()
95 LIST_INSERT_HEAD(&dirp->dd_td->td_locq, lp, loc_lqe); in telldir()
102 ddloc.i.index = lp->loc_index; in telldir()
117 struct ddloc_mem *lp; in _seekdir() local
129 LIST_FOREACH(lp, &dirp->dd_td->td_locq, loc_lqe) { in _seekdir()
130 if (lp->loc_index == ddloc.i.index) in _seekdir()
133 if (lp == NULL) in _seekdir()
136 loc_seek = lp->loc_seek; in _seekdir()
137 loc_loc = lp->loc_loc; in _seekdir()
176 struct ddloc_mem *lp; in _fixtelldir() local
178 lp = LIST_FIRST(&dirp->dd_td->td_locq); in _fixtelldir()
179 if (lp != NULL) { in _fixtelldir()
180 if (lp->loc_loc == oldloc && in _fixtelldir()
181 lp->loc_seek == oldseek) { in _fixtelldir()
182 lp->loc_seek = dirp->dd_seek; in _fixtelldir()
183 lp->loc_loc = dirp->dd_loc; in _fixtelldir()
194 struct ddloc_mem *lp; in _reclaim_telldir() local
197 lp = LIST_FIRST(&dirp->dd_td->td_locq); in _reclaim_telldir()
198 while (lp != NULL) { in _reclaim_telldir()
199 templp = lp; in _reclaim_telldir()
200 lp = LIST_NEXT(lp, loc_lqe); in _reclaim_telldir()