diff options
Diffstat (limited to 'sys/dev/usb/dwc2/dwc2_hcdqueue.c')
-rw-r--r-- | sys/dev/usb/dwc2/dwc2_hcdqueue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/dwc2/dwc2_hcdqueue.c b/sys/dev/usb/dwc2/dwc2_hcdqueue.c index 9fbca04b84a..e830f985107 100644 --- a/sys/dev/usb/dwc2/dwc2_hcdqueue.c +++ b/sys/dev/usb/dwc2/dwc2_hcdqueue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwc2_hcdqueue.c,v 1.3 2015/02/10 13:19:07 uebayasi Exp $ */ +/* $OpenBSD: dwc2_hcdqueue.c,v 1.4 2015/02/10 13:49:48 uebayasi Exp $ */ /* $NetBSD: dwc2_hcdqueue.c,v 1.11 2014/09/03 10:00:08 skrll Exp $ */ /* @@ -221,7 +221,7 @@ static struct dwc2_qh *dwc2_hcd_qh_create(struct dwc2_hsotg *hsotg, return NULL; /* Allocate memory */ - qh = pool_cache_get(sc->sc_qhpool, PR_NOWAIT); + qh = pool_get(sc->sc_qhpool, PR_NOWAIT); if (!qh) return NULL; @@ -259,7 +259,7 @@ void dwc2_hcd_qh_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) usb_freemem(&hsotg->hsotg_sc->sc_bus, &qh->dw_align_buf_usbdma); } - pool_cache_put(sc->sc_qhpool, qh); + pool_put(sc->sc_qhpool, qh); } /** @@ -851,7 +851,7 @@ void dwc2_hcd_qtd_unlink_and_free(struct dwc2_hsotg *hsotg, struct dwc2_softc *sc = hsotg->hsotg_sc; list_del_init(&qtd->qtd_list_entry); - pool_cache_put(sc->sc_qtdpool, qtd); + pool_put(sc->sc_qtdpool, qtd); } #define BITSTUFFTIME(bytecount) ((8 * 7 * (bytecount)) / 6) |