Home
last modified time | relevance | path

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

/qemu/tests/qtest/
H A Dnpcm7xx_timer-test.c119 static int tim_timer_irq(const TestData *td) in tim_timer_irq() argument
121 return td->tim->irq_base + timer_index(td->timer); in tim_timer_irq()
126 static void tim_write(const TestData *td, in tim_write() argument
129 writel(td->tim->base_addr + offset, value); in tim_write()
132 static uint32_t tim_read(const TestData *td, unsigned int offset) in tim_read() argument
134 return readl(td->tim->base_addr + offset); in tim_read()
137 static void tim_write_tcsr(const TestData *td, uint32_t value) in tim_write_tcsr() argument
139 tim_write(td, td->timer->tcsr_offset, value); in tim_write_tcsr()
142 static uint32_t tim_read_tcsr(const TestData *td) in tim_read_tcsr() argument
144 return tim_read(td, td->timer->tcsr_offset); in tim_read_tcsr()
[all …]
H A Dnpcm7xx_pwm-test.c363 static uint32_t pwm_read(QTestState *qts, const TestData *td, unsigned offset) in pwm_read() argument
365 return qtest_readl(qts, td->module->base_addr + offset); in pwm_read()
368 static void pwm_write(QTestState *qts, const TestData *td, unsigned offset, in pwm_write() argument
371 qtest_writel(qts, td->module->base_addr + offset, value); in pwm_write()
396 static uint32_t pwm_read_ppr(QTestState *qts, const TestData *td) in pwm_read_ppr() argument
398 return extract32(pwm_read(qts, td, PPR), ppr_base[pwm_index(td->pwm)], 8); in pwm_read_ppr()
401 static void pwm_write_ppr(QTestState *qts, const TestData *td, uint32_t value) in pwm_write_ppr() argument
403 pwm_write(qts, td, PPR, value << ppr_base[pwm_index(td->pwm)]); in pwm_write_ppr()
406 static uint32_t pwm_read_csr(QTestState *qts, const TestData *td) in pwm_read_csr() argument
408 return extract32(pwm_read(qts, td, CSR), csr_base[pwm_index(td->pwm)], 3); in pwm_read_csr()
[all …]
H A Dtco-test.c119 static void reset_on_second_timeout(const TestData *td, bool enable) in reset_on_second_timeout() argument
123 val = qtest_readl(td->qts, RCBA_BASE_ADDR + ICH9_CC_GCS); in reset_on_second_timeout()
129 qtest_writel(td->qts, RCBA_BASE_ADDR + ICH9_CC_GCS, val); in reset_on_second_timeout()
239 static QDict *get_watchdog_action(const TestData *td) in get_watchdog_action() argument
241 QDict *ev = qtest_qmp_eventwait_ref(td->qts, "WATCHDOG"); in get_watchdog_action()
252 TestData td; in test_tco_second_timeout_pause() local
256 td.args = "-watchdog-action pause"; in test_tco_second_timeout_pause()
257 td.noreboot = false; in test_tco_second_timeout_pause()
258 test_init(&td); in test_tco_second_timeout_pause()
260 stop_tco(&td); in test_tco_second_timeout_pause()
[all …]
H A Dnpcm7xx_emc-test.c343 const TestData *td = test_data; in test_init() local
344 const EMCModule *mod = td->module; in test_init()
791 const TestData *td = test_data; in test_tx() local
793 int *test_sockets = packet_test_init(emc_module_index(td->module), in test_tx()
808 emc_send_verify(qts, td->module, test_sockets[0], /*with_irq=*/false); in test_tx()
809 emc_send_verify(qts, td->module, test_sockets[0], /*with_irq=*/true); in test_tx()
816 const TestData *td = test_data; in test_rx() local
818 int *test_sockets = packet_test_init(emc_module_index(td->module), in test_rx()
833 emc_recv_verify(qts, td->module, test_sockets[0], /*with_irq=*/false, in test_rx()
835 emc_recv_verify(qts, td->module, test_sockets[0], /*with_irq=*/false, in test_rx()
[all …]
H A Dcpu-plug-test.c29 const PlugTestData *td = data; in test_plug_with_device_add() local
39 td->machine, td->cpu_model, in test_plug_with_device_add()
40 td->sockets, td->cores, td->threads, td->maxcpus); in test_plug_with_device_add()
60 qtest_qmp_device_add_qdict(qts, td->device_model, props); in test_plug_with_device_add()
H A Dnpcm_gmac-test.c197 const TestData *td = test_data; in test_init() local
198 const GMACModule *mod = td->module; in test_init()
320 static void gmac_add_test(const char *name, const TestData* td, in gmac_add_test() argument
324 "npcm8xx_gmac/gmac[%d]/%s", gmac_module_index(td->module), name); in gmac_add_test()
325 qtest_add_data_func(full_name, td, fn); in gmac_add_test()
335 TestData *td = &test_data_list[i]; in main() local
337 td->module = &gmac_module_list[i]; in main()
339 gmac_add_test("init", td, test_init); in main()
H A Dnpcm7xx_watchdog_timer-test.c304 #define add_test(name, td) watchdog_add_test(#name, td, test_##name) argument
H A Dnpcm7xx_adc-test.c364 #define add_test(name, td) adc_add_test(#name, td, test_##name) argument
H A Dnpcm7xx_smbus-test.c475 #define add_test(name, td) smbus_add_test(#name, td, test_##name) argument
/qemu/tests/unit/
H A Dtest-nested-aio-poll.c48 TestData *td = container_of(notifier, TestData, poll_notifier); in io_poll_ready() local
50 g_assert(!td->nested); in io_poll_ready()
51 td->nested = true; in io_poll_ready()
54 event_notifier_set(&td->dummy_notifier); in io_poll_ready()
57 g_assert(aio_poll(td->ctx, true)); in io_poll_ready()
59 td->nested = false; in io_poll_ready()
70 TestData td = { in test() local
74 qemu_set_current_aio_context(td.ctx); in test()
77 aio_context_set_poll_params(td.ctx, 1000000, 2, 2, &error_abort); in test()
83 aio_get_g_source(td.ctx); in test()
[all …]
/qemu/hw/s390x/
H A Dtod-kvm.c33 static void kvm_s390_tod_get(const S390TODState *td, S390TOD *tod, Error **errp) in kvm_s390_tod_get() argument
35 if (td->stopped) { in kvm_s390_tod_get()
36 *tod = td->base; in kvm_s390_tod_get()
57 static void kvm_s390_tod_set(S390TODState *td, const S390TOD *tod, Error **errp) in kvm_s390_tod_set() argument
75 td->stopped = false; in kvm_s390_tod_set()
77 td->stopped = true; in kvm_s390_tod_set()
78 td->base = *tod; in kvm_s390_tod_set()
85 S390TODState *td = opaque; in kvm_s390_tod_vm_state_change() local
96 if (running && td->stopped) { in kvm_s390_tod_vm_state_change()
98 kvm_s390_set_tod_raw(&td->base, &local_err); in kvm_s390_tod_vm_state_change()
[all …]
H A Dtod-tcg.c21 static void qemu_s390_tod_get(const S390TODState *td, S390TOD *tod, in qemu_s390_tod_get() argument
24 *tod = td->base; in qemu_s390_tod_get()
27 if (tod->low < td->base.low) { in qemu_s390_tod_get()
32 static void qemu_s390_tod_set(S390TODState *td, const S390TOD *tod, in qemu_s390_tod_set() argument
37 td->base = *tod; in qemu_s390_tod_set()
39 td->base.low -= time2tod(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in qemu_s390_tod_set()
40 if (td->base.low > tod->low) { in qemu_s390_tod_set()
41 td->base.high--; in qemu_s390_tod_set()
65 S390TODState *td = S390_TOD(obj); in qemu_s390_tod_init() local
69 td->base.high = 0; in qemu_s390_tod_init()
[all …]
H A Dtod.c58 S390TODState *td = opaque; in s390_tod_save() local
59 S390TODClass *tdc = S390_TOD_GET_CLASS(td); in s390_tod_save()
63 tdc->get(td, &tod, &err); in s390_tod_save()
79 S390TODState *td = opaque; in s390_tod_load() local
80 S390TODClass *tdc = S390_TOD_GET_CLASS(td); in s390_tod_load()
93 tdc->set(td, &tod, &err); in s390_tod_load()
108 S390TODState *td = S390_TOD(dev); in s390_tod_realize() local
111 register_savevm_live("todclock", 0, 1, &savevm_tod, td); in s390_tod_realize()
/qemu/hw/usb/
H A Dhcd-uhci.c109 static void uhci_queue_fill(UHCIQueue *q, UHCI_TD *td);
112 static inline int32_t uhci_queue_token(UHCI_TD *td) in uhci_queue_token() argument
114 if ((td->token & (0xf << 15)) == 0) { in uhci_queue_token()
116 return td->token & 0x7ff00; in uhci_queue_token()
119 return td->token & 0x7ffff; in uhci_queue_token()
123 static UHCIQueue *uhci_queue_new(UHCIState *s, uint32_t qh_addr, UHCI_TD *td, in uhci_queue_new() argument
131 queue->token = uhci_queue_token(td); in uhci_queue_new()
156 static UHCIQueue *uhci_queue_find(UHCIState *s, UHCI_TD *td) in uhci_queue_find() argument
158 uint32_t token = uhci_queue_token(td); in uhci_queue_find()
169 static bool uhci_queue_verify(UHCIQueue *queue, uint32_t qh_addr, UHCI_TD *td, in uhci_queue_verify() argument
[all …]
H A Dhcd-ohci.c459 dma_addr_t addr, struct ohci_td *td) in ohci_read_td() argument
461 return get_dwords(ohci, addr, (uint32_t *)td, sizeof(*td) >> 2); in ohci_read_td()
465 dma_addr_t addr, struct ohci_iso_td *td) in ohci_read_iso_td() argument
467 return get_dwords(ohci, addr, (uint32_t *)td, 4) || in ohci_read_iso_td()
468 get_words(ohci, addr + 16, td->offset, 8); in ohci_read_iso_td()
491 dma_addr_t addr, struct ohci_td *td) in ohci_put_td() argument
493 return put_dwords(ohci, addr, (uint32_t *)td, sizeof(*td) >> 2); in ohci_put_td()
497 dma_addr_t addr, struct ohci_iso_td *td) in ohci_put_iso_td() argument
499 return put_dwords(ohci, addr, (uint32_t *)td, 4) || in ohci_put_iso_td()
500 put_words(ohci, addr + 16, td->offset, 8); in ohci_put_iso_td()
[all …]
H A Dccid-card-passthru.c159 int td; in check_atr() local
172 td = data[1] >> 4; in check_atr()
173 while (td && td_count < 2 && opt_bytes + historical_length + 2 < len) { in check_atr()
175 if (td & 0x1) { in check_atr()
178 if (td & 0x2) { in check_atr()
181 if (td & 0x4) { in check_atr()
184 if (td & 0x8) { in check_atr()
186 td = data[opt_bytes + 2] >> 4; in check_atr()
H A Dtrace-events31 usb_ohci_td_bad_pid(const char *s, uint32_t edf, uint32_t tdf) "Bad pid %s: ed.flags 0x%x td.flags …
124 usb_uhci_packet_add(uint32_t token, uint32_t addr) "token 0x%x, td 0x%x"
125 usb_uhci_packet_link_async(uint32_t token, uint32_t addr) "token 0x%x, td 0x%x"
126 usb_uhci_packet_unlink_async(uint32_t token, uint32_t addr) "token 0x%x, td 0x%x"
127 usb_uhci_packet_cancel(uint32_t token, uint32_t addr, int done) "token 0x%x, td 0x%x, done %d"
128 usb_uhci_packet_complete_success(uint32_t token, uint32_t addr) "token 0x%x, td 0x%x"
129 usb_uhci_packet_complete_shortxfer(uint32_t token, uint32_t addr) "token 0x%x, td 0x%x"
130 usb_uhci_packet_complete_stall(uint32_t token, uint32_t addr) "token 0x%x, td 0x%x"
131 usb_uhci_packet_complete_babble(uint32_t token, uint32_t addr) "token 0x%x, td 0x%x"
132 usb_uhci_packet_complete_error(uint32_t token, uint32_t addr) "token 0x%x, td 0x%x"
[all …]
/qemu/scripts/codeconverter/codeconverter/
H A Dqom_macros.py177 other_td = [td for td in chain(self.file.matches_of_type(SimpleTypedefMatch),
179 if td.name == self.name]
181 if any(td.start() < self.start() for td in other_td):
184 for td in other_td:
185 if isinstance(td, SimpleTypedefMatch):
186 DBG("other td: %r", td.match.groupdict())
187 if td.group('typedef_type') != self.group('typedef_type'):
188 yield td.make_removal_patch()
189 elif isinstance(td, FullStructTypedefMatch):
190 DBG("other td: %r", td.match.groupdict())
[all …]
H A Dqom_type_info.py540 for td in tds:
541 td_type = td.group('typedef_type')
544 td.warn("typedef is here")
588 for td in tds:
589 if td.file is not self.file:
594 if td.start() > self.start():
595 yield td.make_removal_patch()
597 … elif not re.search(r'\b'+t+r'\b', self.file.original_content[td.end():self.start()]):
598 yield td.make_removal_patch()
620 for td in tds:
[all …]
/qemu/hw/intc/
H A Darm_gicv3_its.c129 static uint64_t table_entry_addr(GICv3ITSState *s, TableDesc *td, in table_entry_addr() argument
152 if (!td->indirect) { in table_entry_addr()
154 return td->base_addr + idx * td->entry_sz; in table_entry_addr()
158 l2idx = idx / (td->page_sz / L1TABLE_ENTRY_SIZE); in table_entry_addr()
161 td->base_addr + (l2idx * L1TABLE_ENTRY_SIZE), in table_entry_addr()
170 num_l2_entries = td->page_sz / td->entry_sz; in table_entry_addr()
171 return (l2 & ((1ULL << 51) - 1)) + (idx % num_l2_entries) * td->entry_sz; in table_entry_addr()
1424 TableDesc *td; in extract_table_params() local
1459 td = &s->dt; in extract_table_params()
1463 td = &s->ct; in extract_table_params()
[all …]
/qemu/include/hw/s390x/
H A Dtod.h47 void (*get)(const S390TODState *td, S390TOD *tod, Error **errp);
48 void (*set)(S390TODState *td, const S390TOD *tod, Error **errp);
/qemu/target/s390x/tcg/
H A Dmisc_helper.c94 S390TODState *td = s390_get_todstate(); in HELPER()
95 S390TODClass *tdc = S390_TOD_GET_CLASS(td); in HELPER()
98 tdc->get(td, &tod, &error_abort); in HELPER()
189 S390TODState *td = s390_get_todstate(); in update_ckc_timer() local
203 time = env->ckc - td->base.low; in update_ckc_timer()
229 S390TODState *td = s390_get_todstate(); in HELPER() local
230 S390TODClass *tdc = S390_TOD_GET_CLASS(td); in HELPER()
237 tdc->set(td, &tod, &error_abort); in HELPER()
/qemu/docs/sphinx-static/
H A Dtheme_overrides.css85 .rst-content table.field-list td.field-body {
156 .wy-table-responsive table td { white-space: normal; }
/qemu/tcg/loongarch64/
H A Dtcg-insn-defs.c.inc822 encode_tdj_insn(LoongArchInsn opc, TCGReg td, TCGReg j)
824 tcg_debug_assert(td >= 0 && td <= 0x3);
826 return encode_dj_slots(opc, td, j);
1318 /* Emits the `movgr2scr td, j` instruction. */
1320 tcg_out_opc_movgr2scr(TCGContext *s, TCGReg td, TCGReg j)
1322 tcg_out32(s, encode_tdj_insn(OPC_MOVGR2SCR, td, j));
/qemu/docs/about/
H A Dremoved-features.rst133 ``-rtc-td-hack`` (removed in 3.1)