Home
last modified time | relevance | path

Searched refs:bit (Results 1 – 25 of 100) sorted by relevance

1234

/xen-4.10.0-shim-comet/xen/xsm/flask/ss/
A Debitmap.h79 #define EBITMAP_NODE_INDEX(node, bit) \ argument
80 (((bit) - (node)->startbit) / EBITMAP_UNIT_SIZE)
81 #define EBITMAP_NODE_OFFSET(node, bit) \ argument
82 (((bit) - (node)->startbit) % EBITMAP_UNIT_SIZE)
87 unsigned int index = EBITMAP_NODE_INDEX(n, bit); in ebitmap_node_get_bit()
88 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); in ebitmap_node_get_bit()
99 unsigned int index = EBITMAP_NODE_INDEX(n, bit); in ebitmap_node_set_bit()
100 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); in ebitmap_node_set_bit()
110 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); in ebitmap_node_clr_bit()
116 #define ebitmap_for_each_positive_bit(e, n, bit) \ argument
[all …]
A Debitmap.c107 int ebitmap_get_bit(struct ebitmap *e, unsigned long bit) in ebitmap_get_bit() argument
111 if ( e->highbit < bit ) in ebitmap_get_bit()
115 while ( n && (n->startbit <= bit) ) in ebitmap_get_bit()
117 if ( (n->startbit + EBITMAP_SIZE) > bit ) in ebitmap_get_bit()
118 return ebitmap_node_get_bit(n, bit); in ebitmap_get_bit()
131 while ( n && n->startbit <= bit ) in ebitmap_set_bit()
133 if ( (n->startbit + EBITMAP_SIZE) > bit ) in ebitmap_set_bit()
137 ebitmap_node_set_bit(n, bit); in ebitmap_set_bit()
143 ebitmap_node_clr_bit(n, bit); in ebitmap_set_bit()
182 new->startbit = bit - (bit % EBITMAP_SIZE); in ebitmap_set_bit()
[all …]
/xen-4.10.0-shim-comet/xen/arch/x86/
A Dbitops.c31 unsigned int set, bit = offset & (BITS_PER_LONG - 1); in __find_next_bit() local
35 if ( bit != 0 ) in __find_next_bit()
38 set = __scanbit(*p >> bit, BITS_PER_LONG - bit); in __find_next_bit()
39 if ( set < (BITS_PER_LONG - bit) ) in __find_next_bit()
41 offset += BITS_PER_LONG - bit; in __find_next_bit()
81 unsigned int set, bit = offset & (BITS_PER_LONG - 1); in __find_next_zero_bit() local
85 if ( bit != 0 ) in __find_next_zero_bit()
88 set = __scanbit(~(*p >> bit), BITS_PER_LONG - bit); in __find_next_zero_bit()
89 if ( set < (BITS_PER_LONG - bit) ) in __find_next_zero_bit()
91 offset += BITS_PER_LONG - bit; in __find_next_zero_bit()
/xen-4.10.0-shim-comet/xen/common/
A Dvmap.c51 unsigned int start, bit; in vm_alloc() local
71 if ( bit > vm_top[t] ) in vm_alloc()
72 bit = vm_top[t]; in vm_alloc()
88 start = bit; in vm_alloc()
129 for ( bit = start; bit < start + nr; ++bit ) in vm_alloc()
131 if ( bit < vm_top[t] ) in vm_alloc()
136 vm_low[t] = bit; in vm_alloc()
177 if ( !bit ) in vm_free()
183 if ( !bit ) in vm_free()
190 if ( bit < vm_low[type] ) in vm_free()
[all …]
A Dkexec.c740 *bit = KEXEC_FLAG_DEFAULT_POS; in kexec_load_get_bits()
744 *bit = KEXEC_FLAG_CRASH_POS; in kexec_load_get_bits()
820 int base, bit, pos, ret = -EINVAL; in kexec_exec() local
825 if ( kexec_load_get_bits(exec.type, &base, &bit) ) in kexec_exec()
828 pos = (test_bit(bit, &kexec_flags) != 0); in kexec_exec()
851 int base, bit, pos; in kexec_swap_images() local
859 if ( kexec_load_get_bits(type, &base, &bit) ) in kexec_swap_images()
864 pos = (test_bit(bit, &kexec_flags) != 0); in kexec_swap_images()
871 change_bit(bit, &kexec_flags); in kexec_swap_images()
1199 int base, bit; in kexec_status() local
[all …]
/xen-4.10.0-shim-comet/xen/arch/x86/cpu/mcheck/
A Dx86_mca.h107 static inline void mcabanks_clear(int bit, struct mca_banks *banks) in mcabanks_clear() argument
109 if (!banks || !banks->bank_map || bit >= banks->num) in mcabanks_clear()
111 clear_bit(bit, banks->bank_map); in mcabanks_clear()
114 static inline void mcabanks_set(int bit, struct mca_banks* banks) in mcabanks_set() argument
116 if (!banks || !banks->bank_map || bit >= banks->num) in mcabanks_set()
118 set_bit(bit, banks->bank_map); in mcabanks_set()
121 static inline int mcabanks_test(int bit, struct mca_banks* banks) in mcabanks_test() argument
123 if (!banks || !banks->bank_map || bit >= banks->num) in mcabanks_test()
125 return test_bit(bit, banks->bank_map); in mcabanks_test()
A Dmctelem.c378 unsigned bit; in mctelem_reserve() local
382 bit = find_next_bit(mctctl.mctc_free, MC_NENT, start_bit); in mctelem_reserve()
384 if (bit >= MC_NENT) { in mctelem_reserve()
390 if (test_and_clear_bit(bit, mctctl.mctc_free)) { in mctelem_reserve()
392 struct mctelem_ent *tep = mctctl.mctc_elems + bit; in mctelem_reserve()
/xen-4.10.0-shim-comet/xen/arch/arm/arm32/lib/
A Dfindbit.S33 add r2, r2, #8 @ next bit pointer
56 add r2, r2, #1 @ align bit pointer
57 b 2b @ loop for next bit
74 add r2, r2, #8 @ next bit pointer
96 add r2, r2, #1 @ align bit pointer
97 b 2b @ loop for next bit
112 add r2, r2, #8 @ next bit pointer
132 add r2, r2, #1 @ align bit pointer
133 b 2b @ loop for next bit
146 add r2, r2, #8 @ next bit pointer
[all …]
A Ddiv64.S54 @ See if we need to handle upper 32-bit result.
61 @ The bit position is stored in ip.
84 @ The division loop for needed upper bit positions.
93 @ See if we need to handle lower 32-bit result.
100 @ The division loop for lower bit positions.
102 @ divisor for comparisons, considering the carry-out bit as well.
115 @ (the 33th bit) this is a false positive so resume the loop.
141 @ If no bit position left then we are done.
A Dbitops.h9 and r3, r0, #31 @ Get bit offset
34 and r3, r0, #31 @ Get bit offset
45 ands r0, r2, r3 @ save old value of bit
46 \instr r2, r2, r3 @ toggle bit
/xen-4.10.0-shim-comet/xen/include/asm-x86/hvm/svm/
A Damd-iommu-proto.h200 static inline void iommu_set_bit(uint32_t *reg, uint32_t bit) in iommu_set_bit() argument
202 set_field_in_reg_u32(IOMMU_CONTROL_ENABLED, *reg, 1U << bit, bit, reg); in iommu_set_bit()
205 static inline void iommu_clear_bit(uint32_t *reg, uint32_t bit) in iommu_clear_bit() argument
207 set_field_in_reg_u32(IOMMU_CONTROL_DISABLED, *reg, 1U << bit, bit, reg); in iommu_clear_bit()
210 static inline uint32_t iommu_get_bit(uint32_t reg, uint32_t bit) in iommu_get_bit() argument
212 return get_field_from_reg_u32(reg, 1U << bit, bit); in iommu_get_bit()
215 static inline int iommu_has_cap(struct amd_iommu *iommu, uint32_t bit) in iommu_has_cap() argument
217 return !!(iommu->cap.header & (1u << bit)); in iommu_has_cap()
220 static inline int amd_iommu_has_feature(struct amd_iommu *iommu, uint32_t bit) in amd_iommu_has_feature() argument
224 return !!(iommu->features & (1U << bit)); in amd_iommu_has_feature()
/xen-4.10.0-shim-comet/docs/misc/arm/
A Dbooting.txt4 Xen follows the zImage protocol defined for 32-bit ARM Linux[1] and the
10 The exceptions to this on 32-bit ARM are as follows:
24 There are no exception on 64-bit ARM.
34 * The bit SCR_EL3.HCE (resp. SCR.HCE for 32-bit ARM) must be set to 1.
/xen-4.10.0-shim-comet/tools/libxl/
A Dlibxl_utils.h98 int libxl_bitmap_test(const libxl_bitmap *bitmap, int bit);
99 void libxl_bitmap_set(libxl_bitmap *bitmap, int bit);
100 void libxl_bitmap_reset(libxl_bitmap *bitmap, int bit);
117 static inline int libxl_bitmap_cpu_valid(libxl_bitmap *bitmap, int bit) in libxl_bitmap_cpu_valid() argument
119 return bit >= 0 && bit < (bitmap->size * 8); in libxl_bitmap_cpu_valid()
A Dlibxl_utils.c689 int libxl_bitmap_test(const libxl_bitmap *bitmap, int bit) in libxl_bitmap_test() argument
691 if (bit >= bitmap->size * 8) in libxl_bitmap_test()
693 return (bitmap->map[bit / 8] & (1 << (bit & 7))) ? 1 : 0; in libxl_bitmap_test()
696 void libxl_bitmap_set(libxl_bitmap *bitmap, int bit) in libxl_bitmap_set() argument
698 if (bit >= bitmap->size * 8) in libxl_bitmap_set()
700 bitmap->map[bit / 8] |= 1 << (bit & 7); in libxl_bitmap_set()
703 void libxl_bitmap_reset(libxl_bitmap *bitmap, int bit) in libxl_bitmap_reset() argument
705 if (bit >= bitmap->size * 8) in libxl_bitmap_reset()
707 bitmap->map[bit / 8] &= ~(1 << (bit & 7)); in libxl_bitmap_reset()
/xen-4.10.0-shim-comet/xen/include/xen/
A Dbitops.h234 #define for_each_set_bit(bit, addr, size) \ argument
235 for ( (bit) = find_first_bit(addr, size); \
236 (bit) < (size); \
237 (bit) = find_next_bit(addr, size, (bit) + 1) )
/xen-4.10.0-shim-comet/xen/include/public/io/
A Dnetif.h304 unsigned int bit; in xen_netif_toeplitz_hash() local
306 for (bit = 0; bit < 8; bit++) { in xen_netif_toeplitz_hash()
/xen-4.10.0-shim-comet/docs/misc/arm/device-tree/
A Dguest.txt26 xen,uefi-system-table | 64-bit | Guest physical address of the UEFI System
29 xen,uefi-mmap-start | 64-bit | Guest physical address of the UEFI memory
32 xen,uefi-mmap-size | 32-bit | Size in bytes of the UEFI memory map
35 xen,uefi-mmap-desc-size | 32-bit | Size in bytes of each entry in the UEFI
38 xen,uefi-mmap-desc-ver | 32-bit | Version of the mmap descriptor format.
/xen-4.10.0-shim-comet/xen/include/asm-x86/
A Dcpufeature.h22 #define cpu_has(c, bit) test_bit(bit, (c)->x86_capability) argument
23 #define boot_cpu_has(bit) test_bit(bit, boot_cpu_data.x86_capability) argument
/xen-4.10.0-shim-comet/tools/debugger/gdbsx/
A DREADME7 of 32 or 64bit PV or HVM elf guest binaries. It can also be run standalone,
17 - dom0> gdbsx -c 1 64 : displays VCPU contexts for 64bit guest with domid 1
21 connects to a 64bit guest with domid 2 and waits for gdb connection
26 - Additionally, to debug 32bit loadable kernel modules, please do following:
97 # 4 for 32bit kernels. 8 for 64bit kernels.
/xen-4.10.0-shim-comet/tools/libvchan/
A Dio.c94 static inline void request_notify(struct libxenvchan *ctrl, uint8_t bit) in request_notify() argument
97 __sync_or_and_fetch(notify, bit); in request_notify()
101 static inline int send_notify(struct libxenvchan *ctrl, uint8_t bit) in send_notify() argument
106 prev = __sync_fetch_and_and(notify, ~bit); in send_notify()
107 if (prev & bit) in send_notify()
/xen-4.10.0-shim-comet/docs/man/
A Dxl-network-configuration.pod.541 guest of this VIF device. The value is a 48-bit number represented as
56 bit (bit 2 of the first byte) and clear the multicast bit (bit 1
58 bit pattern xxxxxx10 (where x is a randomly generated bit) and the
82 MAC and set the locally administered bit since this allows for more
/xen-4.10.0-shim-comet/tools/firmware/rombios/
A D32bitgateway.c76 ; Do an upcall into 32 bit space
81 ; dx, ax: 32 bit result of call (even if 'void' is expected)
119 ; Marshal arguments and call 32-bit function
/xen-4.10.0-shim-comet/docs/specs/
A Dlibxc-migration-stream.pandoc23 sizes between 32-bit and 64-bit toolstacks. This prevents domains
24 from being migrated between hosts running 32-bit and 64-bit
111 regardless of the setting of the endianness bit.
132 options bit 0: Endianness. 0 = little-endian, 1 = big-endian.
134 bit 1-15: Reserved.
248 Records may be _mandatory_ or _optional_. Optional records have bit
692 generated by a 32-bit or a 64-bit toolstack. These shall be
694 zero then it is a 64-bit image.
699 32-bit extended-info chunk ID (PV) 0xFFFFFFFF
700 32-bit Chunk type (HVM) < 0
[all …]
/xen-4.10.0-shim-comet/docs/misc/
A Dpvh.markdown19 * `cr0`: bit 0 (PE) must be set. All the other writeable bits are cleared.
23 * `cs`: must be a 32-bit read/execute code segment with a base of ‘0’
26 * `ds`, `es`: must be a 32-bit read/write data segment with a base of
29 * `tr`: must be a 32-bit TSS (active) with a base of '0' and a limit of '0x67'.
31 * `eflags`: bit 17 (VM) must be cleared. Bit 9 (IF) must be cleared.
A Dx86-xenpv-bootloader.markdown22 (32- or 64-bit). It should contain the standard Xen ELF notes allowing
49 systems with 32-bit userspace and an optional 64-bit kernel).

Completed in 39 milliseconds

1234