Lines Matching defs:mgm
153 struct mlx4_mgm *mgm;
199 mgm = mailbox->buf;
205 members_count = be32_to_cpu(mgm->members_count) & 0xffffff;
206 prot = be32_to_cpu(mgm->members_count) >> 30;
218 mgm->qp[members_count++] = cpu_to_be32(pqp->qpn & MGM_QPN_MASK);
221 mgm->members_count = cpu_to_be32(members_count | (prot << 30));
287 * If so, it should not be removed from mgm */
335 struct mlx4_mgm *mgm;
346 mgm = mailbox->buf;
350 m_count = be32_to_cpu(mgm->members_count) & 0xffffff;
355 u32 qpn = be32_to_cpu(mgm->qp[i]) & MGM_QPN_MASK;
423 struct mlx4_mgm *mgm;
458 mgm = mailbox->buf;
472 members_count = be32_to_cpu(mgm->members_count) &
474 prot = be32_to_cpu(mgm->members_count) >> 30;
477 if ((be32_to_cpu(mgm->qp[i]) &
494 /* Need to add the qpn to mgm */
501 mgm->qp[members_count++] =
503 mgm->members_count =
517 memset(mgm, 0, sizeof(*mgm));
525 mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK);
527 mgm->members_count = cpu_to_be32(members_count | MLX4_PROT_ETH << 30);
554 struct mlx4_mgm *mgm;
588 mgm = mailbox->buf;
591 mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK);
592 mgm->members_count = cpu_to_be32(members_count | MLX4_PROT_ETH << 30);
625 be32_to_cpu(mgm->members_count) &
636 if ((be32_to_cpu(mgm->qp[i]) &
652 mgm->qp[loc] = mgm->qp[members_count - 1];
653 mgm->qp[members_count - 1] = 0;
654 mgm->members_count =
680 * Caller must hold MCG table semaphore. gid and mgm parameters must
686 * and *mgm holds MGM entry.
689 * previous entry in hash chain and *mgm holds AMGM entry.
692 * entry in hash chain and *mgm holds end of hash chain.
700 struct mlx4_mgm *mgm = mgm_mailbox->buf;
730 if (!(be32_to_cpu(mgm->members_count) & 0xffffff)) {
738 if (!memcmp(mgm->gid, gid, 16) &&
739 be32_to_cpu(mgm->members_count) >> 30 == prot)
743 *index = be32_to_cpu(mgm->next_gid_index) >> 6;
1110 struct mlx4_mgm *mgm;
1122 mgm = mailbox->buf;
1131 if (!(be32_to_cpu(mgm->members_count) & 0xffffff)) {
1133 memcpy(mgm->gid, gid, 16);
1147 memset(mgm, 0, sizeof(*mgm));
1148 memcpy(mgm->gid, gid, 16);
1151 members_count = be32_to_cpu(mgm->members_count) & 0xffffff;
1159 if ((be32_to_cpu(mgm->qp[i]) & MGM_QPN_MASK) == qp->qpn) {
1166 mgm->qp[members_count++] = cpu_to_be32((qp->qpn & MGM_QPN_MASK) |
1169 mgm->qp[members_count++] = cpu_to_be32(qp->qpn & MGM_QPN_MASK);
1171 mgm->members_count = cpu_to_be32(members_count | (u32) prot << 30);
1184 mgm->next_gid_index = cpu_to_be32(index << 6);
1219 struct mlx4_mgm *mgm;
1230 mgm = mailbox->buf;
1253 members_count = be32_to_cpu(mgm->members_count) & 0xffffff;
1255 if ((be32_to_cpu(mgm->qp[i]) & MGM_QPN_MASK) == qp->qpn) {
1267 mgm->qp[loc] = mgm->qp[members_count - 1];
1268 mgm->qp[members_count - 1] = 0;
1269 mgm->members_count = cpu_to_be32(--members_count | (u32) prot << 30);
1280 mgm->members_count = cpu_to_be32((u32) prot << 30);
1284 int amgm_index = be32_to_cpu(mgm->next_gid_index) >> 6;
1290 memset(mgm->gid, 0, 16);
1306 int cur_next_index = be32_to_cpu(mgm->next_gid_index) >> 6;
1311 mgm->next_gid_index = cpu_to_be32(cur_next_index << 6);