Lines Matching refs:fsl_otg_tc
774 struct fsl_otg *fsl_otg_tc;
781 fsl_otg_tc = kzalloc(sizeof(struct fsl_otg), GFP_KERNEL);
782 if (!fsl_otg_tc)
785 fsl_otg_tc->phy.otg = kzalloc(sizeof(struct usb_otg), GFP_KERNEL);
786 if (!fsl_otg_tc->phy.otg) {
787 kfree(fsl_otg_tc);
791 INIT_DELAYED_WORK(&fsl_otg_tc->otg_event, fsl_otg_event);
794 status = fsl_otg_init_timers(&fsl_otg_tc->fsm);
799 mutex_init(&fsl_otg_tc->fsm.lock);
802 fsl_otg_tc->fsm.ops = &fsl_otg_ops;
805 fsl_otg_tc->phy.label = DRIVER_DESC;
806 fsl_otg_tc->phy.dev = &pdev->dev;
808 fsl_otg_tc->phy.otg->usb_phy = &fsl_otg_tc->phy;
809 fsl_otg_tc->phy.otg->set_host = fsl_otg_set_host;
810 fsl_otg_tc->phy.otg->set_peripheral = fsl_otg_set_peripheral;
811 fsl_otg_tc->phy.otg->start_hnp = fsl_otg_start_hnp;
812 fsl_otg_tc->phy.otg->start_srp = fsl_otg_start_srp;
814 fsl_otg_dev = fsl_otg_tc;
817 status = usb_add_phy(&fsl_otg_tc->phy, USB_PHY_TYPE_USB2);
826 kfree(fsl_otg_tc->phy.otg);
827 kfree(fsl_otg_tc);