Lines Matching refs:dwc_tt
4174 struct dwc2_tt *dwc_tt = NULL; in dwc2_host_get_tt_info() local
4179 dwc_tt = urb->dev->tt->hcpriv; in dwc2_host_get_tt_info()
4180 if (!dwc_tt) { in dwc2_host_get_tt_info()
4188 sizeof(dwc_tt->periodic_bitmaps[0]); in dwc2_host_get_tt_info()
4192 dwc_tt = kzalloc(sizeof(*dwc_tt) + bitmap_size, in dwc2_host_get_tt_info()
4194 if (!dwc_tt) in dwc2_host_get_tt_info()
4197 dwc_tt->usb_tt = urb->dev->tt; in dwc2_host_get_tt_info()
4198 dwc_tt->usb_tt->hcpriv = dwc_tt; in dwc2_host_get_tt_info()
4201 dwc_tt->refcount++; in dwc2_host_get_tt_info()
4204 return dwc_tt; in dwc2_host_get_tt_info()
4218 void dwc2_host_put_tt_info(struct dwc2_hsotg *hsotg, struct dwc2_tt *dwc_tt) in dwc2_host_put_tt_info() argument
4221 if (!dwc_tt) in dwc2_host_put_tt_info()
4224 WARN_ON(dwc_tt->refcount < 1); in dwc2_host_put_tt_info()
4226 dwc_tt->refcount--; in dwc2_host_put_tt_info()
4227 if (!dwc_tt->refcount) { in dwc2_host_put_tt_info()
4228 dwc_tt->usb_tt->hcpriv = NULL; in dwc2_host_put_tt_info()
4229 kfree(dwc_tt); in dwc2_host_put_tt_info()