Lines Matching refs:fsl_otg_tc
791 struct fsl_otg *fsl_otg_tc; in fsl_otg_conf() local
798 fsl_otg_tc = kzalloc(sizeof(struct fsl_otg), GFP_KERNEL); in fsl_otg_conf()
799 if (!fsl_otg_tc) in fsl_otg_conf()
802 fsl_otg_tc->phy.otg = kzalloc(sizeof(struct usb_otg), GFP_KERNEL); in fsl_otg_conf()
803 if (!fsl_otg_tc->phy.otg) { in fsl_otg_conf()
804 kfree(fsl_otg_tc); in fsl_otg_conf()
808 INIT_DELAYED_WORK(&fsl_otg_tc->otg_event, fsl_otg_event); in fsl_otg_conf()
811 status = fsl_otg_init_timers(&fsl_otg_tc->fsm); in fsl_otg_conf()
816 mutex_init(&fsl_otg_tc->fsm.lock); in fsl_otg_conf()
819 fsl_otg_tc->fsm.ops = &fsl_otg_ops; in fsl_otg_conf()
822 fsl_otg_tc->phy.label = DRIVER_DESC; in fsl_otg_conf()
823 fsl_otg_tc->phy.dev = &pdev->dev; in fsl_otg_conf()
824 fsl_otg_tc->phy.set_power = fsl_otg_set_power; in fsl_otg_conf()
826 fsl_otg_tc->phy.otg->usb_phy = &fsl_otg_tc->phy; in fsl_otg_conf()
827 fsl_otg_tc->phy.otg->set_host = fsl_otg_set_host; in fsl_otg_conf()
828 fsl_otg_tc->phy.otg->set_peripheral = fsl_otg_set_peripheral; in fsl_otg_conf()
829 fsl_otg_tc->phy.otg->start_hnp = fsl_otg_start_hnp; in fsl_otg_conf()
830 fsl_otg_tc->phy.otg->start_srp = fsl_otg_start_srp; in fsl_otg_conf()
832 fsl_otg_dev = fsl_otg_tc; in fsl_otg_conf()
835 status = usb_add_phy(&fsl_otg_tc->phy, USB_PHY_TYPE_USB2); in fsl_otg_conf()
844 kfree(fsl_otg_tc->phy.otg); in fsl_otg_conf()
845 kfree(fsl_otg_tc); in fsl_otg_conf()