Lines Matching defs:l

83  * | l +-------------------------+
195 #define inslist(lh, l) if ((*(lh))) { \
196 (*(lh))->l_prev->l_next = (l); \
197 (l)->l_next = (*(lh)); \
198 (l)->l_prev = (*(lh))->l_prev; \
199 (*(lh))->l_prev = (l); \
201 (l)->l_next = (l); \
202 (l)->l_prev = (l); \
203 (*(lh)) = l; \
206 #define remlist(lh, l) \
207 if ((l)->l_next == (l)) { \
208 if (*(lh) != (l) || (l)->l_prev != (l)) \
212 if (*(lh) == (l)) \
213 *(lh) = (l)->l_next; \
214 (l)->l_prev->l_next = (l)->l_next; \
215 (l)->l_next->l_prev = (l)->l_prev; \
314 lb_me_t *l;
321 l = lfreelist;
323 return ((caddr_t)l);
641 lb_me_t **lh, *l, *lnext;
656 l = *lh;
660 lnext = l->l_next;
661 if (l->l_flags & LB_ISCANCELLED) {
662 remlist(lh, l);
663 bzero((caddr_t)l, sizeof (lb_me_t));
664 l->l_next = lfreelist;
665 lfreelist = l;
676 l = lnext;
677 } while (l != *lh);
684 lb_me_t **lh, *l;
752 l = *lh;
754 if (l == (lb_me_t *)NULL)
764 if (WITHIN(l->l_mof, l->l_nb, d->d_mof, d->d_nb)) {
765 if (!(l->l_flags & LB_ISCANCELLED)) {
766 if (l->l_tid == curtid &&
768 remlist(lh, l);
769 l->l_mof = d->d_mof;
770 l->l_lof = *addr;
771 l->l_nb = d->d_nb;
772 l->l_typ = d->d_typ;
773 l->l_flags = 0;
774 l->l_tid = curtid;
775 inslist(lh, l);
781 l->l_flags |= LB_ISCANCELLED;
785 l->l_mof, l->l_nb)) {
814 newl->l_prev = l->l_prev;
815 newl->l_next = l;
816 l->l_prev->l_next = newl;
817 l->l_prev = newl;
818 if (*lh == l)
822 l = l->l_next;
823 } while (l != *lh);
836 l = lufs_alloc_me();
837 if (l == (lb_me_t *)NULL) {
846 l->l_mof = d->d_mof;
847 l->l_lof = *addr; /* this is the "payload" address */
848 l->l_nb = d->d_nb;
849 l->l_typ = d->d_typ;
850 l->l_tid = curtid;
851 inslist(lh, l);
897 * This function must remove all uncommitted entries (l->l_tid == curtid)
906 lb_me_t **lh, *l, *lnext;
911 l = *lh;
913 if (l == (lb_me_t *)NULL)
915 lnext = l->l_next;
916 if (l->l_tid == curtid) {
917 remlist(lh, l);
918 bzero((caddr_t)l, sizeof (lb_me_t));
919 l->l_next = lfreelist;
920 lfreelist = l;
933 l->l_flags &= ~(LB_ISCANCELLED);
935 l = lnext;
936 } while (l != *lh);
1005 lb_me_t **lh, *l;
1027 l = *lh;
1030 l = l->l_prev;
1031 if (OVERLAP(l->l_mof, l->l_nb, bof, nb)) {
1038 if (l->l_typ != DT_ABZERO) {
1044 * be incorrect if we'd started at l->l_lof.
1046 if (!(skip = lufs_read_log(l->l_lof, NULL,
1047 MAX(bof - l->l_mof, 0))))
1050 fp->fi_memp + MAX(l->l_mof - bof, 0),
1051 MIN(l->l_mof + l->l_nb, bof + nb) -
1052 MAX(l->l_mof, bof))))
1060 bzero(fp->fi_memp + MAX(l->l_mof - bof, 0),
1061 MIN(l->l_mof + l->l_nb, bof + nb) -
1062 MAX(l->l_mof, bof));
1065 } while (l->l_prev != (*lh)->l_prev);