/drivers/clk/tegra/ |
D | clk-dfll.c | 322 static inline u32 dfll_readl(struct tegra_dfll *td, u32 offs) in dfll_readl() argument 324 return __raw_readl(td->base + offs); in dfll_readl() 327 static inline void dfll_writel(struct tegra_dfll *td, u32 val, u32 offs) in dfll_writel() argument 330 __raw_writel(val, td->base + offs); in dfll_writel() 333 static inline void dfll_wmb(struct tegra_dfll *td) in dfll_wmb() argument 335 dfll_readl(td, DFLL_CTRL); in dfll_wmb() 340 static inline u32 dfll_i2c_readl(struct tegra_dfll *td, u32 offs) in dfll_i2c_readl() argument 342 return __raw_readl(td->i2c_base + offs); in dfll_i2c_readl() 345 static inline void dfll_i2c_writel(struct tegra_dfll *td, u32 val, u32 offs) in dfll_i2c_writel() argument 347 __raw_writel(val, td->i2c_base + offs); in dfll_i2c_writel() [all …]
|
/drivers/usb/host/ |
D | fhci-q.c | 57 void fhci_add_td_to_frame(struct fhci_time_frame *frame, struct td *td) in fhci_add_td_to_frame() argument 59 list_add_tail(&td->frame_lh, &frame->tds_list); in fhci_add_td_to_frame() 62 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number) in fhci_add_tds_to_ed() 67 struct td *td = td_list[i]; in fhci_add_tds_to_ed() local 68 list_add_tail(&td->node, &ed->td_list); in fhci_add_tds_to_ed() 74 static struct td *peek_td_from_ed(struct ed *ed) in peek_td_from_ed() 76 struct td *td; in peek_td_from_ed() local 79 td = list_entry(ed->td_list.next, struct td, node); in peek_td_from_ed() 81 td = NULL; in peek_td_from_ed() 83 return td; in peek_td_from_ed() [all …]
|
D | fhci-mem.c | 27 static void init_td(struct td *td) in init_td() argument 29 memset(td, 0, sizeof(*td)); in init_td() 30 INIT_LIST_HEAD(&td->node); in init_td() 31 INIT_LIST_HEAD(&td->frame_lh); in init_td() 41 static struct td *get_empty_td(struct fhci_hcd *fhci) in get_empty_td() 43 struct td *td; in get_empty_td() local 46 td = list_entry(fhci->empty_tds.next, struct td, node); in get_empty_td() 49 td = kmalloc(sizeof(*td), GFP_ATOMIC); in get_empty_td() 50 if (!td) in get_empty_td() 53 init_td(td); in get_empty_td() [all …]
|
D | ohci-mem.c | 40 sizeof (struct td), in ohci_mem_init() 72 static inline struct td * 75 struct td *td; in dma_to_td() local 78 td = hc->td_hash [TD_HASH_FUNC(td_dma)]; in dma_to_td() 79 while (td && td->td_dma != td_dma) in dma_to_td() 80 td = td->td_hash; in dma_to_td() 81 return td; in dma_to_td() 85 static struct td * 89 struct td *td; in td_alloc() local 91 td = dma_pool_alloc (hc->td_cache, mem_flags, &dma); in td_alloc() [all …]
|
D | fhci-tds.c | 77 struct usb_td __iomem *td, in next_bd() argument 83 return ++td; in next_bd() 156 struct usb_td __iomem *td; in fhci_create_ep() local 172 ep_mem_size = ring_len * sizeof(*td) + sizeof(struct fhci_ep_pram); in fhci_create_ep() 207 ep->ep_pram_ptr = (void __iomem *)ep->td_base + sizeof(*td) * ring_len; in fhci_create_ep() 215 td = ep->td_base; in fhci_create_ep() 217 out_be32(&td->buf_ptr, 0); in fhci_create_ep() 218 out_be16(&td->status, 0); in fhci_create_ep() 219 out_be16(&td->length, 0); in fhci_create_ep() 220 out_be16(&td->extra, 0); in fhci_create_ep() [all …]
|
D | fhci-sched.c | 46 struct td *td; in fhci_transaction_confirm() local 52 td = fhci_remove_td_from_frame(usb->actual_frame); in fhci_transaction_confirm() 53 td_pkt = td->pkt; in fhci_transaction_confirm() 55 td->status = pkt->status; in fhci_transaction_confirm() 56 if (td->type == FHCI_TA_IN && td_pkt->info & PKT_DUMMY_PACKET) { in fhci_transaction_confirm() 57 if ((td->data + td->actual_len) && trans_len) in fhci_transaction_confirm() 58 memcpy(td->data + td->actual_len, pkt->data, in fhci_transaction_confirm() 65 ed = td->ed; in fhci_transaction_confirm() 68 struct td *td_next = in fhci_transaction_confirm() 69 list_entry(ed->td_list.next->next, struct td, in fhci_transaction_confirm() [all …]
|
D | ohci-q.c | 19 struct td *td; in urb_free_priv() local 22 td = urb_priv->td [i]; in urb_free_priv() 23 if (td) in urb_free_priv() 24 td_free (hc, td); in urb_free_priv() 413 struct td *td; in ed_get() local 424 td = td_alloc (ohci, GFP_ATOMIC); in ed_get() 425 if (!td) { in ed_get() 431 ed->dummy = td; in ed_get() 432 ed->hwTailP = cpu_to_hc32 (ohci, td->td_dma); in ed_get() 519 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 | 643 static void pipe_setting(struct r8a66597 *r8a66597, struct r8a66597_td *td) in pipe_setting() argument 646 struct urb *urb = td->urb; in pipe_setting() 648 if (td->pipenum > 0) { in pipe_setting() 649 info = &td->pipe->info; in pipe_setting() 656 r8a66597_pipe_toggle(r8a66597, td->pipe, 0); in pipe_setting() 657 pipe_toggle_set(r8a66597, td->pipe, urb, 0); in pipe_setting() 658 clear_all_buffer(r8a66597, td->pipe); in pipe_setting() 662 pipe_toggle_restore(r8a66597, td->pipe, urb); in pipe_setting() 850 struct r8a66597_td *td, *next; in force_dequeue() local 857 list_for_each_entry_safe(td, next, list, queue) { in force_dequeue() [all …]
|
D | xhci-ring.c | 1783 struct xhci_td *td, union xhci_trb *event_trb) in xhci_cleanup_halted_endpoint() argument 1795 xhci_cleanup_stalled_ring(xhci, ep_index, td); in xhci_cleanup_halted_endpoint() 1847 static int finish_td(struct xhci_hcd *xhci, struct xhci_td *td, in finish_td() argument 1878 ep->stopped_td = td; in finish_td() 1890 ep_ring->stream_id, td, event_trb); in finish_td() 1893 while (ep_ring->dequeue != td->last_trb) in finish_td() 1900 urb = td->urb; in finish_td() 1913 if (td->urb->transfer_flags & URB_SHORT_NOT_OK) in finish_td() 1918 list_del_init(&td->td_list); in finish_td() 1920 if (!list_empty(&td->cancelled_td_list)) in finish_td() [all …]
|
D | ohci-dbg.c | 255 const struct td *td) in ohci_dump_td() argument 257 u32 tmp = hc32_to_cpup (ohci, &td->hwINFO); in ohci_dump_td() 260 label, td, in ohci_dump_td() 262 td->urb, td->index, in ohci_dump_td() 263 hc32_to_cpup (ohci, &td->hwNextTD)); in ohci_dump_td() 284 cbp = hc32_to_cpup (ohci, &td->hwCBP); in ohci_dump_td() 285 be = hc32_to_cpup (ohci, &td->hwBE); in ohci_dump_td() 296 hc32_to_cpup (ohci, &td->hwCBP) & ~0x0fff, in ohci_dump_td() 297 hc32_to_cpup (ohci, &td->hwBE)); in ohci_dump_td() 299 u16 psw = ohci_hwPSW (ohci, td, i); in ohci_dump_td() [all …]
|
D | imx21-hcd.c | 203 etd->td = NULL; in reset_etd() 571 struct td *td; in schedule_isoc_etds() local 590 td = list_entry(ep_priv->td_list.next, struct td, list); in schedule_isoc_etds() 591 list_del(&td->list); in schedule_isoc_etds() 592 urb_priv = td->urb->hcpriv; in schedule_isoc_etds() 595 if (frame_after(cur_frame, td->frame)) { in schedule_isoc_etds() 597 cur_frame, td->frame); in schedule_isoc_etds() 599 td->urb->iso_frame_desc[ in schedule_isoc_etds() 600 td->isoc_index].actual_length = 0; in schedule_isoc_etds() 601 td->urb->iso_frame_desc[td->isoc_index].status = -EXDEV; in schedule_isoc_etds() [all …]
|
D | uhci-debug.c | 42 static int uhci_show_td(struct uhci_hcd *uhci, struct uhci_td *td, char *buf, in uhci_show_td() argument 49 status = td_status(uhci, td); in uhci_show_td() 50 out += sprintf(out, "%*s[%p] link (%08x) ", space, "", td, in uhci_show_td() 51 hc32_to_cpu(uhci, td->link)); in uhci_show_td() 68 token = td_token(uhci, td); in uhci_show_td() 91 out += sprintf(out, "(buf=%08x)\n", hc32_to_cpu(uhci, td->buffer)); in uhci_show_td() 103 struct uhci_td *td; in uhci_show_urbp() local 138 list_for_each_entry(td, &urbp->td_list, list) { in uhci_show_urbp() 142 out += uhci_show_td(uhci, td, out, in uhci_show_urbp() 147 if (td_status(uhci, td) & TD_CTRL_ACTIVE) in uhci_show_urbp() [all …]
|
D | fhci.h | 342 struct td *td_head; /* a pointer to the current TD handled */ 345 struct td { struct 396 struct td **tds; 520 void fhci_recycle_empty_td(struct fhci_hcd *fhci, struct td *td); 523 struct td *fhci_td_fill(struct fhci_hcd *fhci, struct urb *urb, 527 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number); 571 struct td *fhci_remove_td_from_ed(struct ed *ed); 572 struct td *fhci_remove_td_from_frame(struct fhci_time_frame *frame); 574 struct td *fhci_peek_td_from_frame(struct fhci_time_frame *frame); 575 void fhci_add_td_to_frame(struct fhci_time_frame *frame, struct td *td); [all …]
|
D | ohci.h | 44 struct td *dummy; /* next TD to activate */ 73 struct td *pending_td; 87 struct td { struct 131 struct td *td_hash; /* dma-->td hashtable */ argument 132 struct td *next_dl_td; argument 339 struct td *td [0]; // all TDs in this request member 390 struct td *td_hash [TD_HASH_SIZE]; 391 struct td *dl_start, *dl_end; /* the done list */ 674 const struct td *td, int index) in ohci_hwPSWp() argument 677 &td->hwPSW[index ^ 1] : &td->hwPSW[index]); in ohci_hwPSWp() [all …]
|
/drivers/usb/c67x00/ |
D | c67x00-sched.c | 96 #define td_udev(td) ((td)->ep_data->dev) argument 129 #define td_residue(td) ((__s8)(td->residue)) argument 130 #define td_ly_base_addr(td) (__le16_to_cpu((td)->ly_base_addr)) argument 131 #define td_port_length(td) (__le16_to_cpu((td)->port_length)) argument 132 #define td_next_td_addr(td) (__le16_to_cpu((td)->next_td_addr)) argument 134 #define td_active(td) ((td)->retry_cnt & TD_RETRYCNTMASK_ACT_FLG) argument 135 #define td_length(td) (td_port_length(td) & TD_PORTLENMASK_DL) argument 137 #define td_sequence_ok(td) (!td->status || \ argument 138 (!(td->status & TD_STATUSMASK_SEQ) == \ 139 !(td->ctrl_reg & SEQ_SEL))) [all …]
|
/drivers/hid/ |
D | hid-multitouch.c | 129 static void mt_post_parse_default_settings(struct mt_device *td); 130 static void mt_post_parse(struct mt_device *td); 172 static int cypress_compute_slot(struct mt_device *td) in cypress_compute_slot() argument 174 if (td->curdata.contactid != 0 || td->num_received == 0) in cypress_compute_slot() 175 return td->curdata.contactid; in cypress_compute_slot() 278 struct mt_device *td = hid_get_drvdata(hdev); in mt_show_quirks() local 280 return sprintf(buf, "%u\n", td->mtclass.quirks); in mt_show_quirks() 288 struct mt_device *td = hid_get_drvdata(hdev); in mt_set_quirks() local 295 td->mtclass.quirks = val; in mt_set_quirks() 297 if (td->cc_index < 0) in mt_set_quirks() [all …]
|
/drivers/mtd/nand/ |
D | nand_bbt.c | 95 static int check_pattern_no_oob(uint8_t *buf, struct nand_bbt_descr *td) in check_pattern_no_oob() argument 97 if (memcmp(buf, td->pattern, td->len)) in check_pattern_no_oob() 112 static int check_pattern(uint8_t *buf, int len, int paglen, struct nand_bbt_descr *td) in check_pattern() argument 114 if (td->options & NAND_BBT_NO_OOB) in check_pattern() 115 return check_pattern_no_oob(buf, td); in check_pattern() 118 if (memcmp(buf + paglen + td->offs, td->pattern, td->len)) in check_pattern() 133 static int check_short_pattern(uint8_t *buf, struct nand_bbt_descr *td) in check_short_pattern() argument 136 if (memcmp(buf + td->offs, td->pattern, td->len)) in check_short_pattern() 147 static u32 add_marker_len(struct nand_bbt_descr *td) in add_marker_len() argument 151 if (!(td->options & NAND_BBT_NO_OOB)) in add_marker_len() [all …]
|
/drivers/dma/ |
D | timb_dma.c | 122 struct timb_dma *td = tdchantotd(td_chan); in __td_enable_chan_irq() local 126 ier = ioread32(td->membase + TIMBDMA_IER); in __td_enable_chan_irq() 130 iowrite32(ier, td->membase + TIMBDMA_IER); in __td_enable_chan_irq() 137 struct timb_dma *td = (struct timb_dma *)((u8 *)td_chan - in __td_dma_done_ack() local 142 dev_dbg(chan2dev(&td_chan->chan), "Checking irq: %d, td: %p\n", id, td); in __td_dma_done_ack() 144 isr = ioread32(td->membase + TIMBDMA_ISR) & (1 << id); in __td_dma_done_ack() 146 iowrite32(isr, td->membase + TIMBDMA_ISR); in __td_dma_done_ack() 269 static u32 __td_ier_mask(struct timb_dma *td) in __td_ier_mask() argument 274 for (i = 0; i < td->dma.chancnt; i++) { in __td_ier_mask() 275 struct timb_dma_chan *td_chan = td->channels + i; in __td_ier_mask() [all …]
|
/drivers/md/ |
D | dm-thin-metadata.c | 756 struct dm_thin_device *td, *tmp; in __write_changed_details() local 760 list_for_each_entry_safe(td, tmp, &pmd->thin_devices, list) { in __write_changed_details() 761 if (!td->changed) in __write_changed_details() 764 key = td->id; in __write_changed_details() 766 details.mapped_blocks = cpu_to_le64(td->mapped_blocks); in __write_changed_details() 767 details.transaction_id = cpu_to_le64(td->transaction_id); in __write_changed_details() 768 details.creation_time = cpu_to_le32(td->creation_time); in __write_changed_details() 769 details.snapshotted_time = cpu_to_le32(td->snapshotted_time); in __write_changed_details() 777 if (td->open_count) in __write_changed_details() 778 td->changed = 0; 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_timespec(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/base/power/ |
D | domain_governor.c | 20 constraint_ns = dev_gpd_data(dev)->td.effective_constraint_ns; in dev_update_qos_constraint() 45 struct gpd_timing_data *td = &dev_gpd_data(dev)->td; in default_stop_ok() local 53 if (!td->constraint_changed) { in default_stop_ok() 54 bool ret = td->cached_stop_ok; in default_stop_ok() 59 td->constraint_changed = false; in default_stop_ok() 60 td->cached_stop_ok = false; in default_stop_ok() 61 td->effective_constraint_ns = -1; in default_stop_ok() 80 constraint_ns -= td->suspend_latency_ns + in default_stop_ok() 81 td->resume_latency_ns; in default_stop_ok() 85 td->effective_constraint_ns = constraint_ns; in default_stop_ok() [all …]
|
/drivers/char/agp/ |
D | isoch.c | 79 struct pci_dev *td = bridge->dev, *dev; in agp_3_5_isochronous_node_enable() local 118 pci_read_config_dword(td, bridge->capndx+AGPNISTAT, &tnistat); in agp_3_5_isochronous_node_enable() 119 pci_read_config_dword(td, bridge->capndx+AGPSTAT, &tstatus); in agp_3_5_isochronous_node_enable() 156 dev_err(&td->dev, "isochronous bandwidth required " in agp_3_5_isochronous_node_enable() 171 pci_read_config_word(td, bridge->capndx+AGPNICMD, &tnicmd); in agp_3_5_isochronous_node_enable() 174 pci_write_config_word(td, bridge->capndx+AGPNICMD, tnicmd); in agp_3_5_isochronous_node_enable() 177 pci_read_config_dword(td, bridge->capndx+AGPNISTAT, &tnistat); in agp_3_5_isochronous_node_enable() 191 dev_err(&td->dev, "number of isochronous " in agp_3_5_isochronous_node_enable() 232 dev_err(&td->dev, "number of request queue slots " in agp_3_5_isochronous_node_enable() 318 struct pci_dev *td = bridge->dev, *dev = NULL; in agp_3_5_enable() local [all …]
|
/drivers/net/ethernet/seeq/ |
D | sgiseeq.c | 427 struct sgiseeq_tx_desc *td; in kick_tx() local 436 td = &sp->tx_desc[i]; in kick_tx() 437 dma_sync_desc_cpu(dev, td); in kick_tx() 438 while ((td->tdma.cntinfo & (HPCDMA_XIU | HPCDMA_ETXD)) == in kick_tx() 441 td = &sp->tx_desc[i]; in kick_tx() 442 dma_sync_desc_cpu(dev, td); in kick_tx() 444 if (td->tdma.cntinfo & HPCDMA_XIU) { in kick_tx() 445 hregs->tx_ndptr = VIRT_TO_DMA(sp, td); in kick_tx() 454 struct sgiseeq_tx_desc *td; in sgiseeq_tx() local 472 td = &sp->tx_desc[j]; in sgiseeq_tx() [all …]
|