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