Lines Matching refs:gid

695 		      u8 *gid, enum mlx4_protocol prot,  in find_entry()  argument
712 memcpy(mgid, gid, 16); in find_entry()
720 mlx4_dbg(dev, "Hash for %pI6 is %04x\n", gid, hash); in find_entry()
738 if (!memcmp(mgm->gid, gid, 16) && in find_entry()
1104 int mlx4_qp_attach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_qp_attach_common()
1116 u8 port = gid[5]; in mlx4_qp_attach_common()
1125 err = find_entry(dev, port, gid, prot, in mlx4_qp_attach_common()
1133 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common()
1148 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common()
1214 int mlx4_qp_detach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_qp_detach_common()
1224 u8 port = gid[5]; in mlx4_qp_detach_common()
1234 err = find_entry(dev, port, gid, prot, in mlx4_qp_detach_common()
1240 mlx4_err(dev, "MGID %pI6 not found\n", gid); in mlx4_qp_detach_common()
1290 memset(mgm->gid, 0, 16); in mlx4_qp_detach_common()
1336 u8 gid[16], u8 attach, u8 block_loopback, in mlx4_QP_ATTACH()
1350 memcpy(mailbox->buf, gid, 16); in mlx4_QP_ATTACH()
1368 u8 gid[16], u8 port, in mlx4_trans_to_dmfs_attach()
1390 memcpy(spec.eth.dst_mac, &gid[10], ETH_ALEN); in mlx4_trans_to_dmfs_attach()
1396 memcpy(spec.ib.dst_gid, gid, 16); in mlx4_trans_to_dmfs_attach()
1407 int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_multicast_attach()
1419 gid[7] |= (MLX4_MC_STEER << 1); in mlx4_multicast_attach()
1422 return mlx4_QP_ATTACH(dev, qp, gid, 1, in mlx4_multicast_attach()
1424 return mlx4_qp_attach_common(dev, qp, gid, in mlx4_multicast_attach()
1429 return mlx4_trans_to_dmfs_attach(dev, qp, gid, port, in mlx4_multicast_attach()
1438 int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_multicast_detach()
1449 gid[7] |= (MLX4_MC_STEER << 1); in mlx4_multicast_detach()
1452 return mlx4_QP_ATTACH(dev, qp, gid, 0, 0, prot); in mlx4_multicast_detach()
1454 return mlx4_qp_detach_common(dev, qp, gid, prot, in mlx4_multicast_detach()
1530 struct mlx4_qp *qp, u8 gid[16], in mlx4_unicast_attach()
1534 gid[7] |= (MLX4_UC_STEER << 1); in mlx4_unicast_attach()
1537 return mlx4_QP_ATTACH(dev, qp, gid, 1, in mlx4_unicast_attach()
1540 return mlx4_qp_attach_common(dev, qp, gid, block_mcast_loopback, in mlx4_unicast_attach()
1546 u8 gid[16], enum mlx4_protocol prot) in mlx4_unicast_detach()
1549 gid[7] |= (MLX4_UC_STEER << 1); in mlx4_unicast_detach()
1552 return mlx4_QP_ATTACH(dev, qp, gid, 0, 0, prot); in mlx4_unicast_detach()
1554 return mlx4_qp_detach_common(dev, qp, gid, prot, MLX4_UC_STEER); in mlx4_unicast_detach()