Lines Matching refs:port_pdev
1567 struct platform_device *port_pdev; in dfl_fpga_cdev_release_port() local
1571 port_pdev = __dfl_fpga_cdev_find_port(cdev, &port_id, in dfl_fpga_cdev_release_port()
1573 if (!port_pdev) in dfl_fpga_cdev_release_port()
1576 if (!device_is_registered(&port_pdev->dev)) { in dfl_fpga_cdev_release_port()
1581 pdata = dev_get_platdata(&port_pdev->dev); in dfl_fpga_cdev_release_port()
1589 platform_device_del(port_pdev); in dfl_fpga_cdev_release_port()
1592 put_device(&port_pdev->dev); in dfl_fpga_cdev_release_port()
1613 struct platform_device *port_pdev; in dfl_fpga_cdev_assign_port() local
1617 port_pdev = __dfl_fpga_cdev_find_port(cdev, &port_id, in dfl_fpga_cdev_assign_port()
1619 if (!port_pdev) in dfl_fpga_cdev_assign_port()
1622 if (device_is_registered(&port_pdev->dev)) { in dfl_fpga_cdev_assign_port()
1627 ret = platform_device_add(port_pdev); in dfl_fpga_cdev_assign_port()
1631 pdata = dev_get_platdata(&port_pdev->dev); in dfl_fpga_cdev_assign_port()
1639 put_device(&port_pdev->dev); in dfl_fpga_cdev_assign_port()