Lines Matching refs:members_count
155 u32 members_count; in new_steering_entry() local
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()
212 if (members_count == dev->caps.num_qp_per_mgm) { 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()
333 u32 *members_count) in promisc_steering_entry() argument
351 m_count = be32_to_cpu(mgm->members_count) & 0xffffff; in promisc_steering_entry()
352 if (members_count) in promisc_steering_entry()
353 *members_count = m_count; in promisc_steering_entry()
375 u32 members_count; in can_remove_steering_entry() local
384 tqpn, &members_count)) in can_remove_steering_entry()
393 members_count == 1) { in can_remove_steering_entry()
428 u32 members_count; in add_promisc_qp() local
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()
477 for (i = 0; i < members_count; i++) { in add_promisc_qp()
496 if (members_count == in add_promisc_qp()
502 mgm->qp[members_count++] = in add_promisc_qp()
504 mgm->members_count = in add_promisc_qp()
505 cpu_to_be32(members_count | in add_promisc_qp()
519 members_count = 0; in add_promisc_qp()
521 if (members_count == dev->caps.num_qp_per_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()
559 u32 members_count; in remove_promisc_qp() local
590 members_count = 0; 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()
625 members_count = in remove_promisc_qp()
626 be32_to_cpu(mgm->members_count) & in remove_promisc_qp()
628 if (!members_count) { in remove_promisc_qp()
636 for (i = 0; i < members_count; ++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()
656 cpu_to_be32(--members_count | in remove_promisc_qp()
731 if (!(be32_to_cpu(mgm->members_count) & 0xffffff)) { in find_entry()
740 be32_to_cpu(mgm->members_count) >> 30 == prot) in find_entry()
1104 u32 members_count; in mlx4_qp_attach_common() local
1124 if (!(be32_to_cpu(mgm->members_count) & 0xffffff)) { in mlx4_qp_attach_common()
1144 members_count = be32_to_cpu(mgm->members_count) & 0xffffff; in mlx4_qp_attach_common()
1145 if (members_count == dev->caps.num_qp_per_mgm) { in mlx4_qp_attach_common()
1151 for (i = 0; i < members_count; ++i) 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()
1213 u32 members_count; in mlx4_qp_detach_common() local
1246 members_count = be32_to_cpu(mgm->members_count) & 0xffffff; in mlx4_qp_detach_common()
1247 for (i = 0; i < members_count; ++i) in mlx4_qp_detach_common()
1260 mgm->qp[loc] = mgm->qp[members_count - 1]; in mlx4_qp_detach_common()
1261 mgm->qp[members_count - 1] = 0; in mlx4_qp_detach_common()
1262 mgm->members_count = cpu_to_be32(--members_count | (u32) prot << 30); in mlx4_qp_detach_common()
1267 if (members_count && (prot != MLX4_PROT_ETH || !removed_entry)) { in mlx4_qp_detach_common()
1273 mgm->members_count = cpu_to_be32((u32) prot << 30); in mlx4_qp_detach_common()