otg_dev           461 drivers/usb/phy/phy-fsl-usb.c 	struct fsl_otg *otg_dev =
otg_dev           477 drivers/usb/phy/phy-fsl-usb.c 		if (otg_dev->host_working)
otg_dev           498 drivers/usb/phy/phy-fsl-usb.c 			otg_dev->host_working = 1;
otg_dev           502 drivers/usb/phy/phy-fsl-usb.c 		if (!otg_dev->host_working)
otg_dev           513 drivers/usb/phy/phy-fsl-usb.c 			otg_dev->host_working = 0;
otg_dev           552 drivers/usb/phy/phy-fsl-usb.c 	struct fsl_otg *otg_dev;
otg_dev           557 drivers/usb/phy/phy-fsl-usb.c 	otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy);
otg_dev           558 drivers/usb/phy/phy-fsl-usb.c 	if (otg_dev != fsl_otg_dev)
otg_dev           563 drivers/usb/phy/phy-fsl-usb.c 	otg_dev->fsm.a_bus_drop = 0;
otg_dev           564 drivers/usb/phy/phy-fsl-usb.c 	otg_dev->fsm.a_bus_req = 1;
otg_dev           570 drivers/usb/phy/phy-fsl-usb.c 		otg->host->is_b_host = otg_dev->fsm.id;
otg_dev           576 drivers/usb/phy/phy-fsl-usb.c 		otg_dev->host_working = 1;
otg_dev           577 drivers/usb/phy/phy-fsl-usb.c 		schedule_delayed_work(&otg_dev->otg_event, 100);
otg_dev           581 drivers/usb/phy/phy-fsl-usb.c 		if (!(fsl_readl(&otg_dev->dr_mem_map->otgsc) &
otg_dev           584 drivers/usb/phy/phy-fsl-usb.c 			struct otg_fsm *fsm = &otg_dev->fsm;
otg_dev           591 drivers/usb/phy/phy-fsl-usb.c 	otg_dev->host_working = 0;
otg_dev           593 drivers/usb/phy/phy-fsl-usb.c 	otg_statemachine(&otg_dev->fsm);
otg_dev           602 drivers/usb/phy/phy-fsl-usb.c 	struct fsl_otg *otg_dev;
otg_dev           607 drivers/usb/phy/phy-fsl-usb.c 	otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy);
otg_dev           608 drivers/usb/phy/phy-fsl-usb.c 	VDBG("otg_dev 0x%x\n", (int)otg_dev);
otg_dev           610 drivers/usb/phy/phy-fsl-usb.c 	if (otg_dev != fsl_otg_dev)
otg_dev           618 drivers/usb/phy/phy-fsl-usb.c 		otg_dev->fsm.b_bus_req = 0;
otg_dev           619 drivers/usb/phy/phy-fsl-usb.c 		otg_statemachine(&otg_dev->fsm);
otg_dev           624 drivers/usb/phy/phy-fsl-usb.c 	otg->gadget->is_a_peripheral = !otg_dev->fsm.id;
otg_dev           626 drivers/usb/phy/phy-fsl-usb.c 	otg_dev->fsm.b_bus_req = 1;
otg_dev           629 drivers/usb/phy/phy-fsl-usb.c 	pr_debug("ID pin=%d\n", otg_dev->fsm.id);
otg_dev           630 drivers/usb/phy/phy-fsl-usb.c 	if (otg_dev->fsm.id == 1) {
otg_dev           631 drivers/usb/phy/phy-fsl-usb.c 		fsl_otg_start_host(&otg_dev->fsm, 0);
otg_dev           632 drivers/usb/phy/phy-fsl-usb.c 		otg_drv_vbus(&otg_dev->fsm, 0);
otg_dev           633 drivers/usb/phy/phy-fsl-usb.c 		fsl_otg_start_gadget(&otg_dev->fsm, 1);
otg_dev           664 drivers/usb/phy/phy-fsl-usb.c 	struct fsl_otg *otg_dev;
otg_dev           669 drivers/usb/phy/phy-fsl-usb.c 	otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy);
otg_dev           670 drivers/usb/phy/phy-fsl-usb.c 	if (otg_dev != fsl_otg_dev)
otg_dev           673 drivers/usb/phy/phy-fsl-usb.c 	otg_dev->fsm.b_bus_req = 1;
otg_dev           674 drivers/usb/phy/phy-fsl-usb.c 	otg_statemachine(&otg_dev->fsm);
otg_dev           682 drivers/usb/phy/phy-fsl-usb.c 	struct fsl_otg *otg_dev;
otg_dev           687 drivers/usb/phy/phy-fsl-usb.c 	otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy);
otg_dev           688 drivers/usb/phy/phy-fsl-usb.c 	if (otg_dev != fsl_otg_dev)
otg_dev           694 drivers/usb/phy/phy-fsl-usb.c 	otg_dev->fsm.a_bus_req = 0;
otg_dev           695 drivers/usb/phy/phy-fsl-usb.c 	otg_statemachine(&otg_dev->fsm);
otg_dev           808 drivers/usb/phy/phy-isp1301-omap.c static struct platform_device *otg_dev;
otg_dev           814 drivers/usb/phy/phy-isp1301-omap.c 	if (!otg_dev)
otg_dev           854 drivers/usb/phy/phy-isp1301-omap.c 	otg_dev = dev;
otg_dev           860 drivers/usb/phy/phy-isp1301-omap.c 	otg_dev = NULL;
otg_dev           876 drivers/usb/phy/phy-isp1301-omap.c 	if (otg_dev)
otg_dev           883 drivers/usb/phy/phy-isp1301-omap.c 	if (otg_dev)
otg_dev           884 drivers/usb/phy/phy-isp1301-omap.c 		status = request_irq(otg_dev->resource[1].start, omap_otg_irq,
otg_dev           896 drivers/usb/phy/phy-isp1301-omap.c 	if (!otg_dev)
otg_dev           898 drivers/usb/phy/phy-isp1301-omap.c 	free_irq(otg_dev->resource[1].start, isp);
otg_dev            40 drivers/usb/phy/phy-omap-otg.c static void omap_otg_ctrl(struct otg_device *otg_dev, u32 outputs)
otg_dev            44 drivers/usb/phy/phy-omap-otg.c 	l = readl(otg_dev->base + OMAP_OTG_CTRL);
otg_dev            47 drivers/usb/phy/phy-omap-otg.c 	writel(l, otg_dev->base + OMAP_OTG_CTRL);
otg_dev            50 drivers/usb/phy/phy-omap-otg.c static void omap_otg_set_mode(struct otg_device *otg_dev)
otg_dev            52 drivers/usb/phy/phy-omap-otg.c 	if (!otg_dev->id && otg_dev->vbus)
otg_dev            54 drivers/usb/phy/phy-omap-otg.c 		omap_otg_ctrl(otg_dev, OMAP_OTG_ID | OMAP_OTG_BSESSVLD);
otg_dev            55 drivers/usb/phy/phy-omap-otg.c 	else if (otg_dev->vbus)
otg_dev            57 drivers/usb/phy/phy-omap-otg.c 		omap_otg_ctrl(otg_dev, OMAP_OTG_ASESSVLD);
otg_dev            58 drivers/usb/phy/phy-omap-otg.c 	else if (!otg_dev->id)
otg_dev            60 drivers/usb/phy/phy-omap-otg.c 		omap_otg_ctrl(otg_dev, OMAP_OTG_ID | OMAP_OTG_BSESSEND);
otg_dev            66 drivers/usb/phy/phy-omap-otg.c 	struct otg_device *otg_dev = container_of(nb, struct otg_device, id_nb);
otg_dev            68 drivers/usb/phy/phy-omap-otg.c 	otg_dev->id = event;
otg_dev            69 drivers/usb/phy/phy-omap-otg.c 	omap_otg_set_mode(otg_dev);
otg_dev            77 drivers/usb/phy/phy-omap-otg.c 	struct otg_device *otg_dev = container_of(nb, struct otg_device,
otg_dev            80 drivers/usb/phy/phy-omap-otg.c 	otg_dev->vbus = event;
otg_dev            81 drivers/usb/phy/phy-omap-otg.c 	omap_otg_set_mode(otg_dev);
otg_dev            89 drivers/usb/phy/phy-omap-otg.c 	struct otg_device *otg_dev;
otg_dev           101 drivers/usb/phy/phy-omap-otg.c 	otg_dev = devm_kzalloc(&pdev->dev, sizeof(*otg_dev), GFP_KERNEL);
otg_dev           102 drivers/usb/phy/phy-omap-otg.c 	if (!otg_dev)
otg_dev           105 drivers/usb/phy/phy-omap-otg.c 	otg_dev->base = devm_ioremap_resource(&pdev->dev, &pdev->resource[0]);
otg_dev           106 drivers/usb/phy/phy-omap-otg.c 	if (IS_ERR(otg_dev->base))
otg_dev           107 drivers/usb/phy/phy-omap-otg.c 		return PTR_ERR(otg_dev->base);
otg_dev           109 drivers/usb/phy/phy-omap-otg.c 	otg_dev->extcon = extcon;
otg_dev           110 drivers/usb/phy/phy-omap-otg.c 	otg_dev->id_nb.notifier_call = omap_otg_id_notifier;
otg_dev           111 drivers/usb/phy/phy-omap-otg.c 	otg_dev->vbus_nb.notifier_call = omap_otg_vbus_notifier;
otg_dev           114 drivers/usb/phy/phy-omap-otg.c 					EXTCON_USB_HOST, &otg_dev->id_nb);
otg_dev           119 drivers/usb/phy/phy-omap-otg.c 					EXTCON_USB, &otg_dev->vbus_nb);
otg_dev           124 drivers/usb/phy/phy-omap-otg.c 	otg_dev->id = extcon_get_state(extcon, EXTCON_USB_HOST);
otg_dev           125 drivers/usb/phy/phy-omap-otg.c 	otg_dev->vbus = extcon_get_state(extcon, EXTCON_USB);
otg_dev           126 drivers/usb/phy/phy-omap-otg.c 	omap_otg_set_mode(otg_dev);
otg_dev           128 drivers/usb/phy/phy-omap-otg.c 	rev = readl(otg_dev->base);
otg_dev           132 drivers/usb/phy/phy-omap-otg.c 		 (rev >> 4) & 0xf, rev & 0xf, config->extcon, otg_dev->id,
otg_dev           133 drivers/usb/phy/phy-omap-otg.c 		 otg_dev->vbus);
otg_dev           135 drivers/usb/phy/phy-omap-otg.c 	platform_set_drvdata(pdev, otg_dev);