/drivers/clk/tegra/ |
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 …]
|
/drivers/usb/host/ |
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 …]
|
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 …]
|
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 …]
|
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 …]
|
D | fhci-sched.c | 42 struct td *td; in fhci_transaction_confirm() local 48 td = fhci_remove_td_from_frame(usb->actual_frame); in fhci_transaction_confirm() 49 td_pkt = td->pkt; in fhci_transaction_confirm() 51 td->status = pkt->status; in fhci_transaction_confirm() 52 if (td->type == FHCI_TA_IN && td_pkt->info & PKT_DUMMY_PACKET) { in fhci_transaction_confirm() 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() 61 ed = td->ed; in fhci_transaction_confirm() 64 struct td *td_next = in fhci_transaction_confirm() 65 list_entry(ed->td_list.next->next, struct td, in fhci_transaction_confirm() [all …]
|
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 …]
|
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 …]
|
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 …]
|
D | xhci-ring.c | 110 static bool last_td_in_urb(struct xhci_td *td) in last_td_in_urb() argument 112 struct urb_priv *urb_priv = td->urb->hcpriv; in last_td_in_urb() 590 unsigned int stream_id, struct xhci_td *td) in xhci_move_dequeue_past_td() argument 620 if (!td) { in xhci_move_dequeue_past_td() 651 if (new_deq == td->last_trb) in xhci_move_dequeue_past_td() 723 struct xhci_td *td, bool flip_cycle) in td_to_noop() argument 725 struct xhci_segment *seg = td->start_seg; in td_to_noop() 726 union xhci_trb *trb = td->first_trb; in td_to_noop() 732 if (flip_cycle && trb != td->first_trb && trb != td->last_trb) in td_to_noop() 735 if (trb == td->last_trb) in td_to_noop() [all …]
|
/drivers/usb/c67x00/ |
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 …]
|
/drivers/net/wireless/mediatek/mt76/ |
D | testmode.c | 29 struct mt76_testmode_data *td = &phy->test; in mt76_testmode_tx_pending() local 32 struct sk_buff *skb = td->tx_skb; in mt76_testmode_tx_pending() 37 if (!skb || !td->tx_pending) in mt76_testmode_tx_pending() 43 tx_queued_limit = td->tx_queued_limit ? td->tx_queued_limit : 1000; in mt76_testmode_tx_pending() 47 while (td->tx_pending > 0 && in mt76_testmode_tx_pending() 48 td->tx_queued - td->tx_done < tx_queued_limit && in mt76_testmode_tx_pending() 57 td->tx_pending--; in mt76_testmode_tx_pending() 58 td->tx_queued++; in mt76_testmode_tx_pending() 91 struct mt76_testmode_data *td = &phy->test; in mt76_testmode_free_skb() local 93 dev_kfree_skb(td->tx_skb); in mt76_testmode_free_skb() [all …]
|
/drivers/mtd/nand/raw/ |
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 …]
|
/drivers/media/platform/sti/hva/ |
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 …]
|
/drivers/dma/ |
D | timb_dma.c | 114 struct timb_dma *td = tdchantotd(td_chan); in __td_enable_chan_irq() local 118 ier = ioread32(td->membase + TIMBDMA_IER); in __td_enable_chan_irq() 122 iowrite32(ier, td->membase + TIMBDMA_IER); in __td_enable_chan_irq() 129 struct timb_dma *td = (struct timb_dma *)((u8 *)td_chan - in __td_dma_done_ack() local 134 dev_dbg(chan2dev(&td_chan->chan), "Checking irq: %d, td: %p\n", id, td); in __td_dma_done_ack() 136 isr = ioread32(td->membase + TIMBDMA_ISR) & (1 << id); in __td_dma_done_ack() 138 iowrite32(isr, td->membase + TIMBDMA_ISR); in __td_dma_done_ack() 258 static u32 __td_ier_mask(struct timb_dma *td) in __td_ier_mask() argument 263 for (i = 0; i < td->dma.chancnt; i++) { in __td_ier_mask() 264 struct timb_dma_chan *td_chan = td->channels + i; in __td_ier_mask() [all …]
|
/drivers/md/ |
D | dm-thin-metadata.c | 829 struct dm_thin_device *td, *tmp; in __write_changed_details() local 833 list_for_each_entry_safe(td, tmp, &pmd->thin_devices, list) { in __write_changed_details() 834 if (!td->changed) in __write_changed_details() 837 key = td->id; in __write_changed_details() 839 details.mapped_blocks = cpu_to_le64(td->mapped_blocks); in __write_changed_details() 840 details.transaction_id = cpu_to_le64(td->transaction_id); in __write_changed_details() 841 details.creation_time = cpu_to_le32(td->creation_time); in __write_changed_details() 842 details.snapshotted_time = cpu_to_le32(td->snapshotted_time); in __write_changed_details() 850 if (td->open_count) in __write_changed_details() 851 td->changed = false; in __write_changed_details() [all …]
|
D | dm-thin-metadata.h | 129 struct dm_thin_device **td); 131 int dm_pool_close_thin_device(struct dm_thin_device *td); 133 dm_thin_id dm_thin_dev_id(struct dm_thin_device *td); 146 int dm_thin_find_block(struct dm_thin_device *td, dm_block_t block, 153 int dm_thin_find_mapped_range(struct dm_thin_device *td, 166 int dm_thin_insert_block(struct dm_thin_device *td, dm_block_t block, 169 int dm_thin_remove_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); [all …]
|
/drivers/scsi/snic/ |
D | snic_trc.c | 33 struct snic_trc_data *td = NULL; in snic_get_trc_buf() local 37 td = &trc->buf[trc->wr_idx]; in snic_get_trc_buf() 53 td->ts = 0; /* Marker for checking the record, for complete data*/ in snic_get_trc_buf() 58 return td; in snic_get_trc_buf() 65 snic_fmt_trc_data(struct snic_trc_data *td, char *buf, int buf_sz) in snic_fmt_trc_data() argument 70 jiffies_to_timespec64(td->ts, &tmspec); in snic_fmt_trc_data() 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() [all …]
|
/drivers/hid/ |
D | hid-multitouch.c | 174 static void mt_post_parse_default_settings(struct mt_device *td, 176 static void mt_post_parse(struct mt_device *td, struct mt_application *app); 408 struct mt_device *td = hid_get_drvdata(hdev); in mt_show_quirks() local 410 return sprintf(buf, "%u\n", td->mtclass.quirks); in mt_show_quirks() 418 struct mt_device *td = hid_get_drvdata(hdev); in mt_set_quirks() local 426 td->mtclass.quirks = val; in mt_set_quirks() 428 list_for_each_entry(application, &td->applications, list) { in mt_set_quirks() 483 struct mt_device *td = hid_get_drvdata(hdev); in mt_feature_mapping() local 489 td->maxcontacts = field->value[0]; in mt_feature_mapping() 490 if (!td->maxcontacts && in mt_feature_mapping() [all …]
|
/drivers/usb/chipidea/ |
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, 73 TP_PROTO(struct ci_hw_ep *hwep, struct ci_hw_req *hwreq, struct td_node *td), [all …]
|
/drivers/base/power/ |
D | domain_governor.c | 30 constraint_ns = dev_gpd_data(dev)->td.effective_constraint_ns; in dev_update_qos_constraint() 54 struct gpd_timing_data *td = &dev_gpd_data(dev)->td; in default_suspend_ok() local 62 if (!td->constraint_changed) { in default_suspend_ok() 63 bool ret = td->cached_suspend_ok; in default_suspend_ok() 68 td->constraint_changed = false; in default_suspend_ok() 69 td->cached_suspend_ok = false; in default_suspend_ok() 70 td->effective_constraint_ns = 0; in default_suspend_ok() 90 td->effective_constraint_ns = PM_QOS_RESUME_LATENCY_NO_CONSTRAINT_NS; in default_suspend_ok() 91 td->cached_suspend_ok = true; in default_suspend_ok() 101 constraint_ns -= td->suspend_latency_ns + in default_suspend_ok() [all …]
|
/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | testmode.c | 175 struct mt76_testmode_data *td = &phy->mt76->test; in mt7615_tm_set_tx_antenna() local 176 u8 mask = td->tx_antenna_mask; in mt7615_tm_set_tx_antenna() 188 (td->tx_antenna_mask & BIT(i)) ? 0 : 0xa); in mt7615_tm_set_tx_antenna() 194 (td->tx_antenna_mask & BIT(0)) ? 0x8 : 0x1b); in mt7615_tm_set_tx_antenna() 196 (td->tx_antenna_mask & BIT(1)) ? 0xe : 0x1b); in mt7615_tm_set_tx_antenna() 198 (td->tx_antenna_mask & BIT(2)) ? 0x0 : 0xf); in mt7615_tm_set_tx_antenna() 200 (td->tx_antenna_mask & BIT(3)) ? 0x6 : 0xf); in mt7615_tm_set_tx_antenna() 204 (td->tx_antenna_mask & BIT(0)) ? 0xd : 0x1b); in mt7615_tm_set_tx_antenna() 206 (td->tx_antenna_mask & BIT(1)) ? 0x13 : 0x1b); in mt7615_tm_set_tx_antenna() 208 (td->tx_antenna_mask & BIT(2)) ? 0x5 : 0xf); in mt7615_tm_set_tx_antenna() [all …]
|
/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | testmode.c | 259 struct mt76_testmode_data *td = &mphy->test; in mt7915_tm_set_tx_len() local 269 rate.mcs = td->tx_rate_idx; in mt7915_tm_set_tx_len() 270 rate.nss = td->tx_rate_nss; in mt7915_tm_set_tx_len() 272 switch (td->tx_rate_mode) { in mt7915_tm_set_tx_len() 286 if (td->tx_rate_sgi) in mt7915_tm_set_tx_len() 292 if (td->tx_rate_sgi) in mt7915_tm_set_tx_len() 299 rate.he_gi = td->tx_rate_sgi; in mt7915_tm_set_tx_len() 417 struct mt76_testmode_data *td = &phy->mt76->test; in mt7915_tm_set_tx_frames() local 420 u8 duty_cycle = td->tx_duty_cycle; in mt7915_tm_set_tx_frames() 421 u32 tx_time = td->tx_time; in mt7915_tm_set_tx_frames() [all …]
|
/drivers/usb/cdns3/ |
D | cdnsp-ring.c | 367 struct cdnsp_td *td, *td_temp; in cdnsp_ring_doorbell_for_active_rings() local 380 list_for_each_entry_safe(td, td_temp, &ep_ring->td_list, in cdnsp_ring_doorbell_for_active_rings() 382 if (td->drbl) in cdnsp_ring_doorbell_for_active_rings() 387 td->drbl = 1; in cdnsp_ring_doorbell_for_active_rings() 505 struct cdnsp_td *td, in cdnsp_td_to_noop() argument 508 struct cdnsp_segment *seg = td->start_seg; in cdnsp_td_to_noop() 509 union cdnsp_trb *trb = td->first_trb; in cdnsp_td_to_noop() 515 if (flip_cycle && trb != td->first_trb && trb != td->last_trb) in cdnsp_td_to_noop() 518 if (trb == td->last_trb) in cdnsp_td_to_noop() 599 struct cdnsp_td *td) in cdnsp_unmap_td_bounce_buffer() argument [all …]
|
/drivers/char/agp/ |
D | isoch.c | 80 struct pci_dev *td = bridge->dev, *dev; in agp_3_5_isochronous_node_enable() local 119 pci_read_config_dword(td, bridge->capndx+AGPNISTAT, &tnistat); in agp_3_5_isochronous_node_enable() 120 pci_read_config_dword(td, bridge->capndx+AGPSTAT, &tstatus); in agp_3_5_isochronous_node_enable() 155 dev_err(&td->dev, "isochronous bandwidth required " in agp_3_5_isochronous_node_enable() 170 pci_read_config_word(td, bridge->capndx+AGPNICMD, &tnicmd); in agp_3_5_isochronous_node_enable() 173 pci_write_config_word(td, bridge->capndx+AGPNICMD, tnicmd); in agp_3_5_isochronous_node_enable() 176 pci_read_config_dword(td, bridge->capndx+AGPNISTAT, &tnistat); in agp_3_5_isochronous_node_enable() 190 dev_err(&td->dev, "number of isochronous " in agp_3_5_isochronous_node_enable() 231 dev_err(&td->dev, "number of request queue slots " in agp_3_5_isochronous_node_enable() 315 struct pci_dev *td = bridge->dev, *dev = NULL; in agp_3_5_enable() local [all …]
|