Home
last modified time | relevance | path

Searched refs:td (Results 1 – 110 of 110) sorted by relevance

/linux-4.1.27/drivers/usb/host/
Dfhci-q.c57 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 …]
Dfhci-mem.c27 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 …]
Dohci-mem.c40 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 …]
Dfhci-tds.c77 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 …]
Dfhci-sched.c46 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 …]
Dohci-q.c19 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 …]
Duhci-q.c109 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 …]
Dr8a66597-hcd.c643 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 …]
Dxhci-ring.c1736 struct xhci_td *td, union xhci_trb *event_trb) in xhci_cleanup_halted_endpoint() argument
1748 xhci_cleanup_stalled_ring(xhci, ep_index, td); in xhci_cleanup_halted_endpoint()
1800 static int finish_td(struct xhci_hcd *xhci, struct xhci_td *td, in finish_td() argument
1829 ep->stopped_td = td; in finish_td()
1841 ep_ring->stream_id, td, event_trb); in finish_td()
1844 while (ep_ring->dequeue != td->last_trb) in finish_td()
1851 urb = td->urb; in finish_td()
1864 if (td->urb->transfer_flags & URB_SHORT_NOT_OK) in finish_td()
1869 list_del_init(&td->td_list); in finish_td()
1871 if (!list_empty(&td->cancelled_td_list)) in finish_td()
[all …]
Dohci-dbg.c255 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 …]
Dfhci.h342 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 …]
Duhci-debug.c42 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 …]
Dimx21-hcd.c203 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 …]
Dohci.h44 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 …]
Dimx21-dbg.c42 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()
Dfhci-hcd.c175 struct td *td; in fhci_mem_free() local
176 struct td *next_td; in fhci_mem_free()
183 list_for_each_entry_safe(td, next_td, &fhci->empty_tds, node) { in fhci_mem_free()
184 list_del(&td->node); in fhci_mem_free()
185 kfree(td); in fhci_mem_free()
221 struct td *td; in fhci_mem_init() local
223 td = kmalloc(sizeof(*td), GFP_KERNEL); in fhci_mem_init()
224 if (!td) in fhci_mem_init()
226 fhci_recycle_empty_td(fhci, td); in fhci_mem_init()
524 struct td *td = fhci_remove_td_from_ed(ed); in fhci_endpoint_disable() local
[all …]
Dimx21-hcd.h335 struct td *isoc_td;
350 struct td { struct
365 struct td *td; argument
414 struct td *td; member
Dohci-hcd.c190 urb_priv = kzalloc (sizeof (urb_priv_t) + size * sizeof (struct td *), in ohci_urb_enqueue()
200 urb_priv->td [i] = td_alloc (ohci, mem_flags); in ohci_urb_enqueue()
201 if (!urb_priv->td [i]) { in ohci_urb_enqueue()
731 struct td *td, *td_start, *td_next; in io_watchdog_func() local
775 td = ed->pending_td; in io_watchdog_func()
778 if (!td) { in io_watchdog_func()
782 td = td_next; in io_watchdog_func()
788 td_start = td; in io_watchdog_func()
789 td_next = list_prepare_entry(td, &ed->td_list, td_list); in io_watchdog_func()
793 td = td_next; /* head pointer has passed this TD */ in io_watchdog_func()
[all …]
Duhci-hcd.h223 #define td_token(uhci, td) hc32_to_cpu((uhci), (td)->token) argument
274 #define td_status(uhci, td) hc32_to_cpu((uhci), \ argument
275 ACCESS_ONCE((td)->status))
277 #define LINK_TO_TD(uhci, td) (cpu_to_hc32((uhci), (td)->dma_handle)) argument
Dr8a66597.h160 struct r8a66597_td *td; in r8a66597_get_urb() local
162 td = r8a66597_get_td(r8a66597, pipenum); in r8a66597_get_urb()
163 return (td ? td->urb : NULL); in r8a66597_get_urb()
Dehci-dbg.c416 struct ehci_qtd *td; in qh_lines() local
453 td = list_entry (entry, struct ehci_qtd, qtd_list); in qh_lines()
454 scratch = hc32_to_cpup(ehci, &td->hw_token); in qh_lines()
456 if (hw_curr == td->qtd_dma) in qh_lines()
458 else if (hw->hw_qtd_next == cpu_to_hc32(ehci, td->qtd_dma)) in qh_lines()
461 if (td->hw_alt_next == ehci->async->hw->hw_alt_next) in qh_lines()
463 else if (td->hw_alt_next != list_end) in qh_lines()
468 td, mark, ({ char *tmp; in qh_lines()
477 td->urb); in qh_lines()
Dxhci.c1379 urb_priv->td[i] = buffer; in xhci_urb_enqueue()
1546 struct xhci_td *td; in xhci_urb_dequeue() local
1566 td = urb_priv->td[i]; in xhci_urb_dequeue()
1567 if (!list_empty(&td->td_list)) in xhci_urb_dequeue()
1568 list_del_init(&td->td_list); in xhci_urb_dequeue()
1569 if (!list_empty(&td->cancelled_td_list)) in xhci_urb_dequeue()
1570 list_del_init(&td->cancelled_td_list); in xhci_urb_dequeue()
1610 urb_priv->td[i]->start_seg, in xhci_urb_dequeue()
1611 urb_priv->td[i]->first_trb)); in xhci_urb_dequeue()
1614 td = urb_priv->td[i]; in xhci_urb_dequeue()
[all …]
Dfusbh200-hcd.c373 struct fusbh200_qtd *td; in qh_lines() local
409 list_for_each_entry(td, &qh->qtd_list, qtd_list) { in qh_lines()
410 scratch = hc32_to_cpup(fusbh200, &td->hw_token); in qh_lines()
412 if (hw_curr == td->qtd_dma) in qh_lines()
414 else if (hw->hw_qtd_next == cpu_to_hc32(fusbh200, td->qtd_dma)) in qh_lines()
417 if (td->hw_alt_next == fusbh200->async->hw->hw_alt_next) in qh_lines()
419 else if (td->hw_alt_next != list_end) in qh_lines()
424 td, mark, ({ char *tmp; in qh_lines()
433 td->urb); in qh_lines()
Dfotg210-hcd.c385 struct fotg210_qtd *td; in qh_lines() local
421 list_for_each_entry(td, &qh->qtd_list, qtd_list) { in qh_lines()
422 scratch = hc32_to_cpup(fotg210, &td->hw_token); in qh_lines()
424 if (hw_curr == td->qtd_dma) in qh_lines()
426 else if (hw->hw_qtd_next == cpu_to_hc32(fotg210, td->qtd_dma)) in qh_lines()
429 if (td->hw_alt_next == fotg210->async->hw->hw_alt_next) in qh_lines()
431 else if (td->hw_alt_next != list_end) in qh_lines()
436 td, mark, ({ char *tmp; in qh_lines()
453 td->urb); in qh_lines()
Dxhci.h1377 struct xhci_td *td[0]; member
1841 unsigned int ep_index, struct xhci_td *td);
Dxhci-mem.c1775 kfree(urb_priv->td[0]); in xhci_urb_free_priv()
/linux-4.1.27/kernel/locking/
Drtmutex-tester.c55 static int handle_op(struct test_thread_data *td, int lockwakeup) in handle_op() argument
59 switch(td->opcode) { in handle_op()
65 td->mutexes[td->opdata] = 1; in handle_op()
66 td->event = atomic_add_return(1, &rttest_event); in handle_op()
71 if (td->mutexes[i] == 4) { in handle_op()
73 td->mutexes[i] = 0; in handle_op()
87 switch(td->opcode) { in handle_op()
91 id = td->opdata; in handle_op()
95 td->mutexes[id] = 1; in handle_op()
96 td->event = atomic_add_return(1, &rttest_event); in handle_op()
[all …]
/linux-4.1.27/drivers/usb/c67x00/
Dc67x00-sched.c96 #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 …]
/linux-4.1.27/drivers/hid/
Dhid-multitouch.c127 static void mt_post_parse_default_settings(struct mt_device *td);
128 static void mt_post_parse(struct mt_device *td);
170 static int cypress_compute_slot(struct mt_device *td) in cypress_compute_slot() argument
172 if (td->curdata.contactid != 0 || td->num_received == 0) in cypress_compute_slot()
173 return td->curdata.contactid; in cypress_compute_slot()
276 struct mt_device *td = hid_get_drvdata(hdev); in mt_show_quirks() local
278 return sprintf(buf, "%u\n", td->mtclass.quirks); in mt_show_quirks()
286 struct mt_device *td = hid_get_drvdata(hdev); in mt_set_quirks() local
293 td->mtclass.quirks = val; in mt_set_quirks()
295 if (td->cc_index < 0) in mt_set_quirks()
[all …]
/linux-4.1.27/drivers/mtd/nand/
Dnand_bbt.c98 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 …]
/linux-4.1.27/tools/perf/bench/
Dsched-pipe.c57 struct thread_data *td = __tdata; in worker_thread() local
62 if (!td->nr) { in worker_thread()
63 ret = read(td->pipe_read, &m, sizeof(int)); in worker_thread()
65 ret = write(td->pipe_write, &m, sizeof(int)); in worker_thread()
68 ret = write(td->pipe_write, &m, sizeof(int)); in worker_thread()
70 ret = read(td->pipe_read, &m, sizeof(int)); in worker_thread()
80 struct thread_data threads[2], *td; in bench_sched_pipe() local
103 td = threads + t; in bench_sched_pipe()
105 td->nr = t; in bench_sched_pipe()
108 td->pipe_read = pipe_1[0]; in bench_sched_pipe()
[all …]
Dnuma.c434 struct thread_data *td; in parse_setup_cpu_list() local
521 td = g->threads + t; in parse_setup_cpu_list()
531 CPU_ZERO(&td->bind_cpumask); in parse_setup_cpu_list()
534 CPU_SET(cpu, &td->bind_cpumask); in parse_setup_cpu_list()
571 struct thread_data *td; in parse_setup_node_list() local
643 td = g->threads + t; in parse_setup_node_list()
650 td->bind_node = bind_node; in parse_setup_node_list()
823 struct thread_data *td; in count_process_nodes() local
828 td = g->threads + task_nr; in count_process_nodes()
830 node = numa_node_of_cpu(td->curr_cpu); in count_process_nodes()
[all …]
/linux-4.1.27/drivers/base/power/
Ddomain_governor.c20 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->start_latency_ns; in default_stop_ok()
84 td->effective_constraint_ns = constraint_ns; in default_stop_ok()
85 td->cached_stop_ok = constraint_ns > td->stop_latency_ns || in default_stop_ok()
[all …]
Ddomain.c39 struct gpd_timing_data *__td = &dev_gpd_data(dev)->td; \
387 to_gpd_data(pdd)->td.constraint_changed = true; in genpd_dev_pm_qos_notifier()
1411 struct gpd_timing_data *td) in genpd_alloc_dev_data() argument
1426 if (td) in genpd_alloc_dev_data()
1427 gpd_data->td = *td; in genpd_alloc_dev_data()
1431 gpd_data->td.constraint_changed = true; in genpd_alloc_dev_data()
1432 gpd_data->td.effective_constraint_ns = -1; in genpd_alloc_dev_data()
1478 struct gpd_timing_data *td) in __pm_genpd_add_device() argument
1488 gpd_data = genpd_alloc_dev_data(dev, genpd, td); in __pm_genpd_add_device()
1526 struct gpd_timing_data *td) in __pm_genpd_name_add_device() argument
[all …]
/linux-4.1.27/tools/perf/tests/
Dmmap-thread-lookup.c28 static int thread_init(struct thread_data *td) in thread_init() argument
41 td->map = map; in thread_init()
42 td->tid = syscall(SYS_gettid); in thread_init()
44 pr_debug("tid = %d, map = %p\n", td->tid, map); in thread_init()
50 struct thread_data *td = arg; in thread_fn() local
54 if (thread_init(td)) in thread_fn()
58 ret = write(td->ready[1], &go, sizeof(int)); in thread_fn()
69 munmap(td->map, page_size); in thread_fn()
75 struct thread_data *td = &threads[i]; in thread_create() local
78 if (pipe(td->ready)) in thread_create()
[all …]
/linux-4.1.27/drivers/dma/
Dtimb_dma.c126 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 …]
Dcppi41.c536 struct cppi41_desc *td; in cppi41_tear_down_chan() local
541 td = cdd->cd; in cppi41_tear_down_chan()
542 td += cdd->first_td_desc; in cppi41_tear_down_chan()
548 cppi41_compute_td_desc(td); in cppi41_tear_down_chan()
581 pd0 = td->pd0; in cppi41_tear_down_chan()
Dtegra20-apb-dma.c259 struct dma_async_tx_descriptor *td) in txd_to_tegra_dma_desc() argument
261 return container_of(td, struct tegra_dma_desc, txd); in txd_to_tegra_dma_desc()
/linux-4.1.27/kernel/time/
Dtick-common.c166 static void tick_setup_device(struct tick_device *td, in tick_setup_device() argument
176 if (!td->evtdev) { in tick_setup_device()
193 td->mode = TICKDEV_MODE_PERIODIC; in tick_setup_device()
195 handler = td->evtdev->event_handler; in tick_setup_device()
196 next_event = td->evtdev->next_event; in tick_setup_device()
197 td->evtdev->event_handler = clockevents_handle_noop; in tick_setup_device()
200 td->evtdev = newdev; in tick_setup_device()
219 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_setup_device()
227 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_install_replacement() local
230 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement()
[all …]
Dtick-broadcast.c241 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_receive_broadcast() local
242 struct clock_event_device *evt = td->evtdev; in tick_receive_broadcast()
261 struct tick_device *td; in tick_do_broadcast() local
268 td = &per_cpu(tick_cpu_device, cpu); in tick_do_broadcast()
269 td->evtdev->event_handler(td->evtdev); in tick_do_broadcast()
279 td = &per_cpu(tick_cpu_device, cpumask_first(mask)); in tick_do_broadcast()
280 td->evtdev->broadcast(mask); in tick_do_broadcast()
343 struct tick_device *td; in tick_broadcast_control() local
346 td = this_cpu_ptr(&tick_cpu_device); in tick_broadcast_control()
347 dev = td->evtdev; in tick_broadcast_control()
[all …]
Dtick-oneshot.c62 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_switch_to_oneshot() local
63 struct clock_event_device *dev = td->evtdev; in tick_switch_to_oneshot()
82 td->mode = TICKDEV_MODE_ONESHOT; in tick_switch_to_oneshot()
Dclockevents.c689 struct tick_device *td; in sysfs_show_current_tick_dev() local
693 td = tick_get_tick_dev(dev); in sysfs_show_current_tick_dev()
694 if (td && td->evtdev) in sysfs_show_current_tick_dev()
695 count = snprintf(buf, PAGE_SIZE, "%s\n", td->evtdev->name); in sysfs_show_current_tick_dev()
Dtimer_list.c201 print_tickdevice(struct seq_file *m, struct tick_device *td, int cpu) in print_tickdevice() argument
203 struct clock_event_device *dev = td->evtdev; in print_tickdevice()
205 SEQ_printf(m, "Tick Device: mode: %d\n", td->mode); in print_tickdevice()
Dhrtimer.c1368 struct tick_device *td; in __hrtimer_peek_ahead_timers() local
1373 td = this_cpu_ptr(&tick_cpu_device); in __hrtimer_peek_ahead_timers()
1374 if (td && td->evtdev) in __hrtimer_peek_ahead_timers()
1375 hrtimer_interrupt(td->evtdev); in __hrtimer_peek_ahead_timers()
/linux-4.1.27/drivers/md/
Ddm-thin-metadata.c739 struct dm_thin_device *td, *tmp; in __write_changed_details() local
743 list_for_each_entry_safe(td, tmp, &pmd->thin_devices, list) { in __write_changed_details()
744 if (!td->changed) in __write_changed_details()
747 key = td->id; in __write_changed_details()
749 details.mapped_blocks = cpu_to_le64(td->mapped_blocks); in __write_changed_details()
750 details.transaction_id = cpu_to_le64(td->transaction_id); in __write_changed_details()
751 details.creation_time = cpu_to_le32(td->creation_time); in __write_changed_details()
752 details.snapshotted_time = cpu_to_le32(td->snapshotted_time); in __write_changed_details()
760 if (td->open_count) in __write_changed_details()
761 td->changed = 0; in __write_changed_details()
[all …]
Ddm-thin-metadata.h129 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);
Ddm.c741 static int open_table_device(struct table_device *td, dev_t dev, in open_table_device() argument
749 BUG_ON(td->dm_dev.bdev); in open_table_device()
751 bdev = blkdev_get_by_dev(dev, td->dm_dev.mode | FMODE_EXCL, _claim_ptr); in open_table_device()
757 blkdev_put(bdev, td->dm_dev.mode | FMODE_EXCL); in open_table_device()
761 td->dm_dev.bdev = bdev; in open_table_device()
768 static void close_table_device(struct table_device *td, struct mapped_device *md) in close_table_device() argument
770 if (!td->dm_dev.bdev) in close_table_device()
773 bd_unlink_disk_holder(td->dm_dev.bdev, dm_disk(md)); in close_table_device()
774 blkdev_put(td->dm_dev.bdev, td->dm_dev.mode | FMODE_EXCL); in close_table_device()
775 td->dm_dev.bdev = NULL; in close_table_device()
[all …]
Ddm-thin.c115 static void build_data_key(struct dm_thin_device *td, in build_data_key() argument
119 key->dev = dm_thin_dev_id(td); in build_data_key()
124 static void build_virtual_key(struct dm_thin_device *td, dm_block_t b, in build_virtual_key() argument
128 key->dev = dm_thin_dev_id(td); in build_virtual_key()
296 struct dm_thin_device *td; member
586 dm_thin_changed_this_transaction(tc->td); in bio_triggers_commit()
615 if (dm_thin_aborted_changes(tc->td)) { in issue()
829 r = dm_thin_insert_block(tc->td, m->virt_block, m->data_block); in process_prepared_mapping()
895 r = dm_thin_remove_block(tc->td, m->virt_block); in process_prepared_discard()
1314 r = dm_thin_find_block(tc->td, block, 1, &lookup_result); in process_discard_cell()
[all …]
/linux-4.1.27/kernel/
Dsmpboot.c107 struct smpboot_thread_data *td = data; in smpboot_thread_fn() local
108 struct smp_hotplug_thread *ht = td->ht; in smpboot_thread_fn()
117 ht->cleanup(td->cpu, cpu_online(td->cpu)); in smpboot_thread_fn()
118 kfree(td); in smpboot_thread_fn()
125 if (ht->park && td->status == HP_THREAD_ACTIVE) { in smpboot_thread_fn()
126 BUG_ON(td->cpu != smp_processor_id()); in smpboot_thread_fn()
127 ht->park(td->cpu); in smpboot_thread_fn()
128 td->status = HP_THREAD_PARKED; in smpboot_thread_fn()
135 BUG_ON(td->cpu != smp_processor_id()); in smpboot_thread_fn()
138 switch (td->status) { in smpboot_thread_fn()
[all …]
/linux-4.1.27/block/
Dblk-throttle.c102 struct throtl_data *td; member
195 static inline struct throtl_grp *td_root_tg(struct throtl_data *td) in td_root_tg() argument
197 return blkg_to_tg(td->queue->root_blkg); in td_root_tg()
227 return tg->td; in sq_to_td()
409 struct throtl_data *td = blkg->q->td; in throtl_pd_init() local
427 parent_sq = &td->service_queue; in throtl_pd_init()
440 tg->td = td; in throtl_pd_init()
512 static struct throtl_grp *throtl_lookup_tg(struct throtl_data *td, in throtl_lookup_tg() argument
520 return td_root_tg(td); in throtl_lookup_tg()
522 return blkg_to_tg(blkg_lookup(blkcg, td->queue)); in throtl_lookup_tg()
[all …]
/linux-4.1.27/drivers/char/agp/
Disoch.c79 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 …]
/linux-4.1.27/drivers/net/ethernet/seeq/
Dsgiseeq.c427 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 …]
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_offload.c562 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 …]
Dcxgb3_main.c1391 struct t3c_data *td = T3C_DATA(tdev); in offload_close() local
1402 flush_work(&td->tid_release_task); in offload_close()
/linux-4.1.27/security/keys/
Dtrusted.c466 struct tpm_digests *td; in tpm_seal() local
478 td = kmalloc(sizeof *td, GFP_KERNEL); in tpm_seal()
479 if (!td) in tpm_seal()
489 memcpy(td->xorwork, sess.secret, SHA1_DIGEST_SIZE); in tpm_seal()
490 memcpy(td->xorwork + SHA1_DIGEST_SIZE, sess.enonce, SHA1_DIGEST_SIZE); in tpm_seal()
491 ret = TSS_sha1(td->xorwork, SHA1_DIGEST_SIZE * 2, td->xorhash); in tpm_seal()
495 ret = tpm_get_random(TPM_ANY_NUM, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
505 td->encauth[i] = td->xorhash[i] ^ blobauth[i]; in tpm_seal()
510 ret = TSS_authhmac(td->pubauth, sess.secret, SHA1_DIGEST_SIZE, in tpm_seal()
511 sess.enonce, td->nonceodd, cont, in tpm_seal()
[all …]
/linux-4.1.27/drivers/atm/
Dfirestream.c709 struct FS_BPENTRY *td; in process_txdone_queue() local
732 td = bus_to_virt (tmp); in process_txdone_queue()
735 td->flags, td->next, td->bsa, td->aal_bufsize, td->skb ); in process_txdone_queue()
737 skb = td->skb; in process_txdone_queue()
742 td->dev->ntxpckts--; in process_txdone_queue()
748 fs_dprintk (FS_DEBUG_QSIZE, "[%d]", td->dev->ntxpckts); in process_txdone_queue()
758 fs_dprintk (FS_DEBUG_ALLOC, "Free trans-d: %p\n", td); in process_txdone_queue()
759 memset (td, ATM_POISON_FREE, sizeof(struct FS_BPENTRY)); in process_txdone_queue()
760 kfree (td); in process_txdone_queue()
1169 struct FS_BPENTRY *td; in fs_send() local
[all …]
/linux-4.1.27/drivers/usb/gadget/udc/
Damd5536udc.c854 struct udc_data_dma *td; in udc_free_dma_chain() local
862 td = phys_to_virt(td_last->next); in udc_free_dma_chain()
866 pci_pool_free(dev->data_requests, td, in udc_free_dma_chain()
868 td_last = td; in udc_free_dma_chain()
869 td = phys_to_virt(td_last->next); in udc_free_dma_chain()
878 struct udc_data_dma *td; in udc_get_last_dma_desc() local
880 td = req->td_data; in udc_get_last_dma_desc()
881 while (td && !(td->status & AMD_BIT(UDC_DMA_IN_STS_L))) in udc_get_last_dma_desc()
882 td = phys_to_virt(td->next); in udc_get_last_dma_desc()
884 return td; in udc_get_last_dma_desc()
[all …]
Dpch_udc.c1526 struct pch_udc_data_dma_desc *td = req->td_data; in pch_udc_free_dma_chain() local
1530 dma_addr_t addr = (dma_addr_t)td->next; in pch_udc_free_dma_chain()
1531 td->next = 0x00; in pch_udc_free_dma_chain()
1534 td = phys_to_virt(addr); in pch_udc_free_dma_chain()
1535 addr2 = (dma_addr_t)td->next; in pch_udc_free_dma_chain()
1536 pci_pool_free(dev->data_requests, td, addr); in pch_udc_free_dma_chain()
1537 td->next = 0x00; in pch_udc_free_dma_chain()
1560 struct pch_udc_data_dma_desc *td = req->td_data, *last; in pch_udc_create_dma_chain() local
1569 td->dataptr = req->req.dma; in pch_udc_create_dma_chain()
1571 td->dataptr = req->dma; in pch_udc_create_dma_chain()
[all …]
Dnet2280.c501 struct net2280_dma *td; in net2280_alloc_request() local
503 td = pci_pool_alloc(ep->dev->requests, gfp_flags, in net2280_alloc_request()
505 if (!td) { in net2280_alloc_request()
509 td->dmacount = 0; /* not VALID */ in net2280_alloc_request()
510 td->dmadesc = td->dmaaddr; in net2280_alloc_request()
511 req->td = td; in net2280_alloc_request()
530 if (req->td) in net2280_free_request()
531 pci_pool_free(ep->dev->requests, req->td, req->td_dma); in net2280_free_request()
735 struct net2280_dma *td = req->td; in fill_dma_desc() local
755 td->dmaaddr = cpu_to_le32 (req->req.dma); in fill_dma_desc()
[all …]
Dnet2280.h144 struct net2280_dma *td; member
Damd5536udc.h498 struct udc_data_dma *td; member
Dfsl_udc_core.c706 static void fsl_prime_ep(struct fsl_ep *ep, struct ep_td_struct *td) in fsl_prime_ep() argument
711 qh->next_dtd_ptr = cpu_to_hc32(td->td_dma in fsl_prime_ep()
/linux-4.1.27/lib/
Dinflate.c590 struct huft *td, /* distance decoder tables */ in inflate_codes() argument
649 if ((e = (t = td + ((unsigned)b & md))->e) > 16) in inflate_codes()
771 struct huft *td; /* distance code table */ in inflate_fixed() local
801 if ((i = huft_build(l, 30, 0, cpdist, cpdext, &td, &bd)) > 1) in inflate_fixed()
812 if (inflate_codes(tl, td, bl, bd)) { in inflate_fixed()
820 huft_free(td); in inflate_fixed()
837 struct huft *td; /* distance code table */ in inflate_dynamic() local
917 j = (td = tl + ((unsigned)b & m))->b; in inflate_dynamic()
919 j = td->v.n; in inflate_dynamic()
989 if ((i = huft_build(ll + nl, nd, 0, cpdist, cpdext, &td, &bd)) != 0) in inflate_dynamic()
[all …]
/linux-4.1.27/include/linux/
Dpm_domain.h114 struct gpd_timing_data td; member
133 struct gpd_timing_data *td);
137 struct gpd_timing_data *td);
172 struct gpd_timing_data *td) in __pm_genpd_add_device() argument
178 struct gpd_timing_data *td) in __pm_genpd_name_add_device() argument
Dblkdev.h482 struct throtl_data *td; member
/linux-4.1.27/arch/arm/mach-shmobile/
Dpm-rmobile.h44 struct gpd_timing_data *td);
57 #define rmobile_add_device_to_domain_td(name, pdev, td) do { } while (0) argument
Dpm-rmobile.c178 struct gpd_timing_data *td) in rmobile_add_device_to_domain_td() argument
182 __pm_genpd_name_add_device(domain_name, dev, td); in rmobile_add_device_to_domain_td()
/linux-4.1.27/drivers/net/ethernet/amd/
D7990.c355 volatile struct lance_tx_desc *td; in lance_tx() local
368 td = &ib->btx_ring[i]; in lance_tx()
371 if (td->tmd1_bits & LE_T1_OWN) in lance_tx()
374 if (td->tmd1_bits & LE_T1_ERR) { in lance_tx()
375 status = td->misc; in lance_tx()
415 } else if ((td->tmd1_bits & LE_T1_POK) == LE_T1_POK) { in lance_tx()
419 td->tmd1_bits &= ~(LE_T1_POK); in lance_tx()
422 if (td->tmd1_bits & LE_T1_EONE) in lance_tx()
426 if (td->tmd1_bits & LE_T1_EMORE) in lance_tx()
Da2065.c328 volatile struct lance_tx_desc *td; in lance_tx() local
338 td = &ib->btx_ring[i]; in lance_tx()
341 if (td->tmd1_bits & LE_T1_OWN) in lance_tx()
344 if (td->tmd1_bits & LE_T1_ERR) { in lance_tx()
345 status = td->misc; in lance_tx()
384 } else if ((td->tmd1_bits & LE_T1_POK) == LE_T1_POK) { in lance_tx()
386 td->tmd1_bits &= ~(LE_T1_POK); in lance_tx()
389 if (td->tmd1_bits & LE_T1_EONE) in lance_tx()
393 if (td->tmd1_bits & LE_T1_EMORE) in lance_tx()
Ddeclance.c246 #define tds_ptr(td, rt, type) \ argument
247 ((volatile u16 *)((u8 *)(td) + tds_off(rt, type)))
646 volatile u16 *td; in lance_tx() local
655 td = lib_ptr(ib, btx_ring[i], lp->type); in lance_tx()
657 if (*tds_ptr(td, tmd1, lp->type) & LE_T1_OWN) in lance_tx()
660 if (*tds_ptr(td, tmd1, lp->type) & LE_T1_ERR) { in lance_tx()
661 status = *tds_ptr(td, misc, lp->type); in lance_tx()
696 } else if ((*tds_ptr(td, tmd1, lp->type) & LE_T1_POK) == in lance_tx()
701 *tds_ptr(td, tmd1, lp->type) &= ~(LE_T1_POK); in lance_tx()
704 if (*tds_ptr(td, tmd1, lp->type) & LE_T1_EONE) in lance_tx()
[all …]
Dsunlance.c576 struct lance_tx_desc *td = &ib->btx_ring [i]; in lance_tx_dvma() local
577 u8 bits = td->tmd1_bits; in lance_tx_dvma()
584 u16 status = td->misc; in lance_tx_dvma()
622 td->tmd1_bits = bits & ~(LE_T1_POK); in lance_tx_dvma()
744 struct lance_tx_desc __iomem *td = &ib->btx_ring [i]; in lance_tx_pio() local
745 u8 bits = sbus_readb(&td->tmd1_bits); in lance_tx_pio()
752 u16 status = sbus_readw(&td->misc); in lance_tx_pio()
790 sbus_writeb(bits & ~(LE_T1_POK), &td->tmd1_bits); in lance_tx_pio()
/linux-4.1.27/drivers/usb/host/whci/
Dasl.c103 struct whc_qtd *td; in process_qset() local
107 td = &qset->qtd[qset->td_start]; in process_qset()
108 status = le32_to_cpu(td->status); in process_qset()
118 process_halted_qtd(whc, qset, td); in process_qset()
127 process_inactive_qtd(whc, qset, td); in process_qset()
Dpzl.c109 struct whc_qtd *td; in pzl_process_qset() local
113 td = &qset->qtd[qset->td_start]; in pzl_process_qset()
114 status = le32_to_cpu(td->status); in pzl_process_qset()
124 process_halted_qtd(whc, qset, td); in pzl_process_qset()
133 process_inactive_qtd(whc, qset, td); in pzl_process_qset()
/linux-4.1.27/drivers/usb/chipidea/
Dudc.h57 struct ci_hw_td td; member
64 struct list_head td; member
Dudc.c387 struct td_node, td); in add_td_to_list()
391 INIT_LIST_HEAD(&node->td); in add_td_to_list()
392 list_add_tail(&node->td, &hwreq->tds); in add_td_to_list()
452 firstnode = list_first_entry(&hwreq->tds, struct td_node, td); in _hardware_enqueue()
455 struct td_node, td); in _hardware_enqueue()
473 struct td_node, td); in _hardware_enqueue()
489 hwep->qh.ptr->td.next = cpu_to_le32(firstnode->dma); in _hardware_enqueue()
490 hwep->qh.ptr->td.token &= in _hardware_enqueue()
526 hwep->qh.ptr->td.next = node->dma; in reprime_dtd()
527 hwep->qh.ptr->td.token &= in reprime_dtd()
[all …]
Ddebug.c186 list_for_each_entry_safe(node, tmpnode, &req->tds, td) { in ci_requests_show()
/linux-4.1.27/drivers/net/ethernet/
Dkorina.c202 struct dma_desc *td; in korina_send_packet() local
206 td = &lp->td_ring[lp->tx_chain_tail]; in korina_send_packet()
231 dma_cache_inv((u32) td, sizeof(*td)); in korina_send_packet()
232 td->ca = CPHYSADDR(skb->data); in korina_send_packet()
239 td->control = DMA_COUNT(length) | in korina_send_packet()
250 td->control = DMA_COUNT(length) | in korina_send_packet()
256 lp->td_ring[chain_prev].link = CPHYSADDR(td); in korina_send_packet()
269 td->control = DMA_COUNT(length) | in korina_send_packet()
276 td->control = DMA_COUNT(length) | in korina_send_packet()
280 lp->td_ring[chain_prev].link = CPHYSADDR(td); in korina_send_packet()
[all …]
/linux-4.1.27/drivers/net/ethernet/apple/
Dmace.c433 volatile struct dbdma_regs __iomem *td = mp->tx_dma; in mace_open() local
482 out_le32(&td->control, (RUN|PAUSE|FLUSH|WAKE) << 16); in mace_open()
483 out_le32(&td->cmdptr, virt_to_bus(mp->tx_cmds)); in mace_open()
503 volatile struct dbdma_regs __iomem *td = mp->tx_dma; in mace_close() local
511 td->control = cpu_to_le32((RUN|PAUSE|FLUSH|WAKE) << 16); /* clear run bit */ in mace_close()
534 volatile struct dbdma_regs __iomem *td = mp->tx_dma; in mace_xmit_start() local
573 out_le32(&td->control, ((RUN|WAKE) << 16) + (RUN|WAKE)); in mace_xmit_start()
664 volatile struct dbdma_regs __iomem *td = mp->tx_dma; in mace_interrupt() local
694 dstat = le32_to_cpu(td->status); in mace_interrupt()
696 out_le32(&td->control, RUN << 16); in mace_interrupt()
[all …]
Dbmac.c230 volatile struct dbdma_regs __iomem *td = bp->tx_dma; in bmac_enable_and_reset_chip() local
234 if (td) in bmac_enable_and_reset_chip()
235 dbdma_reset(td); in bmac_enable_and_reset_chip()
478 volatile struct dbdma_regs __iomem *td = bp->tx_dma; in bmac_suspend() local
487 td->control = cpu_to_le32(DBDMA_CLEAR(RUN|PAUSE|FLUSH|WAKE)); /* clear run bit */ in bmac_suspend()
591 volatile struct dbdma_regs __iomem *td = bp->tx_dma; in bmac_init_tx_ring() local
604 dbdma_reset(td); in bmac_init_tx_ring()
605 out_le32(&td->wait_sel, 0x00200020); in bmac_init_tx_ring()
606 out_le32(&td->cmdptr, virt_to_bus(bp->tx_cmds)); in bmac_init_tx_ring()
647 volatile struct dbdma_regs __iomem *td = bp->tx_dma; in bmac_transmit_packet() local
[all …]
/linux-4.1.27/net/sched/
Dact_ipt.c91 struct xt_entry_target *td, *t; in tcf_ipt_init() local
109 td = (struct xt_entry_target *)nla_data(tb[TCA_IPT_TARG]); in tcf_ipt_init()
110 if (nla_len(tb[TCA_IPT_TARG]) < td->u.target_size) in tcf_ipt_init()
141 t = kmemdup(td, td->u.target_size, GFP_KERNEL); in tcf_ipt_init()
/linux-4.1.27/drivers/ide/
Dpalm_bk3710.c115 u8 td, tkw, t0; in palm_bk3710_setdmamode() local
126 td = DIV_ROUND_UP(t->active, ideclk_period); in palm_bk3710_setdmamode()
127 tkw = t0 - td - 1; in palm_bk3710_setdmamode()
128 td -= 1; in palm_bk3710_setdmamode()
131 val32 |= (td << (dev ? 8 : 0)); in palm_bk3710_setdmamode()
/linux-4.1.27/drivers/mtd/onenand/
Donenand_bbt.c33 static int check_short_pattern(uint8_t *buf, int len, int paglen, struct nand_bbt_descr *td) in check_short_pattern() argument
39 for (i = 0; i < td->len; i++) { in check_short_pattern()
40 if (p[i] != td->pattern[i]) in check_short_pattern()
/linux-4.1.27/net/rxrpc/
Dar-key.c178 static void rxrpc_free_krb5_tagged(struct krb5_tagged_data *td) in rxrpc_free_krb5_tagged() argument
180 kfree(td->data); in rxrpc_free_krb5_tagged()
288 static int rxrpc_krb5_decode_tagged_data(struct krb5_tagged_data *td, in rxrpc_krb5_decode_tagged_data() argument
303 td->tag = ntohl(*xdr++); in rxrpc_krb5_decode_tagged_data()
308 td->data_len = len; in rxrpc_krb5_decode_tagged_data()
311 td->data = kmemdup(xdr, len, GFP_KERNEL); in rxrpc_krb5_decode_tagged_data()
312 if (!td->data) in rxrpc_krb5_decode_tagged_data()
319 _debug("tag %x len %x", td->tag, td->data_len); in rxrpc_krb5_decode_tagged_data()
337 struct krb5_tagged_data *td; in rxrpc_krb5_decode_tagged_array() local
360 td = kcalloc(n_elem, sizeof(struct krb5_tagged_data), in rxrpc_krb5_decode_tagged_array()
[all …]
/linux-4.1.27/arch/um/kernel/
Ddyn.lds.S39 .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }
40 .rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }
114 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
Duml.lds.S89 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
/linux-4.1.27/drivers/nfc/st21nfca/
Dst21nfca_se.c65 u8 td; in st21nfca_se_get_bwi() local
70 td = ST21NFCA_ATR_GET_Y_FROM_TD(info->se_info.atr[i]); in st21nfca_se_get_bwi()
71 if (ST21NFCA_ATR_TA_PRESENT(td)) in st21nfca_se_get_bwi()
73 if (ST21NFCA_ATR_TB_PRESENT(td)) { in st21nfca_se_get_bwi()
/linux-4.1.27/drivers/block/drbd/
Ddrbd_debugfs.c535 struct drbd_thread_timing_details td; in seq_print_one_timing_detail() local
539 td = *tdp; in seq_print_one_timing_detail()
540 } while (td.cb_nr != tdp->cb_nr); in seq_print_one_timing_detail()
541 if (!td.cb_addr) in seq_print_one_timing_detail()
544 td.cb_nr, in seq_print_one_timing_detail()
545 jiffies_to_msecs(now - td.start_jif), in seq_print_one_timing_detail()
546 td.caller_fn, td.line, in seq_print_one_timing_detail()
547 td.cb_addr); in seq_print_one_timing_detail()
Ddrbd_worker.c1922 struct drbd_thread_timing_details *td = tdp + i; in __update_timing_details() local
1924 td->start_jif = jiffies; in __update_timing_details()
1925 td->cb_addr = cb; in __update_timing_details()
1926 td->caller_fn = fn; in __update_timing_details()
1927 td->line = line; in __update_timing_details()
1928 td->cb_nr = *cb_nr; in __update_timing_details()
1931 td = tdp + i; in __update_timing_details()
1932 memset(td, 0, sizeof(*td)); in __update_timing_details()
/linux-4.1.27/drivers/ata/
Dpata_mpc52xx.c82 u8 td; member
91 { .t0M = 32, .td = 15, .th = 2, .tj = 2, .tkw = 15, .tm = 4, .tn = 1 },
92 { .t0M = 10, .td = 6, .th = 1, .tj = 1, .tkw = 4, .tm = 2, .tn = 1 },
93 { .t0M = 8, .td = 5, .th = 1, .tj = 1, .tkw = 2, .tm = 2, .tn = 1 },
97 { .t0M = 64, .td = 29, .th = 3, .tj = 3, .tkw = 29, .tm = 7, .tn = 2 },
98 { .t0M = 20, .td = 11, .th = 2, .tj = 1, .tkw = 7, .tm = 4, .tn = 1 },
99 { .t0M = 16, .td = 10, .th = 2, .tj = 1, .tkw = 4, .tm = 4, .tn = 1 },
302 t->mdma1 = ((u32)s->t0M << 24) | ((u32)s->td << 16) | ((u32)s->tkw << 8) | s->tm; in mpc52xx_ata_compute_mdma_timings()
Dpata_bf54x.c374 unsigned short tm, td, tkr, tkw, teoc, th; in bfin_set_dmamode() local
443 td = num_clocks_min(mdma_tdmin[mode], fsclk); in bfin_set_dmamode()
452 if (tkw + td < n0) in bfin_set_dmamode()
453 tkw = n0 - td; in bfin_set_dmamode()
464 ATAPI_SET_MULTI_TIM_0(base, (tm<<8 | td)); in bfin_set_dmamode()
/linux-4.1.27/drivers/net/fddi/skfp/
Dfplustm.c397 static void copy_tx_mac(struct s_smc *smc, u_long td, struct fddi_mac *mac, in copy_tx_mac() argument
421 write_mdr(smc,td) ; /* write over memory data reg to buffer */ in copy_tx_mac()
477 u_int td ; in build_claim_beacon() local
485 td = TX_DESCRIPTOR | ((((u_int)len-1)&3)<<27) ; in build_claim_beacon()
493 copy_tx_mac(smc,td,(struct fddi_mac *)mac, in build_claim_beacon()
502 td = TX_DESCRIPTOR | ((((u_int)len-1)&3)<<27) ; in build_claim_beacon()
508 copy_tx_mac(smc,td,(struct fddi_mac *)mac, in build_claim_beacon()
518 td = TX_DESCRIPTOR | ((((u_int)len-1)&3)<<27) ; in build_claim_beacon()
526 copy_tx_mac(smc,td,(struct fddi_mac *)mac, in build_claim_beacon()
/linux-4.1.27/arch/cris/arch-v32/drivers/
Dcryptocop.c3183 dma_descr_data *td; in print_dma_descriptors() local
3186 td = cdesc_out->dma_descr; in print_dma_descriptors()
3191 td->buf, in print_dma_descriptors()
3192 td->after, in print_dma_descriptors()
3193 td->md, in print_dma_descriptors()
3194 td->next); in print_dma_descriptors()
3201 td->wait, in print_dma_descriptors()
3202 td->eol, in print_dma_descriptors()
3203 td->out_eop, in print_dma_descriptors()
3204 td->in_eop, in print_dma_descriptors()
[all …]
/linux-4.1.27/sound/sparc/
Ddbri.c1772 int td = dbri->pipes[pipe].desc; in transmission_complete_intr() local
1775 while (td >= 0) { in transmission_complete_intr()
1776 if (td >= DBRI_NO_DESCS) { in transmission_complete_intr()
1781 status = DBRI_TD_STATUS(dbri->dma->desc[td].word4); in transmission_complete_intr()
1785 dprintk(D_INT, "TD %d, status 0x%02x\n", td, status); in transmission_complete_intr()
1787 dbri->dma->desc[td].word4 = 0; /* Reset it for next time. */ in transmission_complete_intr()
1788 info->offset += DBRI_RD_CNT(dbri->dma->desc[td].word1); in transmission_complete_intr()
1790 td = dbri->next_desc[td]; in transmission_complete_intr()
1791 dbri->pipes[pipe].desc = td; in transmission_complete_intr()
1869 int td = dbri->pipes[pipe].desc; in dbri_process_one_interrupt()
[all …]
/linux-4.1.27/drivers/nfc/st21nfcb/
Dst21nfcb_se.c126 u8 td; in st21nfcb_se_get_bwi() local
131 td = ST21NFCB_ATR_GET_Y_FROM_TD(info->se_info.atr[i]); in st21nfcb_se_get_bwi()
132 if (ST21NFCB_ATR_TA_PRESENT(td)) in st21nfcb_se_get_bwi()
134 if (ST21NFCB_ATR_TB_PRESENT(td)) { in st21nfcb_se_get_bwi()
/linux-4.1.27/security/integrity/ima/
Dima_crypto.c459 struct ima_template_desc *td, in ima_calc_field_array_hash_tfm() argument
481 if (strcmp(td->name, IMA_TEMPLATE_IMA_NAME) != 0) { in ima_calc_field_array_hash_tfm()
487 } else if (strcmp(td->fields[i]->field_id, "n") == 0) { in ima_calc_field_array_hash_tfm()
/linux-4.1.27/scripts/
Danalyze_suspend.py2039 td {text-align: center;}\n\
2040 tr.alt td {background-color:#EAF2D3;}\n\
2041 tr.avg td {background-color:#BDE34C;}\n\
2063 td = '\t<td>{0}</td>\n'
2092 html += td.format("test %d" % num)
2099 html += td.format(val)
2104 html += td.format(val)
2109 html += td.format(val)
2114 html += td.format(val)
2118 html += td.format("%3.3f ms" % sTime)
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
Ddebug.c1124 struct ath5k_hw_5212_tx_desc *td = &ds->ud.ds_tx5212; in ath5k_debug_printtxbuf() local
1135 ds->ds_data, td->tx_ctl.tx_control_0, td->tx_ctl.tx_control_1, in ath5k_debug_printtxbuf()
1136 td->tx_ctl.tx_control_2, td->tx_ctl.tx_control_3, in ath5k_debug_printtxbuf()
1137 td->tx_stat.tx_status_0, td->tx_stat.tx_status_1, in ath5k_debug_printtxbuf()
/linux-4.1.27/fs/ecryptfs/
Dfile.c250 static int ecryptfs_flush(struct file *file, fl_owner_t td) in ecryptfs_flush() argument
256 return lower_file->f_op->flush(lower_file, td); in ecryptfs_flush()
/linux-4.1.27/drivers/net/ethernet/via/
Dvia-velocity.c1732 struct velocity_td_info *tdinfo, struct tx_desc *td) in velocity_free_tx_buf() argument
1748 td->td_buf[i].size & ~TD_QUEUE); in velocity_free_tx_buf()
1911 struct tx_desc *td; in velocity_tx_srv() local
1926 td = &(vptr->tx.rings[qnum][idx]); in velocity_tx_srv()
1929 if (td->tdesc0.len & OWNED_BY_NIC) in velocity_tx_srv()
1935 if (td->tdesc0.TSR & TSR0_TERR) { in velocity_tx_srv()
1938 if (td->tdesc0.TSR & TSR0_CDH) in velocity_tx_srv()
1940 if (td->tdesc0.TSR & TSR0_CRS) in velocity_tx_srv()
1942 if (td->tdesc0.TSR & TSR0_ABT) in velocity_tx_srv()
1944 if (td->tdesc0.TSR & TSR0_OWC) in velocity_tx_srv()
[all …]
/linux-4.1.27/Documentation/arm/OMAP/
Domap_pm92 (*pdata->set_max_dev_wakeup_lat)(dev, td);
94 /* total wakeup latency in this example: (tc + td) */
/linux-4.1.27/drivers/net/ethernet/ti/
Ddavinci_cpdma.c125 int int_set, int_clear, td; member
526 chan->td = CPDMA_RXTEARDOWN; in cpdma_chan_create()
533 chan->td = CPDMA_TXTEARDOWN; in cpdma_chan_create()
885 dma_reg_write(ctlr, chan->td, chan_linear(chan)); in cpdma_chan_stop()
/linux-4.1.27/drivers/net/ethernet/marvell/
Dskge.c2736 struct skge_tx_desc *td; in skge_xmit_frame() local
2748 td = e->desc; in skge_xmit_frame()
2749 BUG_ON(td->control & BMU_OWN); in skge_xmit_frame()
2759 td->dma_lo = lower_32_bits(map); in skge_xmit_frame()
2760 td->dma_hi = upper_32_bits(map); in skge_xmit_frame()
2774 td->csum_offs = 0; in skge_xmit_frame()
2775 td->csum_start = offset; in skge_xmit_frame()
2776 td->csum_write = offset + skb->csum_offset; in skge_xmit_frame()
2783 struct skge_tx_desc *tf = td; in skge_xmit_frame()
2810 td->control = BMU_OWN | BMU_SW | BMU_STF | control | len; in skge_xmit_frame()
[all …]
/linux-4.1.27/drivers/gpu/drm/radeon/
Dr600_dpm.h156 void r600_select_td(struct radeon_device *rdev, enum r600_td td);
Dr600_dpm.c355 enum r600_td td) in r600_select_td() argument
357 if (td == R600_TD_AUTO) in r600_select_td()
361 if (td == R600_TD_UP) in r600_select_td()
363 if (td == R600_TD_DOWN) in r600_select_td()
Dsumo_dpm.c434 enum r600_td td = R600_TD_DFLT; in sumo_program_tp() local
441 if (td == R600_TD_AUTO) in sumo_program_tp()
446 if (td == R600_TD_UP) in sumo_program_tp()
449 if (td == R600_TD_DOWN) in sumo_program_tp()
Drv770_dpm.c848 enum r600_td td = R600_TD_DFLT; in rv770_program_tp() local
853 if (td == R600_TD_AUTO) in rv770_program_tp()
857 if (td == R600_TD_UP) in rv770_program_tp()
859 if (td == R600_TD_DOWN) in rv770_program_tp()
Dsi_dpm.c3710 enum r600_td td = R600_TD_DFLT; in si_program_tp() local
3715 if (td == R600_TD_AUTO) in si_program_tp()
3720 if (td == R600_TD_UP) in si_program_tp()
3723 if (td == R600_TD_DOWN) in si_program_tp()
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_verbs.c731 u64 ta, tb, tc, td, te; in ipath_ib_timer() local
735 &tc, &td, &te); in ipath_ib_timer()
740 dev->ipath_rpkts = td - dev->ipath_rpkts; in ipath_ib_timer()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_iba6120.c2967 u64 ta, tb, tc, td, te; in pma_6120_timer() local
2970 qib_snapshot_counters(ppd, &ta, &tb, &tc, &td, &te); in pma_6120_timer()
2975 cs->rpkts = td - cs->rpkts; in pma_6120_timer()
/linux-4.1.27/Documentation/RCU/
DRTFP.txt2378 ,url={\url{http://www.computer.org/csdl/trans/td/2012/02/ttd2012020375-abs.html}}
2666 http://www.computer.org/cms/Computer.org/dl/trans/td/2012/02/extras/ttd2012020375s.pdf