Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 240) sorted by relevance

12345678910

/qemu/scripts/kvm/
A Dvmxcap46 self.bits = bits
86 self.bits = bits
97 for bits in sorted(self.bits.keys(), key = first_bit):
106 print(' %-40s %s' % (self.bits[bits], fmt(v)))
111 bits = {
126 bits = {
139 bits = {
169 bits = {
203 bits = {
211 bits = {
[all …]
/qemu/
A Dpage-vary-common.c29 bool set_preferred_target_page_bits_common(int bits) in set_preferred_target_page_bits_common() argument
37 if (target_page.bits == 0 || target_page.bits > bits) { in set_preferred_target_page_bits_common()
41 target_page.bits = bits; in set_preferred_target_page_bits_common()
48 if (target_page.bits == 0) { in finalize_target_page_bits_common()
49 target_page.bits = min; in finalize_target_page_bits_common()
51 target_page.mask = -1ull << target_page.bits; in finalize_target_page_bits_common()
A Dpage-vary-target.c26 bool set_preferred_target_page_bits(int bits) in set_preferred_target_page_bits() argument
29 assert(bits >= TARGET_PAGE_BITS_MIN); in set_preferred_target_page_bits()
30 return set_preferred_target_page_bits_common(bits); in set_preferred_target_page_bits()
/qemu/util/
A Dbitmap.c43 long k, lim = bits/BITS_PER_LONG; in slow_bitmap_empty()
50 if (bits % BITS_PER_LONG) { in slow_bitmap_empty()
61 long k, lim = bits/BITS_PER_LONG; in slow_bitmap_full()
69 if (bits % BITS_PER_LONG) { in slow_bitmap_full()
89 if (bits % BITS_PER_LONG) { in slow_bitmap_equal()
107 if (bits % BITS_PER_LONG) { in slow_bitmap_complement()
116 long nr = BITS_TO_LONGS(bits); in slow_bitmap_and()
129 long nr = BITS_TO_LONGS(bits); in slow_bitmap_or()
140 long nr = BITS_TO_LONGS(bits); in slow_bitmap_xor()
151 long nr = BITS_TO_LONGS(bits); in slow_bitmap_andnot()
[all …]
/qemu/tests/qemu-iotests/
A D112.out14 refcount bits: 1
16 refcount bits: 64
18 refcount bits: 16
23 refcount bits: 16
32 refcount bits: 1
44 refcount bits: 2
56 refcount bits: 1
66 refcount bits: 64
92 refcount bits: 1
117 refcount bits: 2
[all …]
A D25739 def bits(self, granularity): member in Pattern
50 def bits(self, granularity): member in PatternGroup
54 res |= pattern.bits(granularity)
95 def dirty_bits(self, bits): argument
96 self._bits |= set(bits)
99 self.dirty_bits(GROUPS[n].bits(self.granularity))
104 def clear_bits(self, bits): argument
105 self._bits -= set(bits)
115 return sorted(self.bits)[0]
118 def bits(self): member in EmulatedBitmap
[all …]
/qemu/target/arm/tcg/
A Dvec_internal.h82 if (shift <= -bits) { in do_sqrshl_bhs()
94 } else if (shift < bits) { in do_sqrshl_bhs()
96 if (bits == 32) { in do_sqrshl_bhs()
101 int32_t extval = sextract32(val, 0, bits); in do_sqrshl_bhs()
111 return (1u << (bits - 1)) - (src >= 0); in do_sqrshl_bhs()
117 if (shift <= -(bits + round)) { in do_uqrshl_bhs()
125 } else if (shift < bits) { in do_uqrshl_bhs()
127 if (bits == 32) { in do_uqrshl_bhs()
132 uint32_t extval = extract32(val, 0, bits); in do_uqrshl_bhs()
142 return MAKE_64BIT_MASK(0, bits); in do_uqrshl_bhs()
[all …]
/qemu/include/qemu/
A Dbitmap.h69 #define DECLARE_BITMAP(name,bits) \ argument
70 unsigned long name[BITS_TO_LONGS(bits)]
77 #define DECLARE_BITMAP32(name, bits) \ argument
78 uint32_t name[BITS_TO_U32S(bits)]
83 int slow_bitmap_empty(const unsigned long *bitmap, long bits);
84 int slow_bitmap_full(const unsigned long *bitmap, long bits);
86 const unsigned long *bitmap2, long bits);
88 long bits);
90 const unsigned long *bitmap2, long bits);
92 const unsigned long *bitmap2, long bits);
[all …]
/qemu/docs/devel/testing/
A Dacpi-bits.rst61 ├── acpi-bits
62 │ ├── bits-config
63 │ │ └── bits-cfg.txt
64 │ ├── bits-tests
102 * ``tests/functional/acpi-bits/bits-config``:
107 ``bits-config.txt``:
112 * ``tests/functional/acpi-bits/bits-tests``:
121 do this, please clone the bits source from
122 https://gitlab.com/qemu-project/biosbits-bits/-/tree/qemu-bits.
123 Note that this is the "qemu-bits" branch and not the "bits" branch of the
[all …]
/qemu/docs/devel/
A Dloads-stores.rst37 - ``b`` : 8 bits
38 - ``w`` : 16 bits
39 - ``24`` : 24 bits
40 - ``l`` : 32 bits
41 - ``q`` : 64 bits
113 - ``b`` : 8 bits
114 - ``w`` : 16 bits
115 - ``l`` : 32 bits
147 - ``b`` : 8 bits
185 - ``b`` : 8 bits
[all …]
/qemu/hw/display/
A Dcirrus_vga_rop2.h107 unsigned bits, bits_xor; in glue() local
129 bits = cirrus_src(s, srcaddr++) ^ bits_xor; in glue()
136 index = (bits & bitmask); in glue()
157 unsigned bits; in glue() local
167 bits = cirrus_src(s, srcaddr++); in glue()
172 bits = cirrus_src(s, srcaddr++); in glue()
174 col = colors[!!(bits & bitmask)]; in glue()
192 unsigned int bits, bits_xor; in glue() local
216 if ((bits >> bitpos) & 1) { in glue()
237 unsigned int bits; in glue() local
[all …]
/qemu/audio/
A Dwavcapture.c12 int bits; member
98 wav->freq, wav->bits, wav->nchannels, in wav_capture_info()
108 int freq, int bits, int nchannels) in wav_start_capture() argument
122 if (bits != 8 && bits != 16) { in wav_start_capture()
123 error_report("incorrect bit count %d, must be 8 or 16", bits); in wav_start_capture()
134 bits16 = bits == 16; in wav_start_capture()
164 wav->bits = bits; in wav_start_capture()
A Dsndioaudio.c352 req.bits = 8; in sndio_init()
356 req.bits = 8; in sndio_init()
360 req.bits = 16; in sndio_init()
364 req.bits = 16; in sndio_init()
368 req.bits = 32; in sndio_init()
372 req.bits = 32; in sndio_init()
380 if (req.bits > 8) { in sndio_init()
410 if (self->par.bits != req.bits || self->par.bps != req.bits / 8 || in sndio_init()
411 self->par.sig != req.sig || (req.bits > 8 && self->par.le != req.le) || in sndio_init()
/qemu/scripts/tracetool/format/
A Dlog_stap.py36 bits = []
52 bits.append(literal)
56 bits.append(c_macro_to_format(macro))
61 bits.append(c_macro_to_format(macro))
77 bits.append(c_macro_to_format(macro))
79 bits.append(literal)
86 fmt = re.sub(r"%(\d*)(l+|z)(x|u|d)", r"%\1\3", "".join(bits))
/qemu/libdecnumber/
A DdecNumber.c714 dn->bits=bits | DECINF; in decNumberFromString()
723 dn->bits=bits | DECSNAN; in decNumberFromString()
856 dn->bits=bits; in decNumberFromString()
2214 res->bits=bits; in decNumberPower()
2241 res->bits=bits; in decNumberPower()
2394 dac->bits=(dac->bits & ~DECNEG) | bits; /* force correct sign */ in decNumberPower()
3512 dest->bits=src->bits; in decNumberCopy()
4021 bits=lhs->bits; /* .. */ in decAddOp()
4430 bits=(lhs->bits^rhs->bits)&DECNEG; /* assumed sign for divisions */ in decDivideOp()
5050 bits=(uByte)((lhs->bits^rhs->bits)&DECNEG); in decMultiplyOp()
[all …]
/qemu/include/libdecnumber/
A DdecNumber.h85 uint8_t bits; /* Indicator bits (see above) */ member
193 #define decNumberIsFinite(dn) (((dn)->bits&DECSPECIAL)==0)
194 #define decNumberIsInfinite(dn) (((dn)->bits&DECINF)!=0)
195 #define decNumberIsNaN(dn) (((dn)->bits&(DECNAN|DECSNAN))!=0)
196 #define decNumberIsNegative(dn) (((dn)->bits&DECNEG)!=0)
197 #define decNumberIsQNaN(dn) (((dn)->bits&(DECNAN))!=0)
198 #define decNumberIsSNaN(dn) (((dn)->bits&(DECSNAN))!=0)
199 #define decNumberIsSpecial(dn) (((dn)->bits&DECSPECIAL)!=0)
202 && (((dn)->bits&DECSPECIAL)==0))
/qemu/hw/sd/
A Dpl181.c216 uint32_t bits; in pl181_fifo_run() local
267 bits |= PL181_STATUS_TXFIFOEMPTY; in pl181_fifo_run()
268 bits |= PL181_STATUS_RXFIFOEMPTY; in pl181_fifo_run()
270 bits |= PL181_STATUS_TXDATAAVLBL; in pl181_fifo_run()
271 bits |= PL181_STATUS_RXDATAAVLBL; in pl181_fifo_run()
274 bits |= PL181_STATUS_TXFIFOFULL; in pl181_fifo_run()
275 bits |= PL181_STATUS_RXFIFOFULL; in pl181_fifo_run()
281 bits |= PL181_STATUS_RXFIFOHALFFULL; in pl181_fifo_run()
284 bits &= PL181_STATUS_RX_FIFO; in pl181_fifo_run()
286 bits &= PL181_STATUS_TX_FIFO; in pl181_fifo_run()
[all …]
/qemu/tests/functional/acpi-bits/bits-tests/
A Dsmilatency.py233 import bits
49 tsc_per_sec = bits.tsc_per_sec()
66 (max_latency, smi_count_delta, bins) = bits.smi_latency(long(15 * tsc_per_sec), bins)
77 …testsuite.print_detail("{}; average = {}; count = {}".format(desc, bits.format_tsc(bin.total/bin.c…
78 deltas = (bits.format_tsc(t2 - t1) for t1,t2 in zip(bin.times, bin.times[1:]))
84 …testsuite.print_detail("Summary of impact: observed maximum latency = {}".format(bits.format_tsc(m…
92 tsc_start = bits.rdtsc()
93 bits.outb(port, value)
94 return bits.rdtsc() - tsc_start
107 … SMIs (via outb, port={:#x}, value={:#x}): {}".format(count, port, value, bits.format_tsc(average))
A Dtestcpuid.py233 import bits
51 for cpu in bits.cpus():
52 …regs = bits.cpuid_result(*[(r >> shift) & m for r, m in zip(bits.cpuid(cpu, function, index), mask…
61 shifted_masks = bits.cpuid_result(*[m << shift for m in masks])
66 common_masks = bits.cpuid_result(*map(testutil.find_common_mask, regvalues))
67 common_values = bits.cpuid_result(*[v[0] & m for v, m in zip(regvalues, common_masks)])
69 …desc.append("Common bits: eax={eax:#010x} ebx={ebx:#010x} ecx={ecx:#010x} edx={edx:#010x}".for…
70 …desc.append("Mask of common bits: {eax:#010x} {ebx:#010x} {ecx:#010x} {edx:#010x}".for…
/qemu/hw/input/
A Dvirtio-input-host.c49 virtio_input_config bits; in virtio_input_bits_config() local
52 memset(&bits, 0, sizeof(bits)); in virtio_input_bits_config()
53 rc = ioctl(vih->fd, EVIOCGBIT(type, count/8), bits.u.bitmap); in virtio_input_bits_config()
59 if (bits.u.bitmap[i]) { in virtio_input_bits_config()
67 bits.select = VIRTIO_INPUT_CFG_EV_BITS; in virtio_input_bits_config()
68 bits.subsel = type; in virtio_input_bits_config()
69 bits.size = size; in virtio_input_bits_config()
70 virtio_input_add_config(VIRTIO_INPUT(vih), &bits); in virtio_input_bits_config()
/qemu/libdecnumber/dpd/
A Ddecimal32.c106 dw.bits|=dn->bits&DECNEG; in decimal32FromNumber()
111 if (dn->bits&DECSPECIAL) { /* a special value */ in decimal32FromNumber()
112 if (dn->bits&DECINF) targ=DECIMAL_Inf<<24; in decimal32FromNumber()
118 if (dn->bits&DECNAN) targ|=DECIMAL_NaN<<24; in decimal32FromNumber()
172 if (dn->bits&DECNEG) targ|=0x80000000; /* add sign bit */ in decimal32FromNumber()
203 if (sour&0x80000000) dn->bits=DECNEG; /* set sign if negative */ in decimal32ToNumber()
210 dn->bits|=DECINF; in decimal32ToNumber()
213 else if (sour&0x02000000) dn->bits|=DECSNAN; in decimal32ToNumber()
214 else dn->bits|=DECNAN; in decimal32ToNumber()
A Ddecimal128.c110 dw.bits|=dn->bits&DECNEG; in decimal128FromNumber()
115 if (dn->bits&DECSPECIAL) { /* a special value */ in decimal128FromNumber()
116 if (dn->bits&DECINF) targhi=DECIMAL_Inf<<24; in decimal128FromNumber()
122 if (dn->bits&DECNAN) targhi|=DECIMAL_NaN<<24; in decimal128FromNumber()
169 if (dn->bits&DECNEG) targhi|=0x80000000; /* add sign bit */ in decimal128FromNumber()
227 if (sourhi&0x80000000) dn->bits=DECNEG; /* set sign if negative */ in decimal128ToNumber()
234 dn->bits|=DECINF; in decimal128ToNumber()
237 else if (sourhi&0x02000000) dn->bits|=DECSNAN; in decimal128ToNumber()
238 else dn->bits|=DECNAN; in decimal128ToNumber()
/qemu/include/exec/
A Dpage-vary.h25 int bits; member
30 bool set_preferred_target_page_bits_common(int bits);
44 bool set_preferred_target_page_bits(int bits);
A Dexec-all.h160 uint16_t idxmap, unsigned bits);
164 (CPUState *cpu, vaddr addr, uint16_t idxmap, unsigned bits);
179 unsigned bits);
186 unsigned bits);
283 unsigned bits) in tlb_flush_page_bits_by_mmuidx() argument
288 uint16_t idxmap, unsigned bits) in tlb_flush_page_bits_by_mmuidx_all_cpus_synced() argument
293 unsigned bits) in tlb_flush_range_by_mmuidx() argument
300 unsigned bits) in tlb_flush_range_by_mmuidx_all_cpus_synced() argument
/qemu/include/ui/
A Dsurface.h83 int bits = PIXMAN_FORMAT_BPP(surface_format(s)); in surface_bits_per_pixel() local
84 return bits; in surface_bits_per_pixel()
89 int bits = PIXMAN_FORMAT_BPP(surface_format(s)); in surface_bytes_per_pixel() local
90 return DIV_ROUND_UP(bits, 8); in surface_bytes_per_pixel()

Completed in 64 milliseconds

12345678910