Lines Matching refs:qh
54 static void qh_destroy(struct ehci_hcd *ehci, struct ehci_qh *qh) in qh_destroy() argument
57 if (!list_empty (&qh->qtd_list) || qh->qh_next.ptr) { in qh_destroy()
61 if (qh->dummy) in qh_destroy()
62 ehci_qtd_free (ehci, qh->dummy); in qh_destroy()
63 dma_pool_free(ehci->qh_pool, qh->hw, qh->qh_dma); in qh_destroy()
64 kfree(qh); in qh_destroy()
69 struct ehci_qh *qh; in ehci_qh_alloc() local
72 qh = kzalloc(sizeof *qh, GFP_ATOMIC); in ehci_qh_alloc()
73 if (!qh) in ehci_qh_alloc()
75 qh->hw = (struct ehci_qh_hw *) in ehci_qh_alloc()
77 if (!qh->hw) in ehci_qh_alloc()
79 qh->qh_dma = dma; in ehci_qh_alloc()
81 INIT_LIST_HEAD (&qh->qtd_list); in ehci_qh_alloc()
82 INIT_LIST_HEAD(&qh->unlink_node); in ehci_qh_alloc()
85 qh->dummy = ehci_qtd_alloc (ehci, flags); in ehci_qh_alloc()
86 if (qh->dummy == NULL) { in ehci_qh_alloc()
91 return qh; in ehci_qh_alloc()
93 dma_pool_free(ehci->qh_pool, qh->hw, qh->qh_dma); in ehci_qh_alloc()
95 kfree(qh); in ehci_qh_alloc()