Lines Matching defs:gid
42 u8 gid[16];
49 * Caller must hold MCG table semaphore. gid and mgm parameters must
60 * If no AMGM exists for given gid, *index = -1, *prev = index of last
64 u8 *gid, struct mthca_mailbox *mgm_mailbox,
77 memcpy(mgid, gid, 16);
86 mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash);
98 if (!memcmp(mgm->gid, zero_gid, 16)) {
106 if (!memcmp(mgm->gid, gid, 16))
120 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid)
138 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index);
143 if (!memcmp(mgm->gid, zero_gid, 16))
144 memcpy(mgm->gid, gid->raw, 16);
161 memcpy(mgm->gid, gid->raw, 16);
214 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid)
231 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index);
236 mthca_err(dev, "MGID %pI6 not found\n", gid->raw);
277 memset(mgm->gid, 0, 16);