/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 …]
|
/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 …]
|
/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 …]
|
H A D | r8a66597-hcd.c | 848 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() 1879 return td; in r8a66597_make_td() [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
H A D | mmap-thread-lookup.c | 47 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/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 …]
|
/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() 614 td->pages[i], td->version[i]); in search_bbt() 861 memcpy(buf, td->pattern, td->len); in write_bbt() 873 memcpy(&buf[ooboffs + td->offs], td->pattern, td->len); in write_bbt() 877 buf[ooboffs + td->veroffs] = td->version[chip]; in write_bbt() 980 rd = td; in check_create() [all …]
|
/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 …]
|
/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 …]
|
/linux/drivers/dma/ |
H A D | timb_dma.c | 568 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/scsi/snic/ |
H A D | snic_trc.c | 19 struct snic_trc_data *td = NULL; in snic_get_trc_buf() local 23 td = &trc->buf[trc->wr_idx]; in snic_get_trc_buf() 44 return td; in snic_get_trc_buf() 62 td->fn, in snic_fmt_trc_data() 63 td->hno, in snic_fmt_trc_data() 64 td->tag, in snic_fmt_trc_data() 65 td->data[0], td->data[1], td->data[2], td->data[3], in snic_fmt_trc_data() 66 td->data[4]); in snic_fmt_trc_data() 77 struct snic_trc_data *td = NULL; in snic_get_trc_data() local 87 td = &trc->buf[trc->rd_idx]; in snic_get_trc_data() [all …]
|
/linux/kernel/time/ |
H A D | tick-common.c | 214 if (!td->evtdev) { in tick_setup_device() 243 td->mode = TICKDEV_MODE_PERIODIC; in tick_setup_device() 245 handler = td->evtdev->event_handler; in tick_setup_device() 246 next_event = td->evtdev->next_event; in tick_setup_device() 250 td->evtdev = newdev; in tick_setup_device() 342 struct tick_device *td; in tick_check_new_device() local 346 td = &per_cpu(tick_cpu_device, cpu); in tick_check_new_device() 347 curdev = td->evtdev; in tick_check_new_device() 439 td->mode = TICKDEV_MODE_PERIODIC; in tick_shutdown() 448 td->evtdev = NULL; in tick_shutdown() [all …]
|
/linux/drivers/md/ |
H A D | dm-thin-metadata.c | 860 key = td->id; in __write_changed_details() 877 kfree(td); in __write_changed_details() 1006 kfree(td); in dm_pool_metadata_close() 1057 *td = td2; in __open_device() 1080 *td = kmalloc(sizeof(**td), GFP_NOIO); in __open_device() 1081 if (!*td) in __open_device() 1085 (*td)->id = dev; in __open_device() 1266 kfree(td); in __delete_device() 1519 return td->id; in dm_thin_dev_id() 1818 r = td->changed; in dm_thin_changed_this_transaction() [all …]
|
/linux/tools/thermal/thermal-engine/ |
H A D | thermal-engine.c | 96 struct thermal_data *td = arg; in tz_disable() local 106 struct thermal_data *td = arg; in tz_enable() local 116 struct thermal_data *td = arg; in trip_high() local 220 return thermal_events_handle(td->th, td); in thermal_event() 288 struct thermal_data td; in main() local 309 td.th = thermal_init(&ops); in main() 310 if (!td.th) { in main() 315 td.tz = thermal_zone_discover(td.th); in main() 316 if (!td.tz) { in main() 321 for_each_thermal_zone(td.tz, show_tz, td.th); in main() [all …]
|
/linux/drivers/usb/chipidea/ |
H A D | trace.h | 41 TP_PROTO(struct ci_hw_ep *hwep, struct ci_hw_req *hwreq, struct td_node *td), 42 TP_ARGS(hwep, hwreq, td), 45 __field(struct td_node *, td) 56 __entry->td = td; 57 __entry->dma = td->dma; 58 __entry->td_remaining_size = td->td_remaining_size; 59 __entry->next = le32_to_cpu(td->ptr->next); 60 __entry->token = le32_to_cpu(td->ptr->token); 65 __get_str(name), __entry->req, __entry->td, &__entry->dma, 74 TP_ARGS(hwep, hwreq, td) [all …]
|