Lines Matching refs:dwc_tt
4017 struct dwc2_tt *dwc_tt = NULL; in dwc2_host_get_tt_info() local
4022 dwc_tt = urb->dev->tt->hcpriv; in dwc2_host_get_tt_info()
4023 if (!dwc_tt) { in dwc2_host_get_tt_info()
4031 sizeof(dwc_tt->periodic_bitmaps[0]); in dwc2_host_get_tt_info()
4035 dwc_tt = kzalloc(sizeof(*dwc_tt) + bitmap_size, in dwc2_host_get_tt_info()
4037 if (!dwc_tt) in dwc2_host_get_tt_info()
4040 dwc_tt->usb_tt = urb->dev->tt; in dwc2_host_get_tt_info()
4041 dwc_tt->usb_tt->hcpriv = dwc_tt; in dwc2_host_get_tt_info()
4044 dwc_tt->refcount++; in dwc2_host_get_tt_info()
4047 return dwc_tt; in dwc2_host_get_tt_info()
4061 void dwc2_host_put_tt_info(struct dwc2_hsotg *hsotg, struct dwc2_tt *dwc_tt) in dwc2_host_put_tt_info() argument
4064 if (!dwc_tt) in dwc2_host_put_tt_info()
4067 WARN_ON(dwc_tt->refcount < 1); in dwc2_host_put_tt_info()
4069 dwc_tt->refcount--; in dwc2_host_put_tt_info()
4070 if (!dwc_tt->refcount) { in dwc2_host_put_tt_info()
4071 dwc_tt->usb_tt->hcpriv = NULL; in dwc2_host_put_tt_info()
4072 kfree(dwc_tt); in dwc2_host_put_tt_info()