Lines Matching refs:mgm

154 	struct mlx4_mgm *mgm;  in new_steering_entry()  local
200 mgm = mailbox->buf; in new_steering_entry()
206 members_count = be32_to_cpu(mgm->members_count) & 0xffffff; in new_steering_entry()
207 prot = be32_to_cpu(mgm->members_count) >> 30; in new_steering_entry()
219 mgm->qp[members_count++] = cpu_to_be32(pqp->qpn & MGM_QPN_MASK); in new_steering_entry()
222 mgm->members_count = cpu_to_be32(members_count | (prot << 30)); in new_steering_entry()
336 struct mlx4_mgm *mgm; in promisc_steering_entry() local
347 mgm = mailbox->buf; in promisc_steering_entry()
351 m_count = be32_to_cpu(mgm->members_count) & 0xffffff; in promisc_steering_entry()
356 u32 qpn = be32_to_cpu(mgm->qp[i]) & MGM_QPN_MASK; in promisc_steering_entry()
424 struct mlx4_mgm *mgm; in add_promisc_qp() local
459 mgm = mailbox->buf; in add_promisc_qp()
473 members_count = be32_to_cpu(mgm->members_count) & in add_promisc_qp()
475 prot = be32_to_cpu(mgm->members_count) >> 30; in add_promisc_qp()
478 if ((be32_to_cpu(mgm->qp[i]) & in add_promisc_qp()
502 mgm->qp[members_count++] = in add_promisc_qp()
504 mgm->members_count = in add_promisc_qp()
518 memset(mgm, 0, sizeof *mgm); in add_promisc_qp()
526 mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK); in add_promisc_qp()
528 mgm->members_count = cpu_to_be32(members_count | MLX4_PROT_ETH << 30); in add_promisc_qp()
555 struct mlx4_mgm *mgm; in remove_promisc_qp() local
589 mgm = mailbox->buf; in remove_promisc_qp()
592 mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK); in remove_promisc_qp()
593 mgm->members_count = cpu_to_be32(members_count | MLX4_PROT_ETH << 30); in remove_promisc_qp()
626 be32_to_cpu(mgm->members_count) & in remove_promisc_qp()
637 if ((be32_to_cpu(mgm->qp[i]) & in remove_promisc_qp()
653 mgm->qp[loc] = mgm->qp[members_count - 1]; in remove_promisc_qp()
654 mgm->qp[members_count - 1] = 0; in remove_promisc_qp()
655 mgm->members_count = in remove_promisc_qp()
701 struct mlx4_mgm *mgm = mgm_mailbox->buf; in find_entry() local
731 if (!(be32_to_cpu(mgm->members_count) & 0xffffff)) { in find_entry()
739 if (!memcmp(mgm->gid, gid, 16) && in find_entry()
740 be32_to_cpu(mgm->members_count) >> 30 == prot) in find_entry()
744 *index = be32_to_cpu(mgm->next_gid_index) >> 6; in find_entry()
1103 struct mlx4_mgm *mgm; in mlx4_qp_attach_common() local
1115 mgm = mailbox->buf; in mlx4_qp_attach_common()
1124 if (!(be32_to_cpu(mgm->members_count) & 0xffffff)) { in mlx4_qp_attach_common()
1126 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common()
1140 memset(mgm, 0, sizeof *mgm); in mlx4_qp_attach_common()
1141 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common()
1144 members_count = be32_to_cpu(mgm->members_count) & 0xffffff; in mlx4_qp_attach_common()
1152 if ((be32_to_cpu(mgm->qp[i]) & MGM_QPN_MASK) == qp->qpn) { in mlx4_qp_attach_common()
1159 mgm->qp[members_count++] = cpu_to_be32((qp->qpn & MGM_QPN_MASK) | in mlx4_qp_attach_common()
1162 mgm->qp[members_count++] = cpu_to_be32(qp->qpn & MGM_QPN_MASK); in mlx4_qp_attach_common()
1164 mgm->members_count = cpu_to_be32(members_count | (u32) prot << 30); in mlx4_qp_attach_common()
1177 mgm->next_gid_index = cpu_to_be32(index << 6); in mlx4_qp_attach_common()
1211 struct mlx4_mgm *mgm; in mlx4_qp_detach_common() local
1222 mgm = mailbox->buf; in mlx4_qp_detach_common()
1245 members_count = be32_to_cpu(mgm->members_count) & 0xffffff; in mlx4_qp_detach_common()
1247 if ((be32_to_cpu(mgm->qp[i]) & MGM_QPN_MASK) == qp->qpn) { in mlx4_qp_detach_common()
1259 mgm->qp[loc] = mgm->qp[members_count - 1]; in mlx4_qp_detach_common()
1260 mgm->qp[members_count - 1] = 0; in mlx4_qp_detach_common()
1261 mgm->members_count = cpu_to_be32(--members_count | (u32) prot << 30); in mlx4_qp_detach_common()
1272 mgm->members_count = cpu_to_be32((u32) prot << 30); in mlx4_qp_detach_common()
1276 int amgm_index = be32_to_cpu(mgm->next_gid_index) >> 6; in mlx4_qp_detach_common()
1282 memset(mgm->gid, 0, 16); in mlx4_qp_detach_common()
1298 int cur_next_index = be32_to_cpu(mgm->next_gid_index) >> 6; in mlx4_qp_detach_common()
1303 mgm->next_gid_index = cpu_to_be32(cur_next_index << 6); in mlx4_qp_detach_common()