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()
1207 int mlx4_qp_detach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_qp_detach_common()
1217 u8 port = gid[5]; in mlx4_qp_detach_common()
1227 err = find_entry(dev, port, gid, prot, in mlx4_qp_detach_common()
1233 mlx4_err(dev, "MGID %pI6 not found\n", gid); in mlx4_qp_detach_common()
1283 memset(mgm->gid, 0, 16); in mlx4_qp_detach_common()
1329 u8 gid[16], u8 attach, u8 block_loopback, in mlx4_QP_ATTACH()
1343 memcpy(mailbox->buf, gid, 16); in mlx4_QP_ATTACH()
1361 u8 gid[16], u8 port, in mlx4_trans_to_dmfs_attach()
1383 memcpy(spec.eth.dst_mac, &gid[10], ETH_ALEN); in mlx4_trans_to_dmfs_attach()
1389 memcpy(spec.ib.dst_gid, gid, 16); in mlx4_trans_to_dmfs_attach()
1400 int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_multicast_attach()
1411 gid[7] |= (MLX4_MC_STEER << 1); in mlx4_multicast_attach()
1414 return mlx4_QP_ATTACH(dev, qp, gid, 1, in mlx4_multicast_attach()
1416 return mlx4_qp_attach_common(dev, qp, gid, in mlx4_multicast_attach()
1421 return mlx4_trans_to_dmfs_attach(dev, qp, gid, port, in mlx4_multicast_attach()
1430 int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_multicast_detach()
1440 gid[7] |= (MLX4_MC_STEER << 1); in mlx4_multicast_detach()
1443 return mlx4_QP_ATTACH(dev, qp, gid, 0, 0, prot); in mlx4_multicast_detach()
1445 return mlx4_qp_detach_common(dev, qp, gid, prot, in mlx4_multicast_detach()
1516 struct mlx4_qp *qp, u8 gid[16], in mlx4_unicast_attach()
1520 gid[7] |= (MLX4_UC_STEER << 1); in mlx4_unicast_attach()
1523 return mlx4_QP_ATTACH(dev, qp, gid, 1, in mlx4_unicast_attach()
1526 return mlx4_qp_attach_common(dev, qp, gid, block_mcast_loopback, in mlx4_unicast_attach()
1532 u8 gid[16], enum mlx4_protocol prot) in mlx4_unicast_detach()
1535 gid[7] |= (MLX4_UC_STEER << 1); in mlx4_unicast_detach()
1538 return mlx4_QP_ATTACH(dev, qp, gid, 0, 0, prot); in mlx4_unicast_detach()
1540 return mlx4_qp_detach_common(dev, qp, gid, prot, MLX4_UC_STEER); in mlx4_unicast_detach()