Home
last modified time | relevance | path

Searched refs:index (Results 76 – 100 of 511) sorted by relevance

12345678910>>...21

/qemu/hw/display/
H A Dg364fb.c140 uint8_t index; in g364fb_draw_graphic8() local
150 index = *vram; in g364fb_draw_graphic8()
152 s->color_palette[index][0], in g364fb_draw_graphic8()
153 s->color_palette[index][1], in g364fb_draw_graphic8()
154 s->color_palette[index][2]); in g364fb_draw_graphic8()
157 index = op - 1; in g364fb_draw_graphic8()
159 s->cursor_palette[index][0], in g364fb_draw_graphic8()
165 index = *vram; in g364fb_draw_graphic8()
167 s->color_palette[index][0], in g364fb_draw_graphic8()
168 s->color_palette[index][1], in g364fb_draw_graphic8()
[all …]
H A Dvmware_vga.c60 int index; member
800 return s->index; in vmsvga_index_read()
807 s->index = index; in vmsvga_index_write()
818 switch (s->index) { in vmsvga_value_read()
967 if (s->index >= SVGA_SCRATCH_BASE && in vmsvga_value_read()
978 if (s->index >= SVGA_SCRATCH_BASE) { in vmsvga_value_read()
980 } else if (s->index >= SVGA_PALETTE_BASE) { in vmsvga_value_read()
992 if (s->index >= SVGA_SCRATCH_BASE) { in vmsvga_value_write()
999 switch (s->index) { in vmsvga_value_write()
1100 if (s->index >= SVGA_SCRATCH_BASE && in vmsvga_value_write()
[all …]
/qemu/tests/qtest/fuzz/
H A Dgeneric_fuzz.c95 int index; member
107 if (info->index == 0) { in get_io_address_cb()
113 info->index--; in get_io_address_cb()
140 if ((i % p.len) == p.index) { in pattern_alloc()
294 uint8_t index, in get_io_address() argument
301 cb_info.index = index; in get_io_address()
310 } while (cb_info.index != index && !cb_info.found); in get_io_address()
322 uint8_t index, uint16_t offset) in get_pio_address() argument
336 uint8_t index, uint32_t offset) in get_mmio_address() argument
563 uint8_t index; in op_add_dma_pattern() member
[all …]
/qemu/docs/devel/
H A Dindex.rst32 index-process
33 index-build
34 index-api
35 index-internals
36 index-tcg
/qemu/
H A Dqemu-bridge-helper.c244 int index; in main() local
265 for (index = 1; index < argc; index++) { in main()
266 if (strcmp(argv[index], "--use-vnet") == 0) { in main()
268 } else if (strncmp(argv[index], "--br=", 5) == 0) { in main()
269 bridge = &argv[index][5]; in main()
270 } else if (strncmp(argv[index], "--fd=", 5) == 0) { in main()
271 unixfd = atoi(&argv[index][5]); in main()
/qemu/util/
H A Dqdist.c138 int index; in qdist_pr_internal() local
143 index = (e->count - min) / (max - min) * (QDIST_NR_BLOCK_CODES - 1); in qdist_pr_internal()
144 g_string_append_unichar(s, qdist_blocks[index]); in qdist_pr_internal()
330 static inline double qdist_x(const struct qdist *dist, int index) in qdist_x() argument
335 return dist->entries[index].x; in qdist_x()
366 static double qdist_pairwise_avg(const struct qdist *dist, size_t index, in qdist_pairwise_avg() argument
375 struct qdist_entry *e = &dist->entries[index + i]; in qdist_pairwise_avg()
383 return qdist_pairwise_avg(dist, index, n2, count) + in qdist_pairwise_avg()
384 qdist_pairwise_avg(dist, index + n2, n - n2, count); in qdist_pairwise_avg()
/qemu/tests/qtest/
H A Dnpcm7xx_smbus-test.c341 intptr_t index = (intptr_t)data; in test_disable_bus() local
342 uint64_t base_addr = SMBUS_ADDR(index); in test_disable_bus()
356 intptr_t index = (intptr_t)data; in test_invalid_addr() local
357 uint64_t base_addr = SMBUS_ADDR(index); in test_invalid_addr()
358 int irq = SMBUS_IRQ(index); in test_invalid_addr()
378 intptr_t index = (intptr_t)data; in test_single_mode() local
379 uint64_t base_addr = SMBUS_ADDR(index); in test_single_mode()
380 int irq = SMBUS_IRQ(index); in test_single_mode()
414 intptr_t index = (intptr_t)data; in test_fifo_mode() local
415 uint64_t base_addr = SMBUS_ADDR(index); in test_fifo_mode()
[all …]
/qemu/include/hw/i386/
H A Dapic_internal.h215 static inline void apic_set_bit(uint32_t *tab, int index) in apic_set_bit() argument
218 i = index >> 5; in apic_set_bit()
219 mask = 1 << (index & 0x1f); in apic_set_bit()
223 static inline int apic_get_bit(uint32_t *tab, int index) in apic_get_bit() argument
226 i = index >> 5; in apic_get_bit()
227 mask = 1 << (index & 0x1f); in apic_get_bit()
/qemu/include/standard-headers/linux/
H A Dvhost_types.h20 unsigned int index; member
25 unsigned int index; member
31 unsigned int index; member
61 unsigned int index; member
/qemu/target/sh4/
H A Dhelper.c511 int index = (addr & 0x00000300) >> 8; in cpu_sh4_read_mmaped_itlb_addr() local
512 tlb_t * entry = &s->itlb[index]; in cpu_sh4_read_mmaped_itlb_addr()
526 int index = (addr & 0x00000300) >> 8; in cpu_sh4_write_mmaped_itlb_addr() local
527 tlb_t * entry = &s->itlb[index]; in cpu_sh4_write_mmaped_itlb_addr()
542 int index = (addr & 0x00000300) >> 8; in cpu_sh4_read_mmaped_itlb_data() local
543 tlb_t * entry = &s->itlb[index]; in cpu_sh4_read_mmaped_itlb_data()
566 tlb_t * entry = &s->itlb[index]; in cpu_sh4_write_mmaped_itlb_data()
593 tlb_t * entry = &s->utlb[index]; in cpu_sh4_read_mmaped_utlb_addr()
662 tlb_t * entry = &s->utlb[index]; in cpu_sh4_write_mmaped_utlb_addr()
683 tlb_t * entry = &s->utlb[index]; in cpu_sh4_read_mmaped_utlb_data()
[all …]
/qemu/scripts/
H A Dget_maintainer.pl860 my $index = 0;
867 $index++;
870 return $index;
874 my ($index) = @_;
881 $index--;
884 return $index;
888 my ($index) = @_;
895 $index++;
898 return $index;
902 my ($index) = @_;
[all …]
/qemu/block/
H A Dqcow2-refcount.c145 return (((const uint8_t *)refcount_array)[index / 8] >> (index % 8)) & 0x1; in get_refcount_ro0()
152 ((uint8_t *)refcount_array)[index / 8] &= ~(0x1 << (index % 8)); in set_refcount_ro0()
153 ((uint8_t *)refcount_array)[index / 8] |= value << (index % 8); in set_refcount_ro0()
158 return (((const uint8_t *)refcount_array)[index / 4] >> (2 * (index % 4))) in get_refcount_ro1()
166 ((uint8_t *)refcount_array)[index / 4] &= ~(0x3 << (2 * (index % 4))); in set_refcount_ro1()
167 ((uint8_t *)refcount_array)[index / 4] |= value << (2 * (index % 4)); in set_refcount_ro1()
172 return (((const uint8_t *)refcount_array)[index / 2] >> (4 * (index % 2))) in get_refcount_ro2()
180 ((uint8_t *)refcount_array)[index / 2] &= ~(0xf << (4 * (index % 2))); in set_refcount_ro2()
181 ((uint8_t *)refcount_array)[index / 2] |= value << (4 * (index % 2)); in set_refcount_ro2()
193 ((uint8_t *)refcount_array)[index] = value; in set_refcount_ro3()
[all …]
/qemu/tests/tcg/mips/user/ase/dsp/
H A Dtest_dsp_r1_lwx.c8 unsigned long addr, index; in main() local
14 index = 0; in main()
19 : "r"(index), "r"(addr) in main()
H A Dtest_dsp_r1_lhx.c8 unsigned long addr, index; in main() local
14 index = 0; in main()
19 : "r"(index), "r"(addr) in main()
H A Dtest_dsp_r1_lbux.c8 unsigned long addr, index; in main() local
14 index = 0; in main()
19 : "r"(index), "r"(addr) in main()
/qemu/hw/xen/
H A Dxen_pt_config_init.c372 if ((0 < index) && (index < PCI_ROM_SLOT)) { in xen_pt_bar_reg_parse()
385 r = &d->io_regions[index]; in xen_pt_bar_reg_parse()
416 int index; in xen_pt_bar_reg_init() local
419 if (index < 0 || index >= PCI_NUM_REGIONS) { in xen_pt_bar_reg_init()
425 s->bases[index].bar_flag = xen_pt_bar_reg_parse(s, index); in xen_pt_bar_reg_init()
439 int index; in xen_pt_bar_reg_read() local
443 if (index < 0 || index >= PCI_NUM_REGIONS - 1) { in xen_pt_bar_reg_read()
484 int index = 0; in xen_pt_bar_reg_write() local
488 if (index < 0 || index >= PCI_NUM_REGIONS) { in xen_pt_bar_reg_write()
494 base = &s->bases[index]; in xen_pt_bar_reg_write()
[all …]
/qemu/hw/pci-host/
H A Dpnv_phb4.c186 mbe0 = phb->ioda_MBT[(index << 1)]; in pnv_phb4_check_mbt()
187 mbe1 = phb->ioda_MBT[(index << 1) + 1]; in pnv_phb4_check_mbt()
304 index &= mask; in pnv_phb4_ioda_access()
306 *out_idx = index; in pnv_phb4_ioda_access()
312 tptr += index; in pnv_phb4_ioda_access()
315 index = (index + 1) & mask; in pnv_phb4_ioda_access()
874 int index = pec->index; in pnv_phb4_get_phb_stack_no() local
877 while (index--) { in pnv_phb4_get_phb_stack_no()
1386 int index = pec->index; in pnv_phb4_pec_get_phb_id() local
1389 while (index--) { in pnv_phb4_pec_get_phb_id()
[all …]
/qemu/tests/avocado/acpi-bits/bits-tests/
H A Dtestcpuid.py237 def cpuid_helper(function, index=None, shift=0, mask=~0, eax_mask=~0, ebx_mask=~0, ecx_mask=~0, edx…
38 if index is None:
39 index = 0
42 indexdesc = " index {0:#x}".format(index)
52 …regs = bits.cpuid_result(*[(r >> shift) & m for r, m in zip(bits.cpuid(cpu, function, index), mask…
79 def test_cpuid_consistency(text, function, index=None, shift=0, mask=~0, eax_mask=~0, ebx_mask=~0, …
80 … uniques, desc = cpuid_helper(function, index, shift, mask, eax_mask, ebx_mask, ecx_mask, edx_mask)
/qemu/docs/specs/
H A Dppc-spapr-hotplug.rst26 the name/index/power-domain/type of each DRC allocated to a guest at
162 index.
216 index
397 uint32_t index; /* DRC index of resource to take action
408 uint32_t index; /* DRC index of first resource to take
410 * on DRC index <index> through
411 * DRC index <index + count - 1> in
483 - DRC index of the LMB that corresponds to ``ibm,my-drc-index`` property
486 - Associativity list index for the LMB that is used as an index into
505 - DRC index of the first LMB in the set.
[all …]
/qemu/hw/audio/
H A Dasc.c119 ASCState *s = container_of(fs, ASCState, fifos[fs->index]); in asc_fifo_get()
126 trace_asc_fifo_get('A' + fs->index, fs->rptr, fs->cnt, val); in asc_fifo_get()
370 trace_asc_read_fifo('A' + fs->index, addr, size, fs->fifo[addr]); in asc_fifo_read()
378 ASCState *s = container_of(fs, ASCState, fifos[fs->index]); in asc_fifo_write()
519 trace_asc_read_extreg('A' + fs->index, addr, size, value); in asc_ext_read()
528 trace_asc_write_extreg('A' + fs->index, addr, size, value); in asc_ext_write()
596 static void asc_fifo_init(ASCFIFOState *fs, int index) in asc_fifo_init() argument
598 ASCState *s = container_of(fs, ASCState, fifos[index]); in asc_fifo_init()
601 fs->index = index; in asc_fifo_init()
602 name = g_strdup_printf("asc.fifo%c", 'A' + index); in asc_fifo_init()
[all …]
/qemu/hw/net/rocker/
H A Drocker.c789 unsigned index = ROCKER_RING_INDEX(addr); in rocker_io_writel() local
797 desc_ring_set_base_addr(r->rings[index], in rocker_io_writel()
802 desc_ring_set_size(r->rings[index], val); in rocker_io_writel()
820 addr, val, index, offset); in rocker_io_writel()
871 unsigned index = ROCKER_RING_INDEX(addr); in rocker_io_writeq() local
881 addr, val, index, offset); in rocker_io_writeq()
911 unsigned index = ROCKER_RING_INDEX(addr); in rocker_reg_name() local
916 switch (index) { in rocker_reg_name()
925 (index - 2) / 2); in rocker_reg_name()
1040 unsigned index = ROCKER_RING_INDEX(addr); in rocker_io_readl() local
[all …]
/qemu/hw/ppc/
H A Dtrace-events51 spapr_drc_set_configured(uint32_t index) "drc: 0x%"PRIx32
52 spapr_drc_attach(uint32_t index) "drc: 0x%"PRIx32
53 spapr_drc_unplug_request(uint32_t index) "drc: 0x%"PRIx32
54 spapr_drc_awaiting_quiesce(uint32_t index) "drc: 0x%"PRIx32
55 spapr_drc_reset(uint32_t index) "drc: 0x%"PRIx32
56 spapr_drc_realize(uint32_t index) "drc: 0x%"PRIx32
58 spapr_drc_realize_complete(uint32_t index) "drc: 0x%"PRIx32
59 spapr_drc_unrealize(uint32_t index) "drc: 0x%"PRIx32
66 spapr_rtas_get_sensor_state_not_supported(uint32_t index, uint32_t type) "sensor index: 0x%"PRIx32"…
67 spapr_rtas_get_sensor_state_invalid(uint32_t index) "sensor index: 0x%"PRIx32
[all …]
/qemu/hw/vfio/
H A Digd.c98 uint32_t index; member
283 igd->index = ~0; in vfio_igd_quirk_data_read()
310 if ((igd->index % 4 == 1) && igd->index < vfio_igd_gtt_max(vdev)) { in vfio_igd_quirk_data_write()
311 if (gen < 8 || (igd->index % 8 == 1)) { in vfio_igd_quirk_data_write()
326 igd->index, data, val); in vfio_igd_quirk_data_write()
331 igd->index = ~0; in vfio_igd_quirk_data_write()
346 igd->index = ~0; in vfio_igd_quirk_index_read()
357 igd->index = data; in vfio_igd_quirk_index_write()
516 igd->index = ~0; in vfio_probe_igd_bar4_quirk()
/qemu/hw/usb/
H A Du2f-emulated.c114 int index; in u2f_pending_out_add() local
120 index = key->pending_out_end; in u2f_pending_out_add()
121 key->pending_out_end = (index + 1) % PENDING_OUT_NUM; in u2f_pending_out_add()
124 memcpy(&key->pending_out[index], packet, U2FHID_PACKET_SIZE); in u2f_pending_out_add()
129 int index; in u2f_pending_out_get() local
135 index = key->pending_out_start; in u2f_pending_out_get()
136 key->pending_out_start = (index + 1) % PENDING_OUT_NUM; in u2f_pending_out_get()
139 return key->pending_out[index]; in u2f_pending_out_get()
/qemu/hw/pci/
H A Dpcie_doe.c25 uint8_t index; member
40 uint8_t index = req->index; in pcie_doe_discovery() local
56 if (index == 0) { in pcie_doe_discovery()
60 if (index < doe_cap->protocol_num) { in pcie_doe_discovery()
61 prot = &doe_cap->protocols[index - 1]; in pcie_doe_discovery()
70 if (index + 1 == doe_cap->protocol_num) { in pcie_doe_discovery()
73 rsp.next_index = index + 1; in pcie_doe_discovery()

12345678910>>...21