Lines Matching refs:dwc_tt
4019 struct dwc2_tt *dwc_tt = NULL; in dwc2_host_get_tt_info() local
4024 dwc_tt = urb->dev->tt->hcpriv; in dwc2_host_get_tt_info()
4025 if (!dwc_tt) { in dwc2_host_get_tt_info()
4033 sizeof(dwc_tt->periodic_bitmaps[0]); in dwc2_host_get_tt_info()
4037 dwc_tt = kzalloc(sizeof(*dwc_tt) + bitmap_size, in dwc2_host_get_tt_info()
4039 if (!dwc_tt) in dwc2_host_get_tt_info()
4042 dwc_tt->usb_tt = urb->dev->tt; in dwc2_host_get_tt_info()
4043 dwc_tt->usb_tt->hcpriv = dwc_tt; in dwc2_host_get_tt_info()
4046 dwc_tt->refcount++; in dwc2_host_get_tt_info()
4049 return dwc_tt; in dwc2_host_get_tt_info()
4063 void dwc2_host_put_tt_info(struct dwc2_hsotg *hsotg, struct dwc2_tt *dwc_tt) in dwc2_host_put_tt_info() argument
4066 if (!dwc_tt) in dwc2_host_put_tt_info()
4069 WARN_ON(dwc_tt->refcount < 1); in dwc2_host_put_tt_info()
4071 dwc_tt->refcount--; in dwc2_host_put_tt_info()
4072 if (!dwc_tt->refcount) { in dwc2_host_put_tt_info()
4073 dwc_tt->usb_tt->hcpriv = NULL; in dwc2_host_put_tt_info()
4074 kfree(dwc_tt); in dwc2_host_put_tt_info()