Lines Matching refs:dwc_tt
3996 struct dwc2_tt *dwc_tt = NULL; in dwc2_host_get_tt_info() local
4001 dwc_tt = urb->dev->tt->hcpriv; in dwc2_host_get_tt_info()
4002 if (!dwc_tt) { in dwc2_host_get_tt_info()
4010 sizeof(dwc_tt->periodic_bitmaps[0]); in dwc2_host_get_tt_info()
4014 dwc_tt = kzalloc(sizeof(*dwc_tt) + bitmap_size, in dwc2_host_get_tt_info()
4016 if (!dwc_tt) in dwc2_host_get_tt_info()
4019 dwc_tt->usb_tt = urb->dev->tt; in dwc2_host_get_tt_info()
4020 dwc_tt->usb_tt->hcpriv = dwc_tt; in dwc2_host_get_tt_info()
4023 dwc_tt->refcount++; in dwc2_host_get_tt_info()
4026 return dwc_tt; in dwc2_host_get_tt_info()
4040 void dwc2_host_put_tt_info(struct dwc2_hsotg *hsotg, struct dwc2_tt *dwc_tt) in dwc2_host_put_tt_info() argument
4043 if (!dwc_tt) in dwc2_host_put_tt_info()
4046 WARN_ON(dwc_tt->refcount < 1); in dwc2_host_put_tt_info()
4048 dwc_tt->refcount--; in dwc2_host_put_tt_info()
4049 if (!dwc_tt->refcount) { in dwc2_host_put_tt_info()
4050 dwc_tt->usb_tt->hcpriv = NULL; in dwc2_host_put_tt_info()
4051 kfree(dwc_tt); in dwc2_host_put_tt_info()