/openbmc/linux/drivers/clk/tegra/ |
H A D | clk-dfll.c | 745 td->lut_min = td->lut_bottom; in dfll_init_out_if() 746 td->lut_max = td->lut_size - 1; in dfll_init_out_if() 747 td->lut_safe = td->lut_min + (td->lut_min < td->lut_max ? 1 : 0); in dfll_init_out_if() 1187 td->dfll_clk = clk_register(td->dev, &td->dfll_clk_hw); in dfll_register_clk() 1367 if (!td || (td->mode == DFLL_UNINITIALIZED)) in dfll_debug_init() 1426 td->ref_clk = devm_clk_get(td->dev, "ref"); in dfll_init_clks() 1432 td->soc_clk = devm_clk_get(td->dev, "soc"); in dfll_init_clks() 1438 td->i2c_clk = devm_clk_get(td->dev, "i2c"); in dfll_init_clks() 1443 td->i2c_clk_rate = clk_get_rate(td->i2c_clk); in dfll_init_clks() 1461 td->ref_rate = clk_get_rate(td->ref_clk); in dfll_init() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | npcm7xx_timer-test.c | 121 return td->tim->irq_base + timer_index(td->timer); in tim_timer_irq() 139 tim_write(td, td->timer->tcsr_offset, value); in tim_write_tcsr() 144 return tim_read(td, td->timer->tcsr_offset); in tim_read_tcsr() 149 tim_write(td, td->timer->ticr_offset, value); in tim_write_ticr() 154 return tim_read(td, td->timer->ticr_offset); in tim_read_ticr() 159 return tim_read(td, td->timer->tdr_offset); in tim_read_tdr() 232 g_assert_cmphex(tim_read(td, TISR), ==, tim_timer_bit(td)); in test_oneshot_enable_then_disable() 260 g_assert_cmphex(tim_read(td, TISR), ==, tim_timer_bit(td)); in test_oneshot_ps5() 264 tim_write(td, TISR, tim_timer_bit(td)); in test_oneshot_ps5() 452 tim_write(td, TISR, tim_timer_bit(td)); in test_periodic_no_interrupt() [all …]
|
H A D | npcm7xx_pwm-test.c | 398 return extract32(pwm_read(qts, td, PPR), ppr_base[pwm_index(td->pwm)], 8); in pwm_read_ppr() 403 pwm_write(qts, td, PPR, value << ppr_base[pwm_index(td->pwm)]); in pwm_write_ppr() 408 return extract32(pwm_read(qts, td, CSR), csr_base[pwm_index(td->pwm)], 3); in pwm_read_csr() 413 pwm_write(qts, td, CSR, value << csr_base[pwm_index(td->pwm)]); in pwm_write_csr() 423 pwm_write(qts, td, PCR, value << pcr_base[pwm_index(td->pwm)]); in pwm_write_pcr() 428 return pwm_read(qts, td, td->pwm->cnr_offset); in pwm_read_cnr() 433 pwm_write(qts, td, td->pwm->cnr_offset, value); in pwm_write_cnr() 438 return pwm_read(qts, td, td->pwm->cmr_offset); in pwm_read_cmr() 443 pwm_write(qts, td, td->pwm->cmr_offset, value); in pwm_write_cmr() 610 mft_init(qts, td); in test_toggle() [all …]
|
H A D | tco-test.c | 252 TestData td; in test_tco_second_timeout_pause() local 260 stop_tco(&td); in test_tco_second_timeout_pause() 264 load_tco(&td); in test_tco_second_timeout_pause() 271 stop_tco(&td); in test_tco_second_timeout_pause() 272 test_end(&td); in test_tco_second_timeout_pause() 277 TestData td; in test_tco_second_timeout_reset() local 285 stop_tco(&td); in test_tco_second_timeout_reset() 289 load_tco(&td); in test_tco_second_timeout_reset() 296 stop_tco(&td); in test_tco_second_timeout_reset() 302 TestData td; in test_tco_second_timeout_shutdown() local [all …]
|
/openbmc/linux/tools/testing/selftests/arm64/signal/ |
H A D | test_signals_utils.c | 117 td->run(td, si, uc); in handle_signal_trigger() 129 assert(!td->sig_trig || td->triggered); in handle_signal_ok() 140 if (!td->sanity_disabled && !td->token) { in handle_signal_ok() 333 if (td->feats_required & td->feats_supported) in test_init() 362 if (td->init && !td->init(td)) { in test_init() 383 return td->setup(td); in test_setup() 391 return td->trigger(td); in test_run() 395 return td->run(td, NULL, NULL); in test_run() 400 if (td->initialized && td->result != KSFT_SKIP && td->check_result) in test_result() 401 td->check_result(td); in test_result() [all …]
|
H A D | test_signals_utils.h | 15 int test_init(struct tdescr *td); 16 int test_setup(struct tdescr *td); 18 int test_run(struct tdescr *td); 19 void test_result(struct tdescr *td); 23 if (td->feats_incompatible & td->feats_supported) in feats_ok() 25 return (td->feats_required & td->feats_supported) == td->feats_required; in feats_ok() 68 assert(td && dest_uc); in get_current_context() 71 td->live_uc_valid = 0; in get_current_context() 72 td->live_sz = dest_sz; in get_current_context() 84 td->live_uc = dest_uc; in get_current_context() [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | fhci-q.c | 63 struct td *td = td_list[i]; in fhci_add_tds_to_ed() local 72 struct td *td; in peek_td_from_ed() local 79 return td; in peek_td_from_ed() 84 struct td *td; in fhci_remove_td_from_frame() local 92 return td; in fhci_remove_td_from_frame() 97 struct td *td; in fhci_peek_td_from_frame() local 109 struct td *td; in fhci_remove_td_from_ed() local 129 struct td *td; in fhci_remove_td_from_done_list() local 142 struct td *td; in fhci_move_td_from_ed_to_done_list() local 214 void fhci_done_td(struct urb *urb, struct td *td) in fhci_done_td() argument [all …]
|
H A D | fhci-mem.c | 23 static void init_td(struct td *td) in init_td() argument 25 memset(td, 0, sizeof(*td)); in init_td() 39 struct td *td; in get_empty_td() local 42 td = list_entry(fhci->empty_tds.next, struct td, node); in get_empty_td() 45 td = kmalloc(sizeof(*td), GFP_ATOMIC); in get_empty_td() 46 if (!td) in get_empty_td() 52 return td; in get_empty_td() 57 init_td(td); in fhci_recycle_empty_td() 90 struct td *td = get_empty_td(fhci); in fhci_td_fill() local 92 if (!td) in fhci_td_fill() [all …]
|
H A D | ohci-mem.c | 79 struct td *td; in dma_to_td() local 83 while (td && td->td_dma != td_dma) in dma_to_td() 84 td = td->td_hash; in dma_to_td() 85 return td; in dma_to_td() 89 static struct td * 93 struct td *td; in td_alloc() local 101 if (td) { in td_alloc() 107 return td; in td_alloc() 111 td_free (struct ohci_hcd *hc, struct td *td) in td_free() argument 113 struct td **prev = &hc->td_hash [TD_HASH_FUNC (td->td_dma)]; in td_free() [all …]
|
H A D | fhci-tds.c | 79 return ++td; in next_bd() 211 td = ep->td_base; in fhci_create_ep() 217 td++; in fhci_create_ep() 219 td--; in fhci_create_ep() 293 td = ep->conf_td; in fhci_td_transaction_confirm() 474 td = ep->td_base; in fhci_flush_bds() 490 td++; in fhci_flush_bds() 495 td = ep->td_base; in fhci_flush_bds() 501 td++; in fhci_flush_bds() 549 td = next_bd(ep->td_base, td, td_status); in fhci_flush_actual_frame() [all …]
|
H A D | fhci-sched.c | 42 struct td *td; in fhci_transaction_confirm() local 53 if ((td->data + td->actual_len) && trans_len) in fhci_transaction_confirm() 54 memcpy(td->data + td->actual_len, pkt->data, in fhci_transaction_confirm() 88 td->toggle = !td->toggle; in fhci_transaction_confirm() 110 td->toggle = !td->toggle; in fhci_transaction_confirm() 113 if (td->len == td->actual_len) in fhci_transaction_confirm() 129 struct td *td; in fhci_flush_all_transmissions() local 175 ((len + td->actual_len) == td->len))) in add_packet() 176 data = td->data + td->actual_len; in add_packet() 280 struct td *td; in scan_ed_list() local [all …]
|
H A D | ohci-q.c | 20 struct td *td; in urb_free_priv() local 23 td = urb_priv->td [i]; in urb_free_priv() 414 struct td *td; in ed_get() local 520 struct td *td, *td_pt; in td_fill() local 581 td->ed->hwTailP = td->hwNextTD; in td_fill() 824 urb, td, 1 + td->index, cc, in td_done() 926 ohci->dl_end = td->next_dl_td = td; in add_to_done_list() 938 struct td *td = NULL; in update_done_list() local 996 struct td *td; in finish_unlinks() local 1038 struct td *td; in finish_unlinks() local [all …]
|
H A D | uhci-q.c | 112 if (!td) in uhci_alloc_td() 121 return td; in uhci_alloc_td() 131 dma_pool_free(uhci->td_pool, td, td->dma_handle); in uhci_free_td() 191 if (uhci->frame_cpu[td->frame] == td) { in uhci_remove_td_from_frame_list() 193 uhci->frame[td->frame] = td->link; in uhci_remove_td_from_frame_list() 845 if (!td) in uhci_submit_control() 865 if (!td) in uhci_submit_control() 882 if (!td) in uhci_submit_control() 1011 if (!td) in uhci_submit_common() 1037 if (!td) in uhci_submit_common() [all …]
|
/openbmc/linux/arch/um/drivers/ |
H A D | vector_transports.c | 72 if (td->udp) in l2tpv3_form_header() 74 (*(uint32_t *) (header + td->session_offset)) = td->tx_session; in l2tpv3_form_header() 76 if (td->cookie) { in l2tpv3_form_header() 89 td->counter++; in l2tpv3_form_header() 102 if (td->key) in gre_form_header() 103 (*(uint32_t *) (header + td->key_offset)) = td->tx_key; in gre_form_header() 137 if ((!td->udp) && (!td->ipv6)) in l2tpv3_verify_header() 172 if (!td->ipv6) in gre_verify_header() 184 if (td->key) { in gre_verify_header() 297 if (!td->ipv6) in build_gre_transport_data() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | testmode.c | 47 tx_queued_limit = td->tx_queued_limit ? td->tx_queued_limit : 1000; in mt76_testmode_tx_pending() 52 td->tx_queued - td->tx_done < tx_queued_limit && in mt76_testmode_tx_pending() 61 td->tx_pending--; in mt76_testmode_tx_pending() 62 td->tx_queued++; in mt76_testmode_tx_pending() 98 td->tx_skb = NULL; in mt76_testmode_free_skb() 233 ieee80211_rate_set_vht(rate, td->tx_rate_idx, td->tx_rate_nss); in mt76_testmode_tx_init() 276 td->tx_done = 0; in mt76_testmode_tx_start() 277 td->tx_pending = td->tx_count; in mt76_testmode_tx_start() 293 wait_event_timeout(dev->tx_wait, td->tx_done == td->tx_queued, in mt76_testmode_tx_stop() 320 td->tx_count = 1; in mt76_testmode_init_defaults() [all …]
|
/openbmc/linux/tools/perf/tests/ |
H A D | dlfilter-test.c | 70 int fd = td->fd; in process() 178 .ip = td->ip, in write_sample() 197 err = process(&td->tool, event, &sample, td->machine); in write_sample() 282 td->ip = MAP_START + td->foo; in get_ip_addr() 283 td->addr = MAP_START + td->bar; in get_ip_addr() 285 return td->foo && td->bar ? 0 : -1; in get_ip_addr() 298 td->perf, td->perf_data_file_name, td->dlfilters, in do_run_perf_script() 299 td->name, verbose, td->ip, td->addr, do_early); in do_run_perf_script() 328 if (get_dlfilters_path(td->name, td->dlfilters, PATH_MAX)) in test__dlfilter_test() 358 td->fd = creat(td->perf_data_file_name, 0644); in test__dlfilter_test() [all …]
|
/openbmc/linux/drivers/usb/c67x00/ |
H A D | c67x00-sched.c | 82 #define td_udev(td) ((td)->ep_data->dev) argument 115 #define td_residue(td) ((__s8)(td->residue)) argument 123 #define td_sequence_ok(td) (!td->status || \ argument 127 #define td_acked(td) (!td->status || \ argument 129 #define td_actual_bytes(td) (td_length(td) - td_residue(td)) argument 577 td = kzalloc(sizeof(*td), GFP_ATOMIC); in c67x00_create_td() 578 if (!td) in c67x00_create_td() 833 td->td_addr, td, CY_TD_SIZE); in c67x00_parse_td() 837 td->data, td_actual_bytes(td)); in c67x00_parse_td() 869 maxps = usb_maxpacket(td_udev(td), td->pipe); in c67x00_end_of_data() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-nested-aio-poll.c | 55 g_assert(!td->nested); in io_poll_ready() 56 td->nested = true; in io_poll_ready() 62 g_assert(aio_poll(td->ctx, true)); in io_poll_ready() 64 td->nested = false; in io_poll_ready() 77 TestData td = { in test() local 90 aio_get_g_source(td.ctx); in test() 94 aio_set_event_notifier(td.ctx, &td.poll_notifier, in test() 99 aio_set_event_notifier(td.ctx, &td.dummy_notifier, in test() 117 aio_set_event_notifier(td.ctx, &td.dummy_notifier, NULL, NULL, NULL); in test() 118 aio_set_event_notifier(td.ctx, &td.poll_notifier, NULL, NULL, NULL); in test() [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | nand_bbt.c | 92 if (memcmp(buf, td->pattern, td->len)) in check_pattern_no_oob() 113 if (memcmp(buf + paglen + td->offs, td->pattern, td->len)) in check_pattern() 131 if (memcmp(buf + td->offs, td->pattern, td->len)) in check_short_pattern() 398 td->version[0] = buf[bbt_get_ver_offs(this, td)]; in read_abs_bbts() 400 td->pages[0], td->version[0]); in read_abs_bbts() 615 td->pages[i], td->version[i]); in search_bbt() 862 memcpy(buf, td->pattern, td->len); in write_bbt() 874 memcpy(&buf[ooboffs + td->offs], td->pattern, td->len); in write_bbt() 878 buf[ooboffs + td->veroffs] = td->version[chip]; in write_bbt() 981 rd = td; in check_create() [all …]
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | nand_bbt.c | 95 if (memcmp(buf, td->pattern, td->len)) in check_pattern_no_oob() 116 if (memcmp(buf + paglen + td->offs, td->pattern, td->len)) in check_pattern() 134 if (memcmp(buf + td->offs, td->pattern, td->len)) in check_short_pattern() 395 td->version[0] = buf[bbt_get_ver_offs(mtd, td)]; in read_abs_bbts() 397 td->pages[0], td->version[0]); in read_abs_bbts() 579 td->pages[i], td->version[i]); in search_bbt() 756 memcpy(buf, td->pattern, td->len); in write_bbt() 768 memcpy(&buf[ooboffs + td->offs], td->pattern, td->len); in write_bbt() 772 buf[ooboffs + td->veroffs] = td->version[chip]; in write_bbt() 867 rd = td; in check_create() [all …]
|
/openbmc/linux/drivers/media/platform/st/sti/hva/ |
H A D | hva-h264.c | 396 struct hva_h264_td td; member 598 struct hva_h264_td *td = &task->td; in hva_h264_prepare_task() local 658 td->framerate_den = 1; in hva_h264_prepare_task() 670 td->bit_rate /= td->framerate_num; in hva_h264_prepare_task() 712 td->brc_no_skip = 0; in hva_h264_prepare_task() 716 td->bit_rate) in hva_h264_prepare_task() 717 td->delay = 1000 * (td->cpb_buffer_size / td->bit_rate); in hva_h264_prepare_task() 719 td->delay = 0; in hva_h264_prepare_task() 752 td->quant = 28; in hva_h264_prepare_task() 762 td->brc_type = 0; in hva_h264_prepare_task() [all …]
|
/openbmc/google-misc/subprojects/ncsid/doc/ |
H A D | ncsid_test_arch.dot | 8 …<tr><td port="sockio" bgcolor="lightblue">net::SockIO</td><td bgcolor="lightblue" colspan="2" port… 9 <tr><td bgcolor="lightblue" colspan="3">ncsi::StateMachine</td></tr> 11 <td bgcolor="black"><font color="white">L2 FSM</font></td> 12 <td bgcolor="black"><font color="white">L3/4 FSM</font></td> 13 <td bgcolor="black"><font color="white">Test FSM</font></td> 30 <tr><td align="left">NICConnection</td></tr> 31 <tr><td border="1">mock::NIC</td></tr>
|
/openbmc/linux/kernel/ |
H A D | smpboot.c | 119 ht->cleanup(td->cpu, cpu_online(td->cpu)); in smpboot_thread_fn() 120 kfree(td); in smpboot_thread_fn() 129 ht->park(td->cpu); in smpboot_thread_fn() 140 switch (td->status) { in smpboot_thread_fn() 145 ht->setup(td->cpu); in smpboot_thread_fn() 153 ht->unpark(td->cpu); in smpboot_thread_fn() 178 td = kzalloc_node(sizeof(*td), GFP_KERNEL, cpu_to_node(cpu)); in __smpboot_create_thread() 179 if (!td) in __smpboot_create_thread() 181 td->cpu = cpu; in __smpboot_create_thread() 182 td->ht = ht; in __smpboot_create_thread() [all …]
|
/openbmc/linux/block/ |
H A D | blk-throttle.c | 141 td->low_upgrade_time + td->scale * td->throtl_slice)) in throtl_adjusted_limit() 142 td->scale = (jiffies - td->low_upgrade_time) / td->throtl_slice; in throtl_adjusted_limit() 156 td = tg->td; in tg_bps_limit() 186 td = tg->td; in tg_iops_limit() 410 tg->td = td; in throtl_pd_init() 421 struct throtl_data *td = tg->td; in tg_update_has_rules() local 1703 struct throtl_data *td = q->td; in throtl_shutdown_wq() local 1952 td->low_upgrade_time = jiffies - td->scale * td->throtl_slice; in throtl_downgrade_state() 2307 struct throtl_data *td = q->td; in blk_throtl_stat_add() local 2394 q->td = td; in blk_throtl_init() [all …]
|
/openbmc/qemu/hw/s390x/ |
H A D | tod-kvm.c | 35 if (td->stopped) { in kvm_s390_tod_get() 36 *tod = td->base; in kvm_s390_tod_get() 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() 103 td->stopped = false; in kvm_s390_tod_vm_state_change() 111 td->stopped = true; in kvm_s390_tod_vm_state_change() 118 S390TODState *td = S390_TOD(dev); in kvm_s390_tod_realize() local [all …]
|