/xen-4.10.0-shim-comet/xen/include/asm-x86/ |
A D | mpspec.h | 36 unsigned long mask[PHYSID_ARRAY_SIZE]; member 41 #define physid_set(physid, map) set_bit(physid, (map).mask) 46 #define first_physid(map) find_first_bit((map).mask, \ 48 #define next_physid(id, map) find_next_bit((map).mask, \ 51 const unsigned long *mask = (map).mask; \ 53 for (id = find_first_bit(mask, MAX_APICS); id < MAX_APICS; \ 54 id = find_next_bit(mask, MAX_APICS, (id) + 1)) \ 59 #define physids_and(dst, src1, src2) bitmap_and((dst).mask, (src1).mask, (src2).mask, MAX_APICS) 60 #define physids_or(dst, src1, src2) bitmap_or((dst).mask, (src1).mask, (src2).mask, MAX_APICS) 62 #define physids_complement(dst, src) bitmap_complement((dst).mask,(src).mask, MAX_APICS) [all …]
|
A D | flushtlb.h | 66 static inline void tlbflush_filter(cpumask_t *mask, uint32_t page_timestamp) in tlbflush_filter() argument 70 for_each_cpu ( cpu, mask ) in tlbflush_filter() 72 __cpumask_clear_cpu(cpu, mask); in tlbflush_filter() 111 #define flush_mask(mask, flags) flush_area_mask(mask, NULL, flags) argument 124 #define flush_tlb_mask(mask) \ argument 125 flush_mask(mask, FLUSH_TLB) 126 #define flush_tlb_one_mask(mask,v) \ argument 127 flush_area_mask(mask, (const void *)(v), FLUSH_TLB|FLUSH_ORDER(0))
|
A D | vpmu.h | 83 static inline void vpmu_set(struct vpmu_struct *vpmu, const u32 mask) in vpmu_set() argument 85 vpmu->flags |= mask; in vpmu_set() 87 static inline void vpmu_reset(struct vpmu_struct *vpmu, const u32 mask) in vpmu_reset() argument 89 vpmu->flags &= ~mask; in vpmu_reset() 96 static inline bool_t vpmu_is_set(const struct vpmu_struct *vpmu, const u32 mask) in vpmu_is_set() argument 98 return !!(vpmu->flags & mask); in vpmu_is_set() 101 const u32 mask) in vpmu_are_all_set() argument 103 return !!((vpmu->flags & mask) == mask); in vpmu_are_all_set()
|
/xen-4.10.0-shim-comet/xen/arch/x86/ |
A D | smp.c | 30 void send_IPI_mask(const cpumask_t *mask, int vector) in send_IPI_mask() argument 32 genapic->send_IPI_mask(mask, vector); in send_IPI_mask() 89 return SET_xAPIC_DEST_FIELD(mask); in __prepare_ICR2() 132 mask &= cpumask_bits(&cpu_online_map)[0]; in send_IPI_mask_flat() 133 mask &= ~(1UL << smp_processor_id()); in send_IPI_mask_flat() 134 if ( mask == 0 ) in send_IPI_mask_flat() 147 cfg = __prepare_ICR2(mask); in send_IPI_mask_flat() 170 for_each_cpu ( query_cpu, mask ) in send_IPI_mask_phys() 222 if ( cpumask_test_cpu(cpu, mask) ) in flush_area_mask() 257 send_IPI_mask(mask, EVENT_CHECK_VECTOR); in smp_send_event_check_mask() [all …]
|
A D | hypercall.c | 154 unsigned int mask, ...) in hypercall_xlat_continuation() argument 164 ASSERT(!(mask >> nr)); in hypercall_xlat_continuation() 166 ASSERT(!id || !(mask & (1U << *id))); in hypercall_xlat_continuation() 168 va_start(args, mask); in hypercall_xlat_continuation() 178 for ( i = 0; i < nr; ++i, mask >>= 1 ) in hypercall_xlat_continuation() 180 if ( mask & 1 ) in hypercall_xlat_continuation() 185 mask &= ~1U; in hypercall_xlat_continuation() 206 for ( i = 0; i < nr; ++i, mask >>= 1 ) in hypercall_xlat_continuation() 220 if ( (mask & 1) ) in hypercall_xlat_continuation() 225 mask &= ~1U; in hypercall_xlat_continuation() [all …]
|
A D | xstate.c | 292 uint32_t hmask = mask >> 32; in xsave() 293 uint32_t lmask = mask; in xsave() 360 if ( mask & XSTATE_FP ) in xsave() 366 uint32_t hmask = mask >> 32; in xrstor() 367 uint32_t lmask = mask; in xrstor() 697 u64 mask; in handle_xsetbv() local 721 if ( mask ) in handle_xsetbv() 731 mask |= XSTATE_LAZY; in handle_xsetbv() 736 xrstor(curr, mask); in handle_xsetbv() 790 if ( (~xcr0 & mask) && !set_xcr0(xcr0 | mask) ) in xstate_set_init() [all …]
|
A D | i8259.c | 97 unsigned int mask = 1 << irq; in _disable_8259A_irq() local 101 cached_irq_mask |= mask; in _disable_8259A_irq() 117 unsigned int mask = ~(1 << desc->irq); in enable_8259A_irq() local 121 cached_irq_mask &= mask; in enable_8259A_irq() 132 unsigned int mask = 1<<irq; in i8259A_irq_pending() local 138 ret = inb(0x20) & mask; in i8259A_irq_pending() 140 ret = inb(0xA0) & (mask >> 8); in i8259A_irq_pending()
|
/xen-4.10.0-shim-comet/xen/arch/arm/arm64/ |
A D | insn.c | 43 u32 mask; in aarch64_get_imm_shift_mask() local 48 mask = BIT(26) - 1; in aarch64_get_imm_shift_mask() 52 mask = BIT(19) - 1; in aarch64_get_imm_shift_mask() 56 mask = BIT(16) - 1; in aarch64_get_imm_shift_mask() 60 mask = BIT(14) - 1; in aarch64_get_imm_shift_mask() 64 mask = BIT(12) - 1; in aarch64_get_imm_shift_mask() 68 mask = BIT(9) - 1; in aarch64_get_imm_shift_mask() 72 mask = BIT(7) - 1; in aarch64_get_imm_shift_mask() 77 mask = BIT(6) - 1; in aarch64_get_imm_shift_mask() 81 mask = BIT(6) - 1; in aarch64_get_imm_shift_mask() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/arm/ |
A D | guest_walk.c | 38 paddr_t mask, paddr; in guest_walk_sd() local 46 if ( n == 0 || !(gva & mask) ) in guest_walk_sd() 91 mask = GENMASK(31, (14 - n)); in guest_walk_sd() 92 paddr = (ttbr & mask); in guest_walk_sd() 94 mask = GENMASK((31 - n), 20); in guest_walk_sd() 95 paddr |= (gva & mask) >> 18; in guest_walk_sd() 114 mask = GENMASK(19, 12); in guest_walk_sd() 165 *ipa = gva & mask; in guest_walk_sd() 369 paddr_t mask, paddr; in guest_walk_ld() local 477 if ( ((t1_sz == 0) && !ttbr) || (t1_sz && (gva & mask) == mask) ) in guest_walk_ld() [all …]
|
A D | smp.c | 8 void flush_tlb_mask(const cpumask_t *mask) in flush_tlb_mask() argument 14 void smp_send_event_check_mask(const cpumask_t *mask) in smp_send_event_check_mask() argument 16 send_SGI_mask(mask, GIC_SGI_EVENT_CHECK); in smp_send_event_check_mask() 19 void smp_send_call_function_mask(const cpumask_t *mask) in smp_send_call_function_mask() argument 23 cpumask_andnot(&target_mask, mask, cpumask_of(smp_processor_id())); in smp_send_call_function_mask() 27 if ( cpumask_test_cpu(smp_processor_id(), mask) ) in smp_send_call_function_mask()
|
/xen-4.10.0-shim-comet/tools/libxc/ |
A D | xc_pagetab.c | 33 uint64_t paddr, mask, pte = 0; in xc_translate_foreign_address() local 72 mask = 0x0000ff8000000000ull; in xc_translate_foreign_address() 75 mask = 0x0000007fc0000000ull; in xc_translate_foreign_address() 78 mask = 0x00000000ffc00000ull; in xc_translate_foreign_address() 84 paddr += ((virt & mask) >> (xc_ffs64(mask) - 1)) * size; in xc_translate_foreign_address() 97 mask = ((mask ^ ~-mask) >> 1); /* All bits below first set bit */ in xc_translate_foreign_address() 98 return ((paddr & ~mask) | (virt & mask)) >> PAGE_SHIFT; in xc_translate_foreign_address() 100 mask >>= (pt_levels == 2 ? 10 : 9); in xc_translate_foreign_address()
|
A D | xc_tbuf.c | 117 int xc_tbuf_set_cpu_mask(xc_interface *xch, xc_cpumap_t mask) in xc_tbuf_set_cpu_mask() argument 120 DECLARE_HYPERCALL_BOUNCE(mask, 0, XC_HYPERCALL_BUFFER_BOUNCE_IN); in xc_tbuf_set_cpu_mask() 131 HYPERCALL_BOUNCE_SET_SIZE(mask, cpusize); in xc_tbuf_set_cpu_mask() 140 if ( xc_hypercall_bounce_pre(xch, mask) ) in xc_tbuf_set_cpu_mask() 150 set_xen_guest_handle(sysctl.u.tbuf_op.cpu_mask.bitmap, mask); in xc_tbuf_set_cpu_mask() 155 xc_hypercall_bounce_post(xch, mask); in xc_tbuf_set_cpu_mask() 161 int xc_tbuf_set_evt_mask(xc_interface *xch, uint32_t mask) in xc_tbuf_set_evt_mask() argument 168 sysctl.u.tbuf_op.evt_mask = mask; in xc_tbuf_set_evt_mask()
|
/xen-4.10.0-shim-comet/xen/common/ |
A D | pdx.c | 43 static u64 __init fill_mask(u64 mask) in fill_mask() argument 45 while (mask & (mask + 1)) in fill_mask() 46 mask |= mask + 1; in fill_mask() 47 return mask; in fill_mask() 71 void __init pfn_pdx_hole_setup(unsigned long mask) in pfn_pdx_hole_setup() argument 83 i = find_next_zero_bit(&mask, BITS_PER_LONG, j); in pfn_pdx_hole_setup() 84 j = find_next_bit(&mask, BITS_PER_LONG, i); in pfn_pdx_hole_setup()
|
A D | softirq.c | 73 void cpumask_raise_softirq(const cpumask_t *mask, unsigned int nr) in cpumask_raise_softirq() argument 86 for_each_cpu(cpu, mask) in cpumask_raise_softirq() 119 cpumask_t *mask = &per_cpu(batch_mask, this_cpu); in cpu_raise_softirq_batch_finish() local 122 for_each_cpu ( cpu, mask ) in cpu_raise_softirq_batch_finish() 124 __cpumask_clear_cpu(cpu, mask); in cpu_raise_softirq_batch_finish() 125 smp_send_event_check_mask(mask); in cpu_raise_softirq_batch_finish() 126 cpumask_clear(mask); in cpu_raise_softirq_batch_finish()
|
A D | bitmap.c | 141 upper &= mask; in __bitmap_shift_right() 145 lower &= mask; in __bitmap_shift_right() 150 dst[k] &= mask; in __bitmap_shift_right() 426 unsigned long mask; in bitmap_find_free_region() local 434 mask = (1ul << (pages - 1)); in bitmap_find_free_region() 435 mask += mask - 1; in bitmap_find_free_region() 443 bitmap[index] |= (mask << offset); in bitmap_find_free_region() 466 mask += mask - 1; in bitmap_release_region() 467 bitmap[index] &= ~(mask << offset); in bitmap_release_region() 483 mask += mask - 1; in bitmap_allocate_region() [all …]
|
/xen-4.10.0-shim-comet/xen/include/asm-arm/ |
A D | bitops.h | 52 unsigned int mask = BIT_MASK(nr); in __test_and_set_bit() local 57 *p = old | mask; in __test_and_set_bit() 58 return (old & mask) != 0; in __test_and_set_bit() 72 unsigned int mask = BIT_MASK(nr); in __test_and_clear_bit() local 77 *p = old & ~mask; in __test_and_clear_bit() 78 return (old & mask) != 0; in __test_and_clear_bit() 85 unsigned int mask = BIT_MASK(nr); in __test_and_change_bit() local 90 *p = old ^ mask; in __test_and_change_bit() 91 return (old & mask) != 0; in __test_and_change_bit()
|
A D | vreg.h | 136 unsigned long mask = VREG_REG_MASK(size); in vreg_reg_update() local 139 *reg &= ~(mask << shift); in vreg_reg_update() 140 *reg |= ((unsigned long)val & mask) << shift; in vreg_reg_update() 147 unsigned long mask = VREG_REG_MASK(size); in vreg_reg_setbits() local 150 *reg |= ((unsigned long)bits & mask) << shift; in vreg_reg_setbits() 157 unsigned long mask = VREG_REG_MASK(size); in vreg_reg_clearbits() local 160 *reg &= ~(((unsigned long)bits & mask) << shift); in vreg_reg_clearbits()
|
/xen-4.10.0-shim-comet/xen/arch/x86/hvm/ |
A D | vpic.c | 54 if ( mask == 0 ) in vpic_get_priority() 67 uint8_t mask; in vpic_get_highest_priority_irq() local 84 mask = vpic->isr; in vpic_get_highest_priority_irq() 86 mask &= ~(1 << 2); in vpic_get_highest_priority_irq() 88 mask &= ~vpic->imr; in vpic_get_highest_priority_irq() 139 uint8_t mask = 1 << irq; in __vpic_intack() local 145 if ( !(vpic->elcr & mask) ) in __vpic_intack() 146 vpic->irr &= ~mask; in __vpic_intack() 149 vpic->isr |= mask; in __vpic_intack() 461 vpic->irr |= mask; in vpic_irq_positive_edge() [all …]
|
/xen-4.10.0-shim-comet/xen/include/xen/ |
A D | cpumask.h | 349 return *mask != NULL; in alloc_cpumask_var() 355 return *mask != NULL; in zalloc_cpumask_var() 358 static inline void free_cpumask_var(cpumask_var_t mask) in free_cpumask_var() argument 360 xfree(mask); in free_cpumask_var() 372 cpumask_clear(*mask); in zalloc_cpumask_var() 376 static inline void free_cpumask_var(cpumask_var_t mask) in free_cpumask_var() argument 382 #define for_each_cpu(cpu, mask) \ argument 383 for ((cpu) = cpumask_first(mask); \ 385 (cpu) = cpumask_next(cpu, mask)) 387 #define for_each_cpu(cpu, mask) \ argument [all …]
|
A D | sched-if.h | 247 const cpumask_t *mask) in has_soft_affinity() argument 252 cpumask_intersects(v->cpu_soft_affinity, mask); in has_soft_affinity() 262 affinity_balance_cpumask(const struct vcpu *v, int step, cpumask_t *mask) in affinity_balance_cpumask() argument 266 cpumask_and(mask, v->cpu_soft_affinity, v->cpu_hard_affinity); in affinity_balance_cpumask() 268 if ( unlikely(cpumask_empty(mask)) ) in affinity_balance_cpumask() 269 cpumask_copy(mask, v->cpu_hard_affinity); in affinity_balance_cpumask() 272 cpumask_copy(mask, v->cpu_hard_affinity); in affinity_balance_cpumask()
|
/xen-4.10.0-shim-comet/xen/arch/x86/cpu/mtrr/ |
A D | generic.c | 202 unsigned long mask = smp_changes_mask; in mtrr_state_warn() local 206 if (!mask) in mtrr_state_warn() 208 if (mask & MTRR_CHANGE_MASK_FIXED) in mtrr_state_warn() 210 if (mask & MTRR_CHANGE_MASK_VARIABLE) in mtrr_state_warn() 212 if (mask & MTRR_CHANGE_MASK_DEFTYPE) in mtrr_state_warn() 347 mask_lo = (uint32_t)vr->mask; in set_mtrr_var_ranges() 348 mask_hi = (uint32_t)(vr->mask >> 32); in set_mtrr_var_ranges() 442 unsigned long mask, count; in generic_set_all() local 449 mask = set_mtrr_state(); in generic_set_all() 456 if (mask & 0x01) in generic_set_all() [all …]
|
/xen-4.10.0-shim-comet/tools/firmware/hvmloader/ |
A D | 32bitbios_support.c | 58 uint32_t mask = shdr[i].sh_addralign - 1; in relocate_32bitbios() local 59 reloc_off = (reloc_off + mask) & ~mask; in relocate_32bitbios() 81 uint32_t mask = shdr[i].sh_addralign - 1; in relocate_32bitbios() local 88 reloc_off = (reloc_off + mask) & ~mask; in relocate_32bitbios()
|
/xen-4.10.0-shim-comet/xen/arch/arm/arm64/lib/ |
A D | memcmp.S | 58 mask .req x13 label 93 mov mask, #~0 94 CPU_BE( lsr mask, mask, limit ) 95 CPU_LE( lsl mask, mask, limit ) 96 bic data1, data1, mask 97 bic data2, data2, mask 99 orr diff, diff, mask
|
/xen-4.10.0-shim-comet/xen/include/asm-x86/hvm/svm/ |
A D | amd-iommu-proto.h | 141 static inline u32 get_field_from_reg_u32(u32 reg_value, u32 mask, u32 shift) in get_field_from_reg_u32() argument 144 field = (reg_value & mask) >> shift; in get_field_from_reg_u32() 149 u32 mask, u32 shift, u32 *reg) in set_field_in_reg_u32() argument 151 reg_value &= ~mask; in set_field_in_reg_u32() 152 reg_value |= (field << shift) & mask; in set_field_in_reg_u32() 158 static inline u8 get_field_from_byte(u8 value, u8 mask) in get_field_from_byte() argument 160 return (value & mask) / (mask & -mask); in get_field_from_byte()
|
/xen-4.10.0-shim-comet/xen/arch/x86/acpi/cpufreq/ |
A D | cpufreq.c | 129 const cpumask_t *mask; member 180 ASSERT(cpumask_weight(cmd->mask) == 1); in drv_read() 186 on_selected_cpus(cmd->mask, do_drv_read, cmd, 1); in drv_read() 194 on_selected_cpus(cmd->mask, do_drv_write, cmd, 1); in drv_write() 197 static u32 get_cur_val(const cpumask_t *mask) in get_cur_val() argument 204 if (unlikely(cpumask_empty(mask))) in get_cur_val() 207 if (!cpumask_test_cpu(cpu, mask)) in get_cur_val() 208 cpu = cpumask_first(mask); in get_cur_val() 231 cmd.mask = cpumask_of(cpu); in get_cur_val() 442 cmd.mask = &online_policy_cpus; in acpi_cpufreq_target() [all …]
|