Lines Matching refs:instance
130 struct mt65xx_phy_instance *instance) in phy_instance_init() argument
132 void __iomem *port_base = instance->port_base; in phy_instance_init()
133 u32 index = instance->index; in phy_instance_init()
197 struct mt65xx_phy_instance *instance) in phy_instance_power_on() argument
199 void __iomem *port_base = instance->port_base; in phy_instance_power_on()
200 u32 index = instance->index; in phy_instance_power_on()
256 struct mt65xx_phy_instance *instance) in phy_instance_power_off() argument
258 void __iomem *port_base = instance->port_base; in phy_instance_power_off()
259 u32 index = instance->index; in phy_instance_power_off()
304 struct mt65xx_phy_instance *instance) in phy_instance_exit() argument
306 void __iomem *port_base = instance->port_base; in phy_instance_exit()
307 u32 index = instance->index; in phy_instance_exit()
323 struct mt65xx_phy_instance *instance = phy_get_drvdata(phy); in mt65xx_phy_init() local
333 phy_instance_init(u3phy, instance); in mt65xx_phy_init()
339 struct mt65xx_phy_instance *instance = phy_get_drvdata(phy); in mt65xx_phy_power_on() local
342 phy_instance_power_on(u3phy, instance); in mt65xx_phy_power_on()
348 struct mt65xx_phy_instance *instance = phy_get_drvdata(phy); in mt65xx_phy_power_off() local
351 phy_instance_power_off(u3phy, instance); in mt65xx_phy_power_off()
357 struct mt65xx_phy_instance *instance = phy_get_drvdata(phy); in mt65xx_phy_exit() local
360 phy_instance_exit(u3phy, instance); in mt65xx_phy_exit()
369 struct mt65xx_phy_instance *instance = NULL; in mt65xx_phy_xlate() local
381 instance = u3phy->phys[index]; in mt65xx_phy_xlate()
385 if (!instance) { in mt65xx_phy_xlate()
390 instance->type = args->args[0]; in mt65xx_phy_xlate()
392 if (!(instance->type == PHY_TYPE_USB2 || in mt65xx_phy_xlate()
393 instance->type == PHY_TYPE_USB3)) { in mt65xx_phy_xlate()
394 dev_err(dev, "unsupported device type: %d\n", instance->type); in mt65xx_phy_xlate()
398 return instance->phy; in mt65xx_phy_xlate()
448 struct mt65xx_phy_instance *instance; in mt65xx_u3phy_probe() local
451 instance = devm_kzalloc(dev, sizeof(*instance), GFP_KERNEL); in mt65xx_u3phy_probe()
452 if (!instance) { in mt65xx_u3phy_probe()
457 u3phy->phys[port] = instance; in mt65xx_u3phy_probe()
473 instance->port_base = devm_ioremap_resource(&phy->dev, &res); in mt65xx_u3phy_probe()
474 if (IS_ERR(instance->port_base)) { in mt65xx_u3phy_probe()
476 retval = PTR_ERR(instance->port_base); in mt65xx_u3phy_probe()
480 instance->phy = phy; in mt65xx_u3phy_probe()
481 instance->index = port; in mt65xx_u3phy_probe()
482 phy_set_drvdata(phy, instance); in mt65xx_u3phy_probe()