Home
last modified time | relevance | path

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

1234567

/linux/drivers/clk/tegra/
A Dclk-dfll.c744 td->lut_min = td->lut_bottom; in dfll_init_out_if()
745 td->lut_max = td->lut_size - 1; in dfll_init_out_if()
746 td->lut_safe = td->lut_min + (td->lut_min < td->lut_max ? 1 : 0); in dfll_init_out_if()
1186 td->dfll_clk = clk_register(td->dev, &td->dfll_clk_hw); in dfll_register_clk()
1366 if (!td || (td->mode == DFLL_UNINITIALIZED)) in dfll_debug_init()
1425 td->ref_clk = devm_clk_get(td->dev, "ref"); in dfll_init_clks()
1431 td->soc_clk = devm_clk_get(td->dev, "soc"); in dfll_init_clks()
1437 td->i2c_clk = devm_clk_get(td->dev, "i2c"); in dfll_init_clks()
1442 td->i2c_clk_rate = clk_get_rate(td->i2c_clk); in dfll_init_clks()
1460 td->ref_rate = clk_get_rate(td->ref_clk); in dfll_init()
[all …]
/linux/tools/testing/selftests/arm64/signal/
A Dtest_signals_utils.c112 td->run(td, si, uc); in handle_signal_trigger()
124 assert(!td->sig_trig || td->triggered); in handle_signal_ok()
135 if (!td->sanity_disabled && !td->token) { in handle_signal_ok()
168 memcpy(td->live_uc, uc, td->live_sz); in handle_signal_copyctx()
285 if (td->init && !td->init(td)) { in test_init()
306 return td->setup(td); in test_setup()
315 return td->trigger(td); in test_run()
319 return td->run(td, NULL, NULL); in test_run()
325 if (td->initialized && td->result != KSFT_SKIP && td->check_result) in test_result()
326 td->check_result(td); in test_result()
[all …]
A Dtest_signals_utils.h13 int test_init(struct tdescr *td);
14 int test_setup(struct tdescr *td);
15 void test_cleanup(struct tdescr *td);
16 int test_run(struct tdescr *td);
17 void test_result(struct tdescr *td);
21 return (td->feats_required & td->feats_supported) == td->feats_required; in feats_ok()
61 assert(td && dest_uc); in get_current_context()
64 td->live_uc_valid = 0; in get_current_context()
65 td->live_sz = sizeof(*dest_uc); in get_current_context()
67 td->live_uc = dest_uc; in get_current_context()
[all …]
/linux/drivers/usb/host/
A Dfhci-q.c63 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 …]
A Dfhci-mem.c23 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 …]
A Dohci-mem.c79 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 …]
A Dfhci-tds.c79 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 …]
A Dfhci-sched.c42 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 …]
A Dohci-q.c20 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 …]
A Duhci-q.c112 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 …]
A Dr8a66597-hcd.c848 kfree(td); in force_dequeue()
1235 (td->short_packet) || (td->zero_packet)) in check_transfer_finish()
1261 mod_timer(&r8a66597->timers[td->pipenum].td, in set_td_timer()
1282 kfree(td); in finish_request()
1484 if (td) { in get_urb_error()
1507 if (td && td->type == USB_PID_IN) in irq_pipe_ready()
1543 if (td && td->type != USB_PID_OUT) in irq_pipe_empty()
1560 finish_request(r8a66597, td, pipenum, td->urb, in irq_pipe_empty()
1738 if (td) in r8a66597_interval_timer()
1880 return td; in r8a66597_make_td()
[all …]
/linux/arch/um/drivers/
A Dvector_transports.c72 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 …]
/linux/drivers/usb/c67x00/
A Dc67x00-sched.c82 #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, usb_pipeout(td->pipe)); in c67x00_end_of_data()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/
A Dtestmode.c44 tx_queued_limit = td->tx_queued_limit ? td->tx_queued_limit : 1000; in mt76_testmode_tx_pending()
49 td->tx_queued - td->tx_done < tx_queued_limit && in mt76_testmode_tx_pending()
58 td->tx_pending--; in mt76_testmode_tx_pending()
59 td->tx_queued++; in mt76_testmode_tx_pending()
95 td->tx_skb = NULL; in mt76_testmode_free_skb()
231 ieee80211_rate_set_vht(rate, td->tx_rate_idx, td->tx_rate_nss); in mt76_testmode_tx_init()
274 td->tx_done = 0; in mt76_testmode_tx_start()
275 td->tx_pending = td->tx_count; in mt76_testmode_tx_start()
291 wait_event_timeout(dev->tx_wait, td->tx_done == td->tx_queued, in mt76_testmode_tx_stop()
318 td->tx_count = 1; in mt76_testmode_init_defaults()
[all …]
/linux/tools/perf/tests/
A Ddlfilter-test.c65 int fd = td->fd; in process()
173 .ip = td->ip, in write_sample()
192 err = process(&td->tool, event, &sample, td->machine); in write_sample()
277 td->ip = MAP_START + td->foo; in get_ip_addr()
278 td->addr = MAP_START + td->bar; in get_ip_addr()
280 return td->foo && td->bar ? 0 : -1; in get_ip_addr()
293 td->perf, td->perf_data_file_name, td->dlfilters, in do_run_perf_script()
294 verbose, td->ip, td->addr, do_early); in do_run_perf_script()
353 td->fd = creat(td->perf_data_file_name, 0644); in test__dlfilter_test()
354 if (td->fd < 0) in test__dlfilter_test()
[all …]
A Dmmap-thread-lookup.c47 td->map = map; in thread_init()
48 td->tid = syscall(SYS_gettid); in thread_init()
56 struct thread_data *td = arg; in thread_fn() local
60 if (thread_init(td)) in thread_fn()
75 munmap(td->map, page_size); in thread_fn()
81 struct thread_data *td = &threads[i]; in thread_create() local
84 if (pipe(td->ready)) in thread_create()
87 err = pthread_create(&td->pt, NULL, thread_fn, td); in thread_create()
94 close(td->ready[0]); in thread_create()
95 close(td->ready[1]); in thread_create()
[all …]
/linux/drivers/mtd/nand/raw/
A Dnand_bbt.c92 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 …]
/linux/drivers/media/platform/sti/hva/
A Dhva-h264.c396 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 …]
/linux/block/
A Dblk-throttle.c146 td->low_upgrade_time + td->scale * td->throtl_slice)) in throtl_adjusted_limit()
147 td->scale = (jiffies - td->low_upgrade_time) / td->throtl_slice; in throtl_adjusted_limit()
161 td = tg->td; in tg_bps_limit()
191 td = tg->td; in tg_iops_limit()
415 tg->td = td; in throtl_pd_init()
426 struct throtl_data *td = tg->td; in tg_update_has_rules() local
1645 struct throtl_data *td = q->td; in throtl_shutdown_wq() local
1844 td->low_upgrade_time = jiffies - td->scale * td->throtl_slice; in throtl_downgrade_state()
2199 struct throtl_data *td = q->td; in blk_throtl_stat_add() local
2285 q->td = td; in blk_throtl_init()
[all …]
/linux/drivers/dma/
A Dtimb_dma.c568 struct timb_dma *td = from_tasklet(td, t, tasklet); in td_tasklet() local
615 struct timb_dma *td; in td_probe() local
638 td = kzalloc(struct_size(td, channels, pdata->nr_channels), in td_probe()
640 if (!td) { in td_probe()
648 if (!td->membase) { in td_probe()
730 free_irq(irq, td); in td_probe()
733 iounmap(td->membase); in td_probe()
735 kfree(td); in td_probe()
750 free_irq(irq, td); in td_remove()
752 iounmap(td->membase); in td_remove()
[all …]
/linux/drivers/md/
A Ddm-thin-metadata.c826 key = td->id; in __write_changed_details()
843 kfree(td); in __write_changed_details()
972 kfree(td); in dm_pool_metadata_close()
1024 *td = td2; in __open_device()
1047 *td = kmalloc(sizeof(**td), GFP_NOIO); in __open_device()
1048 if (!*td) in __open_device()
1052 (*td)->id = dev; in __open_device()
1233 kfree(td); in __delete_device()
1486 return td->id; in dm_thin_dev_id()
1809 r = td->changed; in dm_thin_changed_this_transaction()
[all …]
/linux/kernel/time/
A Dtick-common.c215 if (!td->evtdev) { in tick_setup_device()
245 td->mode = TICKDEV_MODE_PERIODIC; in tick_setup_device()
247 handler = td->evtdev->event_handler; in tick_setup_device()
248 next_event = td->evtdev->next_event; in tick_setup_device()
252 td->evtdev = newdev; in tick_setup_device()
344 struct tick_device *td; in tick_check_new_device() local
348 td = &per_cpu(tick_cpu_device, cpu); in tick_check_new_device()
349 curdev = td->evtdev; in tick_check_new_device()
426 td->mode = TICKDEV_MODE_PERIODIC; in tick_shutdown()
435 td->evtdev = NULL; in tick_shutdown()
[all …]
/linux/drivers/scsi/snic/
A Dsnic_trc.c33 struct snic_trc_data *td = NULL; in snic_get_trc_buf() local
37 td = &trc->buf[trc->wr_idx]; in snic_get_trc_buf()
58 return td; in snic_get_trc_buf()
76 td->fn, in snic_fmt_trc_data()
77 td->hno, in snic_fmt_trc_data()
78 td->tag, in snic_fmt_trc_data()
79 td->data[0], td->data[1], td->data[2], td->data[3], in snic_fmt_trc_data()
80 td->data[4]); in snic_fmt_trc_data()
91 struct snic_trc_data *td = NULL; in snic_get_trc_data() local
101 td = &trc->buf[trc->rd_idx]; in snic_get_trc_data()
[all …]
/linux/tools/perf/bench/
A Dsched-pipe.c56 struct thread_data *td = __tdata; in worker_thread() local
61 if (!td->nr) { in worker_thread()
102 td = threads + t; in bench_sched_pipe()
104 td->nr = t; in bench_sched_pipe()
107 td->pipe_read = pipe_1[0]; in bench_sched_pipe()
108 td->pipe_write = pipe_2[1]; in bench_sched_pipe()
110 td->pipe_write = pipe_1[1]; in bench_sched_pipe()
111 td->pipe_read = pipe_2[0]; in bench_sched_pipe()
119 td = threads + t; in bench_sched_pipe()
121 ret = pthread_create(&td->pthread, NULL, worker_thread, td); in bench_sched_pipe()
[all …]
/linux/kernel/
A Dsmpboot.c119 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 …]

Completed in 98 milliseconds

1234567