/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() 411 struct td *td; in ed_get() local 422 td = td_alloc (ohci, GFP_ATOMIC); in ed_get() 423 if (!td) { in ed_get() 429 ed->dummy = td; in ed_get() 430 ed->hwTailP = cpu_to_hc32 (ohci, td->td_dma); in ed_get() 517 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 | 1741 struct xhci_td *td, union xhci_trb *event_trb) in xhci_cleanup_halted_endpoint() argument 1750 ep->stopped_td = td; in xhci_cleanup_halted_endpoint() 1754 xhci_cleanup_stalled_ring(xhci, td->urb->dev, ep_index); in xhci_cleanup_halted_endpoint() 1807 static int finish_td(struct xhci_hcd *xhci, struct xhci_td *td, in finish_td() argument 1837 ep->stopped_td = td; in finish_td() 1850 td, event_trb); in finish_td() 1853 while (ep_ring->dequeue != td->last_trb) in finish_td() 1860 urb = td->urb; in finish_td() 1876 if (td->urb->transfer_flags & URB_SHORT_NOT_OK) in finish_td() 1881 list_del_init(&td->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 */ 675 const struct td *td, int index) in ohci_hwPSWp() argument 678 &td->hwPSW[index ^ 1] : &td->hwPSW[index]); in ohci_hwPSWp() [all …]
|
D | imx21-dbg.c | 42 int frame, struct td *td) {} in debug_isoc_submitted() argument 44 int frame, struct td *td, int cc, int len) {} in debug_isoc_completed() argument 132 int frame, struct td *td) in debug_isoc_submitted() argument 138 trace->schedule_frame = td->frame; in debug_isoc_submitted() 140 trace->request_len = td->len; in debug_isoc_submitted() 141 trace->td = td; in debug_isoc_submitted() 145 int frame, struct td *td, int cc, int len) in debug_isoc_completed() argument 153 if (trace->td == td) { in debug_isoc_completed() 157 trace->td = NULL; in debug_isoc_completed()
|
/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 | 123 static void mt_post_parse_default_settings(struct mt_device *td); 124 static void mt_post_parse(struct mt_device *td); 165 static int cypress_compute_slot(struct mt_device *td) in cypress_compute_slot() argument 167 if (td->curdata.contactid != 0 || td->num_received == 0) in cypress_compute_slot() 168 return td->curdata.contactid; in cypress_compute_slot() 266 struct mt_device *td = hid_get_drvdata(hdev); in mt_show_quirks() local 268 return sprintf(buf, "%u\n", td->mtclass.quirks); in mt_show_quirks() 276 struct mt_device *td = hid_get_drvdata(hdev); in mt_set_quirks() local 283 td->mtclass.quirks = val; in mt_set_quirks() 285 if (td->cc_index < 0) in mt_set_quirks() [all …]
|
/drivers/mtd/nand/ |
D | nand_bbt.c | 98 static int check_pattern_no_oob(uint8_t *buf, struct nand_bbt_descr *td) in check_pattern_no_oob() argument 100 if (memcmp(buf, td->pattern, td->len)) in check_pattern_no_oob() 115 static int check_pattern(uint8_t *buf, int len, int paglen, struct nand_bbt_descr *td) in check_pattern() argument 117 if (td->options & NAND_BBT_NO_OOB) in check_pattern() 118 return check_pattern_no_oob(buf, td); in check_pattern() 121 if (memcmp(buf + paglen + td->offs, td->pattern, td->len)) in check_pattern() 136 static int check_short_pattern(uint8_t *buf, struct nand_bbt_descr *td) in check_short_pattern() argument 139 if (memcmp(buf + td->offs, td->pattern, td->len)) in check_short_pattern() 150 static u32 add_marker_len(struct nand_bbt_descr *td) in add_marker_len() argument 154 if (!(td->options & NAND_BBT_NO_OOB)) in add_marker_len() [all …]
|
/drivers/md/ |
D | dm-thin-metadata.c | 743 struct dm_thin_device *td, *tmp; in __write_changed_details() local 747 list_for_each_entry_safe(td, tmp, &pmd->thin_devices, list) { in __write_changed_details() 748 if (!td->changed) in __write_changed_details() 751 key = td->id; in __write_changed_details() 753 details.mapped_blocks = cpu_to_le64(td->mapped_blocks); in __write_changed_details() 754 details.transaction_id = cpu_to_le64(td->transaction_id); in __write_changed_details() 755 details.creation_time = cpu_to_le32(td->creation_time); in __write_changed_details() 756 details.snapshotted_time = cpu_to_le32(td->snapshotted_time); in __write_changed_details() 764 if (td->open_count) in __write_changed_details() 765 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, 157 int dm_thin_insert_block(struct dm_thin_device *td, dm_block_t block, 160 int dm_thin_remove_block(struct dm_thin_device *td, dm_block_t block); 165 bool dm_thin_changed_this_transaction(struct dm_thin_device *td); 169 bool dm_thin_aborted_changes(struct dm_thin_device *td); 171 int dm_thin_get_highest_mapped_block(struct dm_thin_device *td, 174 int dm_thin_get_mapped_count(struct dm_thin_device *td, dm_block_t *result);
|
/drivers/dma/ |
D | timb_dma.c | 126 struct timb_dma *td = tdchantotd(td_chan); in __td_enable_chan_irq() local 130 ier = ioread32(td->membase + TIMBDMA_IER); in __td_enable_chan_irq() 134 iowrite32(ier, td->membase + TIMBDMA_IER); in __td_enable_chan_irq() 141 struct timb_dma *td = (struct timb_dma *)((u8 *)td_chan - in __td_dma_done_ack() local 146 dev_dbg(chan2dev(&td_chan->chan), "Checking irq: %d, td: %p\n", id, td); in __td_dma_done_ack() 148 isr = ioread32(td->membase + TIMBDMA_ISR) & (1 << id); in __td_dma_done_ack() 150 iowrite32(isr, td->membase + TIMBDMA_ISR); in __td_dma_done_ack() 273 static u32 __td_ier_mask(struct timb_dma *td) in __td_ier_mask() argument 278 for (i = 0; i < td->dma.chancnt; i++) { in __td_ier_mask() 279 struct timb_dma_chan *td_chan = td->channels + i; in __td_ier_mask() [all …]
|
/drivers/base/power/ |
D | domain_governor.c | 22 constraint_ns = dev_gpd_data(dev)->td.effective_constraint_ns; in dev_update_qos_constraint() 47 struct gpd_timing_data *td = &dev_gpd_data(dev)->td; in default_stop_ok() local 55 if (!td->constraint_changed) { in default_stop_ok() 56 bool ret = td->cached_stop_ok; in default_stop_ok() 61 td->constraint_changed = false; in default_stop_ok() 62 td->cached_stop_ok = false; in default_stop_ok() 63 td->effective_constraint_ns = -1; in default_stop_ok() 82 constraint_ns -= td->start_latency_ns; in default_stop_ok() 86 td->effective_constraint_ns = constraint_ns; in default_stop_ok() 87 td->cached_stop_ok = constraint_ns > td->stop_latency_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 …]
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | cxgb3_offload.c | 562 struct t3c_data *td = container_of(work, struct t3c_data, in t3_process_tid_release_list() local 565 struct t3cdev *tdev = td->dev; in t3_process_tid_release_list() 568 spin_lock_bh(&td->tid_release_lock); in t3_process_tid_release_list() 569 while (td->tid_release_list) { in t3_process_tid_release_list() 570 struct t3c_tid_entry *p = td->tid_release_list; in t3_process_tid_release_list() 572 td->tid_release_list = p->ctx; in t3_process_tid_release_list() 573 spin_unlock_bh(&td->tid_release_lock); in t3_process_tid_release_list() 578 skb = td->nofail_skb; in t3_process_tid_release_list() 580 spin_lock_bh(&td->tid_release_lock); in t3_process_tid_release_list() 581 p->ctx = (void *)td->tid_release_list; in t3_process_tid_release_list() [all …]
|