Home
last modified time | relevance | path

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

123

/xen/xen/include/xen/
A Dlist.h48 list->prev = list; in INIT_LIST_HEAD()
66 next->prev = new; in __list_add()
68 new->prev = prev; in __list_add()
69 prev->next = new; in __list_add()
109 new->prev = prev; in __list_add_rcu()
111 next->prev = new; in __list_add_rcu()
168 next->prev = prev; in __list_del()
228 new->prev = old->prev; in list_replace()
251 new->prev = old->prev; in list_replace_rcu()
463 for (pos = (head)->prev; pos != (head); pos = pos->prev)
[all …]
A Dmm.h354 page->list.prev = PAGE_LIST_NULL; in page_list_add()
368 page->list.prev = PAGE_LIST_NULL; in page_list_add_tail()
391 prev->list.next = PAGE_LIST_NULL; in __page_list_del_head()
392 head->tail = prev; in __page_list_del_head()
402 struct page_info *prev = pdx_to_page(page->list.prev); in page_list_del() local
406 next->list.prev = page->list.prev; in page_list_del()
407 prev->list.next = page->list.next; in page_list_del()
415 struct page_info *prev = pdx_to_page(page->list.prev); in page_list_del2() local
420 next->list.prev = page->list.prev; in page_list_del2()
463 ASSERT(first->list.prev == at->list.prev); in page_list_splice()
[all …]
/xen/xen/tools/kconfig/
A Dlist.h25 struct list_head *next, *prev; member
83 struct list_head *prev, in __list_add() argument
86 next->prev = _new; in __list_add()
88 _new->prev = prev; in __list_add()
89 prev->next = _new; in __list_add()
102 __list_add(_new, head->prev, head); in list_add_tail()
112 static inline void __list_del(struct list_head *prev, struct list_head *next) in __list_del() argument
114 next->prev = prev; in __list_del()
115 prev->next = next; in __list_del()
128 __list_del(entry->prev, entry->next); in list_del()
[all …]
A Dpreprocess.c348 char *tmp, *name, *res, *endptr, *prev, *p; in eval_clause() local
368 prev = p = tmp; in eval_clause()
389 new_argv[new_argc++] = prev; in eval_clause()
390 prev = p + 1; in eval_clause()
399 new_argv[new_argc++] = prev; in eval_clause()
/xen/tools/xenstore/
A Dlist.h61 next->prev = new; in __list_add()
63 new->prev = prev; in __list_add()
64 prev->next = new; in __list_add()
104 new->prev = prev; in __list_add_rcu()
105 next->prev = new; in __list_add_rcu()
106 prev->next = new; in __list_add_rcu()
144 next->prev = prev; in __list_del()
145 prev->next = next; in __list_del()
227 first->prev = head; in __list_splice()
231 at->prev = last; in __list_splice()
[all …]
A Dtalloc.c145 if ((p)->prev) (p)->prev->next = (p)->next; \
146 if ((p)->next) (p)->next->prev = (p)->prev; \
158 while (tc->prev) tc=tc->prev; in talloc_parent_chunk()
590 if (tc->prev) tc->prev->next = tc->next; in talloc_free()
591 if (tc->next) tc->next->prev = tc->prev; in talloc_free()
698 if (tc->prev) tc->prev->next = tc->next; in talloc_steal()
699 if (tc->next) tc->next->prev = tc->prev; in talloc_steal()
718 if (tc->prev) tc->prev->next = tc->next; in talloc_steal()
719 if (tc->next) tc->next->prev = tc->prev; in talloc_steal()
1291 while (tc && tc->prev) tc = tc->prev; in talloc_find_parent_byname()
[all …]
/xen/xen/include/asm-x86/
A Dsystem.h94 unsigned long prev; in __cmpxchg() local
102 return prev; in __cmpxchg()
108 return prev; in __cmpxchg()
114 return prev; in __cmpxchg()
120 return prev; in __cmpxchg()
128 unsigned long prev = ~old; in cmpxchg_local_() local
134 : "=a" (prev), [ptr] "+m" (*(uint8_t *)ptr) in cmpxchg_local_()
139 : "=a" (prev), [ptr] "+m" (*(uint16_t *)ptr) in cmpxchg_local_()
144 : "=a" (prev), [ptr] "+m" (*(uint32_t *)ptr) in cmpxchg_local_()
149 : "=a" (prev), [ptr] "+m" (*(uint64_t *)ptr) in cmpxchg_local_()
[all …]
A Dvpmu.h132 static inline void vpmu_switch_from(struct vcpu *prev) in vpmu_switch_from() argument
135 vpmu_save(prev); in vpmu_switch_from()
/xen/xen/include/asm-x86/x86_64/
A Dsystem.h22 } new = { .raw = *newp }, old = { .raw = *oldp }, prev; in __cmpxchg16b() local
28 : "=d" (prev.hi), "=a" (prev.lo), in __cmpxchg16b()
32 return prev.raw; in __cmpxchg16b()
41 } new = { .raw = *newp }, old = { .raw = *oldp }, prev; in cmpxchg16b_local_() local
47 : "=d" (prev.hi), "=a" (prev.lo), in cmpxchg16b_local_()
51 return prev.raw; in cmpxchg16b_local_()
/xen/xen/xsm/flask/ss/
A Dmls.c32 int i, l, len, head, prev; in mls_compute_context_len() local
48 prev = -2; in mls_compute_context_len()
52 if ( i - prev > 1 ) in mls_compute_context_len()
64 prev = i; in mls_compute_context_len()
66 if ( prev != head ) in mls_compute_context_len()
92 int i, l, head, prev; in mls_sid_to_context() local
113 prev = -2; in mls_sid_to_context()
117 if ( i - prev > 1 ) in mls_sid_to_context()
130 if ( prev < 0 ) in mls_sid_to_context()
139 prev = i; in mls_sid_to_context()
[all …]
A Debitmap.c50 prev = NULL; in ebitmap_cpy()
62 if ( prev ) in ebitmap_cpy()
63 prev->next = new; in ebitmap_cpy()
66 prev = new; in ebitmap_cpy()
129 prev = NULL; in ebitmap_set_bit()
157 if ( prev ) in ebitmap_set_bit()
162 if ( prev ) in ebitmap_set_bit()
171 prev = n; in ebitmap_set_bit()
189 if ( prev ) in ebitmap_set_bit()
191 new->next = prev->next; in ebitmap_set_bit()
[all …]
A Dhashtab.c40 struct hashtab_node *prev, *cur, *newnode; in hashtab_insert() local
46 prev = NULL; in hashtab_insert()
50 prev = cur; in hashtab_insert()
62 if ( prev ) in hashtab_insert()
64 newnode->next = prev->next; in hashtab_insert()
65 prev->next = newnode; in hashtab_insert()
A Davtab.c38 struct avtab_node * prev, struct avtab_node * cur, struct avtab_key *key, in avtab_insert_node() argument
47 if ( prev ) in avtab_insert_node()
49 newnode->next = prev->next; in avtab_insert_node()
50 prev->next = newnode; in avtab_insert_node()
66 struct avtab_node *prev, *cur, *newnode; in avtab_insert() local
73 for ( prev = NULL, cur = h->htable[hvalue]; cur; in avtab_insert()
92 newnode = avtab_insert_node(h, hvalue, prev, cur, key, datum); in avtab_insert()
107 struct avtab_node *prev, *cur, *newnode; in avtab_insert_nonunique() local
113 for ( prev = NULL, cur = h->htable[hvalue]; cur; in avtab_insert_nonunique()
114 prev = cur, cur = cur->next ) in avtab_insert_nonunique()
[all …]
A Dsidtab.c42 struct sidtab_node *prev, *cur, *newnode; in sidtab_insert() local
51 prev = NULL; in sidtab_insert()
55 prev = cur; in sidtab_insert()
79 if ( prev ) in sidtab_insert()
81 newnode->next = prev->next; in sidtab_insert()
83 prev->next = newnode; in sidtab_insert()
/xen/xen/common/
A Dlist_sort.c70 a->prev = tail; in merge_and_restore_back_links()
74 b->prev = tail; in merge_and_restore_back_links()
91 tail->next->prev = tail; in merge_and_restore_back_links()
96 head->prev = tail; in merge_and_restore_back_links()
128 head->prev->next = NULL; in list_sort()
A Ddomain.c985 int old, new, prev = v->controller_pause_count; in vcpu_pause_by_systemcontroller() local
989 old = prev; in vcpu_pause_by_systemcontroller()
996 } while ( prev != old ); in vcpu_pause_by_systemcontroller()
1005 int old, new, prev = v->controller_pause_count; in vcpu_unpause_by_systemcontroller() local
1009 old = prev; in vcpu_unpause_by_systemcontroller()
1016 } while ( prev != old ); in vcpu_unpause_by_systemcontroller()
1061 int old, new, prev = d->controller_pause_count; in __domain_pause_by_systemcontroller() local
1065 old = prev; in __domain_pause_by_systemcontroller()
1076 } while ( prev != old ); in __domain_pause_by_systemcontroller()
1089 old = prev; in domain_unpause_by_systemcontroller()
[all …]
A Drangeset.c310 struct range *prev, *next; in rangeset_claim_range() local
315 for ( prev = NULL, next = first_range(r); in rangeset_claim_range()
317 prev = next, next = next_range(r, next) ) in rangeset_claim_range()
336 if ( unlikely(!prev) ) in rangeset_claim_range()
347 insert_range(r, prev, next); in rangeset_claim_range()
350 prev->e += size; in rangeset_claim_range()
A Dxmalloc_tlsf.c72 struct bhdr *prev; member
207 p->matrix[fl][sl]->ptr.free_ptr.prev = NULL; in EXTRACT_BLOCK_HDR()
227 b->ptr.free_ptr.next->ptr.free_ptr.prev = in EXTRACT_BLOCK()
228 b->ptr.free_ptr.prev; in EXTRACT_BLOCK()
229 if ( b->ptr.free_ptr.prev ) in EXTRACT_BLOCK()
230 b->ptr.free_ptr.prev->ptr.free_ptr.next = in EXTRACT_BLOCK()
264 p->matrix[fl][sl]->ptr.free_ptr.prev = b; in INSERT_BLOCK()
/xen/xen/common/sched/
A Dcore.c2100 ASSERT(unit_running(prev)); in sched_switch_units()
2102 if ( prev != next ) in sched_switch_units()
2105 sr->prev = prev; in sched_switch_units()
2108 prev->unit_id, now - prev->state_entry_time); in sched_switch_units()
2113 TRACE_4D(TRC_SCHED_SWITCH, prev->domain->domain_id, prev->unit_id, in sched_switch_units()
2127 if ( is_idle_unit(prev) ) in sched_switch_units()
2208 next = prev->next_task; in do_schedule()
2236 sr->prev = NULL; in unit_context_saved()
2430 v = unit2vcpu_cpu(prev, cpu); in sched_wait_rendezvous_in()
2508 return prev->next_task; in sched_wait_rendezvous_in()
[all …]
A Dnull.c840 prev->next_task = sched_idle_unit(sched_cpu); in null_schedule()
843 prev->next_task = npc->unit; in null_schedule()
844 prev->next_time = -1; in null_schedule()
851 if ( unlikely(prev->next_task == NULL) ) in null_schedule()
900 prev->next_task = wvc->unit; in null_schedule()
920 if ( prev->next_task == NULL && in null_schedule()
925 if ( unlikely(prev->next_task == NULL || in null_schedule()
926 !unit_runnable_state(prev->next_task)) ) in null_schedule()
927 prev->next_task = sched_idle_unit(sched_cpu); in null_schedule()
929 NULL_UNIT_CHECK(prev->next_task); in null_schedule()
[all …]
/xen/xen/arch/x86/cpu/mcheck/
A Dmctelem.c217 struct mctelem_ent *head, *prev; in mctelem_process_deferred() local
248 for (tep = head, prev = NULL; tep != NULL; tep = tep->mcte_next) { in mctelem_process_deferred()
249 tep->mcte_prev = prev; in mctelem_process_deferred()
250 prev = tep; in mctelem_process_deferred()
259 for (tep = prev; tep != NULL; tep = prev) { in mctelem_process_deferred()
260 prev = tep->mcte_prev; in mctelem_process_deferred()
264 if (prev != NULL) in mctelem_process_deferred()
265 prev->mcte_next = NULL; in mctelem_process_deferred()
/xen/stubdom/vtpmmgr/
A Dvtpm_disk.c28 struct tpm_authdata prev; in vtpm_sync_disk() local
59 memcpy(&prev, &mgr->counter_auth, 20); in vtpm_sync_disk()
64 memcpy(&prev, &mgr->nvram_auth, 20); in vtpm_sync_disk()
92 rc = TPM_disk_change_counter(mgr->counter_index, prev, mgr->counter_auth); in vtpm_sync_disk()
98 rc = TPM_disk_nvchange(mgr->nvram_slot, prev, mgr->nvram_auth); in vtpm_sync_disk()
/xen/xen/arch/arm/
A Ddomain.c310 static void schedule_tail(struct vcpu *prev) in schedule_tail() argument
312 ASSERT(prev != current); in schedule_tail()
314 ctxt_switch_from(prev); in schedule_tail()
320 sched_context_switched(prev, current); in schedule_tail()
328 static void continue_new_vcpu(struct vcpu *prev) in continue_new_vcpu() argument
333 schedule_tail(prev); in continue_new_vcpu()
345 void context_switch(struct vcpu *prev, struct vcpu *next) in context_switch() argument
348 ASSERT(prev != next); in context_switch()
351 update_runstate_area(prev); in context_switch()
357 prev = __context_switch(prev, next); in context_switch()
[all …]
/xen/xen/arch/x86/mm/shadow/
A Dhvm.c252 unsigned long addr, old, new, prev; in hvm_emulate_cmpxchg() local
279 case 1: prev = cmpxchg((uint8_t *)ptr, old, new); break; in hvm_emulate_cmpxchg()
280 case 2: prev = cmpxchg((uint16_t *)ptr, old, new); break; in hvm_emulate_cmpxchg()
281 case 4: prev = cmpxchg((uint32_t *)ptr, old, new); break; in hvm_emulate_cmpxchg()
282 case 8: prev = cmpxchg((uint64_t *)ptr, old, new); break; in hvm_emulate_cmpxchg()
285 prev = ~old; in hvm_emulate_cmpxchg()
288 if ( prev != old ) in hvm_emulate_cmpxchg()
290 memcpy(p_old, &prev, bytes); in hvm_emulate_cmpxchg()
296 addr, prev, old, new, *(unsigned long *)ptr, bytes); in hvm_emulate_cmpxchg()
/xen/xen/arch/x86/
A Ddomain_page.c124 unsigned long accum = 0, prev = 0; in map_domain_page() local
129 accum |= prev; in map_domain_page()
131 prev = ~dcache->inuse[i]; in map_domain_page()
134 if ( accum | (prev & BITMAP_LAST_WORD_MASK(dcache->entries)) ) in map_domain_page()

Completed in 50 milliseconds

123