Lines Matching refs:pkey
548 path->pathrec.pkey = cpu_to_be16(priv->pkey); in path_rec_create()
745 cb->hwaddr[8] = (priv->pkey >> 8) & 0xff; in ipoib_start_xmit()
746 cb->hwaddr[9] = priv->pkey & 0xff; in ipoib_start_xmit()
1439 return sprintf(buf, "0x%04x\n", priv->pkey); in show_pkey()
1441 static DEVICE_ATTR(pkey, S_IRUGO, show_pkey, NULL);
1484 int pkey; in create_child() local
1487 if (sscanf(buf, "%i", &pkey) != 1) in create_child()
1490 if (pkey <= 0 || pkey > 0xffff || pkey == 0x8000) in create_child()
1497 pkey |= 0x8000; in create_child()
1499 ret = ipoib_vlan_add(to_net_dev(dev), pkey); in create_child()
1509 int pkey; in delete_child() local
1512 if (sscanf(buf, "%i", &pkey) != 1) in delete_child()
1515 if (pkey < 0 || pkey > 0xffff) in delete_child()
1518 ret = ipoib_vlan_delete(to_net_dev(dev), pkey); in delete_child()
1594 result = ib_query_pkey(hca, port, 0, &priv->pkey); in ipoib_add_port()
1608 priv->pkey |= 0x8000; in ipoib_add_port()
1610 priv->dev->broadcast[8] = priv->pkey >> 8; in ipoib_add_port()
1611 priv->dev->broadcast[9] = priv->pkey & 0xff; in ipoib_add_port()