/xen/xen/include/asm-x86/ |
A D | system.h | 92 volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() argument 100 : [new] "q" (new), "a" (old) in __cmpxchg() 106 : [new] "r" (new), "a" (old) in __cmpxchg() 112 : [new] "r" (new), "a" (old) in __cmpxchg() 118 : [new] "r" (new), "a" (old) in __cmpxchg() 126 void *ptr, unsigned long old, unsigned long new, unsigned int size) in cmpxchg_local_() argument 135 : [new] "q" (new), "a" (old) ); in cmpxchg_local_() 140 : [new] "r" (new), "a" (old) ); in cmpxchg_local_() 145 : [new] "r" (new), "a" (old) ); in cmpxchg_local_() 150 : [new] "r" (new), "a" (old) ); in cmpxchg_local_()
|
A D | paging.h | 100 intpte_t new, mfn_t gmfn); 102 intpte_t *old, intpte_t new, 142 l1_pgentry_t *p, l1_pgentry_t new, 317 struct vcpu *v, intpte_t *p, intpte_t new, mfn_t gmfn) in paging_write_guest_entry() argument 321 return paging_get_hostmode(v)->shadow.write_guest_entry(v, p, new, in paging_write_guest_entry() 324 return !__copy_to_user(p, &new, sizeof(new)); in paging_write_guest_entry() 335 struct vcpu *v, intpte_t *p, intpte_t *old, intpte_t new, mfn_t gmfn) in paging_cmpxchg_guest_entry() argument 342 return !cmpxchg_user(p, *old, new); in paging_cmpxchg_guest_entry() 349 static inline void safe_write_pte(l1_pgentry_t *p, l1_pgentry_t new) in safe_write_pte() argument 351 *p = new; in safe_write_pte() [all …]
|
/xen/xen/include/asm-arm/arm32/ |
A D | cmpxchg.h | 60 unsigned long new, \ 74 : "r" (ptr), "Ir" (*old), "r" (new) \ 91 unsigned long new, int size, in __int_cmpxchg() argument 98 return __cmpxchg_case_1(ptr, old, new, timeout, max_try); in __int_cmpxchg() 100 return __cmpxchg_case_2(ptr, old, new, timeout, max_try); in __int_cmpxchg() 102 return __cmpxchg_case_4(ptr, old, new, timeout, max_try); in __int_cmpxchg() 112 unsigned long new, in __cmpxchg() argument 115 if (!__int_cmpxchg(ptr, &old, new, size, false, 0)) in __cmpxchg() 128 ret = __cmpxchg(ptr, old, new, size); in __cmpxchg_mb() 146 unsigned long new, in __cmpxchg_mb_timeout() argument [all …]
|
/xen/xen/include/asm-arm/arm64/ |
A D | cmpxchg.h | 69 unsigned long new, \ 86 : "Ir" (*old), "r" (new) \ 104 unsigned long new, int size, in __int_cmpxchg() argument 109 return __cmpxchg_case_1(ptr, old, new, timeout, max_try); in __int_cmpxchg() 111 return __cmpxchg_case_2(ptr, old, new, timeout, max_try); in __int_cmpxchg() 125 unsigned long new, in __cmpxchg() argument 128 if (!__int_cmpxchg(ptr, &old, new, size, false, 0)) in __cmpxchg() 136 unsigned long new, int size) in __cmpxchg_mb() argument 141 ret = __cmpxchg(ptr, old, new, size); in __cmpxchg_mb() 159 unsigned long new, in __cmpxchg_mb_timeout() argument [all …]
|
/xen/xen/include/ |
A D | Makefile | 56 echo "#ifndef $$id" >$@.new; \ 57 echo "#define $$id" >>$@.new; \ 65 mv -f $@.new $@ 74 mv -f $@.new $@ 81 mv -f $@.new $@ 93 cat $(filter %.h,$^) >$@.new 94 mv -f $@.new $@ 113 done >$@.new 114 mv $@.new $@ 117 rm -f $@.new [all …]
|
/xen/xen/arch/x86/mm/shadow/ |
A D | pv.c | 32 sh_write_guest_entry(struct vcpu *v, intpte_t *p, intpte_t new, mfn_t gmfn) in sh_write_guest_entry() argument 37 failed = __copy_to_user(p, &new, sizeof(new)); in sh_write_guest_entry() 38 if ( failed != sizeof(new) ) in sh_write_guest_entry() 39 sh_validate_guest_entry(v, gmfn, p, sizeof(new)); in sh_write_guest_entry() 53 intpte_t new, mfn_t gmfn) in sh_cmpxchg_guest_entry() argument 59 failed = cmpxchg_user(p, t, new); in sh_cmpxchg_guest_entry() 61 sh_validate_guest_entry(v, gmfn, p, sizeof(new)); in sh_cmpxchg_guest_entry()
|
/xen/xen/include/xen/ |
A D | list.h | 66 next->prev = new; in __list_add() 67 new->next = next; in __list_add() 68 new->prev = prev; in __list_add() 69 prev->next = new; in __list_add() 108 new->next = next; in __list_add_rcu() 227 new->next->prev = new; in list_replace() 229 new->prev->next = new; in list_replace() 253 new->next->prev = new; in list_replace_rcu() 254 new->prev->next = new; in list_replace_rcu() 775 new->next->pprev = &new->next; in hlist_replace_rcu() [all …]
|
/xen/xen/xsm/flask/ss/ |
A D | ebitmap.c | 54 if ( !new ) in ebitmap_cpy() 59 new->startbit = n->startbit; in ebitmap_cpy() 61 new->next = NULL; in ebitmap_cpy() 63 prev->next = new; in ebitmap_cpy() 65 dst->node = new; in ebitmap_cpy() 66 prev = new; in ebitmap_cpy() 179 if ( !new ) in ebitmap_set_bit() 191 new->next = prev->next; in ebitmap_set_bit() 192 prev->next = new; in ebitmap_set_bit() 196 new->next = e->node; in ebitmap_set_bit() [all …]
|
/xen/tools/firmware/hvmloader/ |
A D | Makefile | 90 sh ../../misc/mkhex rombios $(ROMBIOS_ROM) >> $@.new 91 echo "#endif" >> $@.new 95 echo "#ifdef ROM_INCLUDE_VGABIOS" >> $@.new 96 sh ../../misc/mkhex vgabios_stdvga $(STDVGA_ROM) >> $@.new 97 echo "#endif" >> $@.new 100 echo "#ifdef ROM_INCLUDE_VGABIOS" >> $@.new 101 sh ../../misc/mkhex vgabios_cirrusvga $(CIRRUSVGA_ROM) >> $@.new 102 echo "#endif" >> $@.new 104 mv $@.new $@ 108 rm -f roms.inc roms.inc.new acpi.h
|
/xen/xen/include/asm-x86/x86_64/ |
A D | system.h | 22 } new = { .raw = *newp }, old = { .raw = *oldp }, prev; in __cmpxchg16b() local 30 : "c" (new.hi), "b" (new.lo), "d" (old.hi), "a" (old.lo) ); in __cmpxchg16b() 41 } new = { .raw = *newp }, old = { .raw = *oldp }, prev; in cmpxchg16b_local_() local 49 : "c" (new.hi), "b" (new.lo), "d" (old.hi), "a" (old.lo) ); in cmpxchg16b_local_() 80 : [new] _regtype (_n), "[rc]" (0) \
|
/xen/tools/xenstore/ |
A D | list.h | 61 next->prev = new; in __list_add() 62 new->next = next; in __list_add() 63 new->prev = prev; in __list_add() 64 prev->next = new; in __list_add() 77 __list_add(new, head, head->next); in list_add() 90 __list_add(new, head->prev, head); in list_add_tail() 103 new->next = next; in __list_add_rcu() 104 new->prev = prev; in __list_add_rcu() 105 next->prev = new; in __list_add_rcu() 106 prev->next = new; in __list_add_rcu() [all …]
|
/xen/tools/fuzz/cpu-policy/ |
A D | afl-policy-fuzzer.c | 22 struct cpuid_policy new = {}; in check_cpuid() local 58 rc = x86_cpuid_copy_from_buffer(&new, leaves, nr, NULL, NULL); in check_cpuid() 62 if ( memcmp(cp, &new, sizeof(*cp)) != 0 ) in check_cpuid() 66 unsigned char *l = (void *)cp, *r = (void *)&new; in check_cpuid() 82 struct msr_policy new = {}; in check_msr() local 95 rc = x86_msr_copy_from_buffer(&new, msrs, nr, NULL); in check_msr() 97 assert(memcmp(mp, &new, sizeof(*mp)) == 0); in check_msr()
|
/xen/xen/arch/x86/hvm/ |
A D | io.c | 514 struct hvm_mmcfg *mmcfg, *new; in register_vpci_mmcfg_handler() local 521 new = xmalloc(struct hvm_mmcfg); in register_vpci_mmcfg_handler() 522 if ( !new ) in register_vpci_mmcfg_handler() 525 new->addr = addr + (start_bus << 20); in register_vpci_mmcfg_handler() 526 new->start_bus = start_bus; in register_vpci_mmcfg_handler() 527 new->segment = seg; in register_vpci_mmcfg_handler() 528 new->size = (end_bus - start_bus + 1) << 20; in register_vpci_mmcfg_handler() 533 mmcfg->addr < new->addr + new->size ) in register_vpci_mmcfg_handler() 537 if ( new->addr == mmcfg->addr && in register_vpci_mmcfg_handler() 540 new->size == mmcfg->size ) in register_vpci_mmcfg_handler() [all …]
|
/xen/xen/common/libfdt/ |
A D | fdt_rw.c | 153 char *new; in _fdt_find_add_string() local 162 new = strtab + fdt_size_dt_strings(fdt); in _fdt_find_add_string() 167 memcpy(new, s, len); in _fdt_find_add_string() 168 return (new - strtab); in _fdt_find_add_string() 393 static void _fdt_packblocks(const char *old, char *new, in _fdt_packblocks() argument 403 fdt_set_off_mem_rsvmap(new, mem_rsv_off); in _fdt_packblocks() 406 fdt_set_off_dt_struct(new, struct_off); in _fdt_packblocks() 407 fdt_set_size_dt_struct(new, struct_size); in _fdt_packblocks() 409 memmove(new + strings_off, old + fdt_off_dt_strings(old), in _fdt_packblocks() 411 fdt_set_off_dt_strings(new, strings_off); in _fdt_packblocks() [all …]
|
/xen/xen/common/ |
A D | rbtree.c | 81 __rb_change_child(struct rb_node *old, struct rb_node *new, in __rb_change_child() argument 86 parent->rb_left = new; in __rb_change_child() 88 parent->rb_right = new; in __rb_change_child() 90 root->rb_node = new; in __rb_change_child() 103 new->__rb_parent_color = old->__rb_parent_color; in __rb_rotate_set_parents() 104 rb_set_parent_color(old, new, color); in __rb_rotate_set_parents() 105 __rb_change_child(old, new, parent, root); in __rb_rotate_set_parents() 568 __rb_change_child(victim, new, parent, root); in rb_replace_node() 570 rb_set_parent(victim->rb_left, new); in rb_replace_node() 572 rb_set_parent(victim->rb_right, new); in rb_replace_node() [all …]
|
/xen/xen/tools/kconfig/tests/new_choice_with_dep/ |
A D | Kconfig | 6 This is a new symbol. 20 This is a new symbol, so should be asked. 37 This is a new symbol, so should be asked.
|
/xen/tools/console/daemon/ |
A D | main.c | 72 struct rlimit lim, new = { min_fds, min_fds }; in increase_fd_limit() local 85 if (setrlimit(RLIMIT_NOFILE, &new) < 0) in increase_fd_limit() 91 (unsigned long long)new.rlim_cur, in increase_fd_limit() 92 (unsigned long long)new.rlim_max, in increase_fd_limit()
|
/xen/xen/drivers/passthrough/amd/ |
A D | iommu_map.c | 56 union amd_iommu_pte new = {}, old; in set_iommu_pde_present() local 63 new.fc = !next_level; in set_iommu_pde_present() 65 new.mfn = next_mfn; in set_iommu_pde_present() 66 new.iw = iw; in set_iommu_pde_present() 67 new.ir = ir; in set_iommu_pde_present() 68 new.next_level = next_level; in set_iommu_pde_present() 69 new.pr = true; in set_iommu_pde_present() 76 if ( old.pr && old.raw != new.raw ) in set_iommu_pde_present() 79 write_atomic(&pte->raw, new.raw); in set_iommu_pde_present()
|
/xen/xen/arch/x86/cpu/microcode/ |
A D | amd.c | 194 const struct microcode_patch *new, const struct microcode_patch *old) in compare_header() argument 196 if ( new->processor_rev_id != old->processor_rev_id ) in compare_header() 199 return new->patch_id > old->patch_id ? NEW_UCODE : OLD_UCODE; in compare_header() 203 const struct microcode_patch *new, const struct microcode_patch *old) in compare_patch() argument 206 ASSERT(microcode_fits(new) != MIS_UCODE); in compare_patch() 209 return compare_header(new, old); in compare_patch()
|
/xen/xen/include/xen/lib/x86/ |
A D | Makefile | 7 $(PYTHON) $(XEN_ROOT)/xen/tools/gen-cpuid.py -i $< -o $@.new 8 $(call move-if-changed,$@.new,$@)
|
/xen/xen/include/asm-arm/ |
A D | guest_atomics.h | 92 unsigned long new, in __guest_cmpxchg() argument 99 if ( __cmpxchg_mb_timeout(ptr, &oldval, new, size, in __guest_cmpxchg() 106 oldval = __cmpxchg_mb(ptr, old, new, size); in __guest_cmpxchg()
|
/xen/tools/libs/toolcore/ |
A D | Makefile | 19 $(PERL) $^ --prefix=xentoolcore >$@.new 20 $(call move-if-changed,$@.new,$@)
|
/xen/xen/include/asm-x86/hvm/ |
A D | monitor.h | 37 #define hvm_monitor_crX(cr, new, old) \ argument 38 hvm_monitor_cr(VM_EVENT_X86_##cr, new, old)
|
/xen/xen/arch/arm/ |
A D | irq.c | 319 struct irqaction *new) in __setup_irq() argument 323 ASSERT(new != NULL); in __setup_irq() 331 if ( shared && new->dev_id == NULL ) in __setup_irq() 337 new->next = desc->action; in __setup_irq() 339 desc->action = new; in __setup_irq() 345 int setup_irq(unsigned int irq, unsigned int irqflags, struct irqaction *new) in setup_irq() argument 368 rc = __setup_irq(desc, irqflags, new); in setup_irq() 605 static bool irq_validate_new_type(unsigned int curr, unsigned new) in irq_validate_new_type() argument 607 return (curr == IRQ_TYPE_INVALID || curr == new ); in irq_validate_new_type()
|
/xen/tools/ocaml/ |
A D | common.make | 22 o= >$@.new && mv -f $@.new $@
|