Lines Matching refs:topology_kref
1330 kref_init(&mstb->topology_kref); in drm_dp_add_mst_branch_device()
1706 container_of(kref, struct drm_dp_mst_branch, topology_kref); in drm_dp_destroy_mst_branch_device()
1751 ret = kref_get_unless_zero(&mstb->topology_kref); in drm_dp_mst_topology_try_get_mstb()
1753 drm_dbg(mstb->mgr->dev, "mstb %p (%d)\n", mstb, kref_read(&mstb->topology_kref)); in drm_dp_mst_topology_try_get_mstb()
1781 WARN_ON(kref_read(&mstb->topology_kref) == 0); in drm_dp_mst_topology_get_mstb()
1782 kref_get(&mstb->topology_kref); in drm_dp_mst_topology_get_mstb()
1783 drm_dbg(mstb->mgr->dev, "mstb %p (%d)\n", mstb, kref_read(&mstb->topology_kref)); in drm_dp_mst_topology_get_mstb()
1805 drm_dbg(mstb->mgr->dev, "mstb %p (%d)\n", mstb, kref_read(&mstb->topology_kref) - 1); in drm_dp_mst_topology_put_mstb()
1809 kref_put(&mstb->topology_kref, drm_dp_destroy_mst_branch_device); in drm_dp_mst_topology_put_mstb()
1815 container_of(kref, struct drm_dp_mst_port, topology_kref); in drm_dp_destroy_port()
1866 ret = kref_get_unless_zero(&port->topology_kref); in drm_dp_mst_topology_try_get_port()
1868 drm_dbg(port->mgr->dev, "port %p (%d)\n", port, kref_read(&port->topology_kref)); in drm_dp_mst_topology_try_get_port()
1893 WARN_ON(kref_read(&port->topology_kref) == 0); in drm_dp_mst_topology_get_port()
1894 kref_get(&port->topology_kref); in drm_dp_mst_topology_get_port()
1895 drm_dbg(port->mgr->dev, "port %p (%d)\n", port, kref_read(&port->topology_kref)); in drm_dp_mst_topology_get_port()
1916 drm_dbg(port->mgr->dev, "port %p (%d)\n", port, kref_read(&port->topology_kref) - 1); in drm_dp_mst_topology_put_port()
1920 kref_put(&port->topology_kref, drm_dp_destroy_port); in drm_dp_mst_topology_put_port()
2310 kref_init(&port->topology_kref); in drm_dp_mst_add_port()