Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 510) sorted by relevance

12345678910>>...21

/qemu/hw/i2c/
H A Dpmbus_device.c320 uint8_t index; in pmbus_receive_byte() local
332 index = 0; in pmbus_receive_byte()
340 index = pmdev->page; in pmbus_receive_byte()
1209 uint8_t index = pmdev->page; in pmbus_operation() local
1218 pmdev->pages[index].read_vout = pmdev->pages[index].vout_margin_high; in pmbus_operation()
1222 pmdev->pages[index].read_vout = pmdev->pages[index].vout_margin_low; in pmbus_operation()
1232 uint8_t index; in pmbus_write_data() local
1280 index = pmdev->page; in pmbus_write_data()
1865 if (index == PB_ALL_PAGES) { in pmbus_page_config()
1872 if (index > pmdev->num_pages - 1) { in pmbus_page_config()
[all …]
/qemu/target/i386/tcg/sysemu/
H A Dbpt_helper.c29 return (dr7 >> (index * 2)) & 1; in hw_local_breakpoint_enabled()
34 return (dr7 >> (index * 2)) & 2; in hw_global_breakpoint_enabled()
58 target_ulong drN = env->dr[index]; in hw_breakpoint_insert()
61 switch (hw_breakpoint_type(dr7, index)) { in hw_breakpoint_insert()
63 if (hw_breakpoint_enabled(dr7, index)) { in hw_breakpoint_insert()
75 if (hw_breakpoint_enabled(dr7, index)) { in hw_breakpoint_insert()
93 env->cpu_breakpoint[index] = NULL; in hw_breakpoint_insert()
104 if (env->cpu_breakpoint[index]) { in hw_breakpoint_remove()
106 env->cpu_breakpoint[index] = NULL; in hw_breakpoint_remove()
112 if (env->cpu_watchpoint[index]) { in hw_breakpoint_remove()
[all …]
/qemu/hw/intc/
H A Dloongarch_extioi.c77 uint32_t index, cpu; in extioi_readw() local
86 *data = s->ipmap[index]; in extioi_readw()
90 *data = s->enable[index]; in extioi_readw()
94 *data = s->bounce[index]; in extioi_readw()
104 *data = s->coremap[index]; in extioi_readw()
120 val = mask & s->isr[index]; in extioi_enable_irq()
209 s->ipmap[index] = val; in extioi_writew()
215 s->enable[index] = val; in extioi_writew()
228 s->bounce[index] = val; in extioi_writew()
247 index = irq / 4; in extioi_writew()
[all …]
H A Dioapic.c299 int index; in ioapic_mem_read() local
323 if (index >= 0 && index < IOAPIC_NUM_PINS) { in ioapic_mem_read()
325 val = s->ioredtbl[index] >> 32; in ioapic_mem_read()
372 int index; in ioapic_mem_write() local
394 if (index >= 0 && index < IOAPIC_NUM_PINS) { in ioapic_mem_write()
397 s->ioredtbl[index] &= 0xffffffff; in ioapic_mem_write()
400 s->ioredtbl[index] &= ~0xffffffffULL; in ioapic_mem_write()
401 s->ioredtbl[index] |= val; in ioapic_mem_write()
404 s->ioredtbl[index] &= IOAPIC_RW_BITS; in ioapic_mem_write()
405 s->ioredtbl[index] |= ro_bits; in ioapic_mem_write()
[all …]
/qemu/hw/timer/
H A Dallwinner-a10-pit.c39 uint8_t index; in a10_pit_read() local
48 index >>= 4; in a10_pit_read()
49 index -= 1; in a10_pit_read()
56 s->count[index] = ptimer_get_count(s->timer[index]); in a10_pit_read()
103 uint8_t index; in a10_pit_write() local
116 index >>= 4; in a10_pit_write()
117 index -= 1; in a10_pit_write()
124 ptimer_set_count(s->timer[index], s->interval[index]); in a10_pit_write()
140 ptimer_set_limit(s->timer[index], s->interval[index], 1); in a10_pit_write()
248 uint8_t i = tc->index; in a10_pit_timer_cb()
[all …]
/qemu/hw/net/
H A Dimx_fec.c50 switch (index) { in imx_fec_reg_name()
66 switch (index) { in imx_enet_reg_name()
128 switch (index) { in imx_eth_reg_name()
533 switch (index) { in imx_enet_do_tx()
700 switch (index) { in imx_fec_read()
713 switch (index) { in imx_enet_read()
753 switch (index) { in imx_eth_read()
786 trace_imx_eth_read(index, imx_eth_reg_name(s, index), value); in imx_eth_read()
800 switch (index) { in imx_fec_write()
823 switch (index) { in imx_enet_write()
[all …]
/qemu/target/riscv/
H A Ddebug.c341 if (env->cpu_breakpoint[index]) { in type2_breakpoint_remove()
343 env->cpu_breakpoint[index] = NULL; in type2_breakpoint_remove()
346 if (env->cpu_watchpoint[index]) { in type2_breakpoint_remove()
361 env->tdata1[index] = new_val; in type2_reg_write()
367 if (val != env->tdata2[index]) { in type2_reg_write()
368 env->tdata2[index] = val; in type2_reg_write()
466 type2_breakpoint_remove(env, index); in type6_breakpoint_remove()
478 env->tdata1[index] = new_val; in type6_reg_write()
484 if (val != env->tdata2[index]) { in type6_reg_write()
485 env->tdata2[index] = val; in type6_reg_write()
[all …]
/qemu/hw/usb/
H A Dimx-usb-phy.c53 uint32_t index = offset >> 2; in imx_usbphy_read() local
56 switch (index) { in imx_usbphy_read()
67 value = s->usbphy[index - 1]; in imx_usbphy_read()
79 value = s->usbphy[index - 2]; in imx_usbphy_read()
91 value = s->usbphy[index - 3]; in imx_usbphy_read()
94 if (index < USBPHY_MAX) { in imx_usbphy_read()
95 value = s->usbphy[index]; in imx_usbphy_read()
112 uint32_t index = offset >> 2; in imx_usbphy_write() local
114 switch (index) { in imx_usbphy_write()
116 s->usbphy[index] = value; in imx_usbphy_write()
[all …]
H A Dhcd-dwc2.c126 if (s->hreg1[index + 2] & s->hreg1[index + 3]) { in dwc2_update_hc_irq()
247 chan = index >> 3; in dwc2_handle_packet()
315 p->index = index; in dwc2_handle_packet()
396 p->index = index; in dwc2_handle_packet()
418 assert(port->index == 0); in dwc2_attach()
683 val = s->glbreg[index]; in dwc2_glbreg_read()
811 val = s->fszreg[index]; in dwc2_fszreg_read()
857 val = s->hreg0[index]; in dwc2_hreg0_read()
980 val = s->hreg1[index]; in dwc2_hreg1_read()
1040 trace_usb_dwc2_hreg1_write(addr, hreg1nm[index & 7], index >> 3, orig, in dwc2_hreg1_write()
[all …]
H A Du2f-passthru.c146 return index; in u2f_transaction_get_index()
156 if (index < 0) { in u2f_transaction_get()
159 return &key->current_transactions[index]; in u2f_transaction_get()
179 int index, next_index; in u2f_transaction_close() local
180 index = u2f_transaction_get_index(key, cid); in u2f_transaction_close()
181 if (index < 0) { in u2f_transaction_close()
192 index = next_index; in u2f_transaction_close()
196 key->current_transactions_end = index; in u2f_transaction_close()
207 uint8_t index; in u2f_transaction_add() local
212 index = key->current_transactions_start; in u2f_transaction_add()
[all …]
/qemu/tests/qtest/
H A Dnpcm7xx_pwm-test.c269 name, index, value); in mft_qom_set()
451 g_assert_cmpint(index, <, in mft_compute_index()
454 return index; in mft_compute_index()
469 int index = mft_compute_index(td); in mft_init() local
472 mft_writeb(qts, index, MFT_CKC, 0); in mft_init()
476 mft_writeb(qts, index, MFT_INASEL, 0); in mft_init()
477 mft_writeb(qts, index, MFT_INBSEL, 0); in mft_init()
483 mft_reset_counters(qts, index); in mft_init()
508 int index = mft_compute_index(td); in mft_verify_rpm() local
524 mft_writeb(qts, index, MFT_CKC, 0); in mft_verify_rpm()
[all …]
H A Dnpcm7xx_adc-test.c136 uint32_t index, uint32_t value) in adc_write_input() argument
140 sprintf(name, "adci[%u]", index); in adc_write_input()
208 uint32_t index, input, output, expected_output; in test_convert_internal() local
212 for (index = 0; index < NUM_INPUTS; ++index) { in test_convert_internal()
217 adc_write_input(qts, adc, index, input); in test_convert_internal()
240 for (index = 0; index < NUM_INPUTS; ++index) { in test_convert_external()
253 CON_MUX(index) | CON_EN); in test_convert_external()
268 uint32_t index, input, output, expected_output; in test_interrupt() local
271 index = 1; in test_interrupt()
276 adc_write_input(qts, adc, index, input); in test_interrupt()
[all …]
/qemu/hw/nvram/
H A Dxlnx-efuse-crc.c108 unsigned index; in xlnx_efuse_calc_crc() local
110 for (index = zpads; index; index--) { in xlnx_efuse_calc_crc()
111 crc = xlnx_efuse_u37_crc(crc, 0, (index + u32_cnt)); in xlnx_efuse_calc_crc()
114 for (index = u32_cnt; index; index--) { in xlnx_efuse_calc_crc()
115 crc = xlnx_efuse_u37_crc(crc, data[index - 1], index); in xlnx_efuse_calc_crc()
/qemu/hw/isa/
H A Dsmc37c669-superio.c17 static uint16_t get_serial_iobase(ISASuperIODevice *sio, uint8_t index) in get_serial_iobase() argument
19 return index ? 0x2f8 : 0x3f8; in get_serial_iobase()
22 static unsigned int get_serial_irq(ISASuperIODevice *sio, uint8_t index) in get_serial_irq() argument
24 return index ? 3 : 4; in get_serial_irq()
29 static uint16_t get_parallel_iobase(ISASuperIODevice *sio, uint8_t index) in get_parallel_iobase() argument
34 static unsigned int get_parallel_irq(ISASuperIODevice *sio, uint8_t index) in get_parallel_irq() argument
39 static unsigned int get_parallel_dma(ISASuperIODevice *sio, uint8_t index) in get_parallel_dma() argument
46 static uint16_t get_fdc_iobase(ISASuperIODevice *sio, uint8_t index) in get_fdc_iobase() argument
51 static unsigned int get_fdc_irq(ISASuperIODevice *sio, uint8_t index) in get_fdc_irq() argument
56 static unsigned int get_fdc_dma(ISASuperIODevice *sio, uint8_t index) in get_fdc_dma() argument
/qemu/target/arm/tcg/
H A Dtranslate-a32.h53 bool mve_skip_vmov(DisasContext *s, int vn, int index, int size);
100 TCGv_i32 a32, int index, MemOp opc);
102 TCGv_i32 a32, int index, MemOp opc);
108 int index, MemOp opc);
110 int index, MemOp opc);
112 int index, MemOp opc);
114 int index, MemOp opc);
131 TCGv_i32 a32, int index) in gen_aa32_ld64() argument
133 gen_aa32_ld_i64(s, val, a32, index, MO_UQ); in gen_aa32_ld64()
137 TCGv_i32 a32, int index) in gen_aa32_st64() argument
[all …]
/qemu/util/
H A Dvfio-helpers.c137 assert(index >= 0 && index < ARRAY_SIZE(s->bar_region_info)); in assert_bar_index_valid()
145 .index = VFIO_PCI_BAR0_REGION_INDEX + index, in qemu_vfio_pci_init_bar()
173 trace_qemu_vfio_pci_map_bar(index, s->bar_region_info[index].offset , in qemu_vfio_pci_map_bar()
204 irq_info.index = irq_type; in qemu_vfio_pci_init_irq()
221 .index = irq_info.index, in qemu_vfio_pci_init_irq()
552 *index = -1; in qemu_vfio_find_mapping()
601 assert(index >= 0); in qemu_vfio_add_mapping()
639 int index; in qemu_vfio_undo_mapping() local
650 assert(index >= 0 && index < s->nr_mappings); in qemu_vfio_undo_mapping()
753 int index; in qemu_vfio_dma_map() local
[all …]
/qemu/target/loongarch/tcg/
H A Dtlb_helper.c153 tlb = &env->tlb[index]; in invalidate_tlb()
218 int index, match; in helper_tlbsrch() local
238 int index; in helper_tlbrd() local
242 tlb = &env->tlb[index]; in helper_tlbrd()
275 invalidate_tlb(env, index); in helper_tlbwr()
278 env->tlb[index].tlb_misc = FIELD_DP64(env->tlb[index].tlb_misc, in helper_tlbwr()
283 fill_tlb_entry(env, index); in helper_tlbwr()
289 int index, set, stlb_idx; in helper_tlbfill() local
318 invalidate_tlb(env, index); in helper_tlbfill()
325 int i, index; in helper_tlbclr() local
[all …]
/qemu/hw/vfio/
H A Dhelpers.c40 .index = index, in vfio_disable_irqindex()
53 .index = index, in vfio_unmask_single_irqindex()
66 .index = index, in vfio_mask_single_irqindex()
94 switch (index) { in index_to_str()
124 irq_set->index = index; in vfio_set_irq_signaling()
141 name = index_to_str(vbasedev, index); in vfio_set_irq_signaling()
349 int index, const char *name) in vfio_region_setup() argument
363 region->nr = index; in vfio_region_setup()
398 munmap(region->mmaps[index].mmap, region->mmaps[index].size); in vfio_subregion_unmap()
400 region->mmaps[index].mmap = NULL; in vfio_subregion_unmap()
[all …]
/qemu/hw/misc/
H A Dimx6ul_ccm.c627 uint32_t index = offset >> 2; in imx6ul_ccm_read() local
630 assert(index < CCM_MAX); in imx6ul_ccm_read()
632 value = s->ccm[index]; in imx6ul_ccm_read()
645 assert(index < CCM_MAX); in imx6ul_ccm_write()
649 s->ccm[index] = (s->ccm[index] & ccm_mask[index]) | in imx6ul_ccm_write()
661 switch (index) { in imx6ul_analog_read()
763 switch (index) { in imx6ul_analog_write()
787 s->analog[index - 1] |= (value & ~analog_mask[index - 1]); in imx6ul_analog_write()
812 s->analog[index - 2] &= ~(value & ~analog_mask[index - 2]); in imx6ul_analog_write()
837 s->analog[index - 3] ^= (value & ~analog_mask[index - 3]); in imx6ul_analog_write()
[all …]
/qemu/tests/qtest/libqos/
H A Dsdhci-cmd.c24 size_t index = 0; in read_fifo() local
27 while (index < count) { in read_fifo()
28 size = count - index; in read_fifo()
34 msg[index] = msg_frag & mask; in read_fifo()
35 if (msg[index++] == 0) { in read_fifo()
36 return index; in read_fifo()
42 return index; in read_fifo()
48 size_t index = 0; in write_fifo() local
52 while (index < count) { in write_fifo()
53 size = count - index; in write_fifo()
[all …]
/qemu/hw/char/
H A Dserial-isa.c42 uint32_t index; member
57 static int index; in serial_isa_realizefn() local
62 if (isa->index == -1) { in serial_isa_realizefn()
63 isa->index = index; in serial_isa_realizefn()
65 if (isa->index >= MAX_ISA_SERIAL_PORTS) { in serial_isa_realizefn()
71 isa->iobase = isa_serial_io[isa->index]; in serial_isa_realizefn()
74 isa->isairq = isa_serial_irq[isa->index]; in serial_isa_realizefn()
76 index++; in serial_isa_realizefn()
96 dev = aml_device("COM%d", isa->index + 1); in serial_isa_build_aml()
116 DEFINE_PROP_UINT32("index", ISASerialState, index, -1),
[all …]
/qemu/hw/acpi/
H A Derst.c484 for (; index < s->last_record_index; ++index) { in find_next_empty_record_index()
508 for (index = s->first_record_index; index < s->last_record_index && in lookup_erst_record()
532 unsigned index; in get_next_record_identifier() local
544 for (; index < s->last_record_index; ++index) { in get_next_record_identifier()
567 unsigned index; in clear_erst_record() local
575 if (index) { in clear_erst_record()
593 unsigned index; in read_erst_record() local
620 if (index) { in read_erst_record()
662 unsigned index; in write_erst_record() local
702 if (index) { in write_erst_record()
[all …]
/qemu/tests/qemu-iotests/
H A D251120 index=0
123 filters+=" -e s/$ofs/status_fail_offset_$index/"
124 index=$((index + 1))
127 index=0
130 filters+=" -e s/$ofs/read_fail_offset_$index/"
131 index=$((index + 1))
/qemu/docs/
H A Dindex.rst14 about/index
15 system/index
16 user/index
17 tools/index
18 interop/index
19 specs/index
20 devel/index
/qemu/hw/net/rocker/
H A Drocker_desc.c34 int index; member
96 return ring->index; in desc_ring_index()
158 DescInfo *info = &ring->info[index]; in desc_read()
166 static void desc_write(DescRing *ring, uint32_t index) in desc_write() argument
169 DescInfo *info = &ring->info[index]; in desc_write()
179 ring->index); in desc_ring_base_addr_check()
217 ring->index); in desc_ring_post_desc()
263 new, ring->index, ring->size); in desc_ring_set_head()
271 ring->index, head, tail, new); in desc_ring_set_head()
335 DescRing *desc_ring_alloc(Rocker *r, int index) in desc_ring_alloc() argument
[all …]

12345678910>>...21