Lines Matching refs:dwc_tt
4015 struct dwc2_tt *dwc_tt = NULL; in dwc2_host_get_tt_info() local
4020 dwc_tt = urb->dev->tt->hcpriv; in dwc2_host_get_tt_info()
4021 if (!dwc_tt) { in dwc2_host_get_tt_info()
4029 sizeof(dwc_tt->periodic_bitmaps[0]); in dwc2_host_get_tt_info()
4033 dwc_tt = kzalloc(sizeof(*dwc_tt) + bitmap_size, in dwc2_host_get_tt_info()
4035 if (!dwc_tt) in dwc2_host_get_tt_info()
4038 dwc_tt->usb_tt = urb->dev->tt; in dwc2_host_get_tt_info()
4039 dwc_tt->usb_tt->hcpriv = dwc_tt; in dwc2_host_get_tt_info()
4042 dwc_tt->refcount++; in dwc2_host_get_tt_info()
4045 return dwc_tt; in dwc2_host_get_tt_info()
4059 void dwc2_host_put_tt_info(struct dwc2_hsotg *hsotg, struct dwc2_tt *dwc_tt) in dwc2_host_put_tt_info() argument
4062 if (!dwc_tt) in dwc2_host_put_tt_info()
4065 WARN_ON(dwc_tt->refcount < 1); in dwc2_host_put_tt_info()
4067 dwc_tt->refcount--; in dwc2_host_put_tt_info()
4068 if (!dwc_tt->refcount) { in dwc2_host_put_tt_info()
4069 dwc_tt->usb_tt->hcpriv = NULL; in dwc2_host_put_tt_info()
4070 kfree(dwc_tt); in dwc2_host_put_tt_info()