Home
last modified time | relevance | path

Searched refs:prev (Results 1 – 25 of 707) sorted by relevance

12345678910>>...29

/titanic_44/usr/src/uts/common/io/mega_sas/
H A Dlist.h59 struct mlist_head *next, *prev; member
70 (ptr)->next = (ptr); (ptr)->prev = (ptr); \
81 struct mlist_head *prev, in __list_add() argument
84 next->prev = new; in __list_add()
86 new->prev = prev; in __list_add()
87 prev->next = new; in __list_add()
115 __list_add(new, head->prev, head); in mlist_add_tail()
127 static void __list_del(struct mlist_head *prev, in __list_del() argument
130 next->prev = prev; in __list_del()
131 prev->next = next; in __list_del()
[all …]
/titanic_44/usr/src/uts/common/io/mr_sas/
H A Dmr_sas_list.c26 __list_add(struct mlist_head *new, struct mlist_head *prev, in __list_add() argument
29 next->prev = new; in __list_add()
31 new->prev = prev; in __list_add()
32 prev->next = new; in __list_add()
60 __list_add(new, head->prev, head); in mlist_add_tail()
71 __list_del(struct mlist_head *prev, struct mlist_head *next) in __list_del() argument
73 next->prev = prev; in __list_del()
74 prev->next = next; in __list_del()
84 __list_del(entry->prev, entry->next); in mlist_del_init()
109 struct mlist_head *last = list->prev; in mlist_splice()
[all …]
/titanic_44/usr/src/uts/common/fs/zfs/
H A Dzfs_rlock.c271 zfs_range_add_reader(avl_tree_t *tree, rl_t *new, rl_t *prev, avl_index_t where) in zfs_range_add_reader() argument
284 if (prev) { in zfs_range_add_reader()
285 if (prev->r_off + prev->r_len <= off) { in zfs_range_add_reader()
286 prev = NULL; in zfs_range_add_reader()
287 } else if (prev->r_off != off) { in zfs_range_add_reader()
292 prev = zfs_range_split(tree, prev, off); in zfs_range_add_reader()
293 prev = AVL_NEXT(tree, prev); /* move to rear range */ in zfs_range_add_reader()
296 ASSERT((prev == NULL) || (prev->r_off == off)); in zfs_range_add_reader()
298 if (prev) in zfs_range_add_reader()
299 next = prev; in zfs_range_add_reader()
[all …]
/titanic_44/usr/src/lib/libresolv2/include/isc/
H A Dlist.h26 #define LINK(type) struct { type *prev, *next; }
29 (elt)->link.prev = (type *)(-1); \
34 #define LINKED(elt, link) ((void *)((elt)->link.prev) != (void *)(-1) && \
45 (list).head->link.prev = (elt); \
48 (elt)->link.prev = NULL; \
60 (elt)->link.prev = (list).tail; \
69 (elt)->link.next->link.prev = (elt)->link.prev; \
72 (list).tail = (elt)->link.prev; \
74 if ((elt)->link.prev != NULL) \
75 (elt)->link.prev->link.next = (elt)->link.next; \
[all …]
/titanic_44/usr/src/uts/intel/io/pci/
H A Dpci_memlist.c88 struct memlist *prev = 0, *next; in memlist_insert() local
107 prev = next; in memlist_insert()
108 next = prev->ml_next; in memlist_insert()
111 merge_left = (prev && addr == prev->ml_address + prev->ml_size); in memlist_insert()
114 prev->ml_size += size + next->ml_size; in memlist_insert()
115 prev->ml_next = next->ml_next; in memlist_insert()
121 prev->ml_size += size; in memlist_insert()
134 if (prev == 0) { in memlist_insert()
139 prev->ml_next = entry; in memlist_insert()
154 struct memlist *prev = 0; in memlist_remove() local
[all …]
/titanic_44/usr/src/cmd/audio/utilities/
H A DAudioList.cc40 aptr(0), next(0), prev(0) in AudioListEntry()
52 next->prev = prev; in ~AudioListEntry()
54 if (prev != 0) { in ~AudioListEntry()
55 prev->next = next; in ~AudioListEntry()
78 prev = after; in link()
82 next->prev = this; in link()
307 AudioListEntry *prev; in Insert() local
311 prev = &head; // this is the first extent in Insert()
313 if (!getposition(pos, prev)) { in Insert()
322 prev->split(pos); in Insert()
[all …]
/titanic_44/usr/src/uts/common/io/xge/hal/include/
H A Dxge-list.h39 struct xge_list_t* prev; member
53 header->prev = header; in xge_list_init()
83 xge_assert(header->prev != NULL); in xge_list_first_get()
102 xge_assert(item->prev != NULL); in xge_list_remove()
104 item->next->prev = item->prev; in xge_list_remove()
105 item->prev->next = item->next; in xge_list_remove()
107 item->next = item->prev = NULL; in xge_list_remove()
128 new_item->prev = prev_item; in xge_list_insert()
129 prev_item->next->prev = new_item; in xge_list_insert()
148 new_item->prev = next_item->prev; in xge_list_insert_before()
[all …]
/titanic_44/usr/src/uts/common/io/drm/
H A Ddrm_linux_list.h44 struct list_head *next, *prev; member
53 (head)->prev = head; \
58 (head)->next->prev = entry; \
60 (entry)->prev = head; \
66 (entry)->prev = (head)->prev; \
68 (head)->prev->next = entry; \
69 (head)->prev = entry; \
74 (entry)->next->prev = (entry)->prev; \
75 (entry)->prev->next = (entry)->next; \
/titanic_44/usr/src/tools/scripts/
H A Dcstyle.pl103 my ($filename, $line, $prev); # shared globals
211 printf $fmt, $filename, $. - 1, $error, $prev;
240 $prev = '';
371 if (/^{$/ && $prev =~ /\)\s*(const\s*)?(\/\*.*\*\/\s*)?\\?$/) {
375 $prev = $line;
379 if ($prev =~ /^\s*return\s*;/) {
384 $prev = $line;
393 $prev = $line;
419 $prev = $line;
438 $prev = $line;
[all …]
H A Djstyle.pl62 my ($filename, $line, $prev);
154 $prev = $line;
200 $prev = $line;
205 $prev = $line;
228 $prev = $line;
247 $prev = $line;
280 !(/^\s*[-+|&\/?:=]/ || ($prev =~ /,\s*$/))) {
305 $prev = $line;
434 if ($in_class && /^\s+{/ && ($prev =~ /\)\s*$/)) {
460 if ($prev =~ /^\s*}$/) {
[all …]
/titanic_44/usr/src/cmd/lp/cmd/lpsched/
H A Drstatus.c53 r->prev = prs->prev; in insertr()
54 if (r->prev) in insertr()
55 r->prev->next = r; in insertr()
57 prs->prev = r; in insertr()
66 r->prev = prs; in insertr()
83 r->next->prev = r->prev; in remover()
85 if (r->prev) in remover()
86 r->prev->next = r->next; in remover()
89 r->prev = 0; in remover()
/titanic_44/usr/src/lib/libresolv2/common/isc/
H A Dev_waits.c108 evWait *this, *prev; in evUnwait() local
116 for (prev = NULL, this = wl->first; in evUnwait()
118 prev = this, this = this->next) in evUnwait()
121 if (prev != NULL) in evUnwait()
122 prev->next = this->next; in evUnwait()
126 wl->last = prev; in evUnwait()
135 for (prev = NULL, this = ctx->waitDone.first; in evUnwait()
137 prev = this, this = this->next) in evUnwait()
140 if (prev != NULL) in evUnwait()
141 prev->next = this->next; in evUnwait()
[all …]
/titanic_44/usr/src/cmd/powertop/common/
H A Dsuggestions.c95 new->prev = NULL; in pt_sugg_add()
129 new->prev = n; in pt_sugg_add()
137 new->prev = sugg; in pt_sugg_add()
138 sugg->prev = new; in pt_sugg_add()
146 new->prev = pos->prev; in pt_sugg_add()
147 pos->prev->next = new; in pt_sugg_add()
148 pos->prev = new; in pt_sugg_add()
172 sugg->prev = NULL; in pt_sugg_remove()
177 n->prev->next = NULL; in pt_sugg_remove()
180 n->prev->next = n->next; in pt_sugg_remove()
[all …]
/titanic_44/usr/src/lib/libsqlite/src/
H A Dhash.c187 elem->prev = x->prev; in rehash()
188 if( x->prev ) x->prev->next = elem; in rehash()
190 x->prev = elem; in rehash()
193 if( pH->first ) pH->first->prev = elem; in rehash()
194 elem->prev = 0; in rehash()
238 if( elem->prev ){ in removeElementGivenHash()
239 elem->prev->next = elem->next; in removeElementGivenHash()
244 elem->next->prev = elem->prev; in removeElementGivenHash()
345 new_elem->prev = elem->prev; in sqliteHashInsert()
346 if( elem->prev ){ elem->prev->next = new_elem; } in sqliteHashInsert()
[all …]
/titanic_44/usr/src/lib/libsecdb/common/
H A Dgetexecattr.c75 execattr_t *prev = NULL; in getexecprof() local
92 prev = head; in getexecprof()
93 while (prev != NULL) { in getexecprof()
94 prev->next = getexecattr(); in getexecprof()
95 prev = prev->next; in getexecprof()
125 execattr_t *prev = NULL; in getexecuser() local
146 prev = get_tail(head); in getexecuser()
153 if (prev != NULL) { in getexecuser()
154 prev->next = new; in getexecuser()
155 prev = get_tail(prev->next); in getexecuser()
[all …]
/titanic_44/usr/src/uts/intel/promif/
H A Dprom_prop.c57 prom_decode_composite_string(void *buf, size_t buflen, char *prev) in prom_decode_composite_string() argument
62 if (prev == 0) in prom_decode_composite_string()
65 prev += strlen(prev) + 1; in prom_decode_composite_string()
66 if (prev >= ((char *)buf + buflen)) in prom_decode_composite_string()
68 return (prev); in prom_decode_composite_string()
/titanic_44/usr/src/cmd/bnu/
H A Dsysfiles.c100 char *prev = _uu_setlocale(LC_ALL, "C"); local
104 (void) _uu_resetlocale(LC_ALL, prev);
116 char *prev = _uu_setlocale(LC_ALL, "C"); local
119 (void) _uu_resetlocale(LC_ALL, prev);
466 char *prev = _uu_setlocale(LC_ALL, "C"); local
477 (void) _uu_resetlocale(LC_ALL, prev);
486 (void) _uu_resetlocale(LC_ALL, prev);
490 (void) _uu_resetlocale(LC_ALL, prev);
524 char *prev = _uu_setlocale(LC_ALL, "C"); local
532 (void) _uu_resetlocale(LC_ALL, prev);
[all …]
H A Dlogent.c52 char *prev; local
57 prev = _uu_setlocale(LC_ALL, "C");
72 (void) _uu_resetlocale(LC_ALL, prev);
81 (void) _uu_resetlocale(LC_ALL, prev);
98 char *prev = _uu_setlocale(LC_ALL, "C"); local
112 (void) _uu_resetlocale(LC_ALL, prev);
118 (void) _uu_resetlocale(LC_ALL, prev);
135 char *prev = _uu_setlocale(LC_ALL, "C"); local
145 (void) _uu_resetlocale(LC_ALL, prev);
154 (void) _uu_resetlocale(LC_ALL, prev);
/titanic_44/usr/src/cmd/mailx/
H A Dmyfopen.c106 register NODE *cur, *prev; in del1() local
108 for (prev = cur = fplist; cur != (NODE *)NULL; cur = cur->next) { in del1()
113 prev->next = cur->next; in del1()
114 cur = prev->next ? prev->next : prev; in del1()
117 curptr = prev; in del1()
121 prev = cur; in del1()
/titanic_44/usr/src/uts/common/io/ib/clients/of/sol_ofs/
H A Dsol_ofs_gen_util.c62 new_entry->prev = list->tail; in add_genlist()
83 if (entry->prev) { in delete_genlist()
84 entry->prev->next = entry->next; in delete_genlist()
90 entry->next->prev = entry->prev; in delete_genlist()
92 list->tail = entry->prev; in delete_genlist()
96 entry->prev = entry->next = NULL; in delete_genlist()
149 entry->prev = list->tail; in insert_genlist_tail()
/titanic_44/usr/src/cmd/gencat/
H A Dgencat.c77 struct cat_set *prev; member
85 struct cat_msg *prev; member
177 p->prev = NULL;
187 struct cat_set *prev, *next; local
211 first_set->prev = current_set;
231 prev = current_set;
234 current_set->prev = prev;
236 if (prev)
237 prev->next = current_set;
241 next->prev = current_set;
[all …]
/titanic_44/usr/src/tools/ctf/dwarf/common/
H A Dpro_alloc.c96 lp->next = lp->prev = lp; in _dwarf_p_get_alloc()
105 lp->prev = dbglp; in _dwarf_p_get_alloc()
107 nextblock->prev = lp; in _dwarf_p_get_alloc()
153 lp->prev->next = lp->next; in _dwarf_p_dealloc()
154 lp->next->prev = lp->prev; in _dwarf_p_dealloc()
180 dbglp->prev != dbglp) { in _dwarf_p_dealloc_all()
/titanic_44/usr/src/cmd/smbsrv/smbstat/
H A Dsmbstat.c676 smbstat_cpu_snapshot_t *curr, *prev; in smbstat_cpu_process() local
682 prev = smbstat_cpu_previous_snapshot(); in smbstat_cpu_process()
686 for (i = 0; i < smbstat_nrcpus; i++, curr++, prev++) { in smbstat_cpu_process()
689 prev->cs_ticks[j]); in smbstat_cpu_process()
691 prev->cs_ticks[j]); in smbstat_cpu_process()
822 smbstat_srv_snapshot_t *curr, *prev; in smbstat_srv_process() local
825 prev = smbstat_srv_previous_snapshot(); in smbstat_srv_process()
827 if (prev->ss_snaptime == 0) in smbstat_srv_process()
833 smbstat_hrtime_delta(prev->ss_snaptime, curr->ss_snaptime); in smbstat_srv_process()
837 smbstat_sub_64(curr->ss_data.ks_nreq, prev->ss_data.ks_nreq); in smbstat_srv_process()
[all …]
/titanic_44/usr/src/lib/libnisdb/
H A Ddb_index_entry.cc191 db_index_entry_p fst, prev, curr; in lookup() local
205 prev = fst; in lookup()
209 prev->addresult(curr); in lookup()
210 prev = curr; in lookup()
216 prev->addresult(NULL); /* terminate the list -CM */ in lookup()
282 db_index_entry_p curr, prev, rp, save; in add() local
285 for (prev = curr = this; curr != NULL; curr = curr->next) { in add()
289 prev = curr; in add()
307 save = prev->next; in add()
308 prev->next = new db_index_entry(hval, i, recnum, prev->next); in add()
[all …]
/titanic_44/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_rmspin.c62 _nsc_lock_top.next = _nsc_lock_top.prev = &_nsc_lock_top; in _nsc_init_rmlock()
85 ASSERT(_nsc_lock_top.prev == &_nsc_lock_top); in _nsc_deinit_rmlock()
126 for (lp = _nsc_lock_top.prev; lp != &_nsc_lock_top; lp = lp->prev) { in _nsc_unlock_all_rm()
179 lk->prev = &_nsc_lock_top; in nsc_rm_lock_alloc()
181 lk->next->prev = lk; in nsc_rm_lock_alloc()
207 rmlockp->next->prev = rmlockp->prev;
208 rmlockp->prev->next = rmlockp->next;

12345678910>>...29