Lines Matching refs:gid
42 u8 gid[16]; member
64 u8 *gid, struct mthca_mailbox *mgm_mailbox, in find_mgm() argument
78 memcpy(mgid, gid, 16); in find_mgm()
90 mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash); in find_mgm()
105 if (!memcmp(mgm->gid, zero_gid, 16)) { in find_mgm()
113 if (!memcmp(mgm->gid, gid, 16)) in find_mgm()
127 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_attach() argument
146 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_attach()
151 if (!memcmp(mgm->gid, zero_gid, 16)) in mthca_multicast_attach()
152 memcpy(mgm->gid, gid->raw, 16); in mthca_multicast_attach()
172 memcpy(mgm->gid, gid->raw, 16); in mthca_multicast_attach()
234 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_detach() argument
252 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_detach()
257 mthca_err(dev, "MGID %pI6 not found\n", gid->raw); in mthca_multicast_detach()
305 memset(mgm->gid, 0, 16); in mthca_multicast_detach()