Lines Matching refs:mgm

153 	struct mlx4_mgm *mgm;  in new_steering_entry()  local
199 mgm = mailbox->buf; in new_steering_entry()
205 members_count = be32_to_cpu(mgm->members_count) & 0xffffff; in new_steering_entry()
206 prot = be32_to_cpu(mgm->members_count) >> 30; in new_steering_entry()
218 mgm->qp[members_count++] = cpu_to_be32(pqp->qpn & MGM_QPN_MASK); in new_steering_entry()
221 mgm->members_count = cpu_to_be32(members_count | (prot << 30)); in new_steering_entry()
335 struct mlx4_mgm *mgm; in promisc_steering_entry() local
346 mgm = mailbox->buf; in promisc_steering_entry()
350 m_count = be32_to_cpu(mgm->members_count) & 0xffffff; in promisc_steering_entry()
355 u32 qpn = be32_to_cpu(mgm->qp[i]) & MGM_QPN_MASK; in promisc_steering_entry()
423 struct mlx4_mgm *mgm; in add_promisc_qp() local
458 mgm = mailbox->buf; in add_promisc_qp()
472 members_count = be32_to_cpu(mgm->members_count) & in add_promisc_qp()
474 prot = be32_to_cpu(mgm->members_count) >> 30; in add_promisc_qp()
477 if ((be32_to_cpu(mgm->qp[i]) & in add_promisc_qp()
501 mgm->qp[members_count++] = in add_promisc_qp()
503 mgm->members_count = in add_promisc_qp()
517 memset(mgm, 0, sizeof *mgm); in add_promisc_qp()
525 mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK); in add_promisc_qp()
527 mgm->members_count = cpu_to_be32(members_count | MLX4_PROT_ETH << 30); in add_promisc_qp()
554 struct mlx4_mgm *mgm; in remove_promisc_qp() local
588 mgm = mailbox->buf; in remove_promisc_qp()
591 mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK); in remove_promisc_qp()
592 mgm->members_count = cpu_to_be32(members_count | MLX4_PROT_ETH << 30); in remove_promisc_qp()
625 be32_to_cpu(mgm->members_count) & in remove_promisc_qp()
636 if ((be32_to_cpu(mgm->qp[i]) & in remove_promisc_qp()
652 mgm->qp[loc] = mgm->qp[members_count - 1]; in remove_promisc_qp()
653 mgm->qp[members_count - 1] = 0; in remove_promisc_qp()
654 mgm->members_count = in remove_promisc_qp()
700 struct mlx4_mgm *mgm = mgm_mailbox->buf; in find_entry() local
732 if (!(be32_to_cpu(mgm->members_count) & 0xffffff)) { in find_entry()
740 if (!memcmp(mgm->gid, gid, 16) && in find_entry()
741 be32_to_cpu(mgm->members_count) >> 30 == prot) in find_entry()
745 *index = be32_to_cpu(mgm->next_gid_index) >> 6; in find_entry()
1110 struct mlx4_mgm *mgm; in mlx4_qp_attach_common() local
1122 mgm = mailbox->buf; in mlx4_qp_attach_common()
1131 if (!(be32_to_cpu(mgm->members_count) & 0xffffff)) { in mlx4_qp_attach_common()
1133 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common()
1147 memset(mgm, 0, sizeof *mgm); in mlx4_qp_attach_common()
1148 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common()
1151 members_count = be32_to_cpu(mgm->members_count) & 0xffffff; in mlx4_qp_attach_common()
1159 if ((be32_to_cpu(mgm->qp[i]) & MGM_QPN_MASK) == qp->qpn) { in mlx4_qp_attach_common()
1166 mgm->qp[members_count++] = cpu_to_be32((qp->qpn & MGM_QPN_MASK) | in mlx4_qp_attach_common()
1169 mgm->qp[members_count++] = cpu_to_be32(qp->qpn & MGM_QPN_MASK); in mlx4_qp_attach_common()
1171 mgm->members_count = cpu_to_be32(members_count | (u32) prot << 30); in mlx4_qp_attach_common()
1184 mgm->next_gid_index = cpu_to_be32(index << 6); in mlx4_qp_attach_common()
1219 struct mlx4_mgm *mgm; in mlx4_qp_detach_common() local
1230 mgm = mailbox->buf; in mlx4_qp_detach_common()
1254 members_count = be32_to_cpu(mgm->members_count) & 0xffffff; in mlx4_qp_detach_common()
1256 if ((be32_to_cpu(mgm->qp[i]) & MGM_QPN_MASK) == qp->qpn) { in mlx4_qp_detach_common()
1268 mgm->qp[loc] = mgm->qp[members_count - 1]; in mlx4_qp_detach_common()
1269 mgm->qp[members_count - 1] = 0; in mlx4_qp_detach_common()
1270 mgm->members_count = cpu_to_be32(--members_count | (u32) prot << 30); in mlx4_qp_detach_common()
1281 mgm->members_count = cpu_to_be32((u32) prot << 30); in mlx4_qp_detach_common()
1285 int amgm_index = be32_to_cpu(mgm->next_gid_index) >> 6; in mlx4_qp_detach_common()
1291 memset(mgm->gid, 0, 16); in mlx4_qp_detach_common()
1307 int cur_next_index = be32_to_cpu(mgm->next_gid_index) >> 6; in mlx4_qp_detach_common()
1312 mgm->next_gid_index = cpu_to_be32(cur_next_index << 6); in mlx4_qp_detach_common()