• Home
  • Raw
  • Download

Lines Matching refs:pdev

439 static int dsa_of_probe(struct platform_device *pdev)  in dsa_of_probe()  argument
441 struct device_node *np = pdev->dev.of_node; in dsa_of_probe()
472 pdev->dev.platform_data = pd; in dsa_of_probe()
542 pdev->dev.platform_data = NULL; in dsa_of_probe()
546 static void dsa_of_remove(struct platform_device *pdev) in dsa_of_remove() argument
548 struct dsa_platform_data *pd = pdev->dev.platform_data; in dsa_of_remove()
550 if (!pdev->dev.of_node) in dsa_of_remove()
557 static inline int dsa_of_probe(struct platform_device *pdev) in dsa_of_probe() argument
562 static inline void dsa_of_remove(struct platform_device *pdev) in dsa_of_remove() argument
567 static int dsa_probe(struct platform_device *pdev) in dsa_probe() argument
570 struct dsa_platform_data *pd = pdev->dev.platform_data; in dsa_probe()
579 if (pdev->dev.of_node) { in dsa_probe()
580 ret = dsa_of_probe(pdev); in dsa_probe()
584 pd = pdev->dev.platform_data; in dsa_probe()
609 platform_set_drvdata(pdev, dst); in dsa_probe()
619 ds = dsa_switch_setup(dst, i, &pdev->dev, pd->chip[i].host_dev); in dsa_probe()
652 dsa_of_remove(pdev); in dsa_probe()
657 static int dsa_remove(struct platform_device *pdev) in dsa_remove() argument
659 struct dsa_switch_tree *dst = platform_get_drvdata(pdev); in dsa_remove()
674 dsa_of_remove(pdev); in dsa_remove()
679 static void dsa_shutdown(struct platform_device *pdev) in dsa_shutdown() argument
704 struct platform_device *pdev = to_platform_device(d); in dsa_suspend() local
705 struct dsa_switch_tree *dst = platform_get_drvdata(pdev); in dsa_suspend()
720 struct platform_device *pdev = to_platform_device(d); in dsa_resume() local
721 struct dsa_switch_tree *dst = platform_get_drvdata(pdev); in dsa_resume()