/xen/xen/include/asm-x86/ |
A D | bitops.h | 19 #define ADDR (*(volatile int *) addr) 20 #define CONST_ADDR (*(const volatile int *) addr) 23 #define bitop_bad_size(addr) (sizeof(*(addr)) < 4) argument 35 static inline void set_bit(int nr, volatile void *addr) in set_bit() argument 193 [addr] "+m" (*(int *)addr) : [nr] "Ir" (nr) : "memory" ); in __test_and_set_bit() 242 [addr] "+m" (*(int *)addr) : [nr] "Ir" (nr) : "memory" ); in __test_and_clear_bit() 259 [addr] "+m" (*(int *)addr) : [nr] "Ir" (nr) : "memory" ); in __test_and_change_bit() 318 const unsigned long *addr, unsigned int size); 322 const unsigned long *addr, unsigned int size); 348 #define find_first_bit(addr, size) find_next_bit(addr, size, 0) argument [all …]
|
A D | desc.h | 146 #define _set_gate(gate_addr,type,dpl,addr) \ argument 151 ((unsigned long)(addr) >> 32); \ 154 (((unsigned long)(addr) & 0xFFFF0000UL) << 32) | \ 157 ((unsigned long)(addr) & 0xFFFFUL) | \ 168 (((unsigned long)(addr) & 0xFFFF0000UL) << 32) | in _set_gate_lower() 171 ((unsigned long)(addr) & 0xFFFFUL) | in _set_gate_lower() 184 idte.b = ((unsigned long)(addr) >> 32); in _update_gate_addr_lower() 187 ((unsigned long)(addr) & 0xFFFFUL); in _update_gate_addr_lower() 192 #define _set_tssldt_desc(desc,addr,limit,type) \ argument 197 ((u32)(addr) << 16) | ((u32)(limit) & 0xFFFF); \ [all …]
|
/xen/xen/arch/arm/vgic/ |
A D | vgic-mmio.h | 24 unsigned long (*read)(struct vcpu *vcpu, paddr_t addr, 26 void (*write)(struct vcpu *vcpu, paddr_t addr, 51 #define VGIC_ADDR_TO_INTID(addr, bits) (((addr) & VGIC_ADDR_IRQ_MASK(bits)) * \ argument 86 void vgic_mmio_write_wi(struct vcpu *vcpu, paddr_t addr, 93 paddr_t addr, unsigned int len, 97 paddr_t addr, unsigned int len, 115 paddr_t addr, unsigned int len, 123 paddr_t addr, unsigned int len); 126 paddr_t addr, unsigned int len, 130 paddr_t addr, unsigned int len); [all …]
|
A D | vgic-mmio.c | 49 uint32_t intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_mmio_read_enable() 71 uint32_t intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_mmio_write_senable() 116 uint32_t intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_mmio_write_cenable() 162 uint32_t intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_mmio_read_pending() 184 uint32_t intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_mmio_write_spending() 232 uint32_t intid = VGIC_ADDR_TO_INTID(addr, 1); in vgic_mmio_write_cpending() 504 paddr_t addr, int len) in check_region() argument 555 paddr_t addr = info->gpa; in dispatch_mmio_read() local 568 data = region->read(vcpu, addr, len); in dispatch_mmio_read() 586 paddr_t addr = info->gpa; in dispatch_mmio_write() local [all …]
|
/xen/tools/libxc/ |
A D | xc_bitops.h | 27 static inline void bitmap_set(void *addr, int nr_bits) in bitmap_set() argument 29 memset(addr, 0xff, bitmap_size(nr_bits)); in bitmap_set() 34 memset(addr, 0, bitmap_size(nr_bits)); in bitmap_clear() 39 const char *addr = _addr; in test_bit() local 45 char *addr = _addr; in clear_bit() local 51 char *addr = _addr; in set_bit() local 57 int oldbit = test_bit(nr, addr); in test_and_clear_bit() 58 clear_bit(nr, addr); in test_and_clear_bit() 62 static inline int test_and_set_bit(int nr, void *addr) in test_and_set_bit() argument 64 int oldbit = test_bit(nr, addr); in test_and_set_bit() [all …]
|
/xen/xen/arch/x86/oprofile/ |
A D | op_model_p4.c | 412 msrs->controls[i].addr = addr; in p4_fill_in_addresses() 417 addr < MSR_P4_IQ_ESCR0; ++i, addr += addr_increment()) { in p4_fill_in_addresses() 418 msrs->controls[i].addr = addr; in p4_fill_in_addresses() 426 msrs->controls[i].addr = addr; in p4_fill_in_addresses() 431 msrs->controls[i].addr = addr; in p4_fill_in_addresses() 437 msrs->controls[i].addr = addr; in p4_fill_in_addresses() 442 msrs->controls[i].addr = addr; in p4_fill_in_addresses() 447 msrs->controls[i].addr = addr; in p4_fill_in_addresses() 566 addr < MSR_P4_IQ_ESCR0; addr += addr_increment()) { in p4_setup_ctrs() 582 addr <= MSR_P4_TC_ESCR1; addr += addr_increment()){ in p4_setup_ctrs() [all …]
|
/xen/xen/arch/x86/hvm/ |
A D | stdvga.c | 140 switch ( addr ) in stdvga_outb() 260 addr = stdvga_mem_offset(s, addr); in stdvga_mem_readb() 261 if ( addr == ~0u ) in stdvga_mem_readb() 267 vram_b = vram_getb(s, addr); in stdvga_mem_readb() 282 vram_l = vram_getl(s, addr); in stdvga_mem_readb() 355 addr = stdvga_mem_offset(s, addr); in stdvga_mem_writeb() 356 if ( addr == ~0u ) in stdvga_mem_writeb() 362 plane = addr & 3; in stdvga_mem_writeb() 378 addr = ((addr & ~1) << 1) | plane; in stdvga_mem_writeb() 450 vram_l = vram_getl(s, addr); in stdvga_mem_writeb() [all …]
|
A D | io.c | 186 if ( (p->addr >= start) && (p->addr + p->size <= end) ) in g2m_portio_accept() 295 return (p->addr == 0xcf8 && p->size == 4) || (p->addr & ~3) == 0xcfc; in vpci_portio_accept() 308 if ( addr == 0xcf8 ) in vpci_portio_read() 338 if ( addr == 0xcf8 ) in vpci_portio_write() 383 paddr_t addr; member 396 if ( addr >= mmcfg->addr && addr < mmcfg->addr + mmcfg->size ) in vpci_mmcfg_find() 410 addr -= mmcfg->addr; in vpci_mmcfg_decode_addr() 525 new->addr = addr + (start_bus << 20); in register_vpci_mmcfg_handler() 532 if ( new->addr < mmcfg->addr + mmcfg->size && in register_vpci_mmcfg_handler() 533 mmcfg->addr < new->addr + new->size ) in register_vpci_mmcfg_handler() [all …]
|
/xen/xen/include/asm-x86/x86_64/ |
A D | uaccess.h | 36 #define __addr_ok(addr) \ argument 37 (((unsigned long)(addr) < (1UL<<47)) || \ 40 #define access_ok(addr, size) \ argument 41 (__addr_ok(addr) || is_compat_arg_xlat_range(addr, size)) 43 #define array_access_ok(addr, count, size) \ argument 45 access_ok(addr, (count) * (size))) 47 #define __compat_addr_ok(d, addr) \ argument 50 #define __compat_access_ok(d, addr, size) \ argument 53 #define compat_access_ok(addr, size) \ argument 56 #define compat_array_access_ok(addr,count,size) \ argument [all …]
|
/xen/xen/include/asm-arm/arm64/ |
A D | io.h | 42 asm volatile("str %w0, [%1]" : : "r" (val), "r" (addr)); in __raw_writel() 47 asm volatile("str %0, [%1]" : : "r" (val), "r" (addr)); in __raw_writeq() 50 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument 56 : "=r" (val) : "r" (addr)); in __raw_readb() 66 : "=r" (val) : "r" (addr)); in __raw_readw() 76 : "=r" (val) : "r" (addr)); in __raw_readl() 86 : "=r" (val) : "r" (addr)); in __raw_readq() 129 static inline int emulate_read(u64 addr) in emulate_read() argument 131 printk(XENLOG_G_WARNING "Can't access IO %lx\n", addr); in emulate_read() 135 static inline void emulate_write(u64 addr) in emulate_write() argument [all …]
|
A D | bitops.h | 46 extern unsigned long find_next_bit(const unsigned long *addr, unsigned long 57 extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned 70 extern unsigned long find_first_bit(const unsigned long *addr, 80 extern unsigned long find_first_zero_bit(const unsigned long *addr, 84 #define find_first_bit(addr, size) find_next_bit((addr), (size), 0) argument 85 #define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0) argument
|
/xen/tools/libs/foreignmemory/ |
A D | linux.c | 94 ioctlx.addr = addr; in map_foreign_batch_single() 138 ioctlx.addr = (unsigned long)addr + (i<<PAGE_SHIFT); in retry_paged() 172 addr = mmap(addr, num << PAGE_SHIFT, prot, flags | MAP_SHARED, in osdep_xenforeignmemory_map() 174 if ( addr == MAP_FAILED ) in osdep_xenforeignmemory_map() 182 ioctlx.addr = (unsigned long)addr; in osdep_xenforeignmemory_map() 225 ioctlx.addr = (unsigned long)addr; in osdep_xenforeignmemory_map() 283 return addr; in osdep_xenforeignmemory_map() 289 return munmap(addr, num << PAGE_SHIFT); in osdep_xenforeignmemory_unmap() 316 fres->addr = mmap(fres->addr, fres->nr_frames << PAGE_SHIFT, in osdep_xenforeignmemory_map_resource() 318 if ( fres->addr == MAP_FAILED ) in osdep_xenforeignmemory_map_resource() [all …]
|
A D | freebsd.c | 58 uint32_t dom, void *addr, in osdep_xenforeignmemory_map() argument 66 addr = mmap(addr, num << PAGE_SHIFT, prot, flags | MAP_SHARED, fd, 0); in osdep_xenforeignmemory_map() 67 if ( addr == MAP_FAILED ) in osdep_xenforeignmemory_map() 75 ioctlx.addr = (unsigned long)addr; in osdep_xenforeignmemory_map() 84 (void)munmap(addr, num << PAGE_SHIFT); in osdep_xenforeignmemory_map() 89 return addr; in osdep_xenforeignmemory_map() 93 void *addr, size_t num) in osdep_xenforeignmemory_unmap() argument 95 return munmap(addr, num << PAGE_SHIFT); in osdep_xenforeignmemory_unmap()
|
A D | netbsd.c | 70 void *addr, int prot, int flags, in osdep_map_foreign_batch() argument 75 addr = mmap(addr, num*XC_PAGE_SIZE, prot, flags | MAP_ANON | MAP_SHARED, -1, 0); in osdep_map_foreign_batch() 76 if ( addr == MAP_FAILED ) { in osdep_map_foreign_batch() 83 ioctlx.addr=(unsigned long)addr; in osdep_map_foreign_batch() 89 (void)munmap(addr, num*XC_PAGE_SIZE); in osdep_map_foreign_batch() 93 return addr; in osdep_map_foreign_batch() 98 void *addr, size_t num) in osdep_xenforeignmemory_unmap() argument 100 return munmap(addr, num*XC_PAGE_SIZE); in osdep_xenforeignmemory_unmap()
|
A D | solaris.c | 71 void *addr, int prot, int flags, xen_pfn_t *arr, int num) in osdep_map_foreign_batch() argument 75 addr = mmap(addr, num*XC_PAGE_SIZE, prot, flags | MAP_SHARED, fd, 0); in osdep_map_foreign_batch() 76 if ( addr == MAP_FAILED ) in osdep_map_foreign_batch() 81 ioctlx.addr=(unsigned long)addr; in osdep_map_foreign_batch() 87 (void)munmap(addr, num*XC_PAGE_SIZE); in osdep_map_foreign_batch() 91 return addr; in osdep_map_foreign_batch() 95 void *addr, size_t num) in osdep_xenforeignmemory_unmap() argument 97 return munmap(addr, num*XC_PAGE_SIZE); in osdep_xenforeignmemory_unmap()
|
/xen/tools/firmware/rombios/32bit/ |
A D | util.h | 6 void outb(uint16_t addr, uint8_t val); 7 void outw(uint16_t addr, uint16_t val); 8 void outl(uint16_t addr, uint32_t val); 9 uint8_t inb(uint16_t addr); 10 uint16_t inw(uint16_t addr); 11 uint32_t inl(uint16_t addr); 29 static inline uint8_t mmio_readb(uint8_t *addr) in mmio_readb() argument 31 return *(volatile uint8_t *)addr; in mmio_readb() 34 static inline uint16_t mmio_readw(uint16_t *addr) in mmio_readw() argument 36 return *(volatile uint16_t *)addr; in mmio_readw() [all …]
|
/xen/xen/drivers/vpci/ |
A D | msix.c | 225 *data = readl(addr); in msix_read() 229 *data = readq(addr); in msix_read() 241 entry = get_entry(msix, addr); in msix_read() 247 *data = entry->addr; in msix_read() 251 *data = entry->addr >> 32; in msix_read() 296 writel(data, addr); in msix_write() 300 writeq(data, addr); in msix_write() 313 entry = get_entry(msix, addr); in msix_write() 329 entry->addr = data; in msix_write() 333 entry->addr |= data; in msix_write() [all …]
|
/xen/xen/arch/x86/ |
A D | e820.c | 56 if (ei->addr >= end || ei->addr + ei->size <= start) in e820_all_mapped() 63 if (ei->addr <= start) in e820_all_mapped() 191 if (biosmap[i].addr + biosmap[i].size < biosmap[i].addr) in sanitize_e820_map() 203 change_point[chgidx]->addr = biosmap[i].addr; in sanitize_e820_map() 205 change_point[chgidx]->addr = biosmap[i].addr + biosmap[i].size; in sanitize_e820_map() 218 if ((change_point[i]->addr < change_point[i-1]->addr) || in sanitize_e820_map() 219 ((change_point[i]->addr == change_point[i-1]->addr) && in sanitize_e820_map() 220 (change_point[i]->addr == change_point[i]->pbios->addr) && in sanitize_e820_map() 221 (change_point[i-1]->addr != change_point[i-1]->pbios->addr)) in sanitize_e820_map() 241 if (change_point[chgidx]->addr == change_point[chgidx]->pbios->addr) in sanitize_e820_map() [all …]
|
A D | trace.c | 48 void __trace_pv_page_fault(unsigned long addr, unsigned error_code) in __trace_pv_page_fault() argument 55 u32 eip, addr, error_code; in __trace_pv_page_fault() member 59 d.addr = addr; in __trace_pv_page_fault() 67 unsigned long eip, addr; in __trace_pv_page_fault() member 73 d.addr = addr; in __trace_pv_page_fault() 119 void __trace_ptwr_emulation(unsigned long addr, l1_pgentry_t npte) in __trace_ptwr_emulation() argument 135 u32 addr, eip; in __trace_ptwr_emulation() member 137 d.addr = addr; in __trace_ptwr_emulation() 147 unsigned long addr, eip; in __trace_ptwr_emulation() member 151 d.addr = addr; in __trace_ptwr_emulation()
|
A D | bitops.c | 6 const unsigned long *addr, unsigned int size) in __find_first_bit() argument 21 : "1" (BITS_TO_LONGS(size)), "2" (addr), "b" ((int)(long)addr) in __find_first_bit() 28 const unsigned long *addr, unsigned int size, unsigned int offset) in __find_next_bit() argument 30 const unsigned long *p = addr + (offset / BITS_PER_LONG); in __find_next_bit() 54 const unsigned long *addr, unsigned int size) in __find_first_zero_bit() argument 71 : "1" (BITS_TO_LONGS(size)), "2" (addr), "b" ((int)(long)addr) in __find_first_zero_bit() 78 const unsigned long *addr, unsigned int size, unsigned int offset) in __find_next_zero_bit() argument 80 const unsigned long *p = addr + (offset / BITS_PER_LONG); in __find_next_zero_bit()
|
/xen/xen/include/asm-arm/arm32/ |
A D | io.h | 27 static inline void __raw_writeb(u8 val, volatile void __iomem *addr) in __raw_writeb() argument 30 : "+Qo" (*(volatile u8 __force *)addr) in __raw_writeb() 34 static inline void __raw_writew(u16 val, volatile void __iomem *addr) in __raw_writew() argument 37 : "+Q" (*(volatile u16 __force *)addr) in __raw_writew() 44 : "+Qo" (*(volatile u32 __force *)addr) in __raw_writel() 48 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument 52 : "+Qo" (*(volatile u8 __force *)addr), in __raw_readb() 57 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument 61 : "+Q" (*(volatile u16 __force *)addr), in __raw_readw() 66 static inline u32 __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument [all …]
|
/xen/xen/include/xen/ |
A D | page-defs.h | 7 #define PAGE_ALIGN_GRAN(gran, addr) ((addr + ~PAGE_MASK_##gran) & PAGE_MASK_##gran) argument 12 #define PAGE_ALIGN_4K(addr) PAGE_ALIGN_GRAN(4K, addr) argument 17 #define PAGE_ALIGN_16K(addr) PAGE_ALIGN_GRAN(16K, addr) argument 22 #define PAGE_ALIGN_64K(addr) PAGE_ALIGN_GRAN(64K, addr) argument
|
/xen/tools/firmware/rombios/ |
A D | makesym.perl | 23 ($name[0], $junk, $addr[0], $junk, $name[1], $junk, $addr[1]) = @F; 25 next if length $addr[$col] < 1; 26 $addr[$col] =~ tr/A-Z/a-z/; 27 $addr[$col] = "000f" . $addr[$col]; 28 print "$addr[$col] $name[$col]\n";
|
/xen/xen/arch/x86/x86_64/ |
A D | mmconfig_64.c | 50 char __iomem *addr; in pci_dev_base() local 52 addr = get_virt(seg, &bus); in pci_dev_base() 53 if (!addr) in pci_dev_base() 61 char __iomem *addr; in pci_mmcfg_read() local 69 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read() 70 if (!addr) in pci_mmcfg_read() 91 char __iomem *addr; in pci_mmcfg_write() local 97 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write() 98 if (!addr) in pci_mmcfg_write() 103 mmio_config_writeb(addr + reg, value); in pci_mmcfg_write() [all …]
|
/xen/xen/arch/x86/pv/ |
A D | grant_table.c | 47 int create_grant_pv_mapping(uint64_t addr, mfn_t frame, in create_grant_pv_mapping() argument 68 if ( !IS_ALIGNED(addr, sizeof(nl1e)) ) in create_grant_pv_mapping() 75 gl1mfn = _mfn(addr >> PAGE_SHIFT); in create_grant_pv_mapping() 86 if ( is_pv_32bit_domain(currd) && addr != (uint32_t)addr ) in create_grant_pv_mapping() 89 pl1e = map_guest_l1e(addr, &gl1mfn); in create_grant_pv_mapping() 95 addr); in create_grant_pv_mapping() 225 if ( !IS_ALIGNED(addr, sizeof(nl1e)) ) in replace_grant_pv_mapping() 231 gl1mfn = _mfn(addr >> PAGE_SHIFT); in replace_grant_pv_mapping() 243 if ( addr != (uint32_t)addr ) in replace_grant_pv_mapping() 257 pl1e = map_guest_l1e(addr, &gl1mfn); in replace_grant_pv_mapping() [all …]
|