tusb 30 drivers/phy/ti/phy-tusb1210.c struct tusb1210 *tusb = phy_get_drvdata(phy); tusb 32 drivers/phy/ti/phy-tusb1210.c gpiod_set_value_cansleep(tusb->gpio_reset, 1); tusb 33 drivers/phy/ti/phy-tusb1210.c gpiod_set_value_cansleep(tusb->gpio_cs, 1); tusb 36 drivers/phy/ti/phy-tusb1210.c if (tusb->vendor_specific2) tusb 37 drivers/phy/ti/phy-tusb1210.c ulpi_write(tusb->ulpi, TUSB1210_VENDOR_SPECIFIC2, tusb 38 drivers/phy/ti/phy-tusb1210.c tusb->vendor_specific2); tusb 45 drivers/phy/ti/phy-tusb1210.c struct tusb1210 *tusb = phy_get_drvdata(phy); tusb 47 drivers/phy/ti/phy-tusb1210.c gpiod_set_value_cansleep(tusb->gpio_reset, 0); tusb 48 drivers/phy/ti/phy-tusb1210.c gpiod_set_value_cansleep(tusb->gpio_cs, 0); tusb 55 drivers/phy/ti/phy-tusb1210.c struct tusb1210 *tusb = phy_get_drvdata(phy); tusb 58 drivers/phy/ti/phy-tusb1210.c ret = ulpi_read(tusb->ulpi, ULPI_OTG_CTRL); tusb 68 drivers/phy/ti/phy-tusb1210.c ulpi_write(tusb->ulpi, ULPI_OTG_CTRL, ret); tusb 75 drivers/phy/ti/phy-tusb1210.c ulpi_write(tusb->ulpi, ULPI_OTG_CTRL, ret); tusb 83 drivers/phy/ti/phy-tusb1210.c return ulpi_write(tusb->ulpi, ULPI_OTG_CTRL, ret); tusb 95 drivers/phy/ti/phy-tusb1210.c struct tusb1210 *tusb; tusb 98 drivers/phy/ti/phy-tusb1210.c tusb = devm_kzalloc(&ulpi->dev, sizeof(*tusb), GFP_KERNEL); tusb 99 drivers/phy/ti/phy-tusb1210.c if (!tusb) tusb 102 drivers/phy/ti/phy-tusb1210.c tusb->gpio_reset = devm_gpiod_get_optional(&ulpi->dev, "reset", tusb 104 drivers/phy/ti/phy-tusb1210.c if (IS_ERR(tusb->gpio_reset)) tusb 105 drivers/phy/ti/phy-tusb1210.c return PTR_ERR(tusb->gpio_reset); tusb 107 drivers/phy/ti/phy-tusb1210.c gpiod_set_value_cansleep(tusb->gpio_reset, 1); tusb 109 drivers/phy/ti/phy-tusb1210.c tusb->gpio_cs = devm_gpiod_get_optional(&ulpi->dev, "cs", tusb 111 drivers/phy/ti/phy-tusb1210.c if (IS_ERR(tusb->gpio_cs)) tusb 112 drivers/phy/ti/phy-tusb1210.c return PTR_ERR(tusb->gpio_cs); tusb 114 drivers/phy/ti/phy-tusb1210.c gpiod_set_value_cansleep(tusb->gpio_cs, 1); tusb 135 drivers/phy/ti/phy-tusb1210.c tusb->vendor_specific2 = reg; tusb 138 drivers/phy/ti/phy-tusb1210.c tusb->phy = ulpi_phy_create(ulpi, &phy_ops); tusb 139 drivers/phy/ti/phy-tusb1210.c if (IS_ERR(tusb->phy)) tusb 140 drivers/phy/ti/phy-tusb1210.c return PTR_ERR(tusb->phy); tusb 142 drivers/phy/ti/phy-tusb1210.c tusb->ulpi = ulpi; tusb 144 drivers/phy/ti/phy-tusb1210.c phy_set_drvdata(tusb->phy, tusb); tusb 145 drivers/phy/ti/phy-tusb1210.c ulpi_set_drvdata(ulpi, tusb); tusb 151 drivers/phy/ti/phy-tusb1210.c struct tusb1210 *tusb = ulpi_get_drvdata(ulpi); tusb 153 drivers/phy/ti/phy-tusb1210.c ulpi_phy_destroy(ulpi, tusb->phy);