Lines Matching refs:plat_dev
9371 struct platform_device *plat_dev = to_platform_device(dev); in show_port_phy() local
9372 struct niu_parent *p = plat_dev->dev.platform_data; in show_port_phy()
9401 struct platform_device *plat_dev = to_platform_device(dev); in show_plat_type() local
9402 struct niu_parent *p = plat_dev->dev.platform_data; in show_plat_type()
9430 struct platform_device *plat_dev = to_platform_device(dev); in __show_chan_per_port() local
9431 struct niu_parent *p = plat_dev->dev.platform_data; in __show_chan_per_port()
9463 struct platform_device *plat_dev = to_platform_device(dev); in show_num_ports() local
9464 struct niu_parent *p = plat_dev->dev.platform_data; in show_num_ports()
9482 struct platform_device *plat_dev; in niu_new_parent() local
9486 plat_dev = platform_device_register_simple("niu-board", niu_parent_index, in niu_new_parent()
9488 if (IS_ERR(plat_dev)) in niu_new_parent()
9492 int err = device_create_file(&plat_dev->dev, in niu_new_parent()
9504 plat_dev->dev.platform_data = p; in niu_new_parent()
9505 p->plat_dev = plat_dev; in niu_new_parent()
9539 platform_device_unregister(plat_dev); in niu_new_parent()
9566 err = sysfs_create_link(&p->plat_dev->dev.kobj, in niu_get_parent()
9594 sysfs_remove_link(&p->plat_dev->dev.kobj, port_name); in niu_put_parent()
9601 platform_device_unregister(p->plat_dev); in niu_put_parent()