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,
78 memcpy(mgid, gid, 16);
90 mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash);
105 if (!memcmp(mgm->gid, zero_gid, 16)) {
113 if (!memcmp(mgm->gid, gid, 16))
127 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid)
146 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index);
151 if (!memcmp(mgm->gid, zero_gid, 16))
152 memcpy(mgm->gid, gid->raw, 16);
172 memcpy(mgm->gid, gid->raw, 16);
234 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid)
252 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index);
257 mthca_err(dev, "MGID %pI6 not found\n", gid->raw);
305 memset(mgm->gid, 0, 16);