Lines Matching refs:ppriv
53 static bool is_child_unique(struct ipoib_dev_priv *ppriv, in is_child_unique() argument
74 if (ppriv->pkey == priv->pkey) in is_child_unique()
77 list_for_each_entry(tpriv, &ppriv->child_intfs, list) { in is_child_unique()
95 int __ipoib_vlan_add(struct ipoib_dev_priv *ppriv, struct ipoib_dev_priv *priv, in __ipoib_vlan_add() argument
114 WARN_ON(ppriv->dev->reg_state != NETREG_REGISTERED); in __ipoib_vlan_add()
123 priv->parent = ppriv->dev; in __ipoib_vlan_add()
127 if (!is_child_unique(ppriv, priv)) { in __ipoib_vlan_add()
170 struct ipoib_dev_priv *ppriv, *priv; in ipoib_vlan_add() local
186 ppriv = ipoib_priv(pdev); in ipoib_vlan_add()
189 ppriv->dev->name, pkey); in ipoib_vlan_add()
191 ndev = ipoib_intf_alloc(ppriv->ca, ppriv->port, intf_name); in ipoib_vlan_add()
200 result = __ipoib_vlan_add(ppriv, priv, pkey, IPOIB_LEGACY_CHILD); in ipoib_vlan_add()
237 struct ipoib_dev_priv *ppriv = ipoib_priv(priv->parent); in ipoib_vlan_delete_task() local
239 ipoib_dbg(ppriv, "delete child vlan %s\n", dev->name); in ipoib_vlan_delete_task()
250 struct ipoib_dev_priv *ppriv, *priv, *tpriv; in ipoib_vlan_delete() local
264 ppriv = ipoib_priv(pdev); in ipoib_vlan_delete()
267 list_for_each_entry_safe(priv, tpriv, &ppriv->child_intfs, list) { in ipoib_vlan_delete()
278 down_write(&ppriv->vlan_rwsem); in ipoib_vlan_delete()
280 up_write(&ppriv->vlan_rwsem); in ipoib_vlan_delete()