Lines Matching refs:ppriv
54 struct ipoib_dev_priv *ppriv, *priv; in ipoib_vlan_add() local
61 ppriv = netdev_priv(pdev); in ipoib_vlan_add()
65 mutex_lock(&ppriv->vlan_mutex); in ipoib_vlan_add()
71 if (ppriv->pkey == pkey) { in ipoib_vlan_add()
77 list_for_each_entry(priv, &ppriv->child_intfs, list) { in ipoib_vlan_add()
86 ppriv->dev->name, pkey); in ipoib_vlan_add()
93 priv->max_ib_mtu = ppriv->max_ib_mtu; in ipoib_vlan_add()
99 result = ipoib_set_dev_features(priv, ppriv->ca); in ipoib_vlan_add()
105 memcpy(priv->dev->dev_addr, ppriv->dev->dev_addr, INFINIBAND_ALEN); in ipoib_vlan_add()
109 result = ipoib_dev_init(priv->dev, ppriv->ca, ppriv->port); in ipoib_vlan_add()
111 ipoib_warn(ppriv, "failed to initialize subinterface: " in ipoib_vlan_add()
113 ppriv->ca->name, ppriv->port); in ipoib_vlan_add()
123 priv->parent = ppriv->dev; in ipoib_vlan_add()
137 list_add_tail(&priv->list, &ppriv->child_intfs); in ipoib_vlan_add()
139 mutex_unlock(&ppriv->vlan_mutex); in ipoib_vlan_add()
152 mutex_unlock(&ppriv->vlan_mutex); in ipoib_vlan_add()
162 struct ipoib_dev_priv *ppriv, *priv, *tpriv; in ipoib_vlan_delete() local
168 ppriv = netdev_priv(pdev); in ipoib_vlan_delete()
172 mutex_lock(&ppriv->vlan_mutex); in ipoib_vlan_delete()
173 list_for_each_entry_safe(priv, tpriv, &ppriv->child_intfs, list) { in ipoib_vlan_delete()
182 mutex_unlock(&ppriv->vlan_mutex); in ipoib_vlan_delete()