/xen/xen/arch/arm/ |
A D | cpufeature.c | 102 c->midr.bits = READ_SYSREG32(MIDR_EL1); in identify_cpu() 103 c->mpidr.bits = READ_SYSREG(MPIDR_EL1); in identify_cpu() 122 c->pfr32.bits[0] = READ_SYSREG32(ID_PFR0_EL1); in identify_cpu() 123 c->pfr32.bits[1] = READ_SYSREG32(ID_PFR1_EL1); in identify_cpu() 125 c->dbg32.bits[0] = READ_SYSREG32(ID_DFR0_EL1); in identify_cpu() 127 c->aux32.bits[0] = READ_SYSREG32(ID_AFR0_EL1); in identify_cpu() 129 c->mm32.bits[0] = READ_SYSREG32(ID_MMFR0_EL1); in identify_cpu() 130 c->mm32.bits[1] = READ_SYSREG32(ID_MMFR1_EL1); in identify_cpu() 131 c->mm32.bits[2] = READ_SYSREG32(ID_MMFR2_EL1); in identify_cpu() 132 c->mm32.bits[3] = READ_SYSREG32(ID_MMFR3_EL1); in identify_cpu() [all …]
|
A D | setup.c | 125 boot_cpu_data.pfr64.bits[0], boot_cpu_data.pfr64.bits[1]); in processor_id() 137 boot_cpu_data.dbg64.bits[0], boot_cpu_data.dbg64.bits[1]); in processor_id() 139 boot_cpu_data.aux64.bits[0], boot_cpu_data.aux64.bits[1]); in processor_id() 141 boot_cpu_data.mm64.bits[0], boot_cpu_data.mm64.bits[1]); in processor_id() 143 boot_cpu_data.isa64.bits[0], boot_cpu_data.isa64.bits[1]); in processor_id() 154 boot_cpu_data.pfr32.bits[0], boot_cpu_data.pfr32.bits[1]); in processor_id() 172 boot_cpu_data.mm32.bits[0], boot_cpu_data.mm32.bits[1], in processor_id() 173 boot_cpu_data.mm32.bits[2], boot_cpu_data.mm32.bits[3]); in processor_id() 175 boot_cpu_data.isa32.bits[0], boot_cpu_data.isa32.bits[1], in processor_id() 176 boot_cpu_data.isa32.bits[2], boot_cpu_data.isa32.bits[3], in processor_id() [all …]
|
A D | vcpreg.c | 170 switch ( hsr.bits & HSR_CP32_REGS_MASK ) 324 hsr.bits & HSR_CP32_REGS_MASK); 339 switch ( hsr.bits & HSR_CP64_REGS_MASK ) in do_cp15_64() 393 hsr.bits & HSR_CP64_REGS_MASK); in do_cp15_64() 412 switch ( hsr.bits & HSR_CP32_REGS_MASK ) in do_cp14_32() 469 val |= ((current_cpu_data.midr.bits >> 20) & 0xf) | in do_cp14_32() 470 (current_cpu_data.midr.bits & 0xf); in do_cp14_32() 524 hsr.bits & HSR_CP32_REGS_MASK); in do_cp14_32() 566 hsr.bits & HSR_CP64_REGS_MASK); in do_cp14_64() 597 hsr.bits & HSR_CP64_REGS_MASK); in do_cp14_dbg()
|
A D | smpboot.c | 127 mpidr = boot_cpu_data.mpidr.bits & MPIDR_HWID_MASK; in dt_smp_init_cpus() 322 current_cpu_data.midr.bits != boot_cpu_data.midr.bits ) in start_secondary() 326 smp_processor_id(), current_cpu_data.midr.bits, in start_secondary() 327 boot_cpu_data.midr.bits); in start_secondary()
|
/xen/xen/common/ |
A D | bitmap.c | 62 if (bits % BITS_PER_LONG) in __bitmap_empty() 77 if (bits % BITS_PER_LONG) in __bitmap_full() 93 if (bits % BITS_PER_LONG) in __bitmap_equal() 107 if (bits % BITS_PER_LONG) in __bitmap_complement() 116 int nr = BITS_TO_LONGS(bits); in __bitmap_and() 127 int nr = BITS_TO_LONGS(bits); in __bitmap_or() 138 int nr = BITS_TO_LONGS(bits); in __bitmap_xor() 164 if (bits % BITS_PER_LONG) in __bitmap_intersects() 179 if (bits % BITS_PER_LONG) in __bitmap_subset() 194 if (bits % BITS_PER_LONG) in __bitmap_weight() [all …]
|
/xen/xen/include/xen/ |
A D | cpumask.h | 89 set_bit(cpumask_check(cpu), dstp->bits); in cpumask_set_cpu() 109 bitmap_fill(dstp->bits, nr_cpumask_bits); in cpumask_setall() 145 bitmap_and(dstp->bits, src1p->bits, src2p->bits, nr_cpumask_bits); in cpumask_and() 151 bitmap_or(dstp->bits, src1p->bits, src2p->bits, nr_cpumask_bits); in cpumask_or() 157 bitmap_xor(dstp->bits, src1p->bits, src2p->bits, nr_cpumask_bits); in cpumask_xor() 163 bitmap_andnot(dstp->bits, src1p->bits, src2p->bits, nr_cpumask_bits); in cpumask_andnot() 168 bitmap_complement(dstp->bits, srcp->bits, nr_cpumask_bits); in cpumask_complement() 174 return bitmap_equal(src1p->bits, src2p->bits, nr_cpu_ids); in cpumask_equal() 180 return bitmap_intersects(src1p->bits, src2p->bits, nr_cpu_ids); in cpumask_intersects() 186 return bitmap_subset(src1p->bits, src2p->bits, nr_cpu_ids); in cpumask_subset() [all …]
|
A D | nodemask.h | 75 set_bit(node, dstp->bits); in __node_set() 81 clear_bit(node, dstp->bits); in __node_clear() 87 bitmap_fill(dstp->bits, nbits); in __nodes_setall() 113 bitmap_and(dstp->bits, src1p->bits, src2p->bits, nbits); in __nodes_and() 121 bitmap_or(dstp->bits, src1p->bits, src2p->bits, nbits); in __nodes_or() 129 bitmap_xor(dstp->bits, src1p->bits, src2p->bits, nbits); in __nodes_xor() 137 bitmap_andnot(dstp->bits, src1p->bits, src2p->bits, nbits); in __nodes_andnot() 145 bitmap_complement(dstp->bits, srcp->bits, nbits); in __nodes_complement() 153 return bitmap_equal(src1p->bits, src2p->bits, nbits); in __nodes_equal() 161 return bitmap_intersects(src1p->bits, src2p->bits, nbits); in __nodes_intersects() [all …]
|
A D | bitmap.h | 69 extern int __bitmap_empty(const unsigned long *bitmap, int bits); 70 extern int __bitmap_full(const unsigned long *bitmap, int bits); 72 const unsigned long *bitmap2, int bits); 74 int bits); 76 const unsigned long *bitmap2, int bits); 78 const unsigned long *bitmap2, int bits); 80 const unsigned long *bitmap2, int bits); 82 const unsigned long *bitmap2, int bits); 84 const unsigned long *bitmap2, int bits); 86 const unsigned long *bitmap2, int bits); [all …]
|
A D | hash.h | 26 static inline unsigned long hash_long(unsigned long val, unsigned int bits) in hash_long() argument 51 return hash >> (BITS_PER_LONG - bits); in hash_long() 54 static inline unsigned long hash_ptr(void *ptr, unsigned int bits) in hash_ptr() argument 56 return hash_long((unsigned long)ptr, bits); in hash_ptr()
|
A D | types.h | 8 #define BITS_TO_LONGS(bits) \ argument 9 (((bits)+BITS_PER_LONG-1)/BITS_PER_LONG) 10 #define DECLARE_BITMAP(name,bits) \ argument 11 unsigned long name[BITS_TO_LONGS(bits)]
|
/xen/xen/include/asm-arm/ |
A D | cpufeature.h | 117 uint32_t bits; member 127 register_t bits; member 147 uint64_t bits[2]; member 163 uint64_t bits[2]; member 167 uint64_t bits[2]; member 171 uint64_t bits[2]; member 195 uint64_t bits[2]; member 205 uint32_t bits[2]; member 223 uint32_t bits[1]; member 227 uint32_t bits[1]; member [all …]
|
A D | vreg.h | 143 static inline void vreg_reg_setbits(unsigned long *reg, register_t bits, in vreg_reg_setbits() argument 150 *reg |= ((unsigned long)bits & mask) << shift; in vreg_reg_setbits() 153 static inline void vreg_reg_clearbits(unsigned long *reg, register_t bits, in vreg_reg_clearbits() argument 160 *reg &= ~(((unsigned long)bits & mask) << shift); in vreg_reg_clearbits() 185 register_t bits, \ 190 vreg_reg_setbits(&tmp, bits, info->gpa & offmask, \ 197 register_t bits, \ 202 vreg_reg_clearbits(&tmp, bits, info->gpa & offmask, \
|
/xen/xen/arch/arm/arm32/lib/ |
A D | findbit.S | 31 eors r3, r3, #0xff @ invert bits 36 3: mov r0, r1 @ no free bits 53 movs r3, r3, lsr ip @ shift off unused bits 55 orr r2, r2, #7 @ if zero, then no bits here 77 3: mov r0, r1 @ no free bits 93 movs r3, r3, lsr ip @ shift off unused bits 95 orr r2, r2, #7 @ if zero, then no bits here 110 eors r3, r3, #0xff @ invert bits 115 3: mov r0, r1 @ no free bits 129 movs r3, r3, lsr ip @ shift off unused bits [all …]
|
/xen/tools/xentrace/ |
A D | analyze.h | 26 #define BITS_TO_LONGS(bits) \ argument 27 (((bits)+BITS_PER_LONG-1)/BITS_PER_LONG) 28 #define DECLARE_BITMAP(name,bits) \ argument 29 unsigned long name[BITS_TO_LONGS(bits)] 30 typedef struct cpumask{ DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
|
/xen/stubdom/vtpmmgr/ |
A D | disk_crypto.c | 153 int carry = 0x87 * !!(src->bits[0] & 0x80); in shl_128_mod_hex87() 155 dst->bits[i] = (src->bits[i] << 1) | (src->bits[i+1] >> 7); in shl_128_mod_hex87() 156 dst->bits[15] = (src->bits[15] << 1) ^ carry; in shl_128_mod_hex87() 163 dst->bits[i] = s1->bits[i] ^ s2->bits[i]; in xor128()
|
A D | vtpm_disk.h | 13 uint8_t bits[20]; member 18 uint8_t bits[20]; member 23 uint8_t bits[32]; member 28 uint8_t bits[16]; member 32 uint8_t bits[16]; member
|
/xen/xen/arch/arm/vgic/ |
A D | vgic-mmio.h | 41 #define VGIC_ADDR_IRQ_MASK(bits) (((bits) * 1024 / 8) - 1) argument 51 #define VGIC_ADDR_TO_INTID(addr, bits) (((addr) & VGIC_ADDR_IRQ_MASK(bits)) * \ argument 52 8 >> ilog2(bits))
|
/xen/xen/arch/x86/ |
A D | io_apic.c | 1131 if (reg_01.bits.version >= 0x10) in __print_IO_APIC() 1133 if (reg_01.bits.version >= 0x20) in __print_IO_APIC() 1144 if (reg_00.bits.__reserved_1 || reg_00.bits.__reserved_2) in __print_IO_APIC() 1154 (reg_01.bits.entries != 0x2E) && in __print_IO_APIC() 1155 (reg_01.bits.entries != 0x3F) in __print_IO_APIC() 1168 if (reg_01.bits.__reserved_1 || reg_01.bits.__reserved_2) in __print_IO_APIC() 1179 if (reg_02.bits.__reserved_1 || reg_02.bits.__reserved_2) in __print_IO_APIC() 2127 apic_id = reg_00.bits.ID; in io_apic_get_unique_id() 2153 reg_00.bits.ID = apic_id; in io_apic_get_unique_id() 2183 return reg_01.bits.version; in io_apic_get_version() [all …]
|
/xen/xen/include/asm-x86/ |
A D | io_apic.h | 43 } bits; member 54 } bits; member 63 } bits; member 71 } bits; member
|
A D | paging.h | 392 unsigned int bits = paging_mode_hap(d) ? hap_paddr_bits : paddr_bits; in paging_max_paddr_bits() local 398 bits = min(bits, 32U + PAGE_SHIFT); in paging_max_paddr_bits() 401 return bits; in paging_max_paddr_bits()
|
/xen/xen/arch/arm/arm64/ |
A D | traps.c | 36 union hsr hsr = { .bits = regs->hsr }; in do_bad_mode() 40 hsr.bits, hsr.ec, hsr.len, hsr.iss); in do_bad_mode()
|
/xen/tools/libxc/ |
A D | xc_tbuf.c | 122 int bits, cpusize; in xc_tbuf_set_cpu_mask() local 133 bits = xc_get_max_cpus(xch); in xc_tbuf_set_cpu_mask() 134 if (bits <= 0) in xc_tbuf_set_cpu_mask() 151 sysctl.u.tbuf_op.cpu_mask.nr_bits = bits; in xc_tbuf_set_cpu_mask()
|
/xen/xen/drivers/acpi/ |
A D | pmstat.c | 497 u32 bits[3]; in acpi_set_pdc_bits() local 500 if ( copy_from_guest(bits, pdc, 2) ) in acpi_set_pdc_bits() 502 else if ( bits[0] != ACPI_PDC_REVISION_ID || !bits[1] ) in acpi_set_pdc_bits() 504 else if ( copy_from_guest_offset(bits + 2, pdc, 2, 1) ) in acpi_set_pdc_bits() 516 bits[2] &= (ACPI_PDC_C_MASK | ACPI_PDC_P_MASK | ACPI_PDC_T_MASK | in acpi_set_pdc_bits() 518 ret = arch_acpi_set_pdc_bits(acpi_id, bits, mask); in acpi_set_pdc_bits() 520 if ( !ret && __copy_to_guest_offset(pdc, 2, bits + 2, 1) ) in acpi_set_pdc_bits()
|
/xen/tools/tests/vhpet/ |
A D | emul.h | 36 #define BITS_TO_LONGS(bits) \ argument 37 (((bits) + BITS_PER_LONG - 1) / BITS_PER_LONG) 38 #define DECLARE_BITMAP(name, bits) \ argument 39 unsigned long name[BITS_TO_LONGS(bits)] 42 DECLARE_BITMAP(bits, NR_CPUS);
|
/xen/xen/arch/x86/hvm/ |
A D | vioapic.c | 99 .bits = { .version = VIOAPIC_VERSION_ID, in vioapic_read_indirect() 111 .bits = { .arbitration = vioapic->id } in vioapic_read_indirect() 128 vioapic->nr_pins)].bits; in vioapic_read_indirect() 241 ent.bits = (uint32_t)ent.bits | ((uint64_t)val << 32); in vioapic_write_redirent() 247 ent.bits = ((ent.bits >> 32) << 32) | val; in vioapic_write_redirent() 308 vioapic->id = ((union IO_APIC_reg_02){ .raw = val }).bits.arbitration; in vioapic_write_indirect()
|