Lines Matching refs:phy

264 	if ((fsl_otg_dev->phy.otg->state == OTG_STATE_B_SRP_INIT) &&  in b_srp_end()
277 if (!fsl_otg_dev->phy.otg->host->b_hnp_enable) in a_wait_enum()
468 container_of(otg->usb_phy, struct fsl_otg, phy); in fsl_otg_start_host()
563 otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy); in fsl_otg_set_host()
613 otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy); in fsl_otg_set_peripheral()
646 static int fsl_otg_set_power(struct usb_phy *phy, unsigned mA) in fsl_otg_set_power() argument
650 if (phy->otg->state == OTG_STATE_B_PERIPHERAL) in fsl_otg_set_power()
686 otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy); in fsl_otg_start_srp()
704 otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy); in fsl_otg_start_hnp()
726 struct usb_otg *otg = ((struct fsl_otg *)dev_id)->phy.otg; in fsl_otg_isr()
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()
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()
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()
860 p_otg = container_of(otg_trans, struct fsl_otg, phy); in usb_otg_start()
865 fsm->otg = p_otg->phy.otg; in usb_otg_start()
895 dev_dbg(p_otg->phy.dev, "can't get IRQ %d, error %d\n", in usb_otg_start()
898 kfree(p_otg->phy.otg); in usb_otg_start()
958 p_otg->phy.otg->state = OTG_STATE_UNDEFINED; in usb_otg_start()
961 p_otg->phy.otg->state = OTG_STATE_A_IDLE; in usb_otg_start()
1016 usb_otg_state_string(fsl_otg_dev->phy.otg->state)); in show_fsl_usb2_otg_state()
1162 usb_remove_phy(&fsl_otg_dev->phy); in fsl_otg_remove()
1168 kfree(fsl_otg_dev->phy.otg); in fsl_otg_remove()