Lines Matching refs:port_pdev
1565 struct platform_device *port_pdev; in dfl_fpga_cdev_release_port() local
1569 port_pdev = __dfl_fpga_cdev_find_port(cdev, &port_id, in dfl_fpga_cdev_release_port()
1571 if (!port_pdev) in dfl_fpga_cdev_release_port()
1574 if (!device_is_registered(&port_pdev->dev)) { in dfl_fpga_cdev_release_port()
1579 pdata = dev_get_platdata(&port_pdev->dev); in dfl_fpga_cdev_release_port()
1587 platform_device_del(port_pdev); in dfl_fpga_cdev_release_port()
1590 put_device(&port_pdev->dev); in dfl_fpga_cdev_release_port()
1611 struct platform_device *port_pdev; in dfl_fpga_cdev_assign_port() local
1615 port_pdev = __dfl_fpga_cdev_find_port(cdev, &port_id, in dfl_fpga_cdev_assign_port()
1617 if (!port_pdev) in dfl_fpga_cdev_assign_port()
1620 if (device_is_registered(&port_pdev->dev)) { in dfl_fpga_cdev_assign_port()
1625 ret = platform_device_add(port_pdev); in dfl_fpga_cdev_assign_port()
1629 pdata = dev_get_platdata(&port_pdev->dev); in dfl_fpga_cdev_assign_port()
1637 put_device(&port_pdev->dev); in dfl_fpga_cdev_assign_port()