Lines Matching refs:gid

696 		      u8 *gid, enum mlx4_protocol prot,  in find_entry()  argument
713 memcpy(mgid, gid, 16); in find_entry()
721 mlx4_dbg(dev, "Hash for %pI6 is %04x\n", gid, hash); in find_entry()
739 if (!memcmp(mgm->gid, gid, 16) && in find_entry()
1097 int mlx4_qp_attach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_qp_attach_common()
1109 u8 port = gid[5]; in mlx4_qp_attach_common()
1118 err = find_entry(dev, port, gid, prot, in mlx4_qp_attach_common()
1126 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common()
1141 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common()
1206 int mlx4_qp_detach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_qp_detach_common()
1216 u8 port = gid[5]; in mlx4_qp_detach_common()
1226 err = find_entry(dev, port, gid, prot, in mlx4_qp_detach_common()
1232 mlx4_err(dev, "MGID %pI6 not found\n", gid); in mlx4_qp_detach_common()
1282 memset(mgm->gid, 0, 16); in mlx4_qp_detach_common()
1328 u8 gid[16], u8 attach, u8 block_loopback, in mlx4_QP_ATTACH()
1342 memcpy(mailbox->buf, gid, 16); in mlx4_QP_ATTACH()
1360 u8 gid[16], u8 port, in mlx4_trans_to_dmfs_attach()
1382 memcpy(spec.eth.dst_mac, &gid[10], ETH_ALEN); in mlx4_trans_to_dmfs_attach()
1388 memcpy(spec.ib.dst_gid, gid, 16); in mlx4_trans_to_dmfs_attach()
1399 int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_multicast_attach()
1410 gid[7] |= (MLX4_MC_STEER << 1); in mlx4_multicast_attach()
1413 return mlx4_QP_ATTACH(dev, qp, gid, 1, in mlx4_multicast_attach()
1415 return mlx4_qp_attach_common(dev, qp, gid, in mlx4_multicast_attach()
1420 return mlx4_trans_to_dmfs_attach(dev, qp, gid, port, in mlx4_multicast_attach()
1429 int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_multicast_detach()
1439 gid[7] |= (MLX4_MC_STEER << 1); in mlx4_multicast_detach()
1442 return mlx4_QP_ATTACH(dev, qp, gid, 0, 0, prot); in mlx4_multicast_detach()
1444 return mlx4_qp_detach_common(dev, qp, gid, prot, in mlx4_multicast_detach()
1515 struct mlx4_qp *qp, u8 gid[16], in mlx4_unicast_attach()
1519 gid[7] |= (MLX4_UC_STEER << 1); in mlx4_unicast_attach()
1522 return mlx4_QP_ATTACH(dev, qp, gid, 1, in mlx4_unicast_attach()
1525 return mlx4_qp_attach_common(dev, qp, gid, block_mcast_loopback, in mlx4_unicast_attach()
1531 u8 gid[16], enum mlx4_protocol prot) in mlx4_unicast_detach()
1534 gid[7] |= (MLX4_UC_STEER << 1); in mlx4_unicast_detach()
1537 return mlx4_QP_ATTACH(dev, qp, gid, 0, 0, prot); in mlx4_unicast_detach()
1539 return mlx4_qp_detach_common(dev, qp, gid, prot, MLX4_UC_STEER); in mlx4_unicast_detach()