Lines Matching refs:dwc_tt
4021 struct dwc2_tt *dwc_tt = NULL; in dwc2_host_get_tt_info() local
4026 dwc_tt = urb->dev->tt->hcpriv; in dwc2_host_get_tt_info()
4027 if (!dwc_tt) { in dwc2_host_get_tt_info()
4035 sizeof(dwc_tt->periodic_bitmaps[0]); in dwc2_host_get_tt_info()
4039 dwc_tt = kzalloc(sizeof(*dwc_tt) + bitmap_size, in dwc2_host_get_tt_info()
4041 if (!dwc_tt) in dwc2_host_get_tt_info()
4044 dwc_tt->usb_tt = urb->dev->tt; in dwc2_host_get_tt_info()
4045 dwc_tt->usb_tt->hcpriv = dwc_tt; in dwc2_host_get_tt_info()
4048 dwc_tt->refcount++; in dwc2_host_get_tt_info()
4051 return dwc_tt; in dwc2_host_get_tt_info()
4065 void dwc2_host_put_tt_info(struct dwc2_hsotg *hsotg, struct dwc2_tt *dwc_tt) in dwc2_host_put_tt_info() argument
4068 if (!dwc_tt) in dwc2_host_put_tt_info()
4071 WARN_ON(dwc_tt->refcount < 1); in dwc2_host_put_tt_info()
4073 dwc_tt->refcount--; in dwc2_host_put_tt_info()
4074 if (!dwc_tt->refcount) { in dwc2_host_put_tt_info()
4075 dwc_tt->usb_tt->hcpriv = NULL; in dwc2_host_put_tt_info()
4076 kfree(dwc_tt); in dwc2_host_put_tt_info()