| /linux/drivers/clk/tegra/ |
| H A D | clk-dfll.c | 331 static inline u32 dfll_readl(struct tegra_dfll *td, u32 offs) in dfll_readl() argument 333 return __raw_readl(td->base + offs); in dfll_readl() 336 static inline void dfll_writel(struct tegra_dfll *td, u32 val, u32 offs) in dfll_writel() argument 339 __raw_writel(val, td->base + offs); in dfll_writel() 342 static inline void dfll_wmb(struct tegra_dfll *td) in dfll_wmb() argument 344 dfll_readl(td, DFLL_CTRL); in dfll_wmb() 349 static inline u32 dfll_i2c_readl(struct tegra_dfll *td, u32 offs) in dfll_i2c_readl() argument 351 return __raw_readl(td->i2c_base + offs); in dfll_i2c_readl() 354 static inline void dfll_i2c_writel(struct tegra_dfll *td, u32 val, u32 offs) in dfll_i2c_writel() argument 356 __raw_writel(val, td->i2c_base + offs); in dfll_i2c_writel() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | fhci-q.c | 53 void fhci_add_td_to_frame(struct fhci_time_frame *frame, struct td *td) in fhci_add_td_to_frame() argument 55 list_add_tail(&td->frame_lh, &frame->tds_list); in fhci_add_td_to_frame() 58 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number) in fhci_add_tds_to_ed() 63 struct td *td = td_list[i]; in fhci_add_tds_to_ed() local 64 list_add_tail(&td->node, &ed->td_list); in fhci_add_tds_to_ed() 70 static struct td *peek_td_from_ed(struct ed *ed) in peek_td_from_ed() 72 struct td *td; in peek_td_from_ed() local 75 td = list_entry(ed->td_list.next, struct td, node); in peek_td_from_ed() 77 td = NULL; in peek_td_from_ed() 79 return td; in peek_td_from_ed() [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() 26 INIT_LIST_HEAD(&td->node); in init_td() 27 INIT_LIST_HEAD(&td->frame_lh); in init_td() 37 static struct td *get_empty_td(struct fhci_hcd *fhci) in get_empty_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() 49 init_td(td); in get_empty_td() [all …]
|
| H A D | ohci-mem.c | 48 sizeof (struct td), in ohci_mem_init() 76 static inline struct td * 79 struct td *td; in dma_to_td() local 82 td = hc->td_hash [TD_HASH_FUNC(td_dma)]; in dma_to_td() 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 97 td = gen_pool_dma_zalloc_align(hcd->localmem_pool, in td_alloc() [all …]
|
| H A D | fhci-tds.c | 73 struct usb_td __iomem *td, in next_bd() argument 79 return ++td; in next_bd() 152 struct usb_td __iomem *td; in fhci_create_ep() local 168 ep_mem_size = ring_len * sizeof(*td) + sizeof(struct fhci_ep_pram); in fhci_create_ep() 203 ep->ep_pram_ptr = (void __iomem *)ep->td_base + sizeof(*td) * ring_len; in fhci_create_ep() 211 td = ep->td_base; in fhci_create_ep() 213 out_be32(&td->buf_ptr, 0); in fhci_create_ep() 214 out_be16(&td->status, 0); in fhci_create_ep() 215 out_be16(&td->length, 0); in fhci_create_ep() 216 out_be16(&td->extra, 0); in fhci_create_ep() [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() 24 if (td) in urb_free_priv() 25 td_free (hc, td); in urb_free_priv() 414 struct td *td; in ed_get() local 425 td = td_alloc (ohci, GFP_ATOMIC); in ed_get() 426 if (!td) { in ed_get() 432 ed->dummy = td; in ed_get() 433 ed->hwTailP = cpu_to_hc32 (ohci, td->td_dma); in ed_get() 520 struct td *td, *td_pt; in td_fill() local [all …]
|
| H A D | uhci-q.c | 109 struct uhci_td *td; in uhci_alloc_td() local 111 td = dma_pool_alloc(uhci->td_pool, GFP_ATOMIC, &dma_handle); in uhci_alloc_td() 112 if (!td) in uhci_alloc_td() 115 td->dma_handle = dma_handle; in uhci_alloc_td() 116 td->frame = -1; in uhci_alloc_td() 118 INIT_LIST_HEAD(&td->list); in uhci_alloc_td() 119 INIT_LIST_HEAD(&td->fl_list); in uhci_alloc_td() 121 return td; in uhci_alloc_td() 124 static void uhci_free_td(struct uhci_hcd *uhci, struct uhci_td *td) in uhci_free_td() argument 126 if (!list_empty(&td->list)) in uhci_free_td() [all …]
|
| H A D | r8a66597-hcd.c | 628 static void pipe_setting(struct r8a66597 *r8a66597, struct r8a66597_td *td) in pipe_setting() argument 631 struct urb *urb = td->urb; in pipe_setting() 633 if (td->pipenum > 0) { in pipe_setting() 634 info = &td->pipe->info; in pipe_setting() 641 r8a66597_pipe_toggle(r8a66597, td->pipe, 0); in pipe_setting() 642 pipe_toggle_set(r8a66597, td->pipe, urb, 0); in pipe_setting() 643 clear_all_buffer(r8a66597, td->pipe); in pipe_setting() 647 pipe_toggle_restore(r8a66597, td->pipe, urb); in pipe_setting() 835 struct r8a66597_td *td, *next; in force_dequeue() local 842 list_for_each_entry_safe(td, next, list, queue) { in force_dequeue() [all …]
|
| H A D | xhci-ring.c | 128 static bool last_td_in_urb(struct xhci_td *td) in last_td_in_urb() argument 130 struct urb_priv *urb_priv = td->urb->hcpriv; in last_td_in_urb() 331 static bool trb_in_td(struct xhci_td *td, dma_addr_t suspect_dma) in trb_in_td() argument 333 return dma_in_range(suspect_dma, td->start_seg, td->start_trb, in trb_in_td() 334 td->end_seg, td->end_trb); in trb_in_td() 691 unsigned int stream_id, struct xhci_td *td) in xhci_move_dequeue_past_td() argument 718 new_cycle = le32_to_cpu(td->end_trb->generic.field[3]) & TRB_CYCLE; in xhci_move_dequeue_past_td() 732 if (new_deq == td->end_trb) in xhci_move_dequeue_past_td() 802 struct xhci_td *td, bool flip_cycle) in td_to_noop() argument 805 struct xhci_segment *seg = td->start_seg; in td_to_noop() [all …]
|
| /linux/arch/um/drivers/ |
| H A D | vector_transports.c | 69 struct uml_l2tpv3_data *td = vp->transport_data; in l2tpv3_form_header() local 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() 77 if (td->cookie_is_64) in l2tpv3_form_header() 78 (*(uint64_t *)(header + td->cookie_offset)) = in l2tpv3_form_header() 79 td->tx_cookie; in l2tpv3_form_header() 81 (*(uint32_t *)(header + td->cookie_offset)) = in l2tpv3_form_header() 82 td->tx_cookie; in l2tpv3_form_header() 84 if (td->has_counter) { in l2tpv3_form_header() [all …]
|
| /linux/tools/perf/tests/ |
| H A D | dlfilter-test.c | 69 struct test_data *td = container_of(tool, struct test_data, tool); in process() local 70 int fd = td->fd; in process() 112 static int write_attr(struct test_data *td, u64 sample_type, u64 *id) in write_attr() argument 122 return perf_event__synthesize_attr(&td->tool, &attr, 1, id, process); in write_attr() 173 static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid) in write_sample() argument 178 .ip = td->ip, in write_sample() 179 .addr = td->addr, in write_sample() 197 err = process(&td->tool, event, &sample, td->machine); in write_sample() 245 static int check_filter_desc(struct test_data *td) in check_filter_desc() argument 251 if (get_filter_desc(td->dlfilters, td->name, &desc, &long_desc) && in check_filter_desc() [all …]
|
| H A D | mmap-thread-lookup.c | 35 static int thread_init(struct thread_data *td) in thread_init() argument 48 td->map = map; in thread_init() 49 td->tid = syscall(SYS_gettid); in thread_init() 51 pr_debug("tid = %d, map = %p\n", td->tid, map); in thread_init() 57 struct thread_data *td = arg; in thread_fn() local 61 if (thread_init(td)) in thread_fn() 65 ret = write(td->ready[1], &go, sizeof(int)); in thread_fn() 76 munmap(td->map, page_size); in thread_fn() 82 struct thread_data *td = &threads[i]; in thread_create() local 85 if (pipe(td->ready)) 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 116 #define td_ly_base_addr(td) (__le16_to_cpu((td)->ly_base_addr)) argument 117 #define td_port_length(td) (__le16_to_cpu((td)->port_length)) argument 118 #define td_next_td_addr(td) (__le16_to_cpu((td)->next_td_addr)) argument 120 #define td_active(td) ((td)->retry_cnt & TD_RETRYCNTMASK_ACT_FLG) argument 121 #define td_length(td) (td_port_length(td) & TD_PORTLENMASK_DL) argument 123 #define td_sequence_ok(td) (!td->status || \ argument 124 (!(td->status & TD_STATUSMASK_SEQ) == \ 125 !(td->ctrl_reg & SEQ_SEL))) [all …]
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_bbt.c | 90 static int check_pattern_no_oob(uint8_t *buf, struct nand_bbt_descr *td) in check_pattern_no_oob() argument 92 if (memcmp(buf, td->pattern, td->len)) in check_pattern_no_oob() 107 static int check_pattern(uint8_t *buf, int len, int paglen, struct nand_bbt_descr *td) in check_pattern() argument 109 if (td->options & NAND_BBT_NO_OOB) in check_pattern() 110 return check_pattern_no_oob(buf, td); in check_pattern() 113 if (memcmp(buf + paglen + td->offs, td->pattern, td->len)) in check_pattern() 128 static int check_short_pattern(uint8_t *buf, struct nand_bbt_descr *td) in check_short_pattern() argument 131 if (memcmp(buf + td->offs, td->pattern, td->len)) in check_short_pattern() 142 static u32 add_marker_len(struct nand_bbt_descr *td) in add_marker_len() argument 146 if (!(td->options & NAND_BBT_NO_OOB)) in add_marker_len() [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 626 memset(td, 0, sizeof(struct hva_h264_td)); in hva_h264_prepare_task() 628 td->frame_width = frame_width; in hva_h264_prepare_task() 629 td->frame_height = frame_height; in hva_h264_prepare_task() 632 td->window_width = frame_width; in hva_h264_prepare_task() 633 td->window_height = frame_height; in hva_h264_prepare_task() 634 td->window_horizontal_offset = 0; in hva_h264_prepare_task() 635 td->window_vertical_offset = 0; in hva_h264_prepare_task() 637 td->first_picture_in_sequence = (!frame_num) ? 1 : 0; in hva_h264_prepare_task() [all …]
|
| /linux/kernel/ |
| H A D | smpboot.c | 104 struct smpboot_thread_data *td = data; in smpboot_thread_fn() local 105 struct smp_hotplug_thread *ht = td->ht; in smpboot_thread_fn() 114 if (ht->cleanup && td->status != HP_THREAD_NONE) in smpboot_thread_fn() 115 ht->cleanup(td->cpu, cpu_online(td->cpu)); in smpboot_thread_fn() 116 kfree(td); in smpboot_thread_fn() 123 if (ht->park && td->status == HP_THREAD_ACTIVE) { in smpboot_thread_fn() 124 BUG_ON(td->cpu != smp_processor_id()); in smpboot_thread_fn() 125 ht->park(td->cpu); in smpboot_thread_fn() 126 td->status = HP_THREAD_PARKED; in smpboot_thread_fn() 133 BUG_ON(td->cpu != smp_processor_id()); in smpboot_thread_fn() [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() 39 td->ts = 0; /* Marker for checking the record, for complete data*/ in snic_get_trc_buf() 44 return td; in snic_get_trc_buf() 51 snic_fmt_trc_data(struct snic_trc_data *td, char *buf, int buf_sz) in snic_fmt_trc_data() argument 56 jiffies_to_timespec64(td->ts, &tmspec); in snic_fmt_trc_data() 61 td->fn, in snic_fmt_trc_data() 62 td->hno, in snic_fmt_trc_data() 63 td->tag, in snic_fmt_trc_data() 64 td->data[0], td->data[1], td->data[2], td->data[3], in snic_fmt_trc_data() [all …]
|
| /linux/kernel/time/ |
| H A D | tick-common.c | 184 static void tick_setup_device(struct tick_device *td, in tick_setup_device() argument 194 if (!td->evtdev) { in tick_setup_device() 229 td->mode = TICKDEV_MODE_PERIODIC; in tick_setup_device() 231 handler = td->evtdev->event_handler; in tick_setup_device() 232 next_event = td->evtdev->next_event; in tick_setup_device() 233 td->evtdev->event_handler = clockevents_handle_noop; in tick_setup_device() 236 td->evtdev = newdev; in tick_setup_device() 255 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_setup_device() 263 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_install_replacement() local 266 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement() [all …]
|
| H A D | tick-broadcast.c | 330 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_receive_broadcast() local 331 struct clock_event_device *evt = td->evtdev; in tick_receive_broadcast() 349 struct tick_device *td; in tick_do_broadcast() local 381 td = &per_cpu(tick_cpu_device, cpumask_first(mask)); in tick_do_broadcast() 382 td->evtdev->broadcast(mask); in tick_do_broadcast() 402 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_handle_periodic_broadcast() local 428 td->evtdev->event_handler(td->evtdev); in tick_handle_periodic_broadcast() 441 struct tick_device *td; in tick_broadcast_control() local 447 td = this_cpu_ptr(&tick_cpu_device); in tick_broadcast_control() 448 dev = td->evtdev; in tick_broadcast_control() [all …]
|
| /linux/drivers/md/ |
| H A D | dm-thin-metadata.c | 852 struct dm_thin_device *td, *tmp; in __write_changed_details() local 856 list_for_each_entry_safe(td, tmp, &pmd->thin_devices, list) { in __write_changed_details() 857 if (!td->changed) in __write_changed_details() 860 key = td->id; in __write_changed_details() 862 details.mapped_blocks = cpu_to_le64(td->mapped_blocks); in __write_changed_details() 863 details.transaction_id = cpu_to_le64(td->transaction_id); in __write_changed_details() 864 details.creation_time = cpu_to_le32(td->creation_time); in __write_changed_details() 865 details.snapshotted_time = cpu_to_le32(td->snapshotted_time); in __write_changed_details() 873 if (td->open_count) in __write_changed_details() 874 td->changed = false; in __write_changed_details() [all …]
|
| H A D | dm-thin-metadata.h | 130 struct dm_thin_device **td); 132 int dm_pool_close_thin_device(struct dm_thin_device *td); 134 dm_thin_id dm_thin_dev_id(struct dm_thin_device *td); 147 int dm_thin_find_block(struct dm_thin_device *td, dm_block_t block, 154 int dm_thin_find_mapped_range(struct dm_thin_device *td, 167 int dm_thin_insert_block(struct dm_thin_device *td, dm_block_t block, 170 int dm_thin_remove_range(struct dm_thin_device *td, 176 bool dm_thin_changed_this_transaction(struct dm_thin_device *td); 180 bool dm_thin_aborted_changes(struct dm_thin_device *td); 182 int dm_thin_get_highest_mapped_block(struct dm_thin_device *td, [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-multitouch.c | 189 static void mt_post_parse_default_settings(struct mt_device *td, 191 static void mt_post_parse(struct mt_device *td, struct mt_application *app); 436 struct mt_device *td = hid_get_drvdata(hdev); in mt_show_quirks() local 438 return sprintf(buf, "%u\n", td->mtclass.quirks); in mt_show_quirks() 446 struct mt_device *td = hid_get_drvdata(hdev); in mt_set_quirks() local 454 td->mtclass.quirks = val; in mt_set_quirks() 456 list_for_each_entry(application, &td->applications, list) { in mt_set_quirks() 511 struct mt_device *td = hid_get_drvdata(hdev); in mt_feature_mapping() local 517 td->maxcontacts = field->value[0]; in mt_feature_mapping() 518 if (!td->maxcontacts && in mt_feature_mapping() [all …]
|
| /linux/drivers/usb/cdns3/ |
| H A D | cdnsp-ring.c | 368 struct cdnsp_td *td, *td_temp; in cdnsp_ring_doorbell_for_active_rings() local 381 list_for_each_entry_safe(td, td_temp, &ep_ring->td_list, in cdnsp_ring_doorbell_for_active_rings() 383 if (td->drbl) in cdnsp_ring_doorbell_for_active_rings() 388 td->drbl = 1; in cdnsp_ring_doorbell_for_active_rings() 506 struct cdnsp_td *td, in cdnsp_td_to_noop() argument 509 struct cdnsp_segment *seg = td->start_seg; in cdnsp_td_to_noop() 510 union cdnsp_trb *trb = td->first_trb; in cdnsp_td_to_noop() 516 if (flip_cycle && trb != td->first_trb && trb != td->last_trb) in cdnsp_td_to_noop() 519 if (trb == td->last_trb) in cdnsp_td_to_noop() 600 struct cdnsp_td *td) in cdnsp_unmap_td_bounce_buffer() argument [all …]
|
| /linux/tools/testing/selftests/arm64/signal/testcases/ |
| H A D | sve_regs.c | 23 static bool sve_get_vls(struct tdescr *td) in sve_get_vls() argument 31 td->result = KSFT_SKIP; in sve_get_vls() 42 static int do_one_sve_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, in do_one_sve_vl() argument 61 if (!get_current_context(td, &context.uc, sizeof(context))) in do_one_sve_vl() 84 static int sve_regs(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in sve_regs() argument 89 if (do_one_sve_vl(td, si, uc, vls[i])) in sve_regs() 93 td->pass = 1; in sve_regs()
|
| H A D | za_no_regs.c | 23 static bool sme_get_vls(struct tdescr *td) in sme_get_vls() argument 31 td->result = KSFT_SKIP; in sme_get_vls() 36 static int do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, in do_one_sme_vl() argument 54 if (!get_current_context(td, &context.uc, sizeof(context))) in do_one_sme_vl() 82 static int sme_regs(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in sme_regs() argument 87 if (do_one_sme_vl(td, si, uc, vls[i])) in sme_regs() 91 td->pass = 1; in sme_regs()
|