Lines Matching refs:qh
54 static void qh_destroy(struct ehci_hcd *ehci, struct ehci_qh *qh)
57 if (!list_empty (&qh->qtd_list) || qh->qh_next.ptr) {
58 ehci_dbg (ehci, "unused qh not empty!\n");
61 if (qh->dummy)
62 ehci_qtd_free (ehci, qh->dummy);
63 dma_pool_free(ehci->qh_pool, qh->hw, qh->qh_dma);
64 kfree(qh);
69 struct ehci_qh *qh;
72 qh = kzalloc(sizeof *qh, GFP_ATOMIC);
73 if (!qh)
75 qh->hw = (struct ehci_qh_hw *)
77 if (!qh->hw)
79 memset(qh->hw, 0, sizeof *qh->hw);
80 qh->qh_dma = dma;
81 // INIT_LIST_HEAD (&qh->qh_list);
82 INIT_LIST_HEAD (&qh->qtd_list);
83 INIT_LIST_HEAD(&qh->unlink_node);
86 qh->dummy = ehci_qtd_alloc (ehci, flags);
87 if (qh->dummy == NULL) {
92 return qh;
94 dma_pool_free(ehci->qh_pool, qh->hw, qh->qh_dma);
96 kfree(qh);