Lines Matching refs:td
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()
92 if (td) { in td_alloc()
94 memset (td, 0, sizeof *td); in td_alloc()
95 td->hwNextTD = cpu_to_hc32 (hc, dma); in td_alloc()
96 td->td_dma = dma; in td_alloc()
99 return td; in td_alloc()
103 td_free (struct ohci_hcd *hc, struct td *td) in td_free() argument
105 struct td **prev = &hc->td_hash [TD_HASH_FUNC (td->td_dma)]; in td_free()
107 while (*prev && *prev != td) in td_free()
110 *prev = td->td_hash; in td_free()
111 else if ((td->hwINFO & cpu_to_hc32(hc, TD_DONE)) != 0) in td_free()
112 ohci_dbg (hc, "no hash for td %p\n", td); in td_free()
113 dma_pool_free (hc->td_cache, td, td->td_dma); in td_free()