Lines Matching refs:gid
42 u8 gid[16]; member
64 u8 *gid, struct mthca_mailbox *mgm_mailbox, in find_mgm() argument
77 memcpy(mgid, gid, 16); in find_mgm()
86 mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash); in find_mgm()
98 if (!memcmp(mgm->gid, zero_gid, 16)) { in find_mgm()
106 if (!memcmp(mgm->gid, gid, 16)) in find_mgm()
120 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_attach() argument
138 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_attach()
143 if (!memcmp(mgm->gid, zero_gid, 16)) in mthca_multicast_attach()
144 memcpy(mgm->gid, gid->raw, 16); in mthca_multicast_attach()
161 memcpy(mgm->gid, gid->raw, 16); in mthca_multicast_attach()
214 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_detach() argument
231 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_detach()
236 mthca_err(dev, "MGID %pI6 not found\n", gid->raw); in mthca_multicast_detach()
277 memset(mgm->gid, 0, 16); in mthca_multicast_detach()